Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
Summary: Missing %post and %postun scriptlet dependencies
https://bugzilla.redhat.com/show_bug.cgi?id=684729
Summary: Missing %post and %postun scriptlet dependencies Product: Fedora Version: rawhide Platform: Unspecified OS/Version: Unspecified Status: NEW Severity: unspecified Priority: unspecified Component: pango AssignedTo: behdad@fedoraproject.org ReportedBy: pmatilai@redhat.com QAContact: extras-qa@fedoraproject.org CC: behdad@fedoraproject.org, fonts-bugs@lists.fedoraproject.org Classification: Fedora
Description of problem: Pango unconditionally uses some commands in %post and %postun for which there are no corresponding scriptlet dependencies, this can result in install/erase errors in transaction.
Version-Release number of selected component (if applicable): At least pango 1.28.3-2.fc15 (rawhide, f15)
How reproducible: Always
Steps to Reproduce: 1. yum --disablerepo="*" --enablerepo=rawhide --installroot=/home/test/ -y install pango
Actual results: Installing : pango-1.28.3-2.fc15.x86_64 51/51 Non-fatal POSTIN scriptlet failure in rpm package pango-1.28.3-2.fc15.x86_64 /var/tmp/rpm-tmp.hTFXLn: line 15: sed: command not found /var/tmp/rpm-tmp.hTFXLn: line 17: sed: command not found /var/tmp/rpm-tmp.hTFXLn: line 24: /usr/bin/pango-querymodules-32: No such file or directory warning: %post(pango-1.28.3-2.fc15.x86_64) scriptlet failed, exit status 127
Expected results: No warnings/errors.
Additional info: Based on a quick look, the following dependencies should be added to ensure clean install + erase (file vs package dependencies is a matter of taste here):
Requires(post): /sbin/ldconfig /bin/sed Requires(postun): /sbin/ldconfig /bin/sed
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=684729
--- Comment #1 from Panu Matilainen pmatilai@redhat.com 2011-03-14 07:18:23 EDT --- Actually the explicit /sbin/ldconfig requirement isn't strictly necessary as pango naturally already depends on glibc. In any case, the added sed dependency is needed.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=684729
--- Comment #2 from Ville Skyttä ville.skytta@iki.fi 2011-06-24 10:43:52 EDT --- Created attachment 509778 --> https://bugzilla.redhat.com/attachment.cgi?id=509778 Fix scriptlet deps and avoid error on multilib erase
The %postun script will additionally end up being invoked despite of the "$1 -gt 0" test when both pango.i686 and pango.x86_64 are being removed in the same rpm transaction:
mock-chroot> rpm -e pango.i686 pango.x86_64 /var/tmp/rpm-tmp.Zl2DSB: line 26: /etc/pango/i386-redhat-linux-gnu/pango.modules: No such file or directory
The attached patch should fix both issues, let me know if you'd like me to commit and build this for devel.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=684729
Fedora Admin XMLRPC Client fedora-admin-xmlrpc@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|behdad@fedoraproject.org |mclasen@redhat.com
--- Comment #3 from Fedora Admin XMLRPC Client fedora-admin-xmlrpc@redhat.com 2012-01-10 10:43:34 EST --- This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
https://bugzilla.redhat.com/show_bug.cgi?id=684729
Ville Skyttä ville.skytta@iki.fi changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED CC| |ville.skytta@iki.fi Fixed In Version| |1.31.0-3 Resolution|--- |RAWHIDE Last Closed| |2012-08-25 17:43:38
--- Comment #4 from Ville Skyttä ville.skytta@iki.fi --- 1.30.0-2 fixed the deps, and the multilib erase fix is now in 1.31.0-3.
fonts-bugs@lists.fedoraproject.org