-systemd-dbg_files += "/lib/systemd/.debug"
-systemd-dbg_files += "/lib/security/.debug"
-systemd-dbg_files += "/lib/systemd/system-generators/.debug"
-systemd-dbg_files += "/lib/udev/.debug"
-
+systemd-dbg_files += " \
+${libdir}/systemd/.debug \
+${libdir}/security/.debug \
+${libdir}/systemd/system-generators/.debug \
+${libdir}/udev/.debug \
+"
FILES_${PN}-dbg += "${systemd-dbg_files}"
-
FILES_${PN}-locale-fr += "${prefix}/lib/systemd/catalog/systemd.fr.catalog"
FILES_${PN}-locale-it += "${prefix}/lib/systemd/catalog/systemd.it.catalog"
FILES_${PN}-locale-ru += "${prefix}/lib/systemd/catalog/systemd.ru.catalog"
FILES_${PN}-locale += "${prefix}/lib/systemd/catalog/systemd.catalog"
-systemd_files += "${prefix}/lib/systemd/network"
systemd_files += "${sysconfdir}/machine-id"
systemd_files += "${sysconfdir}/vconsole.conf"
systemd_files += "${sysconfdir}/locale.conf"
systemd_files += "${sysconfdir}/machine-info"
+
+# Pretty sweeping file pattern: we don't have to be precise, as
+# long as we don't match dev and dbg files.
+systemd_files += " \
+${bindir} \
+${sbindir} \
+${libdir}/systemd \
+${base_libdir}/systemd \
+${libdir}/security \
+${libdir}/udev \
+${libdir}/libudev*.so.* \
+${libdir}/libsystemd*.so.* \
+"
}
+
EXTRA_OECONF += " --disable-kdbus --enable-compat-libs --enable-bootchart --disable-sysusers --disable-firstboot --disable-timesyncd --disable-resolved --disable-networkd --libexecdir=${prefix}/lib --docdir=${prefix}/share/doc/packages/systemd --disable-static --disable-libcurl --with-sysvinit-path= --with-sysvrcnd-path= --with-smack-run-label=System --with-rootprefix=/ --with-rootlibdir=/lib cc_cv_CFLAGS__flto=no"
+# Use same file layout as in Tizen, to avoid issues with other recipes
+# which are not prepared for the default /lib vs. /usr/lib split that
+# Yocto normally uses. Relies on systemd_unitdir="${libdir}/systemd" in
+# tizen.conf.
+EXTRA_OECONF += "--with-rootprefix=${prefix} --with-rootlibdir=${libdir} --sysconfdir=${sysconfdir} --enable-split-usr"
+
do_install() {
export RPM_BUILD_ROOT=${D}
cd ${S}
# Create SysV compatibility symlinks. systemctl/systemd are smart
# enough to detect in which way they are called.
- ln -sf /lib/systemd/systemd ${D}${prefix}/sbin/init
- ln -sf /lib/systemd/systemd ${D}${prefix}/bin/systemd
+ ln -sf ${libdir}/systemd/systemd ${D}${prefix}/sbin/init
+ ln -sf ${libdir}/systemd/systemd ${D}${prefix}/bin/systemd
ln -sf ../bin/systemctl ${D}${prefix}/sbin/reboot
ln -sf ../bin/systemctl ${D}${prefix}/sbin/halt
ln -sf ../bin/systemctl ${D}${prefix}/sbin/poweroff
mkdir -p ${D}${systemd_unitdir}/system/syslog.target.wants
# Make sure the user generators dir exists too
- mkdir -p ${D}/lib/systemd/system-generators
+ mkdir -p ${D}${libdir}/systemd/system-generators
mkdir -p ${D}${prefix}/lib/systemd/user-generators
# Create new-style configuration files so that we can ghost-own them
touch ${D}${sysconfdir}/machine-info
touch ${D}${sysconfdir}/timezone
- mkdir -p ${D}/lib/systemd/system-preset/
- mkdir -p ${D}/lib/systemd/user-preset/
+ mkdir -p ${D}${libdir}/systemd/system-preset/
+ mkdir -p ${D}${libdir}/systemd/user-preset/
# Make sure the shutdown/sleep drop-in dirs exist
- mkdir -p ${D}/lib/systemd/system-shutdown/
- mkdir -p ${D}/lib/systemd/system-sleep/
+ mkdir -p ${D}${libdir}/systemd/system-shutdown/
+ mkdir -p ${D}${libdir}/systemd/system-sleep/
# Make sure the NTP units dir exists
mkdir -p ${D}${prefix}/lib/systemd/ntp-units.d/