News for hackers. Stuff that matters.
Re:Suckless.org: software that sucks less by fanf2 on Friday February 21, 2025 @06:03PM (#43134179)
Build systems often make it a huge pain to get the right rpath. The chrpath tool makes it easy to fix the rpath after libtool got it wrong.
Re:Suckless.org: software that sucks less by ttyprintk on Friday February 21, 2025 @09:03PM (#43135358)
The suckless tools are recompile-to-reconfigure, so they don’t hit the length limitation of chrpath or fatal bugs in patchelf.
Re:Suckless.org: software that sucks less by kazinator on Saturday February 22, 2025 @09:36PM (#43145822)
You wouldn't have a length limitation in using rpath just to express "find the libs near the executables, wherever those are".
Re:Suckless.org: software that sucks less by kazinator on Saturday February 22, 2025 @09:35PM (#43145817)
If you know that the executables will be in a certain directory, such that ../lib relative to that is where the libraries are found, then you just make the rpath '$ORIGIN/../lib'. That's it; no guesswork.

Build systems that make it a huge paint to calculate elaborate rpath, e.g. knowing what the sysroot will translate to on the actual target system or whatever, are just doing counterproductive nonsense.

By the way, I seem to recall that Yocto uses chrpath in order to get its own tools to reference its own copy of glibc that it provides (for itself, in the build environment).