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.
@Thomas Ward bazaar. launchpad. net/~ubuntu- branches/ ubuntu/ trusty/ nginx/trusty/ view/head: /debian/ nginx-core. postinst is correct )
Firstly, a correction: 14.04 also has the issue, I was looking at the wrong file ( http://
Let me try to summarize the issue a little better:
You have a package, johnny-dep, and it depends on nginx nginx.conf` in its preinst script
johnny-dep has `dpkg-divert /etc/nginx/
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 nginx.conf
2) nginx installs, but during its configuration it exits because there's no /etc/nginx/
--
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.