Bug 971832

Summary: vsftpd leads to unexpected message while install
Product: [openSUSE] openSUSE Tumbleweed Reporter: Lars Müller <lmuelle>
Component: BasesystemAssignee: Dirk Mueller <dmueller>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: aspiers, dimstar, peter.simons, systemd-maintainers, tchvatal
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: SUSE Other   
See Also: https://bugzilla.opensuse.org/show_bug.cgi?id=1010177
https://bugzilla.opensuse.org/show_bug.cgi?id=1093179
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: No
Marketing QA Status: --- IT Deployment: ---

Description Lars Müller 2016-03-18 22:06:22 UTC
(1240/2414) Installieren: vsftpd-3.0.3-3.1.x86_64 ......................[FERTIG]
Zusätzliche RPM-Ausgabe:
Failed to try-restart vsftpd@.service: Unit name vsftpd@.service is not valid.
Comment 1 Lars Müller 2016-03-18 22:08:52 UTC
Maybe this is a more generic issue?  Cause I saw a bit later

(1998/2414) Installieren: udev-configure-printer-1.5.7-5.3.x86_64 ......[FERTIG]
Zusätzliche RPM-Ausgabe:
Failed to try-restart configure-printer@.service: Unit name configure-printer@.service is not valid.
Comment 2 Tomáš Chvátal 2016-03-20 10:59:42 UTC
@systemd-maintainers:
could we supress this?
Comment 3 Dr. Werner Fink 2016-03-21 10:10:24 UTC
(In reply to Tomáš Chvátal from comment #2)

Yeah ... fix the spec file ... restarting a plain service template is not supported.
Comment 4 Tomáš Chvátal 2016-03-21 10:30:25 UTC
(In reply to Dr. Werner Fink from comment #3)
> (In reply to Tomáš Chvátal from comment #2)
> 
> Yeah ... fix the spec file ... restarting a plain service template is not
> supported.

In that case fix first the rules in rpmlint macros to not report it as broken if you do not add @.service files to the macro calls.

Even if I fix it now it will be reverted by someone in community anyway:

[   27s] vsftpd.x86_64: W: systemd-service-without-service_del_preun vsftpd@.service
[   27s] The package contains a systemd service but doesn't contain a %preun with a
[   27s] call to service_del_preun.
[   27s] 
[   27s] vsftpd.x86_64: W: systemd-service-without-service_del_postun vsftpd@.service
[   27s] The package contains a systemd service but doesn't contain a %postun with a
[   27s] call to service_del_postun.
[   27s] 
[   27s] vsftpd.x86_64: W: systemd-service-without-service_add_pre vsftpd@.service
[   27s] The package contains a systemd service but doesn't contain a %pre with a call
[   27s] to service_add_pre.
[   27s] 
[   27s] vsftpd.x86_64: W: systemd-service-without-service_add_post vsftpd@.service
[   27s] The package contains a systemd service but doesn't contain a %post with a call
[   27s] to service_add_post.
Comment 5 Dr. Werner Fink 2016-03-21 10:46:28 UTC
You may ask this the rpmlint maintainer.  Indeed a warning on template units is simply broken.  Those templates become only useful if a string is between the at-symbol and the dot.
Comment 6 Dirk Mueller 2016-05-17 09:16:40 UTC
will look into it
Comment 7 Peter Simons 2018-05-16 15:54:35 UTC
This warning is caused by a bug in the vsftpd spec file. It is harmless, but certainly misleading. A fix is underway. Progress will be tracked in bsc#1010177.

*** This bug has been marked as a duplicate of bug 1010177 ***
Comment 8 Peter Simons 2018-05-16 15:56:15 UTC
Fixed by https://build.opensuse.org/request/show/609848.