Bug 1000800

Summary: incorrect %post
Product: [Fedora] Fedora Reporter: Michael S. <misc>
Component: usbmuxdAssignee: Peter Robinson <pbrobinson>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: bnocera, cfergeau, pbrobinson
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-31 14:12:18 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:
Attachments:
Description Flags
fix %postun typo
none
add explicit BuildRequires on systemd for macros none

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 ***