Bug 1018080

Summary: unexpanded systemd-macros in rpm-scriptlets
Product: [Fedora] Fedora Reporter: Ralf Corsepius <rc040203>
Component: trafficserverAssignee: Ralf Corsepius <rc040203>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 19CC: fweimer, janfrode
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: trafficserver-3.2.5-4.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-21 01:03:14 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:
Bug Depends On:    
Bug Blocks: 1018118    

Description Ralf Corsepius 2013-10-11 07:21:39 UTC
Description of problem:

trafficserver for Fedora >= 19 contains broken rpm-scriptlets,
which contain unexpanded systemd-macros:

# rpm -q --scripts -p trafficserver-3.2.5-3.fc19.x86_64.rpm 
preinstall scriptlet (using /bin/sh):
getent group ats >/dev/null || groupadd -r ats -g 176 &>/dev/null
getent passwd ats >/dev/null || \
useradd -r -u 176 -g ats -d / -s /sbin/nologin \
	-c "Apache Traffic Server" ats &>/dev/null
postinstall scriptlet (using /bin/sh):
/sbin/ldconfig
  %systemd_post trafficserver.service
preuninstall scriptlet (using /bin/sh):
  %systemd_preun trafficserver.service
postuninstall scriptlet (using /bin/sh):
/sbin/ldconfig

  %systemd_postun_with_restart trafficserver.service


Additional info:
- The cause of this issue is the spec missing a BR: systemd to pull-in the
necessary systemd.macros.
- These unexpanded systemd macros may cause yum update failures, leaving behind
duplicate entries in rpmdb.

Comment 1 Ralf Corsepius 2013-10-11 07:23:03 UTC
I am going to apply patches to f19, f20 and rawhide.

Comment 2 Fedora Update System 2013-10-11 07:57:08 UTC
trafficserver-3.2.5-4.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/trafficserver-3.2.5-4.fc19

Comment 3 Fedora Update System 2013-10-11 07:57:48 UTC
trafficserver-4.0.2-3.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/trafficserver-4.0.2-3.fc20

Comment 4 Fedora Update System 2013-10-11 23:56:55 UTC
Package trafficserver-3.2.5-4.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing trafficserver-3.2.5-4.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-18905/trafficserver-3.2.5-4.fc19
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-10-21 01:03:14 UTC
trafficserver-3.2.5-4.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2013-11-10 06:20:30 UTC
trafficserver-4.0.2-3.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Florian Weimer 2015-02-17 23:37:20 UTC
*** Bug 1018117 has been marked as a duplicate of this bug. ***