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

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 <rmgolbeck@debian.org>
> | 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 <rmgolbeck@debian.org>
> | 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

Attachment: signature.asc
Description: Digital signature


Reply to: