[Bug 969961] New: pam_mount-32bit package got installed in the end of transaction
http://bugzilla.opensuse.org/show_bug.cgi?id=969961 Bug ID: 969961 Summary: pam_mount-32bit package got installed in the end of transaction Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.1 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: libzypp Assignee: zypp-maintainers@forge.provo.novell.com Reporter: luizluca@tre-sc.jus.br QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Hello, I created a series of packages to preconfig a machine. One of these packages , tresc-pam_mount, configures pam_mount. So, it requires pam_mount. All its requires: awk openssh pam-config pam_mount ruby sed xdm Whenever I install pam_mount manually, it also installs pam_mount-32bit, which is necessary as pam-config will fails if /lib/security exists you ask to add a pam module without a 32bit fellow. If I ask zypper to install manually my package, it installs all files but leaves pam_mount-32bit to the end. As my package calls pam-config, it always fails. ( 1/18) Installing: perl-XML-Writer-0.623-3.2 ( 2/18) Installing: fd0ssh-20150304-3.2 ( 3/18) Installing: libHX28-32bit-3.18-4.2 ( 4/18) Installing: libcryptmount0-2.15-3.2 ( 5/18) Installing: libfipscheck1-32bit-1.2.0-7.2 ( 6/18) Installing: libsepol1-32bit-2.3-3.5 ( 7/18) Installing: ofl-20150304-3.2 ( 8/18) Installing: pam_mount-2.15-3.2 ( 9/18) Installing: libudev1-32bit-210-86.1 (10/18) Installing: libuuid1-32bit-2.25-12.2 (11/18) Installing: libxml2-2-32bit-2.9.1-13.1 (12/18) Installing: device-mapper-32bit-1.02.97-64.1 (13/18) Installing: libblkid1-32bit-2.25-12.2 (14/18) Installing: libmount1-32bit-2.25-12.2 (15/18) Installing: tresc-pam_mount-1.1-20.1 Additional rpm output: ERROR: module /lib/security/pam_mount.so is not installed. ERROR: module /lib/security/pam_mount.so is not installed. ERROR: module /lib/security/pam_mount.so is not installed. warning: %post(tresc-pam_mount-1.1-20.1.noarch) scriptlet failed, exit status 1 (16/18) Installing: libcryptsetup4-32bit-1.6.4-3.3 (17/18) Installing: libcryptmount0-32bit-2.15-3.2 (18/18) Installing: pam_mount-32bit-2.15-3.2 If I uninstall pam_mount pam_mount-32bit tresc-pam_mount and asks zypper to install it again, it uses the correct order. (1/3) Installing: pam_mount-2.15-3.2 (2/3) Installing: pam_mount-32bit-2.15-3.2 (3/3) Installing: tresc-pam_mount-1.1-20.1 Shouldn't a xxx-32bit package be installed before any package that requires xxx? How can I give zypp a hint to "install the pam_mount-32bit" before my package? I don't want to use Requires because pam_mount-32bit is only required if pam-32bit is also installed. I've tried to 'Suggests: pam_mount-32bit' with no luck. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=969961
http://bugzilla.opensuse.org/show_bug.cgi?id=969961#c1
--- Comment #1 from Michael Andres
http://bugzilla.opensuse.org/show_bug.cgi?id=969961
http://bugzilla.opensuse.org/show_bug.cgi?id=969961#c2
--- Comment #2 from Luiz Angelo Daros de Luca
http://bugzilla.opensuse.org/show_bug.cgi?id=969961
http://bugzilla.opensuse.org/show_bug.cgi?id=969961#c3
--- Comment #3 from Michael Andres
I though that prereq was currently the same as require for RPM:
https://www.redhat.com/archives/rpm-list/2003-June/msg00173.html
So, this does not apply for zypp?
I had to lookup the code in libsolv to describe the exact behavior. AFAIK the resolver tries harder to keep pre-requirements when breaking up cyclic dependencies. Without cycles the result should be the same.
32-bit equivalent (at least, pam-config doesn't). However, AFAIK, there is no way to specify a hard-conditional dependency, only the soft-one using supplement+packageand.
right
Wouldn't it be interesting to *try* to install all supplement of a package just after it was installed and before any other package that requires it? Specially for pam modules, nothing requires its 32-bit variation and it is ready to be installed just after the 64-bit was installed. Who is responsible to define the installation order? libzypp? libsolv?
That's done in libsolv. You could open an issue at https://github.com/openSUSE/libsolv to discuss this. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=969961
http://bugzilla.opensuse.org/show_bug.cgi?id=969961#c4
Luiz Angelo Daros de Luca
participants (1)
-
bugzilla_noreply@novell.com