systemd.bbclass: remove systemd_unitdir it is set in oe-core
PATCH 1/8 systemd.bbclass: remove systemd_unitdir it is set in oe-core
Signed-off-by Andreas Müller <[email protected]>
--- meta-oe/classes/systemd.bbclass | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
meta-oe/classes/systemd.bbclass +0 -2
@@ -1,7 +1,5 @@ DEPENDS_append = " systemd-systemctl-native" -systemd_unitdir = "${base_libdir}/systemd" - systemd_postinst() { OPTS=""
Signature · 1 line
1.7.6.5
PATCH 2/8 systemd-compat-units: replace ${base_libdir}/systemd by ${systemd_unitdir} set in oe-core
Signed-off-by Andreas Müller <[email protected]>
--- .../recipes-core/systemd/systemd-compat-units.bb | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-)
meta-oe/recipes-core/systemd/systemd-compat-units.bb +10 -10
@@ -10,15 +10,15 @@ inherit allarch SRC_URI = "file://*.service" do_install() { - install -d ${D}${base_libdir}/systemd/system/basic.target.wants - install -d ${D}${base_libdir}/systemd/system/sysinit.target.wants/ - install -m 0644 ${WORKDIR}/run-postinsts.service ${D}${base_libdir}/systemd/system - ln -sf ../run-postinsts.service ${D}${base_libdir}/systemd/system/basic.target.wants/ - ln -sf ../run-postinsts.service ${D}${base_libdir}/systemd/system/sysinit.target.wants/ + install -d ${D}${systemd_unitdir}/system/basic.target.wants + install -d ${D}${systemd_unitdir}/system/sysinit.target.wants/ + install -m 0644 ${WORKDIR}/run-postinsts.service ${D}${systemd_unitdir}/system + ln -sf ../run-postinsts.service ${D}${systemd_unitdir}/system/basic.target.wants/ + ln -sf ../run-postinsts.service ${D}${systemd_unitdir}/system/sysinit.target.wants/ - install -m 0644 ${WORKDIR}/machineid.service ${D}${base_libdir}/systemd/system - ln -sf ../machineid.service ${D}${base_libdir}/systemd/system/sysinit.target.wants/ - ln -sf ../machineid.service ${D}${base_libdir}/systemd/system/basic.target.wants/ + install -m 0644 ${WORKDIR}/machineid.service ${D}${systemd_unitdir}/system + ln -sf ../machineid.service ${D}${systemd_unitdir}/system/sysinit.target.wants/ + ln -sf ../machineid.service ${D}${systemd_unitdir}/system/basic.target.wants/ # hack to make old style sysvinit postinsts succeed install -d ${D}${bindir}
@@ -33,12 +33,12 @@ echo -n "Disabling the following sysv scripts: " for i in busybox-udhcpc dnsmasq hwclock.sh networking syslog syslog.busybox ; do if [ -e $i ] ; then - echo -n "$i " ; ln -s /dev/null $D${base_libdir}/systemd/system/$i.service + echo -n "$i " ; ln -s /dev/null $D${systemd_unitdir}/system/$i.service fi done ; echo } -FILES_${PN} = "${base_libdir}/systemd/system ${bindir}" +FILES_${PN} = "${systemd_unitdir}/system ${bindir}" RDPEPENDS_${PN} = "systemd"
Signature · 1 line
1.7.6.5
PATCH 3/8 systemd-serialgetty: replace ${base_libdir}/systemd by ${systemd_unitdir} set in oe-core
In reply to Andreas MüllerSigned-off-by Andreas Müller <[email protected]>
--- .../recipes-core/systemd/systemd-serialgetty.bb | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
meta-oe/recipes-core/systemd/systemd-serialgetty.bb +4 -4
@@ -26,12 +26,12 @@ def get_console(d): do_install() { if [ ! ${@get_baudrate(d)} = "" ]; then sed -i -e s/\@BAUDRATE\@/${@get_baudrate(d)}/g ${WORKDIR}/[email protected] - install -d ${D}${base_libdir}/systemd/system/ + install -d ${D}${systemd_unitdir}/system/ install -d ${D}${sysconfdir}/systemd/system/getty.target.wants/ - install ${WORKDIR}/[email protected] ${D}${base_libdir}/systemd/system/ + install ${WORKDIR}/[email protected] ${D}${systemd_unitdir}/system/ # enable the service - ln -sf ${base_libdir}/systemd/system/[email protected] \ + ln -sf ${systemd_unitdir}/system/[email protected] \ ${D}${sysconfdir}/systemd/system/getty.target.wants/serial-getty@${@get_console(d)}.service fi }
@@ -42,5 +42,5 @@ RRECOMMENDS_${PN} = "" RDEPENDS_${PN} = "systemd" # This is a machine specific file -FILES_${PN} = "${base_libdir}/systemd/system/[email protected] ${sysconfdir}" +FILES_${PN} = "${systemd_unitdir}/system/[email protected] ${sysconfdir}" PACKAGE_ARCH = "${MACHINE_ARCH}"
Signature · 1 line
1.7.6.5
PATCH 4/8 systemd_git: replace ${base_libdir}/systemd by ${systemd_unitdir} set in oe-core
In reply to Andreas MüllerSigned-off-by Andreas Müller <[email protected]>
--- meta-oe/recipes-core/systemd/systemd_git.bb | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-)
meta-oe/recipes-core/systemd/systemd_git.bb +10 -10
@@ -56,10 +56,10 @@ do_configure_prepend() { do_install() { autotools_do_install # provided by a seperate recipe - rm ${D}${base_libdir}/systemd/system/serial-getty* -f + rm ${D}${systemd_unitdir}/system/serial-getty* -f # provide support for initramfs - ln -s ${base_libdir}/systemd/systemd ${D}/init + ln -s ${systemd_unitdir}/systemd ${D}/init # create dir for journal install -d ${D}${localstatedir}/log/journal
@@ -84,9 +84,9 @@ RDEPENDS_${PN}-initramfs = "${PN}" FILES_${PN}-gui = "${bindir}/systemadm" -FILES_${PN}-vconsole-setup = "${base_libdir}/systemd/systemd-vconsole-setup \ - ${base_libdir}/systemd/system/systemd-vconsole-setup.service \ - ${base_libdir}/systemd/system/sysinit.target.wants/systemd-vconsole-setup.service" +FILES_${PN}-vconsole-setup = "${systemd_unitdir}/systemd-vconsole-setup \ + ${systemd_unitdir}/system/systemd-vconsole-setup.service \ + ${systemd_unitdir}/system/sysinit.target.wants/systemd-vconsole-setup.service" RRECOMMENDS_$PN}-vconsole-setup = "kbd kbd-consolefonts"
@@ -96,8 +96,8 @@ FILES_${PN} = " ${base_bindir}/* \ ${datadir}/polkit-1 \ ${datadir}/${PN} \ ${sysconfdir} \ - ${base_libdir}/systemd/* \ - ${base_libdir}/systemd/system/* \ + ${systemd_unitdir}/* \ + ${systemd_unitdir}/system/* \ ${base_libdir}/udev/rules.d \ ${base_libdir}/security/*.so \ /cgroup \
@@ -111,7 +111,7 @@ FILES_${PN} = " ${base_bindir}/* \ ${libexecdir} \ " -FILES_${PN}-dbg += "${base_libdir}/systemd/.debug ${base_libdir}/systemd/*/.debug ${base_libdir}/security/.debug/" +FILES_${PN}-dbg += "${systemd_unitdir}/.debug ${systemd_unitdir}/*/.debug ${base_libdir}/security/.debug/" FILES_${PN}-dev += "${base_libdir}/security/*.la ${datadir}/dbus-1/interfaces/" RDEPENDS_${PN} += "dbus-systemd udev-systemd"
@@ -135,7 +135,7 @@ RRECOMMENDS_${PN} += "systemd-serialgetty \ # u-a for runlevel and telinit pkg_postinst_systemd () { -update-alternatives --install ${base_sbindir}/init init ${base_libdir}/systemd/systemd 300 +update-alternatives --install ${base_sbindir}/init init ${systemd_unitdir}/systemd 300 update-alternatives --install ${base_sbindir}/halt halt ${base_bindir}/systemctl 300 update-alternatives --install ${base_sbindir}/reboot reboot ${base_bindir}/systemctl 300 update-alternatives --install ${base_sbindir}/shutdown shutdown ${base_bindir}/systemctl 300
@@ -143,7 +143,7 @@ update-alternatives --install ${base_sbindir}/poweroff poweroff ${base_bindir}/s } pkg_prerm_systemd () { -update-alternatives --remove init ${base_libdir}/systemd/systemd +update-alternatives --remove init ${systemd_unitdir}/systemd update-alternatives --remove halt ${base_bindir}/systemctl update-alternatives --remove reboot ${base_bindir}/systemctl update-alternatives --remove shutdown ${base_bindir}/systemctl
Signature · 1 line
1.7.6.5
PATCH 5/8 udev_175: replace ${base_libdir}/systemd by ${systemd_unitdir} set in oe-core
In reply to Andreas MüllerSigned-off-by Andreas Müller <[email protected]>
--- meta-oe/recipes-core/udev/udev_175.bb | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-core/udev/udev_175.bb +2 -2
@@ -50,7 +50,7 @@ EXTRA_OECONF += " \ --libexecdir=${base_libdir}/udev \ --with-rootlibdir=${base_libdir} \ --disable-gtk-doc-html \ - --with-systemdsystemunitdir=${base_libdir}/systemd/system/ \ + --with-systemdsystemunitdir=${systemd_unitdir}/system/ \ " do_configure_prepend() {
@@ -59,7 +59,7 @@ do_configure_prepend() { PACKAGES =+ "${PN}-systemd libudev libgudev udev-utils udev-consolekit" -FILES_${PN}-systemd = "${base_libdir}/systemd" +FILES_${PN}-systemd = "${systemd_unitdir}" RDEPENDS_${PN}-systemd += "udev" FILES_libudev = "${base_libdir}/libudev.so.*"
Signature · 1 line
1.7.6.5
PATCH 6/8 udev_182: replace ${base_libdir}/systemd by ${systemd_unitdir} set in oe-core
In reply to Andreas MüllerSigned-off-by Andreas Müller <[email protected]>
--- meta-oe/recipes-core/udev/udev_182.bb | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-core/udev/udev_182.bb +2 -2
@@ -44,7 +44,7 @@ EXTRA_OECONF += " \ --with-rootlibdir=${base_libdir} \ --with-rootprefix= \ --disable-gtk-doc-html \ - --with-systemdsystemunitdir=${base_libdir}/systemd/system/ \ + --with-systemdsystemunitdir=${systemd_unitdir}/system/ \ " do_configure_prepend() {
@@ -53,7 +53,7 @@ do_configure_prepend() { PACKAGES =+ "${PN}-systemd libudev libgudev udev-consolekit udev-utils" -FILES_${PN}-systemd = "${base_libdir}/systemd" +FILES_${PN}-systemd = "${systemd_unitdir}" RDEPENDS_${PN}-systemd += "udev" FILES_libudev = "${base_libdir}/libudev.so.*"
Signature · 1 line
1.7.6.5
PATCH 7/8 dietsplash_git: replace ${base_libdir}/systemd by ${systemd_unitdir} set in oe-core
In reply to Andreas MüllerSigned-off-by Andreas Müller <[email protected]>
--- .../recipes-graphics/dietsplash/dietsplash_git.bb | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-graphics/dietsplash/dietsplash_git.bb +2 -2
@@ -14,7 +14,7 @@ inherit autotools S = "${WORKDIR}/git" -EXTRA_OECONF = " --with-systemdsystemunitdir=${base_libdir}/systemd/system \ +EXTRA_OECONF = " --with-systemdsystemunitdir=${systemd_unitdir}/system \ --disable-staticimages" -FILES_${PN} += "${base_libdir}/systemd/system/" +FILES_${PN} += "${systemd_unitdir}/system/"
Signature · 1 line
1.7.6.5
PATCH 8/8 slim: replace ${base_libdir}/systemd by ${systemd_unitdir} set in oe-core
In reply to Andreas MüllerSigned-off-by Andreas Müller <[email protected]>
--- meta-oe/recipes-graphics/slim/slim_1.3.2.bb | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
meta-oe/recipes-graphics/slim/slim_1.3.2.bb +3 -3
@@ -49,8 +49,8 @@ do_install() { install -d ${D}${sysconfdir}/pam.d/ install -m 0644 ${WORKDIR}/slim.pamd ${D}${sysconfdir}/pam.d/slim - install -d ${D}${base_libdir}/systemd/system/ - install -m 0644 ${WORKDIR}/*.service ${D}${base_libdir}/systemd/system/ + install -d ${D}${systemd_unitdir}/system/ + install -m 0644 ${WORKDIR}/*.service ${D}${systemd_unitdir}/system/ echo 'sessionstart_cmd /usr/bin/sessreg -a -l $DISPLAY %user' >> ${D}${sysconfdir}/slim.conf echo 'sessionstop_cmd /usr/bin/sessreg -d -l $DISPLAY %user' >> ${D}${sysconfdir}/slim.conf
@@ -58,7 +58,7 @@ do_install() { RDEPENDS_${PN} = "perl xauth freetype sessreg " -FILES_${PN} += "${base_libdir}/systemd/system/" +FILES_${PN} += "${systemd_unitdir}/system/" pkg_postinst_${PN} () { if test "x$D" != "x"; then
Signature · 1 line
1.7.6.5