Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 850188 - Introduce new systemd-rpm macros in lighttpd spec file
Summary: Introduce new systemd-rpm macros in lighttpd spec file
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: lighttpd
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 850016
TreeView+ depends on / blocked
 
Reported: 2012-08-21 13:47 UTC by Lukáš Nykrýn
Modified: 2014-02-11 01:14 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-10 15:30:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
use systemd files on RHEL 7 (870 bytes, patch)
2014-02-08 04:02 UTC, Ken Dreyer
no flags Details | Diff
remove rhel 4 support (2.89 KB, patch)
2014-02-08 04:02 UTC, Ken Dreyer
no flags Details | Diff
follow latest systemd guidelines (1.89 KB, patch)
2014-02-08 04:03 UTC, Ken Dreyer
no flags Details | Diff

Description Lukáš Nykrýn 2012-08-21 13:47:04 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 Fedora End Of Life 2013-12-21 08:45:13 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 2 Fedora Admin XMLRPC Client 2014-02-05 16:31:39 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 3 Ken Dreyer 2014-02-08 04:02:16 UTC
Created attachment 860811 [details]
use systemd files on RHEL 7

Comment 4 Ken Dreyer 2014-02-08 04:02:39 UTC
Created attachment 860812 [details]
remove rhel 4 support

Comment 5 Ken Dreyer 2014-02-08 04:03:00 UTC
Created attachment 860813 [details]
follow latest systemd guidelines

Comment 6 Ken Dreyer 2014-02-08 04:06:44 UTC
Hi Jon, I've attached three patches against master (Rawhide). Would you mind reviewing and applying these?

It's also really important that we get these into EPEL 7 as soon as possible so that lighttpd can use systemd there. Today I received a report from someone that the init.d script was broken for them on RHEL 7 beta, so I figured I'd go ahead and fix the package to use systemd instead. Since you just build lighttpd for EL7 two days ago, hopefully you're ok with making the switch now.

I've done local mockbuilds for F21 and F20 with all three patches, and it builds and runs fine in basic tests (on my Fedora 20 box).

Comment 7 Gwyn Ciesla 2014-02-10 15:30:24 UTC
Applied, committed, and building for rawhide and epel7.  Thanks for your work on this!

Comment 8 Ken Dreyer 2014-02-11 01:14:36 UTC
Thanks! With lighttpd-1.4.34-2.el7, the service starts fine on my test system. 

(I did have to set selinux into permissive mode, but that sounds like it can be handled in a separate bug, if I or anyone else is ever able to reproduce it reliably.)


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