diff options
author | Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> | 2023-11-16 12:54:57 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-11-20 15:30:52 +0000 |
commit | b8ae444d3464f5354b1bfb259a3c0df818f4071b (patch) | |
tree | f5aaad4d3550a8da30ed2cb1ca4127fe82c2d88e /meta/recipes-core | |
parent | e45d4b483065c18535a2dbe9ff13e179f110f21f (diff) | |
download | poky-b8ae444d3464f5354b1bfb259a3c0df818f4071b.tar.gz |
glibc: use nonarch libdir for tmpfiles.d
The documentation of systemd states that /etc/tmpfiles.d should be
reserved for the local administrator and packages should put their files
in /usr/lib/tmpfiles.d [1].
[1] https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html
(From OE-Core rev: e2bebef14a64c510b8f5b0a21f15347d6919c218)
Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Lukas Funke <lukas.funke@weidmueller.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/glibc/glibc-package.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/recipes-core/glibc/glibc-package.inc b/meta/recipes-core/glibc/glibc-package.inc index 1d4e4c5274..1ef987be0a 100644 --- a/meta/recipes-core/glibc/glibc-package.inc +++ b/meta/recipes-core/glibc/glibc-package.inc | |||
@@ -42,7 +42,7 @@ FILES_SOLIBSDEV = "${libdir}/lib*${SOLIBSDEV}" | |||
42 | FILES:${PN}-dev += "${libdir}/libpthread.a ${libdir}/libdl.a ${libdir}/libutil.a ${libdir}/libanl.a ${libdir}/*_nonshared.a ${base_libdir}/*_nonshared.a ${base_libdir}/*.o ${datadir}/aclocal" | 42 | FILES:${PN}-dev += "${libdir}/libpthread.a ${libdir}/libdl.a ${libdir}/libutil.a ${libdir}/libanl.a ${libdir}/*_nonshared.a ${base_libdir}/*_nonshared.a ${base_libdir}/*.o ${datadir}/aclocal" |
43 | RDEPENDS:${PN}-dev = "linux-libc-headers-dev" | 43 | RDEPENDS:${PN}-dev = "linux-libc-headers-dev" |
44 | FILES:${PN}-staticdev += "${libdir}/*.a ${base_libdir}/*.a" | 44 | FILES:${PN}-staticdev += "${libdir}/*.a ${base_libdir}/*.a" |
45 | FILES:nscd = "${sbindir}/nscd* ${sysconfdir}/init.d/nscd ${systemd_system_unitdir}/nscd* ${sysconfdir}/tmpfiles.d/nscd.conf \ | 45 | FILES:nscd = "${sbindir}/nscd* ${sysconfdir}/init.d/nscd ${systemd_system_unitdir}/nscd* ${nonarch_libdir}/tmpfiles.d/nscd.conf \ |
46 | ${sysconfdir}/nscd.conf ${sysconfdir}/default/volatiles/98_nscd ${localstatedir}/db/nscd" | 46 | ${sysconfdir}/nscd.conf ${sysconfdir}/default/volatiles/98_nscd ${localstatedir}/db/nscd" |
47 | FILES:${PN}-mtrace = "${bindir}/mtrace" | 47 | FILES:${PN}-mtrace = "${bindir}/mtrace" |
48 | FILES:tzcode = "${bindir}/tzselect ${sbindir}/zic ${bindir}/zdump" | 48 | FILES:tzcode = "${bindir}/tzselect ${sbindir}/zic ${bindir}/zdump" |
@@ -132,9 +132,9 @@ def get_libc_fpu_setting(bb, d): | |||
132 | 132 | ||
133 | do_install:append:class-target() { | 133 | do_install:append:class-target() { |
134 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | 134 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then |
135 | install -d ${D}${sysconfdir}/tmpfiles.d | 135 | install -d ${D}${nonarch_libdir}/tmpfiles.d |
136 | echo "d /run/nscd 755 root root -" \ | 136 | echo "d /run/nscd 755 root root -" \ |
137 | > ${D}${sysconfdir}/tmpfiles.d/nscd.conf | 137 | > ${D}${nonarch_libdir}/tmpfiles.d/nscd.conf |
138 | fi | 138 | fi |
139 | 139 | ||
140 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then | 140 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then |
@@ -280,7 +280,7 @@ python populate_packages:prepend () { | |||
280 | pkg_postinst:nscd () { | 280 | pkg_postinst:nscd () { |
281 | if [ -z "$D" ]; then | 281 | if [ -z "$D" ]; then |
282 | if command -v systemd-tmpfiles >/dev/null; then | 282 | if command -v systemd-tmpfiles >/dev/null; then |
283 | systemd-tmpfiles --create ${sysconfdir}/tmpfiles.d/nscd.conf | 283 | systemd-tmpfiles --create ${nonarch_libdir}/tmpfiles.d/nscd.conf |
284 | elif [ -e ${sysconfdir}/init.d/populate-volatile.sh ]; then | 284 | elif [ -e ${sysconfdir}/init.d/populate-volatile.sh ]; then |
285 | ${sysconfdir}/init.d/populate-volatile.sh update | 285 | ${sysconfdir}/init.d/populate-volatile.sh update |
286 | fi | 286 | fi |