RPATHing binaries and libraries for absolutely no reason is catastrophic to the system and leading to issues such as T6084 T6530 and T6584
Time to RPATH off. Note this is a tracking bug, so don't start throwing up patches without talking to me.
libtool is...
- Fix libtool directly or workaround it via LT_SYS_LIBRARY_PATH in solbuild as automake also makes life difficult. https://github.com/solus-project/ypkg/pull/60 should deal with this and successfully removes RPATH in libglvnd
Spreading RPATH via pkgconfig!:
- sdl1, sdl2 --disable-rpath
- samba, ldb, talloc, tdb, tevent all need this added to builds --disable-rpath-install
- kerberos --disable-rpath: R1545:0854c89cf53b64e777dda65e1ef963aea0443fbb
openmpi (uses -Wl, --enable-new-dtags for RUNPATH which is probably acceptable!) has --disable-wrapper-rpath but uncertain whether you want to change its behaviour as you very well might be running external libraries when compiling with this. Leaving this as is
Should be harmless mentions and gone after rebuilds:
- curl (inherits from kerberos)
- ffmpeg (inherits from sdl2)
- guile-32bit (maybe libunistring-32bit?)
- gnutls-32bit (maybe libunistring-32bit?)
Intended:
- ogre: -Wl,-rpath,${libdir}/OGRE
- swipl: -Wl,-rpath=/usr/lib64/swipl-7.4.2/lib/x86_64-linux
REBUILDS
- Rebuild revdeps of libglvnd and ensure packages don't RPATH (then nvidia 304 and 340 drivers should work correctly). Only a few obscure packages haven't so we'll call it done
This should also eradicate much of the RPATHing in Solus