Bug 996231 - usbmuxd has broken package scripts
Summary: usbmuxd has broken package scripts
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: usbmuxd
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Robinson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1000800 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-12 17:38 UTC by Michal Jaegermann
Modified: 2013-11-05 12:43 UTC (History)
5 users (show)

Fixed In Version: usbmuxd-1.0.8-9
Clone Of:
Environment:
Last Closed: 2013-11-05 12:43:15 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Michal Jaegermann 2013-08-12 17:38:32 UTC
Description of problem:

Updating usbmuxd package causes the following:


/var/tmp/rpm-tmp.wU8App: line 2: fg: no job control
warning: %post(usbmuxd-1.0.8-8.fc20.x86_64) scriptlet failed, exit status 1

Not surprising at all as that package scripts look like follows:
.....
postinstall scriptlet (using /bin/sh):
/sbin/ldconfig
%systemd_post usbmuxd.service
preuninstall scriptlet (using /bin/sh):
%systemd_preun usbmuxd.service

%postun/
sbin/ldconfig
%systemd_postun_with_restart usbmuxd.service


Version-Release number of selected component (if applicable):
usbmuxd-1.0.8-8.fc20

Comment 1 Peter Robinson 2013-08-31 14:12:18 UTC
*** Bug 1000800 has been marked as a duplicate of this bug. ***

Comment 2 Fedora End Of Life 2013-09-16 16:31:27 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 20 development cycle.
Changing version to '20'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora20

Comment 3 Michal Jaegermann 2013-10-10 22:25:44 UTC
> Fixed In Version: usbmuxd-1.0.8-9

It does not look that way.  At least for rawhide.

# rpm -q --scripts usbmuxd-1.0.8-9.fc21
......
postinstall scriptlet (using /bin/sh):
/sbin/ldconfig
%systemd_post usbmuxd.service
preuninstall scriptlet (using /bin/sh):
%systemd_preun usbmuxd.service
postuninstall scriptlet (using /bin/sh):
/sbin/ldconfig
%systemd_postun_with_restart usbmuxd.service

and one gets on an update:

/var/tmp/rpm-tmp.O9F96o: line 2: fg: no job control
warning: %post(usbmuxd-1.0.8-9.fc21.x86_64) scriptlet failed, exit status 1
Non-fatal POSTIN scriptlet failure in rpm package usbmuxd-1.0.8-9.fc21.x86_64

Comment 4 Christopher Meng 2013-10-18 03:08:53 UTC
It now made my system:

[root@fab rpmaker]# rpm -qa|grep usbmuxd
usbmuxd-1.0.8-8.fc20.i686
usbmuxd-1.0.8-9.fc21.i686
usbmuxd-1.0.8-10.fc21.i686

Comment 5 Christopher Meng 2013-10-18 03:13:49 UTC
Solution:


package-cleanup --noscripts --cleandupes


Note You need to log in before you can comment on or make changes to this bug.