archlinuxhardened / selinux

PKGBUILDs to build SELinux enabled packages for Arch Linux
145 stars 25 forks source link

"cannot open shared object file" - libpcre2-8.so.0 #119

Closed vindicatorr closed 6 months ago

vindicatorr commented 6 months ago
...
debug: extracting /mnt/newRoot/usr/share/man/man8/p11-kit.8.gz
debug: updating database
debug: adding database entry 'p11-kit'
debug: writing p11-kit-0.25.3-1 DESC information back to db
debug: writing p11-kit-0.25.3-1 FILES information back to db
debug: adding entry 'p11-kit' in 'local' cache
debug: executing ". /tmp/alpm_BfpXqn/.INSTALL; post_install 0.25.3-1"
debug: executing "/usr/bin/bash" under chroot "/mnt/newRoot/"
mkdir: error while loading shared libraries: libpcre2-8.so.0: cannot open shared object file: No such file or directory
ln: failed to create symbolic link '/etc/systemd/user/sockets.target.wants/p11-kit-server.socket': No such file or directory
debug: call to waitpid succeeded
error: command failed to execute correctly
installing ca-certificates-utils...
...

From installing systemd-selinux package, either using pacstrap or pacman manually within systemd-nspawn.

EDIT0: Issue due to order of installation? pcre2 p11-kit systemd-selinux:

$ pacstrap -c -K -M -N test pcre2 p11-kit systemd-selinux
...
(12/75) installing pcre2                                              [#######################################] 100%
...
(17/75) installing pcre                                               [#######################################] 100%
...
(46/75) installing p11-kit                                            [#######################################] 100%

systemd-selinux only:

$ pacstrap -c -K -M -N test systemd-selinux
...
(14/75) installing pcre                                               [#######################################] 100%
...
(58/75) installing p11-kit                                            [#######################################] 100%
mkdir: error while loading shared libraries: libpcre2-8.so.0: cannot open shared object file: No such file or directory
ln: failed to create symbolic link '/etc/systemd/user/sockets.target.wants/p11-kit-server.socket': No such file or directory
error: command failed to execute correctly
(59/75) installing ca-certificates-utils
...
(74/75) installing pcre2                                              [#######################################] 100%
...
fishilico commented 6 months ago

Hello, Thanks for this bug report. This seems to be a bug in libselinux: it currently depends on pcre but should depend on pcre2. I will test a fix and update libselinux if it works.

fishilico commented 6 months ago

Hello, Your issue should be fixed in libselinux 3.6-2. Please reopen this issue if it is not the case. Thanks