FS#71327 - [libguestfs] libyara.so.4: cannot open shared object file: No such file or directory
Attached to Project:
Community Packages
Opened by Alexandr Oleynikov (citrusalex) - Monday, 21 June 2021, 22:05 GMT
Last edited by Antonio Rojas (arojas) - Sunday, 15 May 2022, 20:19 GMT
Opened by Alexandr Oleynikov (citrusalex) - Monday, 21 June 2021, 22:05 GMT
Last edited by Antonio Rojas (arojas) - Sunday, 15 May 2022, 20:19 GMT
|
Details
Description: When running libguestfs-test-tool, the test
fails at guestfs stage with this message:
guestfsd: error while loading shared libraries: libyara.so.4: cannot open shared object file: No such file or directory libyara.so.4 indeed does not exist on my system, but libyara.so.8 does. Additional info: * package version(s) * config and/or log files etc. * link to upstream bug report, if any Steps to reproduce: 1) Launch libguestfs-test-tool 2) Get the missing library error |
This task depends upon
Fixed up hard-coded path /lib/udev/rules.d to use $libdir.
Say what? No it doesn't. The daemon is part of the appliance which is supposed to be constructed on the fly from the host system.
> Passing --enable-install-daemon to configure
The daemon is generally not useful on the host system. Please don't do that. See here:
https://libguestfs.org/guestfs-building.1.html#selected-.-configure-settings
I've complained about yara's soname handling in the past and this is just another instance where *someone* should've also rebuilt this one.
I'll see to it very soon.
Correct :) It appears the Arch packager of latest yara missed the change of soname.
Maybe changing libguestfs to depend on libyara.so might help to prevent this kind of thing in the future? Dunno.
Ah, good point. Deps for this pkg are kinda weird due to how the appliance works. Any "blame" was unintentional, sorry.
> depending on libyara.so won't help as makepkg won't be able to resolve the solink
Thanks for the explanation. I knew I was missing something!
Maybe the tooling can one day be improved to cope with corner cases like this.
I wanted to use virt-sparsify, so I decided to downgrade yara and put it on the pacman ignore list:
yara: ignoring package upgrade (4.0.1-1 => 4.1.1-1)
Now it works like it used to.
Hope this workaround will help someone.
yara 4.2.1-1
libguestfs 1.48.1-2
Running libguestfs-test-tool results:
guestfsd: error while loading shared libraries: libyara.so.8: cannot open shared object file: No such file or directory
Downgrading yara doesn't help, it fails even with libyara.so.8 present in /usr/lib/
paru -G libguestfs
cd libguestfs
paru -Ui --mflags "--nocheck"
FS#74761