Please sync (sort of) couchdb 1.2.0-1 from Debian unstable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
couchdb (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
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:/
== Current Status ==
I have a debdiff attached, ready for review, and I have test packages for Precise and Quantal in ppa:novacut/daily:
https:/
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/
`couchdb-bin` package and are owned by root
- /etc/couchdb/
`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/
/
/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-
upgrading from the couchdb-bin 1.0.1 package
tags: | added: novacut |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Okay, I fixed the /etc/init.d/couchdb script issue.
I also seemingly fixed the `apt-get purge couchdb` problem, but sometimes it still fails. The issue is `/etc/init. d/couchdb stop` is async, so when couchdb.postrm tries to deluser couchdb, that user still has processes running, making deluser and the couchdb.postrm script fail.