FS#77473 - [pacman] break on openssl uninstall, missing shared libraries

Attached to Project: Arch Linux
Opened by Klaus Frank (agowa338) - Monday, 13 February 2023, 02:06 GMT
Last edited by Toolybird (Toolybird) - Monday, 13 February 2023, 02:58 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: Pacman breaks when either openssl or openssl-1.1 is uninstalled as it has a hard dependency on both (libcrypto.so.1.1, libssl.so.1.1, libcrypto.so.3) but neither is specified within the package.


Additional info:
* package version(s): 6.0.2-5
* config and/or log files etc.
* link to upstream bug report, if any


Error messages when openssl is removed:
"pacman: error while loading shared libraries: libcrytpo.so.3: cannot open shared object file: No such file or directory."

Error message when openssl-1.1 is removed:
"pacman: error while loading shared libraries: libcrytpo.so.1.1: cannot open shared object file: No such file or directory." and when that file is manually provided also:
"pacman: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory."
This task depends upon

Closed by  Toolybird (Toolybird)
Monday, 13 February 2023, 02:58 GMT
Reason for closing:  Not a bug
Additional comments about closing:  See comments
Comment by Toolybird (Toolybird) - Monday, 13 February 2023, 02:58 GMT
> hard dependency on both

???

Not sure what's up with your system but that's incorrect:

$ readelf -d /usr/lib/libalpm.so.13.0.2 | grep crypt
0x0000000000000001 (NEEDED) Shared library: [libcrypto.so.3]

But anyway, it's not possible to remove openssl from an Arch system due to deep seated deps. For example:

$ sudo pacman -R openssl
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing openssl breaks dependency 'openssl' required by coreutils
:: removing openssl breaks dependency 'openssl' required by cryptsetup
:: removing openssl breaks dependency 'openssl' required by curl
:: removing openssl breaks dependency 'openssl' required by kmod
:: removing openssl breaks dependency 'openssl' required by ldns
:: removing openssl breaks dependency 'openssl' required by libarchive
:: removing openssl breaks dependency 'libcrypto.so=3-64' required by libarchive
:: removing openssl breaks dependency 'openssl' required by libevent
:: removing openssl breaks dependency 'openssl' required by libsasl
:: removing openssl breaks dependency 'openssl' required by libssh2
:: removing openssl breaks dependency 'openssl' required by openssh
:: removing openssl breaks dependency 'openssl' required by sudo
:: removing openssl breaks dependency 'libcrypto.so=3-64' required by sudo
:: removing openssl breaks dependency 'libssl.so=3-64' required by sudo
:: removing openssl breaks dependency 'openssl' required by systemd
:: removing openssl breaks dependency 'libcrypto.so=3-64' required by systemd
:: removing openssl breaks dependency 'libssl.so=3-64' required by systemd
:: removing openssl breaks dependency 'openssl' required by tpm2-tss

Loading...