From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: libgcrypt Date: Thu, 07 Feb 2013 12:08:15 +0100 Message-ID: <8738x8js9s.fsf@gnu.org> References: <201302062335.21194.andreas@enge.fr> <87y5f1awvz.fsf@gnu.org> <201302071033.24745.andreas@enge.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50295) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3PL2-0004Sg-4g for bug-guix@gnu.org; Thu, 07 Feb 2013 06:08:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U3PKz-0003Om-50 for bug-guix@gnu.org; Thu, 07 Feb 2013 06:08:20 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:54435) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3PKy-0003Of-To for bug-guix@gnu.org; Thu, 07 Feb 2013 06:08:17 -0500 In-Reply-To: <201302071033.24745.andreas@enge.fr> (Andreas Enge's message of "Thu, 7 Feb 2013 10:33:24 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Andreas Enge Cc: bug-guix@gnu.org Andreas Enge skribis: > Am Mittwoch, 6. Februar 2013 schrieb Ludovic Court=C3=A8s: [...] >> Passing --with-libgcrypt-prefix allows it to work with non-standard >> prefixes. > > ... under guix, $HOME/.guix-profile/{lib,...} is the standard prefix ;-) Yes, but it remains =E2=80=9Cnon-standard=E2=80=9D to ld.so, ld, etc. > So would it be possible to modify the test so that it takes LIBRARY_PATH= =20 > into account? (If it were C, the AC macros would do that automatically.) = Or=20 > could one simply use AC_CHECK_LIB? No, because we precisely want to check that Guile=E2=80=99s =E2=80=98dynami= c-link=E2=80=99 finds it, because that=E2=80=99s what is used in guix/utils.scm (in turn, =E2=80=98dynamic-link=E2=80=99 uses lt_dlopenext, which uses dlopen.) Thus the influential environment variables are LTDL_LIBRARY_PATH and LD_LIBRARY_PATH. When we have a full-blown distro, all those *PATH variables will be initialized by /etc/profile, so that everything is transparent. In the meantime, one has to set them in their own ~/.bashrc. > If not, a possible work-around would be to check explicitly with the=20 > $HOME/.guix-profile/lib prefix. I=E2=80=99d rather let users do one of the above than add something specifi= c. Ludo=E2=80=99.