FS#36528 - [p11-kit] and lib32-p11-kit violate the FHS and work incorrectly on multilib systems
Attached to Project:
Arch Linux
Opened by Pascal Ernster (hardfalcon) - Wednesday, 14 August 2013, 14:14 GMT
Last edited by Toolybird (Toolybird) - Tuesday, 30 May 2023, 21:13 GMT
Opened by Pascal Ernster (hardfalcon) - Wednesday, 14 August 2013, 14:14 GMT
Last edited by Toolybird (Toolybird) - Tuesday, 30 May 2023, 21:13 GMT
|
Details
Description:
p11-kit and lib32-p11-kit both put the configuration files for their modules into /usr/share/p11-kit/modules/ although these configuration files are architecture dependend because they control which modules from /usr/lib/pkcs11/ and /usr/lib32/pkcs11/ are loaded. This violates the HFS[1] and causes applications using lib32-p11-kit to throw errors when x86_64 p11-kit modules are installed without their respective i686 counterparts. The most notable example is probably wine and gnome-keyring on x86_64 without having lib32-gnome-keyring installed which is an AUR package and does currently not exist as official package in the multilib repositories). I therefore propose that p11-kit and lib32-p11-kit be changed to respect the HFS and put these configuration files into /usr/lib/p11-kit/modules/ and /usr/lib32/p11-kit/modules. [1] https://wiki.archlinux.org/index.php/Arch_filesystem_hierarchy#.2Fusr.2Fshare:_Architecture_independent_data Additional info: * affected packages: - p11-kit <= 0.18.4-1 - lib32-p11-kit <= 0.18.4-1 - gnome-keyring <= 3.8.2-1 Steps to reproduce: 1. On an x86_64 system, install wine, p11-kit, gnome-keyring and lib32-p11-kit, but *not* lib32-gnome-keyring (not in the repos anyway, but exists as AUR package). 2. Delete/remove your ~/.wine directory (if existing) 3. Run winecfg and notice the error message "p11-kit: couldn't load module: /usr/lib32/pkcs11/gnome-keyring-pkcs11.so: /usr/lib32/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or directory" |
This task depends upon
Closed by Toolybird (Toolybird)
Tuesday, 30 May 2023, 21:13 GMT
Reason for closing: Fixed
Additional comments about closing: "Issue can't be reproduced anymore"
Tuesday, 30 May 2023, 21:13 GMT
Reason for closing: Fixed
Additional comments about closing: "Issue can't be reproduced anymore"
https://bugs.freedesktop.org/show_bug.cgi?id=68122
http://cgit.freedesktop.org/p11-glue/p11-kit/commit/?id=2978f8fb27681e9f40575ae2be26012e8a54fc71
I suggest to include that patch into p11-kit and lib32-p11-kit for the time being until upstream pushes out a new release (see 2 attached PKGBUILD files).
The package gnome-keyring would have to be rebuilt as well.
PKGBUILD (1.5 KiB)
Upstream has added the additional ./configure option of "--with-module-config" to address this already one and a half year ago.
The p11-kit package is marked as orphaned, and even though the lib32-p11-kit package is formally still owend by fyan (even though he doesn't seem to have made a single git commit concerning Archlinux packages since a whole year, and hasn't looked after the lib32-p11-kit package for one and a half years), it is effectively heftig who has been keeping both packages up to date for quite a while now.
Can you still reproduce the issue?