From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Packages with libraries and binaries Date: Sun, 22 Sep 2013 21:44:18 +0200 Message-ID: <87zjr47ib1.fsf@gnu.org> References: <20130922120624.GA4534@debian> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51853) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNper-0006Ao-2h for guix-devel@gnu.org; Sun, 22 Sep 2013 15:49:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VNpek-0004As-TF for guix-devel@gnu.org; Sun, 22 Sep 2013 15:49:29 -0400 Received: from hera.aquilenet.fr ([141.255.128.1]:52060) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNpek-0004Am-Ma for guix-devel@gnu.org; Sun, 22 Sep 2013 15:49:22 -0400 In-Reply-To: <20130922120624.GA4534@debian> (Andreas Enge's message of "Sun, 22 Sep 2013 14:06:24 +0200") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Andreas Enge Cc: guix-devel@gnu.org Andreas Enge skribis: > When trying to use cdparanoia, I noticed the following: > > $ ldd `which cdparanoia` > > linux-vdso.so.1 =3D> (0x00007fff1e9dd000) > libcdda_interface.so.0 =3D> not found > libcdda_paranoia.so.0 =3D> not found > libm.so.6 =3D> /nix/store/53afsq4c7r10hn77h3iyyavy2bs02403-glibc-= 2.17/lib/libm.so.6 (0x00007fb37355b000) > librt.so.1 =3D> /nix/store/53afsq4c7r10hn77h3iyyavy2bs02403-glibc= -2.17/lib/librt.so.1 (0x00007fb373353000) > libc.so.6 =3D> /nix/store/53afsq4c7r10hn77h3iyyavy2bs02403-glibc-= 2.17/lib/libc.so.6 (0x00007fb372fa5000) > libpthread.so.0 =3D> /lib/x86_64-linux-gnu/libpthread.so.0 (0x000= 07fb372d89000) > /nix/store/53afsq4c7r10hn77h3iyyavy2bs02403-glibc-2.17/lib/ld-lin= ux-x86-64.so.2 =3D> /lib64/ld-linux-x86-64.so.2 (0x00007fb373877000) That=E2=80=99s an indication that cdparanoia doesn=E2=80=99t use Libtool... > The two missing libraries are part of the package itself; apparently, they > do not get encoded into the rpath. Could this be handled somehow by the b= uild > system? Should it be done in the package definition? Or should I set an > LD_LIBRARY_PATH? In such cases, we must set the RUNPATH, using patchelf as Nikita notes. The recommended way to do that is to use =E2=80=98augment-rpath=E2=80=99 fr= om (guix build rpath), as done in python.scm (make sure to add =E2=80=98patchelf=E2= =80=99 as an input). HTH, Ludo=E2=80=99.