iriscouch / build-couchdb

Batteries-included CouchDB build system
227 stars 36 forks source link

Wrong ubuntu Z library #53

Closed sdeboer closed 11 years ago

sdeboer commented 12 years ago

When setting up the library dependencies in the rake task the ubuntu list includes libz-dev which is incorrect, and causes the build to fail when running unattended and without sudo.

This change is just shifting it over to the correct dependency for ubuntu of, zlib1g-dev.

jimklo commented 12 years ago

FWIW: this is the same pull request as #52, which was to solve Ubuntu 10.10. libz-dev is the virtual package name.. zlibg-dev should be correct for all Ubuntu. When I checked the package repository, zlib1g-dev has been the libz package since 8.x through 12.x.

sdeboer commented 12 years ago

Sorry. I didn't intend you to be revisiting work.

Perhaps it is my use-case, as the build is getting run during a system image build process, all the dependencies are getting installed via apt-get by the root user and then build-couchdb is getting run as the couchdb user -- that does not have sudo privileges.

So, when the script gets to the libz-dev dependency check it doesn't exist as an installed package, because it is just aliased to zlib1g-dev. This then triggers the attempt to install libz-dev, which the couchdb user does not have rights to do. Hence the failing install process.

I did not spend much time investigating if there is a proper way to build as root, but run as couchdb, which would alleviate this issue. Which I will do now. But, perhaps this additional information on the way this manifest might assist.