Bug 995891 - vsftpd update breaks package scriptlets
Summary: vsftpd update breaks package scriptlets
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: vsftpd
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jiri Skala
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-11 21:04 UTC by Michal Jaegermann
Modified: 2014-11-09 22:36 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-08-15 20:35:17 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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