rpmlint complains about rpath
Hi all, I have worked on updating kbibtex.[1] However, I get a rpmlint complaint that the executable and some libaries include reference to rpath or runpath (/usr). I have used "chrpath -d" to remove them so that the build succeeds, but I can't imagine this is a good approach. Is this something I should report upstream or is there is trick, like a build flag, to solve this in a nice way? Thanks. Cor [1] https://build.opensuse.org/package/show/home:cornelisbb:branches:KDE:Extra/k...
On 10/30/23 15:55, Cor Blom wrote:
Hi all,
I have worked on updating kbibtex.[1] However, I get a rpmlint complaint that the executable and some libaries include reference to rpath or runpath (/usr). I have used "chrpath -d" to remove them so that the build succeeds, but I can't imagine this is a good approach. Is this something I should report upstream or is there is trick, like a build flag, to solve this in a nice way?
rpath should almost always be patched out. It's bad for distributions because it overrides default search paths for libraries and hardcodes them instead. https://wiki.debian.org/RpathIssue - Adam
Op 03-11-2023 om 12:20 schreef Adam Majer:
On 10/30/23 15:55, Cor Blom wrote:
Hi all,
I have worked on updating kbibtex.[1] However, I get a rpmlint complaint that the executable and some libaries include reference to rpath or runpath (/usr). I have used "chrpath -d" to remove them so that the build succeeds, but I can't imagine this is a good approach. Is this something I should report upstream or is there is trick, like a build flag, to solve this in a nice way?
rpath should almost always be patched out. It's bad for distributions because it overrides default search paths for libraries and hardcodes them instead.
Thanks. I also found: https://en.opensuse.org/openSUSE:Packaging_checks I have reported this upstream. Cor
On Fri Nov 3, 2023 at 12:20 PM CET, Adam Majer wrote:
rpath should almost always be patched out. It's bad for distributions because it overrides default search paths for libraries and hardcodes them instead.
See also https://en.opensuse.org/openSUSE:Packaging_checks#Beware_of_Rpath https://docs.fedoraproject.org/en-US/packaging-guidelines/#_beware_of_rpath for more information on the topic. Matěj -- http://matej.ceplovi.cz/blog/, @mcepl@floss.social GPG Finger: 3C76 A027 CA45 AD70 98B5 BC1D 7920 5802 880B C9D8 Get up, stand up, don't give up the fight! -- Bob Marley
participants (3)
-
Adam Majer
-
Cor Blom
-
Matěj Cepl