Bug 101945 - Set RUNPATH for poppler shared libs
Summary: Set RUNPATH for poppler shared libs
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-27 09:58 UTC by David Faure
Modified: 2017-07-29 16:19 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
patch (547 bytes, patch)
2017-07-27 09:58 UTC, David Faure
Details | Splinter Review

Description David Faure 2017-07-27 09:58:00 UTC
Created attachment 133067 [details] [review]
patch

In order to try running apps uninstalled, I unset LD_LIBRARY_PATH in my setup (which would other pick up installed stuff).

For most apps/libs it works, because the RUNPATH points to my lib install dir.

One issue with that is poppler. It doesn't have a RPATH or RUNPATH set,
so a QtCore-only program (like kfilemetadata's popplerextractortest) linking
to my self-built QtCore and to libpoppler-qt5.so would end up grabbing
QtGui from /usr/lib instead of my self-built QtGui => incompatible Qt
versions, the program can't run.

This is a one-liner fix with cmake.
Comment 1 Albert Astals Cid 2017-07-29 16:19:06 UTC
Pushed


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.