[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
guile-dbi: Use libltdl and prefer GUILE_DBD_PATH.
From: |
宋文武 |
Subject: |
guile-dbi: Use libltdl and prefer GUILE_DBD_PATH. |
Date: |
Fri, 16 Sep 2016 11:36:46 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
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:
0001-Use-libltdl-to-dlopen-backends.patch
Description: Text Data
0002-Prefer-GUILE_DBD_PATH-as-search-path-for-backends.patch
Description: Text Data
0003-Update-documentation-for-the-usage-of-libltdl.patch
Description: Text Data
Hope they are obvious :-)
- guile-dbi: Use libltdl and prefer GUILE_DBD_PATH.,
宋文武 <=