-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
systemd-tmpfiles munge.conf installed but unpackaged on SLES11, breaks rpmbuild #27
Labels
Comments
This was referenced Jun 6, 2015
dun
added a commit
that referenced
this issue
Dec 22, 2015
RPM specfile support for non-RedHat systems is being dropped since it has become a maintenance burden to maintain multiple distros in the same specfile, especially with the transition to systemd. Packaging details like this are best handled downstream. The specfile will target the latest CentOS release. RPM specfiles for other distros & releases will be placed in a contrib subdir if needed. Signed-off-by: Chris Dunlap <[email protected]> Issue #27 Issue #36 Issue #39
dun
added a commit
that referenced
this issue
Dec 22, 2015
This commit coverts the RPM specfile from sysvinit to systemd. The requisite Requires & BuildRequires tags for systemd are added. References to chkconfig and the sysvinit script are replaced with corresponding helper macros to handle systemd scriptlet operations. The sysvinit script and sysconfig file are replaced with the systemd unit file and tmpfiles.d configuration file. Furthermore, the %ghost tag is removed from the /var/run/munge directory. This tag was added back in commit 0f89429, at which point the sysvinit script created this directory when the service was started. By removing the %ghost tag, this directory will be created when the rpm is installed. Since /var/run is (likely) mounted as tmpfs, this directory will disappear on the next reboot, at which point it will be re-created by tmpfiles.d. The RuntimeDirectory and RuntimeDirectoryMode options in the service file were added in systemd 211. This is a clean and straightforward manner in which to create private runtime directories below /run. However, tmpfiles.d is being used instead since CentOS 7 ships with systemd 208. References: - https://fedoraproject.org/wiki/Packaging:Systemd - https://fedoraproject.org/wiki/Packaging:ScriptletSnippets - https://fedoraproject.org/wiki/Packaging:Tmpfiles.d Tested on: - CentOS 7 - Fedora 20-23 Signed-off-by: Chris Dunlap <[email protected]> Closes #33 Closes #43 Issue #27 Issue #36 Issue #39
The top-level This issue now lists SLES11, Amazon Linux, and CentOS. I don't have access to SLES or Amazon Linux, but the specfile now works on the latest CentOS so I'm closing this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What steps will reproduce the problem?
The
systemd-tmpfiles
munge.conf
needs to be excluded from older (hello SLES11) rpm builds in the spec file as it causes rpmbuild to fail.What is the expected output? What do you see instead?
What version of the software are you using? On what operating system?
munge-0.5.11 on SLES11
Please provide any additional information below.
Reported by andrew.elwell in #11.
Original issue reported on code.google.com by
chris.m.dunlap
on 19 Dec 2013 at 12:18The text was updated successfully, but these errors were encountered: