From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CDAEB13832E for ; Thu, 11 Aug 2016 10:56:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2F61321C11D; Thu, 11 Aug 2016 10:56:11 +0000 (UTC) Received: from mail.kph.uni-mainz.de (mail.kph.uni-mainz.de [134.93.132.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 08C5A21C054 for ; Thu, 11 Aug 2016 10:56:09 +0000 (UTC) Received: from mailgate-1.kph.uni-mainz.de (mailgate-1.kph.uni-mainz.de [134.93.132.27]) by mail.kph.uni-mainz.de (8.14.5/8.14.5) with ESMTP id u7BAu69X030573 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 11 Aug 2016 12:56:06 +0200 (CEST) (envelope-from ulm@kph.uni-mainz.de) Received: from a1i15.kph.uni-mainz.de (a1i15.kph.uni-mainz.de [134.93.134.92]) by mailgate-1.kph.uni-mainz.de (8.14.5/8.14.5) with ESMTP id u7BAu5RE096455 for ; Thu, 11 Aug 2016 12:56:05 +0200 (CEST) (envelope-from ulm@kph.uni-mainz.de) Received: from a1i15.kph.uni-mainz.de (localhost [127.0.0.1]) by a1i15.kph.uni-mainz.de (8.14.8/8.14.2) with ESMTP id u7BAu32D010189; Thu, 11 Aug 2016 12:56:03 +0200 Received: (from ulm@localhost) by a1i15.kph.uni-mainz.de (8.14.8/8.14.8/Submit) id u7BAu3EA010185; Thu, 11 Aug 2016 12:56:03 +0200 Message-ID: <22444.22978.952581.582549@a1i15.kph.uni-mainz.de> Date: Thu, 11 Aug 2016 12:56:02 +0200 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] libpcre.so.3 - Compatibility with Debian In-Reply-To: <20160811111141.16bdfcd5@red.yakaraplc.local> References: <20160811001053.5b98e44a@symphony.aura-online.co.uk> <22444.18637.297626.134016@a1i15.kph.uni-mainz.de> <20160811111141.16bdfcd5@red.yakaraplc.local> X-Mailer: VM 8.2.0b under 24.3.1 (x86_64-pc-linux-gnu) From: Ulrich Mueller Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="pgp+signed+DwQFTAgnNr+M5RK"; micalg=pgp-sha256; protocol="application/pgp-signature" X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (mailgate-1.kph.uni-mainz.de [134.93.132.27]); Thu, 11 Aug 2016 12:56:05 +0200 (CEST) X-Spam-Status: No, score=-3.6 required=5.0 tests=AWL,BAYES_00, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mailgate-1.kph.uni-mainz.de X-Archives-Salt: 18128b38-90da-46fa-addb-9a06a0c82ee8 X-Archives-Hash: 34d6c20d63991133a0b36a843c9eea98 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --pgp+signed+DwQFTAgnNr+M5RK Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit >>>>> On Thu, 11 Aug 2016, James Le Cuirot wrote: >> Have you asked Debian why they are doing that? > I did find out but had since forgotten. Here it is: > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=380725#10 So they are aware of the issue since 10 years, but chose not to fix it? Seriously, there's no good reason to dance to their tune then. >> This looks like a bad hack. As you said above, it will confuse >> ldconfig, unless some trickery with /lib vs /usr/lib is used. > I wouldn't call it trickery. Here's what happens when you put it > in /lib. I can't see anything wrong here? > # cd /lib > # ls -l libpcre.* > lrwxrwxrwx 1 root root 16 Jul 12 23:29 libpcre.so.1 -> libpcre.so.1.2.7 > -rwxr-xr-x 1 root root 464960 Jul 12 23:29 libpcre.so.1.2.7 > # ln -s libpcre.so.1 libpcre.so.3 > # ls -l libpcre.* > lrwxrwxrwx 1 root root 16 Jul 12 23:29 libpcre.so.1 -> libpcre.so.1.2.7 > -rwxr-xr-x 1 root root 464960 Jul 12 23:29 libpcre.so.1.2.7 > lrwxrwxrwx 1 root root 12 Aug 11 11:01 libpcre.so.3 -> libpcre.so.1 > # ldconfig > # ls -l libpcre.* > lrwxrwxrwx 1 root root 16 Jul 12 23:29 libpcre.so.1 -> libpcre.so.1.2.7 > -rwxr-xr-x 1 root root 464960 Jul 12 23:29 libpcre.so.1.2.7 > lrwxrwxrwx 1 root root 12 Aug 11 11:01 libpcre.so.3 -> libpcre.so.1 >> IMHO providing compatibility symlinks for proprietary binary-only >> programs isn't the task of the libpcre package. > I'm fine with putting it in libpcre-debian package as kentnl > suggested. I still think that the libpcre.so.3 compatibility link shouldn't be installed in a generally visible location. Install it in a specific directory instead, and start your binary with a wrapper which will add that directory to LD_LIBRARY_PATH. Ulrich --pgp+signed+DwQFTAgnNr+M5RK Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQEcBAEBCAAGBQJXrFm+AAoJEMMJBoUcYcJzJNYIAJDMiOt5cTBPQRJdsBSkHoi0 ZbKqdQIQ0XK314BbG9ARKLEIbjiUh+36qcWDi1JcUyeCBupVzCe5Lgu3SM84JMMF qn+77121vTfk99hTe/YuiUBG2W3Cy2oXRzGOF69xRGPzVQM0/q8vIcePQ2c2aiHe joXvvqGkDRCiXsiXuR/rISYVymu/FBN2tHe9O188WheNJVh3YnKhUpn2TMMgZiEo hUMpUHFBpnN94r3CARNaewfUdn6G63aP+gXqPLZOQlIrJnYx1rtrGWW1+d9Q1F12 RSaia97tl197dDwJ7mgQoRGC8WWNaO5dSEsRbM2mocHwiehOTvJwc5Vu3TqzgYw= =XedB -----END PGP SIGNATURE----- --pgp+signed+DwQFTAgnNr+M5RK--