Rebuild Todo List Removal of relative paths from systemd-tmpfiles calls in install scripts

2013-03-17 - Evangelos Foutras

Either just the basename (e.g. apache.conf) or an absolute path (e.g. /usr/lib/tmpfiles.d/apache.conf) will work.

Just the configuration filename (e.g. apache.conf) would be preferable to the absolute path (in my opinion). This is why I've included samba and lightdm which use absolute paths.

[This change in behavior was introduced in system 198 by http://cgit.freedesktop.org/systemd/systemd/commit/?id=fabe5c0e]

=================================

For an example of the issue consider the following command:

# systemd-tmpfiles --create usr/lib/tmpfiles.d/apache.conf

Regardless of whether it's run from the root directory (/) or not, it will try to open the following files:

* /etc/tmpfiles.d/usr/lib/tmpfiles.d/apache.conf
* /run/tmpfiles.d/usr/lib/tmpfiles.d/apache.conf
* /usr/local/lib/tmpfiles.d/usr/lib/tmpfiles.d/apache.conf
* /usr/lib/tmpfiles.d/usr/lib/tmpfiles.d/apache.conf

After which it will fail with:

Failed to open 'usr/lib/tmpfiles.d/apache.conf', ignoring: No such file or directory

The above causes the /run/httpd directory not to be created on installation (https://bugs.archlinux.org/task/34334).

Link to lists of pkgbase values:

Filter Todo List Packages

Select filter criteria
5 packages displayed out of 5 total packages.
Arch Repository Name Current Version Staging Version Maintainers Status Last Touched By
x86_64 Extra apache 2.4.58-1 anatolik Complete jgc
x86_64 Extra fetchmail freswa Complete pierre
x86_64 Extra lighttpd 1.4.74-1 freswa Complete pierre
x86_64 Extra php 8.3.4-1 pierre Complete pierre
x86_64 Extra samba 4.20.0-1 tpowa Complete foutrelis