/bin/grep relies on /usr/lib/libpcre

Bug #7299 reported by Debian Bug Importer
4
Affects Status Importance Assigned to Milestone
grep (Debian)
Fix Released
Unknown
grep (Ubuntu)
Invalid
High
Unassigned

Bug Description

Automatically imported from Debian bug report #237071 http://bugs.debian.org/237071

Revision history for this message
In , Geert Uytterhoeven (geert-linux-m68k) wrote : Re: grep and libpcre3 (fwd)

M68k is affected as well, PPC is OK.

grep should be built without libpcre support, cfr. below.

Gr{oetje,eeting}s,

      Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- <email address hidden>

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
           -- Linus Torvalds
---------- Forwarded message ----------
Date: Sun, 11 Apr 2004 12:25:06 +0200
From: Wouter Verhelst <email address hidden>
To: Geert Uytterhoeven <email address hidden>
Cc: Debian GNU/Linux m68k <email address hidden>
Subject: Re: grep and libpcre3

On Sun, Apr 11, 2004 at 11:23:47AM +0200, Geert Uytterhoeven wrote:
> On m68k, /bin/grep needs /usr/lib/libpcre.so.3, which may not be available
> early in the boot process, causing many error messages during boot up (/usr is
> a separate partition on my box):
>
> | cassandra:~# type -all grep
> | grep is /bin/grep
> | cassandra:~# ldd /bin/grep
> | libpcre.so.3 => /usr/lib/libpcre.so.3 (0xc0018000)
> | libc.so.6 => /lib/libc.so.6 (0xc0026000)
> | /lib/ld.so.1 => /lib/ld.so.1 (0xc0000000)

Eww, that's bad.

> | cassandra:~# dpkg -s grep
> | Package: grep
> | Essential: yes
> | Status: install ok installed
> | Priority: required
> | Section: base
> | Installed-Size: 628
> | Maintainer: Ryan M. Golbeck <email address hidden>
> | Architecture: m68k
> | Version: 2.5.1.ds1-2
[...]
> However, on PPC I have the exact same package version, and grep doesn't depend
> on libpcre3 there:

Which is as it should be. This probably means the grep build was done
while libpcre3-dev (or something) was installed on the host system, and
that autoconf detected and used it. Shouldn't happen.

> | geert@callisto:~$ ldd /bin/grep
> | libc.so.6 => /lib/libc.so.6 (0x0fea2000)
> | /lib/ld.so.1 => /lib/ld.so.1 (0x30000000)
> | geert@callisto:~$ dpkg -s grep
> | Package: grep
> | Essential: yes
> | Status: install ok installed
> | Priority: required
> | Section: base
> | Installed-Size: 644
> | Maintainer: Ryan M. Golbeck <email address hidden>
> | Version: 2.5.1.ds1-2
[...]
>
> Is there any (good) reason for this?

The maintainer did not explicitely disable the libpcre code. No, that's
not a good reason.

> Shall I just file a bug on the m68k package (programs in /bin must not
> rely on libraries outside /lib)?

Yes, please do.

> Apart from that, everything seems to be fine. My poor Amiga has been working
> hard to upgrade to testing during the last 2 weeks (it takes some manual
> playing with apt-get install if you don't want to let dist-upgrade remove some
> important packages), and it's almost there ;-) And all done while running
> 2.6.5-rc2, so I think 2.6 is getting stable.

That's great! Thanks for your work! :-)

--
         EARTH
     smog | bricks
 AIR -- mud -- FIRE
soda water | tequila
         WATER
 -- with thanks to fortune

Revision history for this message
In , Adrian Bunk (bunk-fs) wrote : This is a FHS violation

severity 237071 serious
thanks

If a binary in /bin/ might require a library in /usr/lib/ it's
definitely a RC FHS violation.

A simple solution might be a build conflict with libpcre{1,2,3}-dev.

cu
Adrian

--

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #237071 http://bugs.debian.org/237071

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Tue, 09 Mar 2004 16:14:49 +0100
From: Marc Lehmann <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: /bin/grep relies on /usr/lib/libpcre

Package: grep
Version: 2.5.1.ds1-2
Severity: normal

My system didn't come up properly because my boot-scripts rely on
/bin/grep, but /bin/grep relies on /usr/lib, which might not be
available on bootup.

grep should not be in /bin when it's unusable without /usr. Either
libpcre should move to /lib or grep should move to /usr/bin to make this
clear.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (700, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.4-rc2
Locale: LANG=C, LC_CTYPE=de_DE.UTF-8

Versions of packages grep depends on:
hi libc6 2.3.2.ds1-11 GNU C Library: Shared libraries an
ii libpcre3 4.3-4 Philip Hazel's Perl 5 Compatible R

-- no debconf information

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Sun, 11 Apr 2004 12:46:36 +0200 (MEST)
From: Geert Uytterhoeven <email address hidden>
To: <email address hidden>
Subject: Re: grep and libpcre3 (fwd)

M68k is affected as well, PPC is OK.

grep should be built without libpcre support, cfr. below.

Gr{oetje,eeting}s,

      Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- <email address hidden>

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
           -- Linus Torvalds
---------- Forwarded message ----------
Date: Sun, 11 Apr 2004 12:25:06 +0200
From: Wouter Verhelst <email address hidden>
To: Geert Uytterhoeven <email address hidden>
Cc: Debian GNU/Linux m68k <email address hidden>
Subject: Re: grep and libpcre3

On Sun, Apr 11, 2004 at 11:23:47AM +0200, Geert Uytterhoeven wrote:
> On m68k, /bin/grep needs /usr/lib/libpcre.so.3, which may not be available
> early in the boot process, causing many error messages during boot up (/usr is
> a separate partition on my box):
>
> | cassandra:~# type -all grep
> | grep is /bin/grep
> | cassandra:~# ldd /bin/grep
> | libpcre.so.3 => /usr/lib/libpcre.so.3 (0xc0018000)
> | libc.so.6 => /lib/libc.so.6 (0xc0026000)
> | /lib/ld.so.1 => /lib/ld.so.1 (0xc0000000)

Eww, that's bad.

> | cassandra:~# dpkg -s grep
> | Package: grep
> | Essential: yes
> | Status: install ok installed
> | Priority: required
> | Section: base
> | Installed-Size: 628
> | Maintainer: Ryan M. Golbeck <email address hidden>
> | Architecture: m68k
> | Version: 2.5.1.ds1-2
[...]
> However, on PPC I have the exact same package version, and grep doesn't depend
> on libpcre3 there:

Which is as it should be. This probably means the grep build was done
while libpcre3-dev (or something) was installed on the host system, and
that autoconf detected and used it. Shouldn't happen.

> | geert@callisto:~$ ldd /bin/grep
> | libc.so.6 => /lib/libc.so.6 (0x0fea2000)
> | /lib/ld.so.1 => /lib/ld.so.1 (0x30000000)
> | geert@callisto:~$ dpkg -s grep
> | Package: grep
> | Essential: yes
> | Status: install ok installed
> | Priority: required
> | Section: base
> | Installed-Size: 644
> | Maintainer: Ryan M. Golbeck <email address hidden>
> | Version: 2.5.1.ds1-2
[...]
>
> Is there any (good) reason for this?

The maintainer did not explicitely disable the libpcre code. No, that's
not a good reason.

> Shall I just file a bug on the m68k package (programs in /bin must not
> rely on libraries outside /lib)?

Yes, please do.

> Apart from that, everything seems to be fine. My poor Amiga has been working
> hard to upgrade to testing during the last 2 weeks (it takes some manual
> playing with apt-get install if you don't want to let dist-upgrade remove some
> important packages), and it's almost there ;-) And all done while running
> 2.6.5-rc2, so I think 2.6 is getting stable.

That's great! Thanks for your work! :-)

--
         EARTH
     smog | bricks
 AIR -- mud -- FIRE
soda water | tequila
         WATER
 -- with thanks to fortune

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Wed, 4 Aug 2004 01:53:29 +0200
From: Adrian Bunk <email address hidden>
To: <email address hidden>
Cc: <email address hidden>
Subject: This is a FHS violation

severity 237071 serious
thanks

If a binary in /bin/ might require a library in /usr/lib/ it's
definitely a RC FHS violation.

A simple solution might be a build conflict with libpcre{1,2,3}-dev.

cu
Adrian

--

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

Revision history for this message
In , Ryan M. Golbeck (rmgolbeck) wrote : Bug#237071: fixed in grep 2.5.1.ds1-3

Source: grep
Source-Version: 2.5.1.ds1-3

We believe that the bug you reported is fixed in the latest version of
grep, which is due to be installed in the Debian FTP archive:

grep_2.5.1.ds1-3.diff.gz
  to pool/main/g/grep/grep_2.5.1.ds1-3.diff.gz
grep_2.5.1.ds1-3.dsc
  to pool/main/g/grep/grep_2.5.1.ds1-3.dsc
grep_2.5.1.ds1-3_i386.deb
  to pool/main/g/grep/grep_2.5.1.ds1-3_i386.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ryan M. Golbeck <email address hidden> (supplier of updated grep package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Tue, 03 Aug 2004 21:51:44 -0400
Source: grep
Binary: grep
Architecture: source i386
Version: 2.5.1.ds1-3
Distribution: unstable
Urgency: high
Maintainer: Ryan M. Golbeck <email address hidden>
Changed-By: Ryan M. Golbeck <email address hidden>
Description:
 grep - GNU grep, egrep and fgrep
Closes: 237071
Changes:
 grep (2.5.1.ds1-3) unstable; urgency=high
 .
   * configure without-libpcre (Closes: #237071)
Files:
 4fea0aad90a4116ee032ac2442c01bbd 646 base required grep_2.5.1.ds1-3.dsc
 78fdd8bc586c34d832f1b951eec83eca 12565 base required grep_2.5.1.ds1-3.diff.gz
 ac19235e3d2fc1a9a72f06136db9e24d 162438 base required grep_2.5.1.ds1-3_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBEEj8Ns+6RHiRa4QRAjJOAJ9lCX8CkqnWIyuXODDyQBnw3cRWUQCeItOJ
pJEehesMe7R39eoXHE6hZZQ=
=g1Yi
-----END PGP SIGNATURE-----

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Tue, 03 Aug 2004 22:47:22 -0400
From: <email address hidden> (Ryan M. Golbeck)
To: <email address hidden>
Subject: Bug#237071: fixed in grep 2.5.1.ds1-3

Source: grep
Source-Version: 2.5.1.ds1-3

We believe that the bug you reported is fixed in the latest version of
grep, which is due to be installed in the Debian FTP archive:

grep_2.5.1.ds1-3.diff.gz
  to pool/main/g/grep/grep_2.5.1.ds1-3.diff.gz
grep_2.5.1.ds1-3.dsc
  to pool/main/g/grep/grep_2.5.1.ds1-3.dsc
grep_2.5.1.ds1-3_i386.deb
  to pool/main/g/grep/grep_2.5.1.ds1-3_i386.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ryan M. Golbeck <email address hidden> (supplier of updated grep package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Tue, 03 Aug 2004 21:51:44 -0400
Source: grep
Binary: grep
Architecture: source i386
Version: 2.5.1.ds1-3
Distribution: unstable
Urgency: high
Maintainer: Ryan M. Golbeck <email address hidden>
Changed-By: Ryan M. Golbeck <email address hidden>
Description:
 grep - GNU grep, egrep and fgrep
Closes: 237071
Changes:
 grep (2.5.1.ds1-3) unstable; urgency=high
 .
   * configure without-libpcre (Closes: #237071)
Files:
 4fea0aad90a4116ee032ac2442c01bbd 646 base required grep_2.5.1.ds1-3.dsc
 78fdd8bc586c34d832f1b951eec83eca 12565 base required grep_2.5.1.ds1-3.diff.gz
 ac19235e3d2fc1a9a72f06136db9e24d 162438 base required grep_2.5.1.ds1-3_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBEEj8Ns+6RHiRa4QRAjJOAJ9lCX8CkqnWIyuXODDyQBnw3cRWUQCeItOJ
pJEehesMe7R39eoXHE6hZZQ=
=g1Yi
-----END PGP SIGNATURE-----

Revision history for this message
In , Ryan M. Golbeck (rmgolbeck) wrote : Bug#237071: fixed in grep 2.5.1.ds1-2.1

Source: grep
Source-Version: 2.5.1.ds1-2.1

We believe that the bug you reported is fixed in the latest version of
grep, which is due to be installed in the Debian FTP archive:

grep_2.5.1.ds1-2.1.diff.gz
  to pool/main/g/grep/grep_2.5.1.ds1-2.1.diff.gz
grep_2.5.1.ds1-2.1.dsc
  to pool/main/g/grep/grep_2.5.1.ds1-2.1.dsc
grep_2.5.1.ds1-2.1_i386.deb
  to pool/main/g/grep/grep_2.5.1.ds1-2.1_i386.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ryan M. Golbeck <email address hidden> (supplier of updated grep package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Tue, 03 Aug 2004 21:51:44 -0400
Source: grep
Binary: grep
Architecture: source i386
Version: 2.5.1.ds1-2.1
Distribution: testing-proposed-updates
Urgency: high
Maintainer: Ryan M. Golbeck <email address hidden>
Changed-By: Ryan M. Golbeck <email address hidden>
Description:
 grep - GNU grep, egrep and fgrep
Closes: 237071
Changes:
 grep (2.5.1.ds1-2.1) testing-proposed-updates; urgency=high
 .
   * configure without-libpcre (Closes: #237071)
Files:
 08e9eecd900b288291ae68c07cc99fc7 650 base required grep_2.5.1.ds1-2.1.dsc
 8678291b29da596259e9fa743d020973 12580 base required grep_2.5.1.ds1-2.1.diff.gz
 8b446f2caa94c7e3d05b26c32768a19b 162434 base required grep_2.5.1.ds1-2.1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBEU55Ns+6RHiRa4QRAt6/AKC89czM9L8RyIPA9AhYM2y2RrVmVgCgroh9
MaC9/yQUHj0g+iQsDnzAmjE=
=HUPs
-----END PGP SIGNATURE-----

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Wed, 04 Aug 2004 17:17:06 -0400
From: <email address hidden> (Ryan M. Golbeck)
To: <email address hidden>
Subject: Bug#237071: fixed in grep 2.5.1.ds1-2.1

Source: grep
Source-Version: 2.5.1.ds1-2.1

We believe that the bug you reported is fixed in the latest version of
grep, which is due to be installed in the Debian FTP archive:

grep_2.5.1.ds1-2.1.diff.gz
  to pool/main/g/grep/grep_2.5.1.ds1-2.1.diff.gz
grep_2.5.1.ds1-2.1.dsc
  to pool/main/g/grep/grep_2.5.1.ds1-2.1.dsc
grep_2.5.1.ds1-2.1_i386.deb
  to pool/main/g/grep/grep_2.5.1.ds1-2.1_i386.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ryan M. Golbeck <email address hidden> (supplier of updated grep package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Tue, 03 Aug 2004 21:51:44 -0400
Source: grep
Binary: grep
Architecture: source i386
Version: 2.5.1.ds1-2.1
Distribution: testing-proposed-updates
Urgency: high
Maintainer: Ryan M. Golbeck <email address hidden>
Changed-By: Ryan M. Golbeck <email address hidden>
Description:
 grep - GNU grep, egrep and fgrep
Closes: 237071
Changes:
 grep (2.5.1.ds1-2.1) testing-proposed-updates; urgency=high
 .
   * configure without-libpcre (Closes: #237071)
Files:
 08e9eecd900b288291ae68c07cc99fc7 650 base required grep_2.5.1.ds1-2.1.dsc
 8678291b29da596259e9fa743d020973 12580 base required grep_2.5.1.ds1-2.1.diff.gz
 8b446f2caa94c7e3d05b26c32768a19b 162434 base required grep_2.5.1.ds1-2.1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBEU55Ns+6RHiRa4QRAt6/AKC89czM9L8RyIPA9AhYM2y2RrVmVgCgroh9
MaC9/yQUHj0g+iQsDnzAmjE=
=HUPs
-----END PGP SIGNATURE-----

Revision history for this message
Fabio Massimo Di Nitto (fabbione) wrote :

This bug affects an old version of grep that we don't ship

Changed in grep:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.