From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH]: gnu: Add guile-dbi. Date: Tue, 21 Jun 2016 16:14:35 +0200 Message-ID: <87mvme8w8k.fsf@gnu.org> References: <87bn2yc3zu.fsf@member.fsf.org> <878ty06ze8.fsf@gnu.org> <8760t36it3.fsf@elisya.g.zucchetti.com> 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]:33035) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFMRx-0006hc-N7 for guix-devel@gnu.org; Tue, 21 Jun 2016 10:14:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFMRw-0007Sm-J6 for guix-devel@gnu.org; Tue, 21 Jun 2016 10:14:45 -0400 In-Reply-To: <8760t36it3.fsf@elisya.g.zucchetti.com> (Maurizio Boriani's message of "Tue, 21 Jun 2016 10:35:20 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." 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" To: Maurizio Boriani Cc: guix-devel@gnu.org Hi! Maurizio Boriani skribis: > I'm the maintainer and first author of guile-dbi Good to see you here! :-) > >> Unfortunately, Guile DBI loads its backends using `dlopen', so I > >> have to set 'LD_LIBRARY_PATH' to '$guile-dbd-sqlite/lib' for > >> loading it. > > Ludovic> I don=E2=80=99t have any great ideas. > > Ludovic> If it uses lt_dlopen, then we should recommend setting > Ludovic> LTDL_LIBRARY_PATH instead of LD_LIBRARY_PATH, which is a > Ludovic> lesser evil. > > Ludovic> Otherwise, we could also hard-code the file name of, say, > Ludovic> guile-dbd-sqlite in guile-dbi, such that there=E2=80=99s alw= ays at > Ludovic> least one backend available. > > may be ok for you if I introduce and 'hardcoded' default search path > for library lookup in guile-dbi source code and do a new release?=20 I don=E2=80=99t think there=E2=80=99s any good default search path that we = could hard code, though, except arbitrarily choosing one of the backends as I suggested above. Ideas? So I=E2=80=99m tempted to think that it=E2=80=99s best for you not to chang= e anything. On the Guix side, another thing we could do is a =E2=80=98LTDL_LIBRARY_PATH= =E2=80=99 as a =E2=80=98native-search-path=E2=80=99 for guile-dbi. Thoughts? Ludo=E2=80=99.