Bug#303281: mkinitrd should be updated for libc6 2.3.4 whose ldd changed output format
- To: George Cristian Birzan <gcbirzan@wolfheart.ro>, 303281@bugs.debian.org, 301455@bugs.debian.org, control@bugs.debian.org, gotom@debian.org, 295422@bugs.debian.org, 295412@bugs.debain.org, 279382@bugs.debian.org, 297724@bugs.debian.org, 292080@bugs.debian.org, Harald Dunkel <harald.dunkel@t-online.de>, Horms <horms@debian.org>, jbailey@raspberryginger.com
- Subject: Bug#303281: mkinitrd should be updated for libc6 2.3.4 whose ldd changed output format
- From: GOTO Masanori <gotom@debian.org>
- Date: Thu, 28 Apr 2005 14:50:14 +0900
- Message-id: <[🔎] 81vf671mcp.wl@omega.webmasters.gr.jp>
- Reply-to: GOTO Masanori <gotom@debian.org>, 303281@bugs.debian.org
- In-reply-to: <[🔎] 20050405211354.GB8267@nuke.wolfheart.ro>
- References: <[🔎] 20050405190835.224AA187628A@meteor> <[🔎] 4252F89C.1040604@t-online.de> <[🔎] 20050405211354.GB8267@nuke.wolfheart.ro>
reassign 301455 initrd-tools
severity 303281 important
merge 301455 303281
thanks
At Wed, 6 Apr 2005 00:13:54 +0300,
George Cristian Birzan wrote:
> On Tue, Apr 05, 2005 at 10:44:12PM +0200, Harald Dunkel wrote:
> > > sed -n 's/.*\(=>\)\?[[:blank:]]\+\(\/[^[:blank:]]*\).*/\2/p'
> > >
> >
> > Something like '[:blank:]' is too much gawk. A few weeks ago
> > I had sent the attached patch.
>
> > --- /u/harri/initrd-tools/initrd-tools-0.1.77/mkinitrd 2005-01-23 19:37:41.000000000 +0100
> > +++ mkinitrd 2005-03-10 16:57:41.933283835 +0100
> > @@ -1181,7 +1181,16 @@
> > add_command $i
> > done
> > exec 3>&-
> > - < tmp2 sed 's/.*=>[[:blank:]]*\([^[:blank:]]*\).*/\1/'
> > + < tmp2 awk '
> > + /[ ]*.*=>[ ]*\/[^ ]*.*/ {
> > + print $3;
> > + next;
> > + };
> > + /[ ]*\/[^ ]*.*/ {
> > + print $1;
> > + next;
> > + };
> > + '
> >
> > echo /dev/console
> > echo /dev/null
>
> I don't really care either way, but I think [[:blank:]] works with all
> locales. Plus, it's easier to read. :-)
As I wrote in #301455, I plan to put the change to initrd-tools:
sed 's/\(.*=>\)\?[[:blank:]]*\(.*\)[[:blank:]]\+\((.*)\)/\2/;/^$/d'
It's just straightforward and small change.
I merged these two reports.
This change also fixes #279382, #292080, #295412, #295422, #297724,
and actual fix covered over the previous workaround e2fsprogs change.
Regards,
-- gotom
Reply to: