FS#43239 - [namcap] sodepends rule doesn't respect rpath

Attached to Project: Arch Linux
Opened by Andrii Melnykov (zoidberg_md) - Friday, 26 December 2014, 11:46 GMT
Last edited by Doug Newgard (Scimmia) - Tuesday, 10 January 2017, 19:07 GMT
Task Type Bug Report
Category Arch Projects
Status Closed
Assigned To Rémy Oudompheng (remyoudompheng)
Architecture i686
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

This seem to be the reason it breaks on sudo with

sudo W: Referenced library 'libsudo_util.so.0' is an uninstalled dependency

Note that if rpath is not present then it is a different situation (e.g. in case of Firefox):

firefox W: Referenced library 'libmozsandbox.so' is an uninstalled dependency

$ readelf -d /usr/bin/{sudo,firefox} | grep -E "File:|Library"
File: /usr/bin/sudo
0x0000000f (RPATH) Library rpath: [/usr/lib/sudo]
File: /usr/bin/firefox

There is code that uses readelf to get readpath, but only for the sake of validation FHS compliance of RPATH itself.
This task depends upon

Closed by  Doug Newgard (Scimmia)
Tuesday, 10 January 2017, 19:07 GMT
Reason for closing:  Fixed
Comment by Nicola Squartini (tensor5) - Wednesday, 03 February 2016, 09:59 GMT
Same with the electron package from my [atom] repository.

$ namcap electron-0.36.7-2-x86_64.pkg.tar.xz
electron W: Referenced library 'libnode.so' is an uninstalled dependency

$ readelf -d /usr/lib/electron/electron | grep RPATH
0x000000000000000f (RPATH) Library rpath: [$ORIGIN:$ORIGIN/lib/]

libnode.so is installed in /usr/lib/electron. It's annoying because I'm trying to make the package namcap-compliant. I could help to fix this if it's needed.

Thanks
Comment by Nicola Squartini (tensor5) - Friday, 20 May 2016, 03:12 GMT Comment by Kyle Keen (keenerd) - Saturday, 23 July 2016, 18:57 GMT
Updated and applied in commit 99bf696.

Loading...