Re: Should the X packages pre-depend on awk?
- To: email@example.com
- Subject: Re: Should the X packages pre-depend on awk?
- From: Goswin von Brederlow <firstname.lastname@example.org>
- Date: Thu, 07 Aug 2008 11:53:41 +0200
- Message-id: <[🔎] email@example.com>
- In-reply-to: <20080731195503.GE30089@dario.dodds.net> (Steve Langasek's message of "Thu, 31 Jul 2008 12:55:03 -0700")
- References: <firstname.lastname@example.org> <email@example.com> <20080731195503.GE30089@dario.dodds.net>
Steve Langasek <firstname.lastname@example.org> writes:
> On Thu, Jul 31, 2008 at 12:30:44PM +0200, Manuel Prinz wrote:
>> Am Donnerstag, den 31.07.2008, 09:27 +0000 schrieb JÃ¶rg Sommer:
>> > 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.
>> > [...]
>> > But x11-common and many other X packages use awk in their maintainer
>> > scripts. [...]
>> > So, must these packages preâ??depend on awk?
>> No. They can rely on awk to be installed. awk is a dependency of package
>> base-files, which is essential. By that, awk is always installed and
>> x11-common can use awk in the maintainer scripts without the need to
>> declare a dependency.
> The dpkg upgrade log that JÃ¶rg showed clearly indicates that this is not the
> case; mawk was removed, other packages were installed, and then gawk was
I think this is a misbehaviour in apt. It could first install gawk and
only then remove mawk. That way base-files would not have to be
It is not a bug as apt may do it this way. It just isn't the best
solution. I think apt should be more conservative when possible.