Hello, On Fri, 10 Jun 2022, Dave Howorth wrote:
David Haller <dnh@opensuse.org> wrote:
An (better) alternative is undoing the removal of the rpath that darktable is normally compiled with:
# patchelf --add-rpath '$ORIGIN/../lib64/darktable' /usr/bin/darktable
Maybe that is removed because /../ links can be easily reinterpreted by bad actors? So it's a security risk. Just guessing :)
$ORIGIN is a linker-internal variable expanding to the directory of the file, i.e. /usr/bin/ here. And anyway, that's just what's linked in per default during compilation unless removed. There's no reason for not to hard-code /usr/lib64/darktable. And AFAIR it can be arranged that way during compilation/linking. E.g. patchelf --set-rpath %{_libdir}/darktable \ %{buildroot}%{_bindir}/darktable or something in the RPM-specfile for darktable after in the %install section. HTH, -dnh -- printk(KERN_CRIT "How did I get here?\n"); linux-2.6.19/arch/mips/kernel/syscall.c