Bug#702524: gawk: Depends should really be Pre-Depends
Hi, Here's the diff for the gawk I'm going to upload. Cheers, Thijs diff -Nru gawk-4.0.1+dfsg/debian/changelog gawk-4.0.1+dfsg/debian/changelog --- gawk-4.0.1+dfsg/debian/changelog 2012-05-21 10:36:06.0 +0200 +++ gawk-4.0.1+dfsg/debian/changelog 2013-03-16 12:43:50.0 +0100 @@ -1,3 +1,10 @@ +gawk (1:4.0.1+dfsg-2.1) unstable; urgency=medium + + * Non-maintainer upload. + * Change Depends back to Pre-Depends (closes: #702524). + + -- Thijs Kinkhorst Sat, 16 Mar 2013 12:31:51 +0100 + gawk (1:4.0.1+dfsg-2) unstable; urgency=low * debian/control: diff -Nru gawk-4.0.1+dfsg/debian/control gawk-4.0.1+dfsg/debian/control --- gawk-4.0.1+dfsg/debian/control 2012-05-21 10:29:16.0 +0200 +++ gawk-4.0.1+dfsg/debian/control 2013-03-16 12:33:24.0 +0100 @@ -16,7 +16,8 @@ Architecture: any Multi-Arch: foreign Provides: awk -Depends: ${misc:Depends}, ${shlibs:Depends} +Pre-Depends: ${shlibs:Depends} +Depends: ${misc:Depends} Suggests: gawk-doc Description: GNU awk, a pattern scanning and processing language `awk', a program that you can use to select particular records in a signature.asc Description: This is a digitally signed message part.
Bug#702524: gawk: Depends should really be Pre-Depends
Hi, > | -Change Pre-Depends to Depends (OK now that base-files Pre-Depends: awk) > This is not correct and needs to be reverted, since it means that gawk > might be unpacked before its dependencies during upgrades. If the awk > alternative is set to gawk, other packages which are unpacked in the > same run and use awk in their pre{inst,rm} scripts which fail. This is > not unlikely to happen in squeeze -> wheezy upgrades, since gawk in > wheezy gained a new dependency on libsigsegv2. As Jeroen's sponsor I discussied this issue with him when that upload was prepared. The conclusion back then was as follows: Op maandag 21 mei 2012 11:11:40 schreef Jeroen Schot: > - Alle awk's (mawk, original-awk, gawk) gebruiken pre-depends. > - 'awk' bevindt zich in de Essential closure (base-files pre-depends: awk). > > Na wat research geloof ik toch dat de pre-depends weg kan. > Oorspronkelijke reden is te vinden in deze mail [1] in debian-policy > 1998: base-files had toen een depends: awk. Dit was eigenlijk subtiel > fout en werd gecorrigeerd in 2008 [2]. Sindsdien is de pre-depends > niet meer nodig. > > [1]: http://lists.debian.org/debian-policy/1998/02/msg00195.html > [2]: http://lists.debian.org/debian-devel/2008/07/msg01028.html So this is how we arrived at the conclusion that it would be possible to drop it. I've pinged Jeroen oob about this bug but didn't receive a response yet. Given the point in the release cycle, I think the safe approach for now is to revert the change and re-add the Pre-depends. We can always reopen the issue post- release if further discussion on the necessity of the pre-depends is desired. I'll upload a package with the change soon. Cheers, Thijs signature.asc Description: This is a digitally signed message part.
Bug#702524: gawk: Depends should really be Pre-Depends
On 2013-03-07 20:04 +0100, Sven Joachim wrote: > Package: gawk > Version: 1:4.0.1+dfsg-2 > Severity: serious > > The Debian changelog for this version mentions: > > , > | -Change Pre-Depends to Depends (OK now that base-files Pre-Depends: awk) > ` > > This is not correct and needs to be reverted, since it means that gawk > might be unpacked before its dependencies during upgrades. If the awk > alternative is set to gawk, other packages which are unpacked in the > same run and use awk in their pre{inst,rm} scripts which fail. This is > not unlikely to happen in squeeze -> wheezy upgrades, since gawk in > wheezy gained a new dependency on libsigsegv2. Maybe it's not that likely to be triggered when using apt, since apt appears to unpack libsigsegv2 before gawk, but here is a recipe showing the problem starting in a squeeze chroot: # apt-get install gawk # sed -i 's/squeeze/wheezy/' /etc/apt/sources.list # apt-get update # aptitude download gawk libc6 libsigsegv2 # dpkg -i *.deb Result: , | Preparing to replace gawk 1:3.1.7.dfsg-5 (using gawk_1%3a4.0.1+dfsg-2_i386.deb) ... | Unpacking replacement gawk ... | Preparing to replace libc6 2.11.3-4 (using libc6_2.13-38_i386.deb) ... | Checking for services that may need to be restarted...awk: error while loading shared libraries: libsigsegv.so.2: cannot open shared object file: No such file or directory | dpkg: error processing libc6_2.13-38_i386.deb (--install): | subprocess new pre-installation script returned error exit status 127 | Selecting previously deselected package libsigsegv2. | Unpacking libsigsegv2 (from libsigsegv2_2.9-4_i386.deb) ... | Setting up libsigsegv2 (2.9-4) ... | Setting up gawk (1:4.0.1+dfsg-2) ... | Errors were encountered while processing: | libc6_2.13-38_i386.deb ` Easily rectifiable, but if libsigsegv2 would depend on the _new_ libc6 the problem would be rather big. > Both mawk and original-awk use Pre-Depends for that reason. Cheers, Sven -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#702524: gawk: Depends should really be Pre-Depends
Package: gawk Version: 1:4.0.1+dfsg-2 Severity: serious The Debian changelog for this version mentions: , | -Change Pre-Depends to Depends (OK now that base-files Pre-Depends: awk) ` This is not correct and needs to be reverted, since it means that gawk might be unpacked before its dependencies during upgrades. If the awk alternative is set to gawk, other packages which are unpacked in the same run and use awk in their pre{inst,rm} scripts which fail. This is not unlikely to happen in squeeze -> wheezy upgrades, since gawk in wheezy gained a new dependency on libsigsegv2. Both mawk and original-awk use Pre-Depends for that reason. -- System Information: Debian Release: 7.0 APT prefers unstable APT policy: (500, 'unstable'), (101, 'experimental') Architecture: i386 (x86_64) Kernel: Linux 3.8.2-nouveau (SMP w/2 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages gawk depends on: ii libc6 2.13-38 ii libreadline6 6.2+dfsg-0.1 ii libsigsegv2 2.9-4 gawk recommends no packages. Versions of packages gawk suggests: ii gawk-doc 4.0.1+ds-1 -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org