From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linas Vepstas Subject: Re: guile-dbi: Use libltdl and prefer GUILE_DBD_PATH. Date: Mon, 10 Jul 2017 17:54:22 -0500 Message-ID: References: <87bn2yc3zu.fsf@member.fsf.org> <878ty06ze8.fsf@gnu.org> <8760t36it3.fsf@elisya.g.zucchetti.com> <87mvme8w8k.fsf@gnu.org> <87inx2inou.fsf@member.fsf.org> <87fus6mfbe.fsf@gnu.org> <878tush5wx.fsf_-_@member.fsf.org> Reply-To: linasvepstas@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <878tush5wx.fsf_-_@member.fsf.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sender: "guile-user" To: =?UTF-8?B?5a6L5paH5q2m?= Cc: Maurizio Boriani , guix-devel@gnu.org, Guile User List-Id: guix-devel.gnu.org Sorry for the very late reply. I applied these patches to https://github.com/opencog/guile-dbi which will have to serve as the official repo for guile-dbi, since gna.org is now dead. Maurizio Boriani, I was surprised to see you answer -- do you have some other repo somwhere that contains the guile-dbi code? --linas On Thu, Sep 15, 2016 at 10:36 PM, =E5=AE=8B=E6=96=87=E6=AD=A6 wrote: > Hi! > > To reall, curentlly, guile-dbi use dlopen to load its backends. > So, for Guix we have to set LD_LIBRARY_PATH, which is not desired. > > > [...] > > (me:) > >> I think it will be great to introduce a new search path (eg: > GUILE_DBD_PATH) > >> in addition to LD_LIBRARY_PATH. Find the absolute so filepath in it > >> ourself, then pass to dlopen. > > > > (ludo:) > > Why not, but then it would be redundant with LD_LIBRARY_PATH and > > LTDL_LIBRARY_PATH, which would further complicate the search rules. > > > > Yeah, but I just learn that libltdl has a convenient function to do > this.. > > > So, here are patches for using libltdl and a new search path: > > > > Hope they are obvious :-) > >