[Bug 1022515] Re: Please sync (sort of) couchdb 1.2.0-1 from Debian unstable
Steve Langasek
steve.langasek at canonical.com
Tue Jul 31 01:43:03 UTC 2012
I'm preparing a merge of this package now; I have the following differences to your version:
- based on 1.2.0-2 from Debian, not 1.2.0-1
- uses the Debian+Ubuntu changelog history
- Retains the Suggests: couchdb on couchdb-bin from Ubuntu (for now)
- debian/couchdb-bin.postinst: guard the chown handling with a version check, so that we don't apply these changes on every package upgrade and further annoy users who are doing something custom with their permissions
- retain debian/couchdb-bin.postrm. This package still needs to be responsible for trying to clean up the /etc/couchdb directory on purge.
- debian/couchdb.postrm: don't rm /etc/couchdb/local.ini, this is a conffile so already taken care of for us; and don't remove the couchdb user/group on purge. See endless discussions on debian-devel about this.
- debian/patches/var-run.patch is in Debian as debian/patches/couchdb_own_rundir.patch. Use the Debian name.
- debian/rules:
- erlang-depends doesn't need -pcouchdb-bin passed; it will dtrt without this delta from Debian (not your doing, this change was inherited from Ubuntu)
- calling dh_fixperms is pointless (and this is so in the Debian package, too), because cdbs already calls it for us.
Everything else looks good. I'll be uploading to quantal shortly -
thanks!
** Changed in: couchdb (Ubuntu)
Status: Confirmed => In Progress
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1022515
Title:
Please sync (sort of) couchdb 1.2.0-1 from Debian unstable
Status in “couchdb” package in Ubuntu:
In Progress
Bug description:
I'd like to see CouchDB 1.2.0 synced from Debian, but adding in a
couchdb/couchdb-bin split similar to what was done by the desktopcouch
folks for the current Ubuntu 1.0.1 package.
This split is critical for Novacut and Dmedia because otherwise our
users have an unused system-wide CouchDB running for no reason. We've
been maintaining our own newer CouchDB packages in our PPA, and I'd
love to stop doing that.
For more background, I tried to do something similar for CouchDB 1.1.1
in Precise, but didn't make it in time:
https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/903098
== Current Status ==
I have a debdiff attached, ready for review, and I have test packages for Precise and Quantal in ppa:novacut/daily:
https://launchpad.net/~novacut/+archive/daily
I've found no regressions from the 1.0.1 Ubuntu package. There's still
one nasty issue (also present in 1.0.1) that I hope to resolve, but
haven't yet. The issue is you can't stop the daemon immediately after
installation. For example, this doesn't work:
sudo apt-get install couchdb
sudo /etc/init.d/couchdb stop
But this does work:
sudo apt-get install couchdb
<reboot>
sudo /etc/init.d/couchdb stop
== What needs further testing ==
I don't use system-wide CouchDB on a regular basis, so I need help
testing the `couchdb` side of the split.
In particular, if there is anyone running the 1.0.1 package in a
production setting, I need feedback on whether the permission and
ownership changes I made in /etc/couchdb cause any issues for you
during/after an upgrade to my 1.2.0 package.
== debian/changelog ==
couchdb (1.2.0-1ubuntu1) quantal; urgency=low
* Started with branch of 1.2.0-1 from Debian unstable
* Split into `couchdb-bin` and `couchdb` binary packages as found in Ubuntu,
with goal of keeping delta between Debian and Ubuntu as low as possible
* Changes from how the split is done in Ubuntu:
- /etc/couchdb/default.ini and /etc/couchdb/default.d are delivered in the
`couchdb-bin` package and are owned by root
- /etc/couchdb/local.ini and /etc/couchdb/local.d are delivered in the
`couchdb` package and are owned by the "couchdb" user
- The `couchdb-bin` package does not create nor require the "couchdb" user
(this is now done in the `couchdb` package instead)
* Changes from Debian:
- After couchdb.postinst runs, only /etc/couchdb/local.ini and
/etc/couchdb/local.d are owned by the "couchdb" user, while the rest of
/etc/couchdb remains owned by root
- Patched /etc/init.d/couchdb so /var/run/couchdb is owned by the "couchdb"
user, needed for the init.d script to actually work (var-run.patch)
- Added a short sleep delay in couchdb.postrm so couchdb is more likely to
have actually terminated by the time we `deluser couchdb`, which is needed
for `sudo apt-get purge couchdb` to work when couchdb is running
- Added couchdb-bin.postinst to fix permissions in /etc/couchdb after
upgrading from the couchdb-bin 1.0.1 package
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/couchdb/+bug/1022515/+subscriptions
More information about the Ubuntu-sponsors
mailing list