Description of problem:
On a rawhide system, I encountered this during a dnf update:
# dnf update
...
Cleanup : samba-common-2:4.4.0-0.0.rc1.fc24.noarch 64/89
/sbin/ldconfig: relative path `1' used to build cache
warning: %postun(samba-common-2:4.4.0-0.0.rc1.fc24.noarch) scriptlet failed, exit status 1
Non-fatal POSTUN scriptlet failure in rpm package samba-common
Non-fatal POSTUN scriptlet failure in rpm package samba-common
Version-Release number of selected component (if applicable):
samba-common-2:4.4.0-0.0.rc1.fc24.noarch
How reproducible:
Always
Steps to Reproduce:
This issue is reproducible in mock:
1. mock -r fedora-rawhide-x86_64 --install dnf samba-common
2. mock -r fedora-rawhide-x86_64 --shell
3. dnf reinstall samba-common
Actual results:
cf. above
Expected results:
Function, no warning.
Additional info:
Seems to me as if the %postuninstall scriptlet is infected with shell code:
# rpm -q --scripts samba-common
...
postuninstall scriptlet (using /sbin/ldconfig):
### KRB5-PRINTING
I.e. rpm tries to run a script which is containing a /bin/sh-style comment
(### KRB5...) using /sbin/ldconfig as shell-interpreter.
Comment 1Guenther Deschner
2016-02-11 09:52:38 UTC
Andreas, could you please have a look?
Comment 2Alexander Bokovoy
2016-02-12 14:44:27 UTC
*** Bug 1307040 has been marked as a duplicate of this bug. ***
Comment 3Alexander Bokovoy
2016-02-15 12:49:46 UTC
*** Bug 1308485 has been marked as a duplicate of this bug. ***
Comment 4Andreas Schneider
2016-02-15 13:10:00 UTC