[Bug 1483923] Re: dpkg-divert breaks nginx installation

2015-11-11 Thread Robie Basak
AIUI, it isn't appropriate for a package to modify another package's behaviour from under its feet in this way. Debian Policy Appendix G (not formally policy I don't think) says: "Do not attempt to divert a conffile, as dpkg does not handle it well.". Though https://wiki.debian.org/ConfigPackages

[Bug 1483923] Re: dpkg-divert breaks nginx installation

2015-11-11 Thread Benjamin Bach
Won't fix +1 Pre-Depends is really an easy work-around!! I see problems with dpkg-divert, but I also see work-arounds and room for discussions and improvements of individual packages. I don't think we need to say that "dpkg-divert" should be discouraged because of debian policy, nor do I see a

[Bug 1483923] Re: dpkg-divert breaks nginx installation

2015-11-11 Thread Benjamin Bach
Regarding the discussion about dpkg-divert: It's inevitable -- I wanna change something in nginx.conf that's not possible to change elsewhere because /etc/nginx/conf.d is only loaded in the http { ... } segment: 2015/11/11 22:29:32 [emerg] 15102#0: "worker_processes" directive is not allowed here

[Bug 1483923] Re: dpkg-divert breaks nginx installation

2015-11-11 Thread Thomas Ward
I'm going to take the following actions on this bug, and the Server Team is OK'd to say otherwise, since I'm slightly sleep deprived. > Agreed, no need to patch this in Ubuntu. Should be done in Debian, which I can see would have the same problem. -- Benjamin Bach, November 11, 2015, Comment 7

[Bug 1483923] Re: dpkg-divert breaks nginx installation

2015-11-06 Thread Benjamin Bach
Just read this: > > Conceptually, a diverting package actually pre-depends on the package > > being diverted. Furthermore: > Current behaviour of dpkg-divert is not an excuse to retain it, IMHO. > Conceptually, dpkg-divert in preinst scripts is just wrong. >From this discussion:

[Bug 1483923] Re: dpkg-divert breaks nginx installation

2015-09-13 Thread Thomas Ward
Benjamin, Thanks for the post here. However, there's no debug information available here, really, to poke at things. One huge difference from 14.04 and 15.04 is systemd, can you include some debug information (such as the output of `systemctl -l status nginx.service` and `journalctl -xe`) so we

[Bug 1483923] Re: dpkg-divert breaks nginx installation

2015-09-13 Thread Benjamin Bach
@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,

[Bug 1483923] Re: dpkg-divert breaks nginx installation

2015-09-12 Thread josh walls
HI -- 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:

[Bug 1483923] Re: dpkg-divert breaks nginx installation

2015-08-11 Thread Benjamin Bach
I'm going to take a wild guess that the issue is because vivid's nginx- common.postinst has this line: invoke-rc.d nginx start || exit $? Which will make postinst fail if nginx fails to start for the first time. 15.04: http://bazaar.launchpad.net/~ubuntu-