Bug 1379030
Summary: | Broken %postun scriptlet | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Mattias Ellert <mattias.ellert> |
Component: | binutils | Assignee: | Nick Clifton <nickc> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | darrellpf, ignatenko, jakub, nickc |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-11-19 10:11:07 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Mattias Ellert
2016-09-24 04:01:13 UTC
*** Bug 1379117 has been marked as a duplicate of this bug. *** https://fedoraproject.org/wiki/Packaging:Scriptlets says %postun -p /sbin/ldconfig is recommended. So, either the packaging guidelines are incorrect and should be fixed (and tons of packages that do this), or rpm just shouldn't pass any arguments to scriptlets with -p /sbin/ldconfig You are right that %postun -p /sbin/ldconfig is recommended if the only thing you are doing in the scriptlet is calling /sbin/ldconfig. This is not the case here. The %post scriptlet, which also calls /sbin/ldconfig in addition to having a lot of other lines of shell script does it correctly: http://pkgs.fedoraproject.org/cgit/rpms/binutils.git/tree/binutils.spec#n514 Using -p /sbin/ldconfig with a non-empty scriptlet containing shell code is equivalent to trying to run #! /sbin/ldconfig <scriptlet code goes here> I.e. you are telling rpm to try to tell the /sbin/ldconfig binary to interpret shell script code, which fails miserably. %postun without a -p option is equivalent to the default %postun -p /bin/bash, i.e. what is run is #! /bin/bash <scriptlet code goes here> If you are only calling /sbin/ldconfig it is more efficient to use -p /sbin/ldconfig with an empty scriptlet, since you then skip the shell invocation. But if there are other things that you want to do in the scriptlet in addition to the call to /sbin/ldconfig you need it. Should be fixed in: binutils-2.27-9.fc26 *** Bug 1379344 has been marked as a duplicate of this bug. *** |