-
Notifications
You must be signed in to change notification settings - Fork 19
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
portability issues for EL 7.2 #23
Conversation
Thanks Brian,
should be ${prefix}/lib/tmpfiles.d? |
Indeed. PR updated. |
I didn't think making a PR for that second patch would actually add it to this PR. I can try to separate them if desired. That said, not sure why the check failed. |
It's fine with me if these are in one PR. Also fine if the spec remains a .in. The travis failure needs attention. Maybe EXTRA_DIST needs to be updated? |
Yeah. It was the |
Sorry I didn't catch this earlier, but should RunttimeDirectory be removed from the unit file? Also should the tmpfiles path be substituted by configure to be ${localstatedir}/run? |
I don't think it's supposed to be a problem to have both, particularly if they agree on what they are creating. But I wonder if we should just remove them for now to be consistent with what the RHEL packagers are doing, which is not adding the I'll push a new patch. |
Do you mean the path inside the
So, on a given EL7 system I am looking at here, there are 7 each files in |
I think the problem is that internally powerman uses: char *rundir = hsprintf("%s/run/powerman", X_LOCALSTATEDIR); So to match, the tmpdir really should substitute @X_LOCALSTATEDIR@/run/powerman |
Systemd older than 233 doesn't support RuntimeDirectory* directives and the accepted method for such releases is to include a file in /usr/lib/tmpfiles.d to create the [/var]/run/powerman directory.
Since there could be different spec files for different distros, move the one that was provided to examples/powerman_el72.spec to be clear that it is just an example and that distro packagers could use as a starting point for their own specs. That said, try to keep the example functional for EL7.
Oh yes. That squash was supposed to have happened. It failed due to a generated file that was going to be overwritten by the squash, or somesuch. Squashed and the PR updated. |
Are these additions significant enough to make a new release? :-) |
Systemd older than 233 doesn't support RuntimeDirectory*
directives and the accepted method for such releases is
to include a file in /usr/lib/tmpfiles.d to create the
[/var]/run/powerman directory.