Bug 1000800 - incorrect %post
Summary: incorrect %post
Keywords:
Status: CLOSED DUPLICATE of bug 996231
Alias: None
Product: Fedora
Classification: Fedora
Component: usbmuxd
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Robinson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-25 13:21 UTC by Michael S.
Modified: 2013-08-31 14:12 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-31 14:12:18 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
fix %postun typo (560 bytes, patch)
2013-08-25 13:21 UTC, Michael S.
no flags Details | Diff
add explicit BuildRequires on systemd for macros (707 bytes, patch)
2013-08-25 13:23 UTC, Michael S.
no flags Details | Diff

Description Michael S. 2013-08-25 13:21:35 UTC
Created attachment 790069 [details]
fix %postun typo

On fedora 20 :
[fedora@vm1 ~]$ rpm -q --scripts usbmuxd

preinstall scriptlet (using /bin/sh):
getent group usbmuxd >/dev/null || groupadd -r usbmuxd -g 113
getent passwd usbmuxd >/dev/null || \
useradd -r -g usbmuxd -d / -s /sbin/nologin \
	-c "usbmuxd user" -u 113 usbmuxd
exit 0
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

there is 1 typo in %postun

and there is unexpanded macro, due to missing systemd.

here is 2 patch to fix this.

Comment 1 Michael S. 2013-08-25 13:23:22 UTC
Created attachment 790070 [details]
add explicit BuildRequires on systemd for macros

Comment 2 Peter Robinson 2013-08-31 14:12:18 UTC

*** This bug has been marked as a duplicate of bug 996231 ***


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