Bug 995891

Summary: vsftpd update breaks package scriptlets
Product: [Fedora] Fedora Reporter: Michal Jaegermann <michal>
Component: vsftpdAssignee: Jiri Skala <jskala>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: aglotov, jskala, nagy.martin
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-15 20:35:17 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 Michal Jaegermann 2013-08-11 21:04:45 UTC
Description of problem:

vsftpd-3.0.2-4.fc20 package scriplets look like this:


postinstall scriptlet (using /bin/sh):
%systemd_post vsftpd.service
preuninstall scriptlet (using /bin/sh):
%systemd_preun vsftpd.service
postuninstall scriptlet (using /bin/sh):
%systemd_postun_with_restart vsftpd.service

Not very surprisingly this results in the following:

/var/tmp/rpm-tmp.zfGqRn: line 1: fg: no job control
warning: %post(vsftpd-3.0.2-4.fc20.x86_64) scriptlet failed, exit status 1

Moreover, since postuninstall scriptlet is affected as well, on the next update it will fail and one will end up with duplicates as 
vsftpd-3.0.2-4.fc20 will be not removed (and apparently there is no other way to remove such duplicate as with 'rpm -e --no-scripts ...).

Version-Release number of selected component (if applicable):
vsftpd-3.0.2-4.fc20

Additional info:
See also bug 983760 (which already lingers way too long).

Comment 1 Jiri Skala 2013-08-15 20:35:17 UTC
I've committed changes inclusive 'BuildRequires: systemd' recommended in BZ#983760 (comments #7 & #11). If the difficulties persists, please reopen the bug.