[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Should the X packages pre-depend on awk?



Hi,

recently, I've installed a new system with a minimal configuration. Then
I've imported my old package selection with dpkg --set-selections and run
apt-get dselect-upgrade. This replaced the mawk package by the gawk
package and installed some X package at the same time.

>From dpkg.log:

2008-07-23 00:56:42 remove mawk 1.3.3-11.1 1.3.3-11.1
[…]
2008-07-23 00:56:43 status not-installed mawk <keine>

2008-07-23 00:57:25 install x11-common <keine> 1:7.3+14
2008-07-23 00:57:30 status half-installed x11-common 1:7.3+14
2008-07-23 00:57:30 status unpacked x11-common 1:7.3+14
2008-07-23 00:57:33 configure x11-common 1:7.3+14 1:7.3+14
2008-07-23 00:57:33 status unpacked x11-common 1:7.3+14
2008-07-23 00:57:33 status half-configured x11-common 1:7.3+14
2008-07-23 00:57:35 status installed x11-common 1:7.3+14

2008-07-23 00:58:24 install gawk <keine> 1:3.1.5.dfsg-4.1
2008-07-23 00:58:24 status half-installed gawk 1:3.1.5.dfsg-4.1
2008-07-23 00:58:24 status half-installed gawk 1:3.1.5.dfsg-4.1
2008-07-23 00:58:24 status unpacked gawk 1:3.1.5.dfsg-4.1
2008-07-23 00:58:24 status unpacked gawk 1:3.1.5.dfsg-4.1
2008-07-23 01:11:02 configure gawk 1:3.1.5.dfsg-4.1 1:3.1.5.dfsg-4.1
2008-07-23 01:11:02 status unpacked gawk 1:3.1.5.dfsg-4.1
2008-07-23 01:11:02 status half-configured gawk 1:3.1.5.dfsg-4.1
2008-07-23 01:11:02 status installed gawk 1:3.1.5.dfsg-4.1

But x11-common and many other X packages use awk in their maintainer
scripts.

% grep awk $PWD/x11-common.p*
/var/lib/dpkg/info/x11-common.postinst:DEFCOLUMNS=$(stty size 2> /dev/null | aw '{print $2}') || true
/var/lib/dpkg/info/x11-common.postinst:    awk '{ if (match($0, "^ '"$conffile"' ")) print $2}')"
/var/lib/dpkg/info/x11-common.postrm:DEFCOLUMNS=$(stty size 2> /dev/null | awk '{print $2}') || true
/var/lib/dpkg/info/x11-common.postrm:    awk '{ if (match($0, "^ '"$conffile"' ")) print $2}')"
/var/lib/dpkg/info/x11-common.preinst:DEFCOLUMNS=$(stty size 2> /dev/null | awk '{print $2}') || true
/var/lib/dpkg/info/x11-common.preinst:    awk '{ if (match($0, "^ '"$conffile"' ")) print $2}')"

So, must these packages pre‐depend on awk?

Bye, Jörg.
-- 
Diskutiere nie mit einem Idioten:
Sie ziehen Dich auf ihr Niveau herab und schlagen Dich dann mit
Erfahrung.


Reply to: