FS#44590 - [qwt] Qwt libs not found at runtime (not in LD path)

Attached to Project: Arch Linux
Opened by Konstantin Plotnikov (konstantin) - Wednesday, 15 April 2015, 13:29 GMT
Last edited by Ronald van Haren (pressh) - Thursday, 07 May 2015, 08:06 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ronald van Haren (pressh)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Qwt (v. 6.1.2) now placed in /usr/lib/qwt/* but this path is not in LD config.
So when you launch an application using qwt system could not find it (in my case it is custom app).

To fix this config file should be added to /etc/ld.so.conf.d/
Like this:

# add Qwt library path to ld.so.conf.d
install -d -m 755 "$pkgdir"/etc/ld.so.conf.d
echo "/usr/lib/$pkgname" > "$pkgdir"/etc/ld.so.conf.d/$pkgname.conf

In attachment fixed PKGBUILD file.
   PKGBUILD (1.5 KiB)
This task depends upon

Closed by  Ronald van Haren (pressh)
Thursday, 07 May 2015, 08:06 GMT
Reason for closing:  Fixed
Additional comments about closing:  6.1.2-2 has libs moved to /usr/lib so they are easy to find now
Comment by Andrew Gaydenko (student975) - Wednesday, 15 April 2015, 13:36 GMT Comment by Konstantin Plotnikov (konstantin) - Wednesday, 15 April 2015, 14:55 GMT
https://bugs.archlinux.org/task/38590 - about move to separate dir.
https://bugs.archlinux.org/task/44549 - about link time.
https://bugs.archlinux.org/task/44590 - this one - about runtime.

This bug was predicted by this comment (https://bugs.archlinux.org/task/44549#comment134277):
> The question, then, will be if it finds it at run time. If not, we may need something in /etc/ld.so.conf.d, or to move them back.

Comment by Randy Heydon (Tempel) - Friday, 01 May 2015, 22:29 GMT
FYI, AUR package elmerfem-git ( https://aur.archlinux.org/packages/elmerfem-git ) is affected by this bug. The build command can be updated to reflect qwt's new location, but it still can't be found at runtime. Setting LD_LIBRARY_PATH=/usr/lib/qwt is a quick workaround, but no one likes having to do that.
Comment by Ruben Van Boxem (rubenvb) - Wednesday, 06 May 2015, 09:30 GMT
This seems like the correct fix to me. I also experience the runtime libqwt.so.6 not found error.

Compiling and linking works when using the prf by doing

CONFIG += qwt

in the qmake pro file. Looking at the CMake findQwt file located here:
http://www.cmake.org/Wiki/File:FindQwt.cmake
it seems to handle the subdirectory just fine.

Please take my completely random upvote for the fix!

Loading...