(core): vrrender fails to start, missing directory
Summary
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=982262
Steps to reproduce
installing with "sudo apt install vrrender", it fails to start with this error:
[3][00:00:00.001253][warning] [RuntimeException.cpp:42] '/usr/lib/share/sight': not a directory. [4][00:00:00.001322][warning] [RuntimeException.cpp:42] Error while adding modules. '/usr/lib/share/sight': not a directory. terminate called after throwing an instance of 'fwRuntime::RuntimeException' what(): Error while adding modules. '/usr/lib/share/sight': not a directory.
note: /usr/share/sight exists, though.
Dev environment
Debian Release: bullseye/sid APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'testing'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386
Kernel: Linux 5.10.0-3-amd64 (SMP w/4 CPU threads) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled
Versions of packages vrrender depends on: ii libsight 20.2.0-1
vrrender recommends no packages.
vrrender suggests no packages.
Possible fixes
The module path is incorrect, because we guess the resource path (share/) from the location of libfwCore. On Debian, the library is in /usr/lib/x86_64-gnu-linux/sight
instead of the expected /usr/lib/sight
. I proposed a workaround as a patch but it is not a robust solution as it will break builds on other systems.
We have to find a smarter solution, that works both to run applications in the build directory and in the different install configurations.