[Bug 1483923] Re: dpkg-divert breaks nginx installation
Benjamin Bach
benjaoming at gmail.com
Sun Sep 13 15:06:40 UTC 2015
@Thomas Ward
Firstly, a correction: 14.04 also has the issue, I was looking at the wrong file ( http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/trusty/nginx/trusty/view/head:/debian/nginx-core.postinst is correct )
Let me try to summarize the issue a little better:
You have a package, johnny-dep, and it depends on nginx
johnny-dep has `dpkg-divert /etc/nginx/nginx.conf` in its preinst script
When we install johnny-dep, nginx will also be installed. What happens
is this:
1) johnny-dep adds the diversion, now there is no file /etc/nginx/nginx.conf
2) nginx installs, but during its configuration it exits because there's no /etc/nginx/nginx.conf
--
Meanwhile, I found this work-around/solution:
I listed nginx in "Pre-Depends" in my debian/control, thus nginx will
run its postinst script before johnny-dep's preinst script is run.
If this is enough to consider this a non-bug, that's acceptable. Maybe I
disagree a little bit that nginx doesn't work conventionally with a
diversion of its configuration file, but on the other hand, it's not
very severe.
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nginx in Ubuntu.
https://bugs.launchpad.net/bugs/1483923
Title:
dpkg-divert breaks nginx installation
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nginx/+bug/1483923/+subscriptions
More information about the Ubuntu-server-bugs
mailing list