Closed git-bruh closed 2 years ago
Wait this doesn't handle the case where multiple values are set after $ORIGIN
like $ORIGIN/../lib:/usr/lib/junk
Oh I missed your replies to my messages on IRC somehow. The other way is to get dirname of the interpreter and use that as the default search path but that's as unportable as this solution is
Also I feel it doesn't matter that much cuz let's say /usr/lib or /lib aren't in the default search path. Then it's quite likely that nothing will ever be installed there either
Or maybe just find all packages that set rpath to /usr/lib (or equivalent default value) and prevent them from setting it but that's extra effort for new packagss
merging without hardcoding /usr/lib
@illiliti