Bug 850364 - Introduce new systemd-rpm macros in watchdog spec file
Summary: Introduce new systemd-rpm macros in watchdog spec file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: watchdog
Version: 26
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Josef Ridky
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 850016
TreeView+ depends on / blocked
 
Reported: 2012-08-21 14:16 UTC by Lukáš Nykrýn
Modified: 2017-04-01 16:49 UTC (History)
3 users (show)

Fixed In Version: watchdog-5.13-16.fc25 watchdog-5.13-16.fc24 watchdog-5.13-16.fc26
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-28 00:24:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Patch replaces scriptlets with new systemd macros (1.80 KB, patch)
2012-12-12 15:44 UTC, Lukáš Nykrýn
no flags Details | Diff

Description Lukáš Nykrýn 2012-08-21 14:16:42 UTC
Fedora 18 changes the way how to work with services in spec files. It introduces new macros - %systemd_post, %systemd_preun and %systemd_postun; which replace scriptlets from Fedora 17 and older (see https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Systemd, https://bugzilla.redhat.com/show_bug.cgi?id=850016).

Comment 1 Lukáš Nykrýn 2012-12-12 15:44:15 UTC
Created attachment 662420 [details]
Patch replaces scriptlets with new systemd macros

Comment 2 Fedora End Of Life 2013-12-21 08:47:43 UTC
This message is a reminder that Fedora 18 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 18. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '18'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 18's end of life.

Thank you for reporting this issue and we are sorry that we may not be 
able to fix it before Fedora 18 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior to Fedora 18's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 3 Jan Kurik 2015-07-15 15:00:53 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 23 development cycle.
Changing version to '23'.

(As we did not run this process for some time, it could affect also pre-Fedora 23 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 23 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora23

Comment 4 Fedora End Of Life 2016-11-24 10:46:43 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '23'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 5 Richard W.M. Jones 2016-11-24 11:47:56 UTC
I really think it would be better if the systemd maintainers
simply went and made the changes directly to the spec file
rather than involving every other package maintainer in a
hit and miss process of understanding what needs to be done.
But I digress ...

I tried to apply the patch, but it no longer applies.  Part of
the problem is that the watchdog now runs _two_ services.  It's
unclear to me if it's safe/correct to do (for example):

%preun
%systemd_preun watchdog.service
%systemd_preun watchdog-ping.service

Perhaps all the services should be listed on the same line,
or perhaps the macros don't consider this case at all.  Nothing
about this is mentioned in the guidelines.

Comment 6 Lukáš Nykrýn 2016-11-24 12:33:45 UTC
You can put both of those unit files on the same line.

Comment 7 Fedora End Of Life 2017-02-28 09:31:43 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle.
Changing version to '26'.

Comment 8 Fedora Update System 2017-03-07 08:14:06 UTC
watchdog-5.13-16.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-0637e419d6

Comment 9 Fedora Update System 2017-03-07 08:14:14 UTC
watchdog-5.13-16.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-176ad011b0

Comment 10 Fedora Update System 2017-03-07 08:14:19 UTC
watchdog-5.13-16.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-3e800ded37

Comment 11 Fedora Update System 2017-03-07 14:22:54 UTC
watchdog-5.13-16.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-176ad011b0

Comment 12 Fedora Update System 2017-03-08 14:53:19 UTC
watchdog-5.13-16.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-3e800ded37

Comment 13 Fedora Update System 2017-03-10 23:19:03 UTC
watchdog-5.13-16.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-0637e419d6

Comment 14 Fedora Update System 2017-03-28 00:24:11 UTC
watchdog-5.13-16.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 15 Fedora Update System 2017-03-28 06:18:38 UTC
watchdog-5.13-16.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 16 Fedora Update System 2017-04-01 16:49:47 UTC
watchdog-5.13-16.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.


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