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.
Andreas, could you please have a look?
*** Bug 1307040 has been marked as a duplicate of this bug. ***
*** Bug 1308485 has been marked as a duplicate of this bug. ***
Fixed with samba-4.4.0-0.4.rc2.fc24