From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Linas Vepstas Newsgroups: gmane.lisp.guile.user,gmane.comp.gnu.guix.devel 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 NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1499727337 4428 195.159.176.226 (10 Jul 2017 22:55:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 10 Jul 2017 22:55:37 +0000 (UTC) Cc: Maurizio Boriani , guix-devel@gnu.org, Guile User To: =?UTF-8?B?5a6L5paH5q2m?= Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Jul 11 00:55:29 2017 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUhaP-0000Xd-C9 for guile-user@m.gmane.org; Tue, 11 Jul 2017 00:55:25 +0200 Original-Received: from localhost ([::1]:43348 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUhaU-0007O6-RA for guile-user@m.gmane.org; Mon, 10 Jul 2017 18:55:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUhZr-0007Lo-1r for guile-user@gnu.org; Mon, 10 Jul 2017 18:54:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUhZq-0007IC-1J for guile-user@gnu.org; Mon, 10 Jul 2017 18:54:51 -0400 Original-Received: from mail-lf0-x235.google.com ([2a00:1450:4010:c07::235]:35844) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dUhZk-0007BX-DX; Mon, 10 Jul 2017 18:54:44 -0400 Original-Received: by mail-lf0-x235.google.com with SMTP id h22so72108137lfk.3; Mon, 10 Jul 2017 15:54:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc; bh=H7iI12twJhpB9Y+P0ebUdDu977hPqf9cwYcxIOTg7l8=; b=eC5aQn+7r7XNtaI8TsccsDrGpZfw8FZ2dM5tnV3JY0E7RlPCQ7qvDkbYX3REX3pbrB jenQrKPkiD/xN7TsuStuaUrZ/DNgkSjH9Klj5Giienq8FfL0S+8z4KYayLgApG505hK3 FxNijI0ADvv6MebvnQ+Jt7+zdANDTuau/EIjzieNnXw8VVch8FSF6AAnKd1IWPbiJaJw oXIeXr6tMm0LCtPXY4dWAApsQ+R/N1+goUtV3rNDT5BZuhVkQS6mff0rcXRBBF4v5wgr zlWRiBs5Y9p50++fQE4uWA0FpcDFT3ulk9LrGATc87Xxw3+lvBl8fcL/mrR4YPgqLr+R qUvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=H7iI12twJhpB9Y+P0ebUdDu977hPqf9cwYcxIOTg7l8=; b=OqYhi+eDhf6ZKC4eI/JA8Ox9TuOxfXfHzlvOAv3yEzqdJ6JL0CJbqXAQV0S8oFieGi MQU44KX/TnkcdJeF74u/+cfvJplDtihPvTPKww96ArG7uQGLqvo4SOCtqWBvzeE7WSDe 1HykIaNi0CEXFpbwrGYOyN88OSh7dVGxyG2+AOKzCVKuY3pclqzCN+TN7o77VIM5qHtn Gn9qy2zlODSqGZvaIo9dW2GsmxYugfU1Hh+asCNEL3wn73UOCEEdH33V+3qr5zD5DoON QAOJL/iUxK5JXmsprrwUlDSlD/olySyIrarItyVTP2KA9SCkXrKnQHiLy1cLSB/48HfW BR8Q== X-Gm-Message-State: AIVw111LbTYujUSHpG4wZKzgCKZIq7i+WgqY+7pB8F+SDJJQ35GDYSeR LlCSjdI9VVUn+ST2aQsvknMjvgVW4uBk X-Received: by 10.25.67.5 with SMTP id q5mr1869865lfa.109.1499727282873; Mon, 10 Jul 2017 15:54:42 -0700 (PDT) Original-Received: by 10.25.31.65 with HTTP; Mon, 10 Jul 2017 15:54:22 -0700 (PDT) In-Reply-To: <878tush5wx.fsf_-_@member.fsf.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::235 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:13914 gmane.comp.gnu.guix.devel:38501 Archived-At: 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 :-) > >