Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] libpcre.so.3 - Compatibility with Debian
Date: Thu, 11 Aug 2016 10:56:20
Message-Id: 22444.22978.952581.582549@a1i15.kph.uni-mainz.de
In Reply to: Re: [gentoo-dev] libpcre.so.3 - Compatibility with Debian by James Le Cuirot
1 >>>>> On Thu, 11 Aug 2016, James Le Cuirot wrote:
2
3 >> Have you asked Debian why they are doing that?
4
5 > I did find out but had since forgotten. Here it is:
6 > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=380725#10
7
8 So they are aware of the issue since 10 years, but chose not to fix
9 it? Seriously, there's no good reason to dance to their tune then.
10
11 >> This looks like a bad hack. As you said above, it will confuse
12 >> ldconfig, unless some trickery with /lib vs /usr/lib is used.
13
14 > I wouldn't call it trickery. Here's what happens when you put it
15 > in /lib. I can't see anything wrong here?
16
17 > # cd /lib
18 > # ls -l libpcre.*
19 > lrwxrwxrwx 1 root root 16 Jul 12 23:29 libpcre.so.1 -> libpcre.so.1.2.7
20 > -rwxr-xr-x 1 root root 464960 Jul 12 23:29 libpcre.so.1.2.7
21 > # ln -s libpcre.so.1 libpcre.so.3
22 > # ls -l libpcre.*
23 > lrwxrwxrwx 1 root root 16 Jul 12 23:29 libpcre.so.1 -> libpcre.so.1.2.7
24 > -rwxr-xr-x 1 root root 464960 Jul 12 23:29 libpcre.so.1.2.7
25 > lrwxrwxrwx 1 root root 12 Aug 11 11:01 libpcre.so.3 -> libpcre.so.1
26 > # ldconfig
27 > # ls -l libpcre.*
28 > lrwxrwxrwx 1 root root 16 Jul 12 23:29 libpcre.so.1 -> libpcre.so.1.2.7
29 > -rwxr-xr-x 1 root root 464960 Jul 12 23:29 libpcre.so.1.2.7
30 > lrwxrwxrwx 1 root root 12 Aug 11 11:01 libpcre.so.3 -> libpcre.so.1
31
32 >> IMHO providing compatibility symlinks for proprietary binary-only
33 >> programs isn't the task of the libpcre package.
34
35 > I'm fine with putting it in libpcre-debian package as kentnl
36 > suggested.
37
38 I still think that the libpcre.so.3 compatibility link shouldn't be
39 installed in a generally visible location. Install it in a specific
40 directory instead, and start your binary with a wrapper which will
41 add that directory to LD_LIBRARY_PATH.
42
43 Ulrich

Replies