ftbfs in artful due to DT_RPATH/DT_RUNPATH fun and games
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
elektra (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
elektra fails to build in artful with tests failing like this:
Traceback (most recent call last):
File "/<<PKGBUILDDIR
with kdb.KDB() as db:
File "/<<PKGBUILDDIR
_kdb.
kdb.KDBException: 1 Warning was issued:
Warning number: 1
Description: could not load module, dlopen failed
Ingroup: modules
Module: dl
At: /<<PKGBUILDDIR>
Reason: of module: libelektra-
Mountpoint:
Configfile:
Error (#40) occurred!
Description: Failed to open default backend (see warnings for more information)
Ingroup: kdb
Module:
At: /<<PKGBUILDDIR>
Reason: could not open default backend
Mountpoint:
Configfile:
After some digging, it turns out that this is because the _kdb.so python extension module has a DT_RUNPATH pointing at the directory containing libelektra-
Nothing in the packaging afaict has an opinion on rpath vs runpath so this is probably down to some change in some other package.
That said, using -rpath to make tests pass when linking files that get installed to locations on the default so search path smells a bit. Maybe it would be better to set LD_LIBRARY_PATH when running the tests?
Oh sigh debian has already been through this: https:/ /bugs.debian. org/cgi- bin/bugreport. cgi?bug= 846200