Hi, I reply to myself since I found a solution/workaround to install zlib-ng in place of zlib, without breaking the system (yes, zypper requires a libz installed), using the technology preview ZYPP_SINGLE_RPMTRANS which enables alternative and !!!experimental!!! commit strategy where all rpm operations are executed in a single rpm transaction. To switch to libz-ng-compat1, I used: sudo env ZYPP_SINGLE_RPMTRANS=1 zypper install libz-ng-compat1 To go back to the default libz1, I used: sudo env ZYPP_SINGLE_RPMTRANS=1 zypper install libz1 If someone has another solution to get it working with a regular zypper call, please let me know. Cheers, Guillaume
-----Original Message----- From: Guillaume Gardet <Guillaume.Gardet@arm.com> Sent: 08 September 2021 15:25 To: factory@lists.opensuse.org Cc: nd <nd@arm.com> Subject: Packaging issue for libz1/libz-ng-compat1
Hi,
In Tumbleweed, we have libz-ng-compat1 which can be a drop-in replacement of libz1. The problem is zypper drop the previous package, before installing the new one, but the lib is required to extract the new RPM. Any idea how to solve this problem in the spec file?
Log: ************************************************************** ****************** sudo zypper in libz-ng-compat1 Loading repository data... Reading installed packages... Resolving package dependencies...
Problem: the to be installed libz-ng-compat1-2.0.5-1.1.aarch64 conflicts with 'libz1' provided by the installed libz1-1.2.11-18.10.aarch64 Solution 1: deinstallation of libz1-1.2.11-18.10.aarch64 Solution 2: do not install libz-ng- compat1-2.0.5-1.1.aarch64
Choose from above solutions by number or cancel [1/2/c/d/?] (c): 1 Resolving dependencies... Resolving package dependencies...
The following NEW package is going to be installed: libz-ng-compat1
The following package is going to be REMOVED: libz1
1 new package to install, 1 to remove. Overall download size: 67.9 KiB. Already cached: 0 B. After the operation, 5.7 KiB will be freed. Continue? [y/n/v/...? shows all options] (y): Retrieving package libz-ng-compat1-2.0.5-1.1.aarch64 (1/1), 67.9 KiB (142.4 KiB unpacked) Retrieving: libz-ng-compat1-2.0.5- 1.1.aarch64.rpm .................................................................................................. ....................................................................................................................[don e]
Checking for file conflicts: ............................................................................................................. ............................................................................................................................ ..[done] (1/2) Removing libz1-1.2.11- 18.10.aarch64 ...................................................................................................... ........................................................................................................................[d one] (2/2) Installing: libz-ng-compat1-2.0.5- 1.1.aarch64 .......................................................................................................... .........................................................................................................[error] Installation of libz-ng-compat1-2.0.5-1.1.aarch64 failed: Error: Subprocess failed. Error: RPM failed: rpm: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
Abort, retry, ignore? [a/r/i] (a): Problem occurred during or after installation or removal of packages: Installation has been aborted as directed. Please see the above error message for a hint. ************************************************************** ******************
Cheers, Guillaume