FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 07-22-2010, 03:10 PM
Goswin von Brederlow
 
Default Bug#589963: preinst fails if awk is unpacked but not configured

Package: initramfs-tools
Version: 0.96.1
Severity: normal

Hi,

when cdebootstraping an Ubuntu Lucid system initramfs-tools gets
installed now. The problem then is that at the point initramfs-tools
is unpacked the mawk package is unpacked but not configured. That
means the /usr/bin/awk alternative is not yet setup.

O: Selecting previously deselected package mawk.
O: dpkg: regarding .../mawk_1.3.3-15ubuntu2_amd64.deb containing mawk, pre-dependency problem:
O: mawk pre-depends on libc6 (>= 2.11~20100104-0ubuntu3)
O: libc6 is unpacked, but has never been configured.
O: dpkg: warning: ignoring pre-dependency problem!
O: Unpacking mawk (from .../mawk_1.3.3-15ubuntu2_amd64.deb) ...
P: Unpacking package mawk
D: Updating mawk to status 2
O: Selecting previously deselected package base-files.
O: dpkg: regarding .../base-files_5.0.0ubuntu20_amd64.deb containing base-files, pre-dependency problem:
O: base-files pre-depends on awk
O: mawk provides awk but is unpacked but not configured.
O: dpkg: warning: ignoring pre-dependency problem!
O: Unpacking base-files (from .../base-files_5.0.0ubuntu20_amd64.deb) ...
P: Unpacking package base-files
D: Updating base-files to status 2
...
O: Selecting previously deselected package initramfs-tools.
O: Unpacking initramfs-tools (from .../initramfs-tools_0.92bubuntu78_all.deb) ..
.
P: Unpacking package initramfs-tools
D: Updating initramfs-tools to status 2
O: /var/lib/dpkg/tmp.ci/preinst: 59:
O: awk: not found
O:
O: /var/lib/dpkg/tmp.ci/preinst: 59:
O: awk: not found
O:
O: dpkg: error processing /var/cache/bootstrap/initramfs-tools_0.92bubuntu78_all.deb (--unpack):
O: subprocess new pre-installation script returned error exit status 127


While this could be blamed on cdebootstrap I think it might be a good
idea to fix initramfs-tools. The relevant command is

awk ' { print $1 } '

which really does not need awk. "cut" would do instead and avoid the
rather probelamtic pseudo-essential awk issue.

MfG
Goswin

-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31.6-xen-2010.02.18 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages initramfs-tools depends on:
ii cpio 2.11-4 GNU cpio -- a program to manage ar
ii findutils 4.4.2-1 utilities for finding files--find,
ii klibc-utils 1.5.18-1 small utilities built with klibc f
ii module-init-tools 3.12~pre2-3 tools for managing Linux kernel mo
ii udev 157-1 /dev/ and hotplug management daemo

Versions of packages initramfs-tools recommends:
ii busybox 1:1.15.3-1 Tiny utilities for small and embed

initramfs-tools suggests no packages.

-- no debconf information



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100722151026.23132.50164.reportbug@frosties.loca ldomain">http://lists.debian.org/20100722151026.23132.50164.reportbug@frosties.loca ldomain
 
Old 07-24-2010, 04:38 AM
Steve Langasek
 
Default Bug#589963: preinst fails if awk is unpacked but not configured

clone 589963 -1
reassign -1 cdebootstrap
severity 589963 minor
severity -1 important
thanks

On Thu, Jul 22, 2010 at 05:10:26PM +0200, Goswin von Brederlow wrote:
> O: Selecting previously deselected package mawk.
> O: dpkg: regarding .../mawk_1.3.3-15ubuntu2_amd64.deb containing mawk, pre-dependency problem:
> O: mawk pre-depends on libc6 (>= 2.11~20100104-0ubuntu3)
> O: libc6 is unpacked, but has never been configured.
> O: dpkg: warning: ignoring pre-dependency problem!
> O: Unpacking mawk (from .../mawk_1.3.3-15ubuntu2_amd64.deb) ...
> P: Unpacking package mawk
> D: Updating mawk to status 2
> O: Selecting previously deselected package base-files.
> O: dpkg: regarding .../base-files_5.0.0ubuntu20_amd64.deb containing base-files, pre-dependency problem:
> O: base-files pre-depends on awk
> O: mawk provides awk but is unpacked but not configured.
> O: dpkg: warning: ignoring pre-dependency problem!
> O: Unpacking base-files (from .../base-files_5.0.0ubuntu20_amd64.deb) ...
> P: Unpacking package base-files
> D: Updating base-files to status 2

> While this could be blamed on cdebootstrap

Only because it's a cdebootstrap bug. Unless you see something that causes
initramfs-tools to be pulled into the essential set (which I do not), this
is a cdebootstrap bug for not fulfilling the pre-depends of the essential
packages before continuing.

--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer http://www.debian.org/
slangasek@ubuntu.com vorlon@debian.org
 
Old 07-24-2010, 11:10 PM
Bastian Blank
 
Default Bug#589963: preinst fails if awk is unpacked but not configured

On Sat, Jul 24, 2010 at 06:38:41AM +0200, Steve Langasek wrote:
> On Thu, Jul 22, 2010 at 05:10:26PM +0200, Goswin von Brederlow wrote:
> > O: Selecting previously deselected package mawk.
> > O: dpkg: regarding .../mawk_1.3.3-15ubuntu2_amd64.deb containing mawk, pre-dependency problem:
> > O: mawk pre-depends on libc6 (>= 2.11~20100104-0ubuntu3)
> > O: libc6 is unpacked, but has never been configured.
> > O: dpkg: warning: ignoring pre-dependency problem!
> > O: Unpacking mawk (from .../mawk_1.3.3-15ubuntu2_amd64.deb) ...
> > P: Unpacking package mawk
> > D: Updating mawk to status 2
> > O: Selecting previously deselected package base-files.
> > O: dpkg: regarding .../base-files_5.0.0ubuntu20_amd64.deb containing base-files, pre-dependency problem:
> > O: base-files pre-depends on awk
> > O: mawk provides awk but is unpacked but not configured.
> > O: dpkg: warning: ignoring pre-dependency problem!
> > O: Unpacking base-files (from .../base-files_5.0.0ubuntu20_amd64.deb) ...
> > P: Unpacking package base-files
> > D: Updating base-files to status 2
> Only because it's a cdebootstrap bug. Unless you see something that causes
> initramfs-tools to be pulled into the essential set (which I do not), this
> is a cdebootstrap bug for not fulfilling the pre-depends of the essential
> packages before continuing.

You should know better, awk is not essential. Also essential means that
it have to work _without_ being configured.

Bastian

--
Men will always be men -- no matter where they are.
-- Harry Mudd, "Mudd's Women", stardate 1329.8



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100724231036.GA25452@wavehammer.waldi.eu.org">ht tp://lists.debian.org/20100724231036.GA25452@wavehammer.waldi.eu.org
 
Old 07-24-2010, 11:51 PM
Steve Langasek
 
Default Bug#589963: preinst fails if awk is unpacked but not configured

On Sun, Jul 25, 2010 at 01:10:36AM +0200, Bastian Blank wrote:
> On Sat, Jul 24, 2010 at 06:38:41AM +0200, Steve Langasek wrote:
> > On Thu, Jul 22, 2010 at 05:10:26PM +0200, Goswin von Brederlow wrote:
> > > O: Selecting previously deselected package mawk.
> > > O: dpkg: regarding .../mawk_1.3.3-15ubuntu2_amd64.deb containing mawk, pre-dependency problem:
> > > O: mawk pre-depends on libc6 (>= 2.11~20100104-0ubuntu3)
> > > O: libc6 is unpacked, but has never been configured.
> > > O: dpkg: warning: ignoring pre-dependency problem!
> > > O: Unpacking mawk (from .../mawk_1.3.3-15ubuntu2_amd64.deb) ...
> > > P: Unpacking package mawk
> > > D: Updating mawk to status 2
> > > O: Selecting previously deselected package base-files.
> > > O: dpkg: regarding .../base-files_5.0.0ubuntu20_amd64.deb containing base-files, pre-dependency problem:
> > > O: base-files pre-depends on awk
> > > O: mawk provides awk but is unpacked but not configured.
> > > O: dpkg: warning: ignoring pre-dependency problem!
> > > O: Unpacking base-files (from .../base-files_5.0.0ubuntu20_amd64.deb) ...
> > > P: Unpacking package base-files
> > > D: Updating base-files to status 2
> > Only because it's a cdebootstrap bug. Unless you see something that causes
> > initramfs-tools to be pulled into the essential set (which I do not), this
> > is a cdebootstrap bug for not fulfilling the pre-depends of the essential
> > packages before continuing.

> You should know better, awk is not essential. Also essential means that
> it have to work _without_ being configured.

I know quite well that awk *is* part of the essential closure, because it's a
pre-dependency of an essential package. Even *unpacking* of base-files is
not supposed to happen (in an ideal world) before awk has been configured,
and you definitely shouldn't be trying to configure *other* packages before
the pre-depends of essential packages have been satisfied.

--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer http://www.debian.org/
slangasek@ubuntu.com vorlon@debian.org
 
Old 07-25-2010, 01:27 AM
Bastian Blank
 
Default Bug#589963: preinst fails if awk is unpacked but not configured

On Sat, Jul 24, 2010 at 04:51:50PM -0700, Steve Langasek wrote:
> > > Only because it's a cdebootstrap bug. Unless you see something that causes
> > > initramfs-tools to be pulled into the essential set (which I do not), this
> > > is a cdebootstrap bug for not fulfilling the pre-depends of the essential
> > > packages before continuing.

At least in Lucid, initramfs-tools is essential:
util-linux -> upstart(upstart-job) -> mountall -> plymouth -> initramfs-tools

> > You should know better, awk is not essential. Also essential means that
> > it have to work _without_ being configured.
> I know quite well that awk *is* part of the essential closure, because it's a
> pre-dependency of an essential package. Even *unpacking* of base-files is
> not supposed to happen (in an ideal world) before awk has been configured,
> and you definitely shouldn't be trying to configure *other* packages before
> the pre-depends of essential packages have been satisfied.

In an ideal world, it is possible to configure every essential package
with its dependencies and pre-dependendies on its own.

Bastian

--
There are some things worth dying for.
-- Kirk, "Errand of Mercy", stardate 3201.7



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100725012740.GA26634@wavehammer.waldi.eu.org">ht tp://lists.debian.org/20100725012740.GA26634@wavehammer.waldi.eu.org
 
Old 07-25-2010, 05:57 PM
Goswin von Brederlow
 
Default Bug#589963: preinst fails if awk is unpacked but not configured

Bastian Blank <waldi@debian.org> writes:

> On Sat, Jul 24, 2010 at 04:51:50PM -0700, Steve Langasek wrote:
>> > > Only because it's a cdebootstrap bug. Unless you see something that causes
>> > > initramfs-tools to be pulled into the essential set (which I do not), this
>> > > is a cdebootstrap bug for not fulfilling the pre-depends of the essential
>> > > packages before continuing.
>
> At least in Lucid, initramfs-tools is essential:
> util-linux -> upstart(upstart-job) -> mountall -> plymouth -> initramfs-tools
>
>> > You should know better, awk is not essential. Also essential means that
>> > it have to work _without_ being configured.
>> I know quite well that awk *is* part of the essential closure, because it's a
>> pre-dependency of an essential package. Even *unpacking* of base-files is
>> not supposed to happen (in an ideal world) before awk has been configured,
>> and you definitely shouldn't be trying to configure *other* packages before
>> the pre-depends of essential packages have been satisfied.
>
> In an ideal world, it is possible to configure every essential package
> with its dependencies and pre-dependendies on its own.
>
> Bastian

Maybe since awk is essential by way of being a pre-depends of base-files
both mawk and gawk should behave as if they were essential. Meaning awk
should work with [gm]awk unpacked but not yet configured.

If both gawk and mawk create the awk link in preinst if it is missing
then awk can be used with [mg]awk unpacked. Probably needs some special
hand holding of update-alternatives in postinst for it to work
though. But it should be managable.

MfG
Goswin



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 87r5ire96t.fsf@frosties.localdomain">http://lists.debian.org/87r5ire96t.fsf@frosties.localdomain
 
Old 07-25-2010, 06:26 PM
Steve Langasek
 
Default Bug#589963: preinst fails if awk is unpacked but not configured

On Sun, Jul 25, 2010 at 03:27:40AM +0200, Bastian Blank wrote:
> On Sat, Jul 24, 2010 at 04:51:50PM -0700, Steve Langasek wrote:
> > > > Only because it's a cdebootstrap bug. Unless you see something that causes
> > > > initramfs-tools to be pulled into the essential set (which I do not), this
> > > > is a cdebootstrap bug for not fulfilling the pre-depends of the essential
> > > > packages before continuing.

> At least in Lucid, initramfs-tools is essential:
> util-linux -> upstart(upstart-job) -> mountall -> plymouth -> initramfs-tools

No, only essential packages and the pre-depends of essential packages (and
the transitive dependencies of the latter) are part of the essential
closure. util-linux depends: upstart should not lead to trying to satisfy
the dependency chain of upstart before configuring the pre-depends of
essential packages.

Do you see another dependency chain that causes initramfs-tools to be
treated as essential by cdebootstrap? Or does cdebootstrap have an option
that allows for debugging this? It's entirely possible that I have
overlooked a dependency chain that accounts for this being an
initramfs-tools bug only and not a cdebootstrap bug, but I have looked -
there's nothing obvious, which is why I think it's a cdebootstrap bug.

> > > You should know better, awk is not essential. Also essential means that
> > > it have to work _without_ being configured.
> > I know quite well that awk *is* part of the essential closure, because it's a
> > pre-dependency of an essential package. Even *unpacking* of base-files is
> > not supposed to happen (in an ideal world) before awk has been configured,
> > and you definitely shouldn't be trying to configure *other* packages before
> > the pre-depends of essential packages have been satisfied.

> In an ideal world, it is possible to configure every essential package
> with its dependencies and pre-dependendies on its own.

Yes. But even so, cdebootstrap needs to get the ordering right.

Thanks,
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer http://www.debian.org/
slangasek@ubuntu.com vorlon@debian.org
 
Old 07-25-2010, 06:27 PM
Steve Langasek
 
Default Bug#589963: preinst fails if awk is unpacked but not configured

On Sun, Jul 25, 2010 at 07:57:14PM +0200, Goswin von Brederlow wrote:
> Maybe since awk is essential by way of being a pre-depends of base-files
> both mawk and gawk should behave as if they were essential.

No.

--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer http://www.debian.org/
slangasek@ubuntu.com vorlon@debian.org
 

Thread Tools




All times are GMT. The time now is 10:00 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org