Bug 1000712

Summary: wrong %post
Product: [Fedora] Fedora Reporter: Michael S. <misc>
Component: acpidAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: jkaluza, jskarvad, mstevens, ted
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-26 08:08:56 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:

Description Michael S. 2013-08-24 13:50:16 UTC
$ rpm -q --scripts acpid 
preinstall scriptlet (using /bin/sh):
if [ "$1" = "2" ]; then
	conflist=`ls /etc/acpi/events/*.conf 2> /dev/null`
	RETCODE=$?
	if [ $RETCODE -eq 0 ]; then
		for i in $conflist; do
			rmdot=`echo $i | sed 's/.conf/conf/'`
	 		mv $i $rmdot
		done
	fi
fi
postinstall scriptlet (using /bin/sh):
%systemd_post acpid.service
preuninstall scriptlet (using /bin/sh):
%systemd_preun acpid.service
postuninstall scriptlet (using /bin/sh):
%systemd_postun_with_restart acpid.service

It seems the macros were not expanded correctly.

And this package is the one in update :
$ rpm -q  acpid          
acpid-2.0.19-5.fc19.x86_64

Comment 1 Jaroslav Škarvada 2013-08-26 08:08:56 UTC
It should be fixed in acpid-2.0.19-6.fc19. You will probably need to get rid of the acpid-2.0.19-5.fc19 by using rpm with the --noscripts parameter. Sorry for the inconvenience something in the build system changed.

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