systemd and dbus split into packages
v2 cover systemd and dbus split into packages
Differences from v1:
dbus: Adding change that Andreas Oberritter recommended. -Setting RRECOMMENDS_${PN}_class-native instead RPROVIDES
dbus-native-tools-native.
systemd: Adding change that Anders Darander and Khem Raj recommended -Modifying PACKAGECONFIG as requested to use it with bbutils.
systemd: Adding change that Khem Raj requested:
-Porting patches that was used on the release of the 219 stable version
instead of changing the repository.
-------------------------------------------------------------------------------
In this patchset we include the following:
1- dbus: split tools package
Most tools are not required if one is launching a simple daemon. So, we split it into two packages dbus and dbus-tools which the user will be able to exclude it from the image if he wants to.
2- systemd: verify if files test-udev and systemd-journal-flush exists
If the user put --disable-tests on EXTRA_OECONF for systemd, some files will not be created and systemd do_install phase
will fail.
This patch will give this flexibility for the user
3- systemd: split modules into packages
Since systemd repo grows with more and more tools, the recipe will provide a customizable layer and he will be able to choose what he wants to ship to the final image.
He will be able to save space and exclude unwanted packages from the final image.
4- systemd: add patches from systemd 219 - stable
Adding patches that fix bugs for 219 version.
This will get the same consistency of the stable systemd 219 version.
Bruno Bottazzini (3):
systemd: verify if files test-udev and systemd-journal-flush exists
systemd: split modules into packages
systemd: v219 with stable fixes
Gustavo Sverzut Barbieri (1):
dbus: split tools package.
Bruno Bottazzini (3):
systemd: verify if files test-udev and systemd-journal-flush exists
systemd: split modules into packages
systemd: v219 with stable fixes
Gustavo Sverzut Barbieri (1):
dbus: split tools package.
meta/recipes-core/dbus/dbus.inc | 9 +- ...remote-fix-certificate-status-memory-leak.patch | 31 + ...ournal-remote-fix-client_cert-memory-leak.patch | 35 + ...0003-tmpfiles-Fix-parse_acl-error-message.patch | 28 + ...-test-utf8-fix-utf16-tests-on-BE-machines.patch | 26 + ...iles-avoid-creating-duplicate-acl-entries.patch | 131 +++ .../0006-shared-time-util-fix-gcc5-warning.patch | 32 + ...time-test-infinity-parsing-in-nanoseconds.patch | 36 + .../0008-bootchart-fix-default-init-path.patch | 44 + ...emctl-bump-NOFILE-only-for-systemctl_main.patch | 44 + ...0-Make-root-s-home-directory-configurable.patch | 89 +- ...-util-avoid-freeing-uninitialized-pointer.patch | 37 + ...11-bootchart-svg-fix-checking-of-list-end.patch | 28 + ...md-add-getrandom-syscall-numbers-for-MIPS.patch | 38 + ...aker-dependencies-between-mount-and-devic.patch | 33 + ...topping-due-to-BindsTo-log-which-unit-cau.patch | 43 + ...grade-message-about-sysctl-overrides-to-d.patch | 30 + ...l-add-some-hints-how-to-override-settings.patch | 39 + .../0017-core-rework-device-state-logic.patch | 912 ++++++++++++++++ .../0018-core-fix-return-value-on-OOM.patch | 26 + ...e-x-machine-unix-prefix-for-the-container.patch | 33 + ...0-shared-AFS-is-also-a-network-filesystem.patch | 25 + ...downgrade-unit-type-not-supported-message.patch | 31 + ...ournal-remote-fix-saving-of-binary-fields.patch | 97 ++ ...ix-Inappropriate-ioctl-for-device-on-ext4.patch | 37 + ...eplace-VLA-with-alloca-to-make-llvm-happy.patch | 53 + ...ietly-ignore-ACLs-on-unsupported-filesyst.patch | 84 ++ ...-assume-ac-when-sys-class-power_supply-is.patch | 30 + meta/recipes-core/systemd/systemd_219.bb | 1111 +++++++++++++++++--- 29 files changed, 3006 insertions(+), 186 deletions(-) create mode 100644 meta/recipes-core/systemd/systemd/0001-journal-remote-fix-certificate-status-memory-leak.patch create mode 100644 meta/recipes-core/systemd/systemd/0002-journal-remote-fix-client_cert-memory-leak.patch create mode 100644 meta/recipes-core/systemd/systemd/0003-tmpfiles-Fix-parse_acl-error-message.patch create mode 100644 meta/recipes-core/systemd/systemd/0004-test-utf8-fix-utf16-tests-on-BE-machines.patch create mode 100644 meta/recipes-core/systemd/systemd/0005-tmpfiles-avoid-creating-duplicate-acl-entries.patch create mode 100644 meta/recipes-core/systemd/systemd/0006-shared-time-util-fix-gcc5-warning.patch create mode 100644 meta/recipes-core/systemd/systemd/0007-test-time-test-infinity-parsing-in-nanoseconds.patch create mode 100644 meta/recipes-core/systemd/systemd/0008-bootchart-fix-default-init-path.patch create mode 100644 meta/recipes-core/systemd/systemd/0009-systemctl-bump-NOFILE-only-for-systemctl_main.patch create mode 100644 meta/recipes-core/systemd/systemd/0010-acl-util-avoid-freeing-uninitialized-pointer.patch create mode 100644 meta/recipes-core/systemd/systemd/0011-bootchart-svg-fix-checking-of-list-end.patch create mode 100644 meta/recipes-core/systemd/systemd/0012-systemd-add-getrandom-syscall-numbers-for-MIPS.patch create mode 100644 meta/recipes-core/systemd/systemd/0013-unit-use-weaker-dependencies-between-mount-and-devic.patch create mode 100644 meta/recipes-core/systemd/systemd/0014-unit-When-stopping-due-to-BindsTo-log-which-unit-cau.patch create mode 100644 meta/recipes-core/systemd/systemd/0015-sysctl-downgrade-message-about-sysctl-overrides-to-d.patch create mode 100644 meta/recipes-core/systemd/systemd/0016-sysctl-add-some-hints-how-to-override-settings.patch create mode 100644 meta/recipes-core/systemd/systemd/0017-core-rework-device-state-logic.patch create mode 100644 meta/recipes-core/systemd/systemd/0018-core-fix-return-value-on-OOM.patch create mode 100644 meta/recipes-core/systemd/systemd/0019-machined-use-x-machine-unix-prefix-for-the-container.patch create mode 100644 meta/recipes-core/systemd/systemd/0020-shared-AFS-is-also-a-network-filesystem.patch create mode 100644 meta/recipes-core/systemd/systemd/0021-core-downgrade-unit-type-not-supported-message.patch create mode 100644 meta/recipes-core/systemd/systemd/0022-journal-remote-fix-saving-of-binary-fields.patch create mode 100644 meta/recipes-core/systemd/systemd/0023-journal-fix-Inappropriate-ioctl-for-device-on-ext4.patch create mode 100644 meta/recipes-core/systemd/systemd/0024-sd-daemon-replace-VLA-with-alloca-to-make-llvm-happy.patch create mode 100644 meta/recipes-core/systemd/systemd/0025-tmpfiles-quietly-ignore-ACLs-on-unsupported-filesyst.patch create mode 100644 meta/recipes-core/systemd/systemd/0026-shared-util-assume-ac-when-sys-class-power_supply-is.patch
Signature · 1 line
1.9.1
PATCH v2 1/4 dbus: split tools package.
From: Gustavo Sverzut Barbieri <[email protected]>
Most tools are not required if one is launching a simple daemon. The user will be able to exclude dbus-tool and save some space in his build
--- meta/recipes-core/dbus/dbus.inc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
meta/recipes-core/dbus/dbus.inc +8 -1
@@ -39,7 +39,7 @@ CONFFILES_${PN} = "${sysconfdir}/dbus-1/system.conf ${sysconfdir}/dbus-1/session DEBIANNAME_${PN} = "dbus-1" -PACKAGES =+ "${PN}-lib" +PACKAGES =+ "${PN}-lib ${PN}-tools" OLDPKGNAME = "dbus-x11" OLDPKGNAME_class-nativesdk = ""
@@ -47,6 +47,7 @@ OLDPKGNAME_class-nativesdk = "" # for compatibility RPROVIDES_${PN} = "${OLDPKGNAME}" RREPLACES_${PN} += "${OLDPKGNAME}" +RRECOMMENDS_${PN}_class-native = "" FILES_${PN} = "${bindir}/dbus-daemon* \ ${bindir}/dbus-uuidgen \
@@ -64,6 +65,12 @@ FILES_${PN} = "${bindir}/dbus-daemon* \ FILES_${PN}-lib = "${libdir}/lib*.so.*" RRECOMMENDS_${PN}-lib = "${PN}" FILES_${PN}-dev += "${libdir}/dbus-1.0/include ${bindir}/dbus-glib-tool" +FILES_${PN}-tools += "${bindir}/dbus-uuidgen \ + ${bindir}/dbus-cleanup-sockets \ + ${bindir}/dbus-monitor \ + ${bindir}/dbus-launch \ + ${bindir}/dbus-run-session" +RRECOMMENDS_${PN} = "${PN}-tools" pkg_postinst_dbus() { # If both systemd and sysvinit are enabled, mask the dbus-1 init script
Signature · 1 line
1.9.1
PATCH v2 2/4 systemd: verify if files test-udev and systemd-journal-flush exists
In reply to Bruno BottazziniIf we compile using EXTRA_OECONF with '--disable-tests' option, the files test-udev and systemd-journal-flush will not be created and the systemd install phase will fail.
--- meta/recipes-core/systemd/systemd_219.bb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
meta/recipes-core/systemd/systemd_219.bb +6 -2
@@ -166,7 +166,9 @@ do_install() { sed -i -e 's/.*ForwardToSyslog.*/ForwardToSyslog=yes/' ${D}${sysconfdir}/systemd/journald.conf # its needed in 216 upstream has fixed it with 919699ec301ea507edce4a619141ed22e789ac0d # don't order journal flushing afte remote-fs.target - sed -i -e 's/ remote-fs.target$//' ${D}${systemd_unitdir}/system/systemd-journal-flush.service + if [ -s ${D}${systemd_unitdir}/system/systemd-journal-flush.service ]; then + sed -i -e 's/ remote-fs.target$//' ${D}${systemd_unitdir}/system/systemd-journal-flush.service + fi # this file is needed to exist if networkd is disabled but timesyncd is still in use since timesyncd checks it # for existence else it fails if [ -s ${D}${libdir}/tmpfiles.d/systemd.conf ]; then
@@ -177,7 +179,9 @@ do_install() { do_install_ptest () { install -d ${D}${PTEST_PATH}/test cp -rf ${S}/test/* ${D}${PTEST_PATH}/test - install -m 0755 ${B}/test-udev ${D}${PTEST_PATH}/ + if [ -s ${B}/test-udev ]; then + install -m 0755 ${B}/test-udev ${D}${PTEST_PATH}/ + fi install -d ${D}${PTEST_PATH}/build-aux cp ${S}/build-aux/test-driver ${D}${PTEST_PATH}/build-aux/ cp -rf ${B}/rules ${D}${PTEST_PATH}/
Signature · 1 line
1.9.1
PATCH v2 3/4 systemd: split modules into packages
In reply to Bruno Bottazziniif one wants to launch a simple deamon, most modules are not required.
He will be able to save space and exclude unwanted packages from the final image.
--- meta/recipes-core/systemd/systemd_219.bb | 1073 ++++++++++++++++++++++++++---- 1 file changed, 942 insertions(+), 131 deletions(-)
meta/recipes-core/systemd/systemd_219.bb +942 -131
@@ -19,7 +19,7 @@ PROVIDES = "udev" PE = "1" -DEPENDS = "kmod docbook-sgml-dtd-4.1-native intltool-native gperf-native acl readline dbus libcap libcgroup glib-2.0 qemu-native util-linux" +DEPENDS = "intltool-native gperf-native readline libcap libcgroup qemu-native" SECTION = "base/shell"
@@ -56,18 +56,40 @@ LDFLAGS_append_libc-uclibc = " -lrt" GTKDOC_DOCDIR = "${S}/docs/" -PACKAGECONFIG ??= "xz \ +PACKAGECONFIG ??= " \ + gcrypt \ + kmod \ + ${@bb.utils.contains('DISTRO_FEATURES', 'blkid', 'blkid', '', d)} \ + ${@bb.utils.contains('DISTRO_FEATURES', 'efi', 'efi', '', d)} \ + ${@bb.utils.contains('DISTRO_FEATURES', 'lz4', 'lz4', '', d)} \ + ${@bb.utils.contains('DISTRO_FEATURES', 'xz', 'xz', '', d)} \ + ${@bb.utils.contains('DISTRO_FEATURES', 'libidn', 'libidn', '', d)} \ + ${@bb.utils.contains('DISTRO_FEATURES', 'acl', 'acl', '', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xkbcommon', '', d)}" +PACKAGECONFIG[glib] = "--enable-gudev,--disable-gudev,glib-2.0" +PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl" +PACKAGECONFIG[blkid] = "--enable-blkid,--disable-blkid,util-linux" +PACKAGECONFIG[efi] = "--enable-efi,--disable-efi" +PACKAGECONFIG[kmod] = "--enable-kmod,--disable-kmod,kmod" +PACKAGECONFIG[polkit] = "--enable-polkit,--disable-polkit,,polkit" +PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux" +PACKAGECONFIG[smack] = "--enable-smack,--disable-smack" +PACKAGECONFIG[ima] = "--enable-ima,--disable-ima" +PACKAGECONFIG[apparmor] = "--enable-apparmor,--disable-apparmor,libapparmor" +PACKAGECONFIG[seccomp] = "--enable-seccomp,--disable-seccomp,libseccomp" +PACKAGECONFIG[gcrypt] = "--enable-gcrypt,--disable-gcrypt,libgcrypt" PACKAGECONFIG[journal-upload] = "--enable-libcurl,--disable-libcurl,curl" # Sign the journal for anti-tampering PACKAGECONFIG[gcrypt] = "--enable-gcrypt,--disable-gcrypt,libgcrypt" # regardless of PACKAGECONFIG, libgcrypt is always required to expand # the AM_PATH_LIBGCRYPT autoconf macro -DEPENDS += "libgcrypt" # Compress the journal +PACKAGECONFIG[lz4] = "--enable-lz4,--disable-lz4,lz4" PACKAGECONFIG[xz] = "--enable-xz,--disable-xz,xz" +PACKAGECONFIG[qrencode] = "--enable-qrencode,--disable-qrencode,libqrencode" +PACKAGECONFIG[libidn] = "--enable-libidn,--disable-libidn,libidn" PACKAGECONFIG[cryptsetup] = "--enable-libcryptsetup,--disable-libcryptsetup,cryptsetup" PACKAGECONFIG[microhttpd] = "--enable-microhttpd,--disable-microhttpd,libmicrohttpd" PACKAGECONFIG[elfutils] = "--enable-elfutils,--disable-elfutils,elfutils"
@@ -90,16 +112,35 @@ rootprefix ?= "${base_prefix}" rootlibdir ?= "${base_libdir}" rootlibexecdir = "${rootprefix}/lib" -# The gtk+ tools should get built as a separate recipe e.g. systemd-tools EXTRA_OECONF = " --with-rootprefix=${rootprefix} \ --with-rootlibdir=${rootlibdir} \ --with-roothomedir=${ROOT_HOME} \ - --disable-coredump \ + --enable-coredump \ + --with-sysvrcnd-path=${sysconfdir} \ + --without-python \ + --disable-introspection \ + --disable-kdbus \ + --disable-manpages \ --disable-introspection \ --disable-kdbus \ --enable-split-usr \ - --without-python \ - --with-sysvrcnd-path=${sysconfdir} \ + --enable-libcurl \ + --enable-ldconfig \ + --enable-backlight \ + --enable-binfmt \ + --enable-bootchart \ + --enable-firstboot \ + --enable-hostnamed \ + --enable-localed \ + --enable-logind \ + --enable-machined \ + --enable-networkd \ + --enable-quotacheck \ + --enable-randomseed \ + --enable-resolved \ + --enable-rfkill \ + --enable-sysusers \ + --enable-vconsole \ " # uclibc does not have NSS EXTRA_OECONF_append_libc-uclibc = " --disable-myhostname "
@@ -196,158 +237,745 @@ do_install_ptest () { python populate_packages_prepend (){ systemdlibdir = d.getVar("rootlibdir", True) - do_split_packages(d, systemdlibdir, '^lib(.*)\.so\.*', 'lib%s', 'Systemd %s library', extra_depends='', allow_links=True) + do_split_packages(d, systemdlibdir, '^lib(udev|gudev|systemd|nss)\.so\.*', 'lib%s', 'Systemd %s library', extra_depends='', allow_links=True) } -PACKAGES_DYNAMIC += "^lib(udev|systemd).*" +PACKAGES_DYNAMIC += "^lib(udev|gudev|systemd|nss).*" + +######################################################################## +# Base Packages +######################################################################## + +PACKAGES =+ "${PN}-generators-filesystems" +SUMMARY_${PN}-generators-filesystems = "systemd's generator for filesystem services based on fstab and GPT" +RDEPENDS_${PN}-generators-filesystems = "${PN}-services-fsck" +FILES_${PN}-generators-filesystems = "\ + ${rootlibexecdir}/systemd/system-generators/systemd-fstab-generator \ + ${rootlibexecdir}/systemd/system-generators/systemd-gpt-auto-generator \ + ${rootlibexecdir}/systemd/systemd-remount-fs \ + ${systemd_unitdir}/system/local-fs.target.wants/systemd-remount-fs.service \ + ${systemd_unitdir}/system/systemd-remount-fs.service \ +" -PACKAGES =+ "${PN}-gui ${PN}-vconsole-setup ${PN}-initramfs ${PN}-analyze ${PN}-kernel-install \ - ${PN}-rpm-macros ${PN}-binfmt ${PN}-pam ${PN}-zsh libgudev" +PACKAGES =+ "${PN}-generators-getty" +SUMMARY_${PN}-generators-getty = "systemd's generator TTY services" +RDEPENDS_${PN}-generators-getty = "${PN}-services-getty" +FILES_${PN}-generators-getty = "\ + ${rootlibexecdir}/systemd/system-generators/systemd-getty-generator \ +" -SYSTEMD_PACKAGES = "${PN}-binfmt" -SYSTEMD_SERVICE_${PN}-binfmt = "systemd-binfmt.service" +PACKAGES =+ "${PN}-tools" +SUMMARY_${PN}-tools = "systemd command line tools (cgls, delta, run, analyze...)" +RRECOMMENDS_${PN}-tools = "${PN}-services-base" +FILES_${PN}-tools = "\ + ${base_bindir}/systemd-machine-id-setup \ + ${bindir}/busctl \ + ${bindir}/coredumpctl \ + ${bindir}/systemd-analyze \ + ${bindir}/systemd-cat \ + ${bindir}/systemd-cgls \ + ${bindir}/systemd-cgtop \ + ${bindir}/systemd-delta \ + ${bindir}/systemd-detect-virt \ + ${bindir}/systemd-path \ + ${bindir}/systemd-run \ + ${rootlibexecdir}/systemd/systemd-ac-power \ + ${rootlibexecdir}/systemd/systemd-activate \ + ${rootlibexecdir}/systemd/systemd-reply-password \ + ${rootprefix}/bin/systemd-escape \ + ${rootprefix}/bin/systemd-notify \ +" -USERADD_PACKAGES = "${PN}" -USERADD_PARAM_${PN} += "--system systemd-journal-gateway; --system systemd-timesync" -GROUPADD_PARAM_${PN} = "-r lock; -r systemd-journal" +######################################################################## +# Services Packages +######################################################################## + +PACKAGES =+ "${PN}-services-ask-password" +SUMMARY_${PN}-services-ask-password = "systemd's service and tool to query the user for a system password" +RRECOMMENDS_${PN}-services-ask-password = "${PN}-services-base" +FILES_${PN}-services-ask-password = "\ + ${rootprefix}/bin/systemd-ask-password \ + ${rootprefix}/bin/systemd-tty-ask-password-agent \ + ${systemd_unitdir}/system/multi-user.target.wants/systemd-ask-password-wall.path \ + ${systemd_unitdir}/system/sysinit.target.wants/systemd-ask-password-console.path \ + ${systemd_unitdir}/system/systemd-ask-password-console.path \ + ${systemd_unitdir}/system/systemd-ask-password-console.service \ + ${systemd_unitdir}/system/systemd-ask-password-wall.path \ + ${systemd_unitdir}/system/systemd-ask-password-wall.service \ +" -FILES_${PN}-analyze = "${bindir}/systemd-analyze" +PACKAGES =+ "${PN}-services-backlight" +SUMMARY_${PN}-services-backlight = "systemd's backlight state save/restore service" +FILES_${PN}-services-backlight = "\ + ${systemd_unitdir}/system/[email protected] \ + ${rootlibexecdir}/systemd/systemd-backlight \ +" -FILES_${PN}-initramfs = "/init" -RDEPENDS_${PN}-initramfs = "${PN}" +PACKAGES =+ "${PN}-services-binfmt" +SUMMARY_${PN}-services-binfmt = "systemd's service to configure additional binary formats for executables" +RRECOMMENDS_${PN}-services-binfmt = "kernel-module-binfmt-misc" +FILES_${PN}-services-binfmt = "\ + ${sysconfdir}/binfmt.d/ \ + ${exec_prefix}/lib/binfmt.d/ \ + ${systemd_unitdir}/system/proc-sys-fs-binfmt_misc.automount \ + ${systemd_unitdir}/system/proc-sys-fs-binfmt_misc.mount \ + ${systemd_unitdir}/system/sysinit.target.wants/proc-sys-fs-binfmt_misc.automount \ + ${systemd_unitdir}/system/proc-sys-fs-binfmt_misc.* \ + ${systemd_unitdir}/system/sysinit.target.wants/systemd-binfmt.service \ + ${systemd_unitdir}/system/systemd-binfmt.service \ + ${rootlibexecdir}/systemd/systemd-binfmt \ +" -FILES_libgudev = "${libdir}/libgudev*${SOLIBS}" +PACKAGES =+ "${PN}-services-bootchart" +SUMMARY_${PN}-services-bootchart = "systemd's boot performance service and graphing tool" +CONFFILES_${PN}-services-bootchart = "${sysconfdir}/systemd/bootchart.conf" +FILES_${PN}-services-bootchart = "\ + ${sysconfdir}/systemd/bootchart.conf \ + ${rootlibexecdir}/systemd/systemd-bootchart \ +" -RDEPENDS_${PN}-ptest += "perl python bash" -FILES_${PN}-ptest += "${libdir}/udev/rules.d" +PACKAGES =+ "${PN}-services-coredump" +SUMMARY_${PN}-services-coredump = "systemd's coredump log hook and service" +RDEPENDS_${PN}-services-coredump = "${PN}-services-sysctl" +CONFFILES_${PN}-services-coredump = "${sysconfdir}/systemd/coredump.conf" +FILES_${PN}-services-coredump = "\ + ${exec_prefix}/lib/sysctl.d/50-coredump.conf \ + ${sysconfdir}/systemd/coredump.conf \ + ${rootlibexecdir}/systemd/systemd-coredump \ +" + +PACKAGES =+ "${PN}-services-cryptsetup" +SUMMARY_${PN}-services-cryptsetup = "systemd's disk decryption service" +ALLOW_EMPTY_${PN}-services-cryptsetup = "1" +FILES_${PN}-services-cryptsetup = "\ + ${rootlibexecdir}/systemd/system-generators/systemd-cryptsetup-generator \ + ${systemd_unitdir}/system/cryptsetup-pre.target \ + ${systemd_unitdir}/system/cryptsetup.target \ + ${systemd_unitdir}/system/sysinit.target.wants/cryptsetup.target \ + ${rootlibexecdir}/systemd/systemd-cryptsetup \ +" + +PACKAGES =+ "${PN}-services-dbus" +SUMMARY_${PN}-services-dbus = "systemd's DBus daemon system service" +# NOTE: dbus dependency will go away when kdbus is in use +RDEPENDS_${PN}-services-dbus = "dbus" +FILES_${PN}-services-dbus = "\ + ${datadir}/dbus-1/services/org.freedesktop.systemd1.service \ + ${datadir}/dbus-1/system-services/org.freedesktop.systemd1.service \ + ${datadir}/dbus-1/system-services/org.freedesktop.import1.service \ + ${sysconfdir}/dbus-1/system.d/org.freedesktop.systemd1.conf \ + ${sysconfdir}/dbus-1/system.d/org.freedesktop.import1.conf \ + ${systemd_unitdir}/system/sockets.target.wants/dbus.socket \ + ${systemd_unitdir}/system/dbus.target.wants/dbus.socket \ + ${systemd_unitdir}/system/multi-user.target.wants/dbus.service \ + ${systemd_unitdir}/system/dbus.socket \ + ${systemd_unitdir}/system/dbus.service \ +" + +PACKAGES =+ "${PN}-services-debug" +SUMMARY_${PN}-services-debug = "systemd's debug service" +RRECOMMENDS_${PN}-services-debug = "${PN}-services-base ${PN}-tools" +FILES_${PN}-services-debug = "\ + ${rootlibexecdir}/systemd/system-generators/systemd-debug-generator \ + ${systemd_unitdir}/system/debug-shell.service \ + ${systemd_unitdir}/system/sys-kernel-config.mount \ + ${systemd_unitdir}/system/sys-kernel-debug.mount \ + ${systemd_unitdir}/system/sysinit.target.wants/sys-kernel-config.mount \ + ${systemd_unitdir}/system/sysinit.target.wants/sys-kernel-debug.mount \ +" + +PACKAGES =+ "${PN}-services-firstboot" +SUMMARY_${PN}-services-firstboot = "systemd's service to initialize basic system settings" +FILES_${PN}-services-firstboot = "\ + ${base_bindir}/systemd-firstboot \ + ${systemd_unitdir}/system/sysinit.target.wants/systemd-firstboot.service \ + ${systemd_unitdir}/system/systemd-firstboot.service \ +" + +PACKAGES =+ "${PN}-services-fsck" +SUMMARY_${PN}-services-fsck = "systemd's filesystem check service" +RRECOMMENDS_${PN}-services-fsck = "util-linux-fsck e2fsprogs-e2fsck" +FILES_${PN}-services-fsck = "\ + ${systemd_unitdir}/system/systemd-fsck-root.service \ + ${systemd_unitdir}/system/[email protected] \ + ${rootlibexecdir}/systemd/systemd-fsck \ +" + +PACKAGES =+ "${PN}-services-fuse" +SUMMARY_${PN}-services-fuse = "systemd's FUSE (filesystem in userspace) service" +FILES_${PN}-services-fuse = "\ + ${systemd_unitdir}/system/sysinit.target.wants/sys-fs-fuse-connections.mount \ + ${systemd_unitdir}/system/sys-fs-fuse-connections.mount \ +" + +PACKAGES =+ "${PN}-services-getty" +SUMMARY_${PN}-services-getty = "systemd's getty service" +RRECOMMENDS_${PN}-services-getty = "util-linux-agetty ${PN}-generators-getty" +FILES_${PN}-services-getty = "\ + ${systemd_unitdir}/system/[email protected] \ + ${systemd_unitdir}/system/console-getty.service \ + ${systemd_unitdir}/system/[email protected] \ + ${systemd_unitdir}/system/[email protected] \ + ${systemd_unitdir}/system/[email protected] \ + ${sysconfdir}/systemd/system/getty.target.wants/ \ +" + +PACKAGES =+ "${PN}-services-hostnamed" +SUMMARY_${PN}-services-hostnamed = "systemd's hostname management service" +RDEPENDS_${PN}-services-hostnamed = "${PN}-services-dbus" +CONFFILES_${PN}-services-hostnamed = "${sysconfdir}/dbus-1/system.d/org.freedesktop.hostname1.conf" +FILES_${PN}-services-hostnamed = "\ + ${sysconfdir}/dbus-1/system.d/org.freedesktop.hostname1.conf \ + ${bindir}/hostnamectl \ + ${systemd_unitdir}/system/busnames.target.wants/org.freedesktop.hostname1.busname \ + ${systemd_unitdir}/system/dbus-org.freedesktop.hostname1.service \ + ${systemd_unitdir}/system/org.freedesktop.hostname1.busname \ + ${systemd_unitdir}/system/systemd-hostnamed.service \ + ${rootlibexecdir}/systemd/systemd-hostnamed \ + ${datadir}/dbus-1/system-services/org.freedesktop.hostname1.service \ + ${datadir}/polkit-1/actions/org.freedesktop.hostname1.policy \ +" + +PACKAGES =+ "${PN}-services-journal" +SUMMARY_${PN}-services-journal = "systemd's journal (logging) service" +CONFFILES_${PN}-services-journal = "${sysconfdir}/systemd/journald.conf" +FILES_${PN}-services-journal = "\ + ${base_bindir}/journalctl \ + ${rootlibexecdir}/systemd/systemd-journald \ + ${sysconfdir}/systemd/journald.conf \ + ${systemd_unitdir}/system/sockets.target.wants/systemd-journald-dev-log.socket \ + ${systemd_unitdir}/system/sockets.target.wants/systemd-journald.socket \ + ${systemd_unitdir}/system/sysinit.target.wants/systemd-journal-catalog-update.service \ + ${systemd_unitdir}/system/sysinit.target.wants/systemd-journal-flush.service \ + ${systemd_unitdir}/system/sysinit.target.wants/systemd-journald.service \ + ${systemd_unitdir}/system/systemd-journal-catalog-update.service \ + ${systemd_unitdir}/system/systemd-journal-flush.service \ + ${systemd_unitdir}/system/systemd-journald-dev-log.socket \ + ${systemd_unitdir}/system/systemd-journald.service \ + ${systemd_unitdir}/system/systemd-journald.socket \ + ${exec_prefix}/lib/systemd/catalog/ \ +" + +PACKAGES =+ "${PN}-services-ldconfig" +SUMMARY_${PN}-services-ldconfig = "systemd's service to run ldconfig after updates" +FILES_${PN}-services-ldconfig = "\ + ${systemd_unitdir}/system/sysinit.target.wants/ldconfig.service \ + ${systemd_unitdir}/system/ldconfig.service \ +" + +PACKAGES =+ "${PN}-services-localed" +SUMMARY_${PN}-services-localed = "systemd's locale management service" +RDEPENDS_${PN}-services-localed = "${PN}-services-dbus" +CONFFILES_${PN}-services-localed = "${sysconfdir}/dbus-1/system.d/org.freedesktop.locale1.conf" +FILES_${PN}-services-localed = "\ + ${sysconfdir}/dbus-1/system.d/org.freedesktop.locale1.conf \ + ${bindir}/localectl \ + ${systemd_unitdir}/system/busnames.target.wants/org.freedesktop.locale1.busname \ + ${systemd_unitdir}/system/dbus-org.freedesktop.locale1.service \ + ${systemd_unitdir}/system/org.freedesktop.locale1.busname \ + ${systemd_unitdir}/system/systemd-localed.service \ + ${rootlibexecdir}/systemd/systemd-localed \ + ${datadir}/dbus-1/system-services/org.freedesktop.locale1.service \ + ${datadir}/polkit-1/actions/org.freedesktop.locale1.policy \ + ${datadir}/systemd/kbd-model-map \ +" + +PACKAGES =+ "${PN}-services-logind" +SUMMARY_${PN}-services-logind = "systemd's login management service" +RDEPENDS_${PN}-services-logind = "${PN}-services-dbus ${PN}-services-tmpfiles" +RRECOMMENDS_${PN}-services-logind = "udev" +CONFFILES_${PN}-services-logind = "\ + ${sysconfdir}/dbus-1/system.d/org.freedesktop.login1.conf \ + ${sysconfdir}/systemd/logind.conf \ +" +FILES_${PN}-services-logind = "\ + ${sysconfdir}/dbus-1/system.d/org.freedesktop.login1.conf \ + ${sysconfdir}/systemd/logind.conf \ + ${base_bindir}/loginctl \ + ${base_bindir}/systemd-inhibit \ + ${systemd_unitdir}/system/busnames.target.wants/org.freedesktop.login1.busname \ + ${systemd_unitdir}/system/dbus-org.freedesktop.login1.service \ + ${systemd_unitdir}/system/multi-user.target.wants/systemd-logind.service \ + ${systemd_unitdir}/system/multi-user.target.wants/systemd-user-sessions.service \ + ${systemd_unitdir}/system/org.freedesktop.login1.busname \ + ${systemd_unitdir}/system/systemd-logind.service \ + ${systemd_unitdir}/system/systemd-user-sessions.service \ + ${systemd_unitdir}/system/[email protected] \ + ${rootlibexecdir}/systemd/systemd-logind \ + ${rootlibexecdir}/systemd/systemd-user-sessions \ + ${datadir}/dbus-1/system-services/org.freedesktop.login1.service \ + ${datadir}/polkit-1/actions/org.freedesktop.login1.policy \ + ${rootlibexecdir}/udev/rules.d/70-uaccess.rules \ + ${rootlibexecdir}/udev/rules.d/70-power-switch.rules \ + ${rootlibexecdir}/udev/rules.d/71-seat.rules \ + ${rootlibexecdir}/udev/rules.d/73-seat-late.rules \ +" + +PACKAGES =+ "${PN}-services-machined" +SUMMARY_${PN}-services-machined = "systemd's virtual machine and container management service" +RDEPENDS_${PN}-services-machined = "${PN}-services-dbus" +CONFFILES_${PN}-services-machined = "${sysconfdir}/dbus-1/system.d/org.freedesktop.machine1.conf" +FILES_${PN}-services-machined = "\ + ${sysconfdir}/dbus-1/system.d/org.freedesktop.machine1.conf \ + ${base_bindir}/machinectl \ + ${systemd_unitdir}/system/busnames.target.wants/org.freedesktop.machine1.busname \ + ${systemd_unitdir}/system/dbus-org.freedesktop.machine1.service \ + ${systemd_unitdir}/system/machine.slice \ + ${systemd_unitdir}/system/org.freedesktop.machine1.busname \ + ${systemd_unitdir}/system/systemd-machined.service \ + ${rootlibexecdir}/systemd/systemd-machined \ + ${datadir}/dbus-1/system-services/org.freedesktop.machine1.service \ +" + +PACKAGES =+ "${PN}-services-modules-load" +SUMMARY_${PN}-services-modules-load = "systemd's kernel module loading service" +FILES_${PN}-services-modules-load = "\ + ${sysconfdir}/modules-load.d/ \ + ${systemd_unitdir}/system/sysinit.target.wants/systemd-modules-load.service \ + ${systemd_unitdir}/system/systemd-modules-load.service \ + ${rootlibexecdir}/systemd/systemd-modules-load \ + ${exec_prefix}/lib/modules-load.d \ +" + +PACKAGES =+ "${PN}-services-modules-static-nodes" +SUMMARY_${PN}-services-modules-static-nodes = "systemd's kernel module static nodes creation service" +RDEPENDS_${PN}-services-modules-static-nodes = "kmod ${PN}-services-tmpfiles" +FILES_${PN}-services-modules-static-nodes = "\ + ${systemd_unitdir}/system/sysinit.target.wants/kmod-static-nodes.service \ + ${systemd_unitdir}/system/kmod-static-nodes.service \ +" + + +PACKAGES =+ "${PN}-services-multi-seat-x" +SUMMARY_${PN}-services-multi-seat-x = "systemd's X11 multi-seat support service" +RDEPENDS_${PN}-services-multi-seat-x = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/xserver', '', d)}" +FILES_${PN}-services-multi-seat-x = "\ + ${rootlibexecdir}/systemd/systemd-multi-seat-x \ +" + +PACKAGES =+ "${PN}-services-networkd" +SUMMARY_${PN}-services-networkd = "systemd's network management (static, DHCP, bridge...) service" +# NOTE: if no sysusers, then users/groups must be setup +RRECOMMENDS_${PN}-services-networkd = "${PN}-services-sysusers" +FILES_${PN}-services-networkd = "\ + ${sysconfdir}/systemd/network/ \ + ${sysconfdir}/systemd/system/network-online.target.wants/systemd-networkd-wait-online.service \ + ${sysconfdir}/systemd/system/multi-user.target.wants/systemd-networkd.service \ + ${base_bindir}/networkctl \ + ${rootlibexecdir}/systemd/network/80-container-host0.network \ + ${rootlibexecdir}/systemd/network/80-container-ve.network \ + ${rootlibexecdir}/systemd/network/99-default.link \ + ${systemd_unitdir}/system/systemd-networkd-wait-online.service \ + ${systemd_unitdir}/system/systemd-networkd.service \ + ${rootlibexecdir}/systemd/systemd-networkd \ + ${rootlibexecdir}/systemd/systemd-networkd-wait-online \ + ${exec_prefix}/lib/systemd/network \ +" + +PACKAGES =+ "${PN}-services-nspawn" +SUMMARY_${PN}-services-nspawn = "systemd's namespace spawing service and tool" +FILES_${PN}-services-nspawn = "\ + ${systemd_unitdir}/system/[email protected] \ + ${bindir}/systemd-nspawn \ +" + +PACKAGES =+ "${PN}-services-quota" +SUMMARY_${PN}-services-quota = "systemd's file system quota enable and check service" +RDEPENDS_${PN}-services-quota = "quota" +FILES_${PN}-services-quota = "\ + ${systemd_unitdir}/system/quotaon.service \ + ${systemd_unitdir}/system/systemd-quotacheck.service \ + ${rootlibexecdir}/systemd/systemd-quotacheck \ +" + +PACKAGES =+ "${PN}-services-randomseed" +SUMMARY_${PN}-services-randomseed = "systemd's random seed save/restore service" +FILES_${PN}-services-randomseed = "\ + ${systemd_unitdir}/system/sysinit.target.wants/systemd-random-seed.service \ + ${systemd_unitdir}/system/systemd-random-seed.service \ + ${rootlibexecdir}/systemd/systemd-random-seed \ +" + +PACKAGES =+ "${PN}-services-readahead" +SUMMARY_${PN}-services-readahead = "systemd's disk read ahead service" +FILES_${PN}-services-readahead = "\ + ${systemd_unitdir}/system/systemd-readahead-collect.service \ + ${systemd_unitdir}/system/systemd-readahead-done.service \ + ${systemd_unitdir}/system/systemd-readahead-done.timer \ + ${systemd_unitdir}/system/systemd-readahead-drop.service \ + ${systemd_unitdir}/system/systemd-readahead-replay.service \ + ${rootlibexecdir}/systemd/systemd-readahead \ +" + +PACKAGES =+ "${PN}-services-rfkill" +SUMMARY_${PN}-services-rfkill = "systemd's rfkill state save/restore service" +FILES_${PN}-services-rfkill = "\ + ${systemd_unitdir}/system/[email protected] \ + ${rootlibexecdir}/systemd/systemd-rfkill \ +" + +PACKAGES =+ "${PN}-services-sleep" +SUMMARY_${PN}-services-sleep = "systemd's sleep, suspend and hiberate services" +FILES_${PN}-services-sleep = "\ + ${systemd_unitdir}/system/systemd-hybrid-sleep.service \ + ${systemd_unitdir}/system/systemd-suspend.service \ + ${systemd_unitdir}/system/systemd-hibernate.service \ + ${systemd_unitdir}/system-sleep/ \ + ${rootlibexecdir}/systemd/systemd-sleep \ +" + +PACKAGES =+ "${PN}-services-sysctl" +SUMMARY_${PN}-services-sysctl = "systemd's kernel parameters configuration service" +FILES_${PN}-services-sysctl = "\ + ${sysconfdir}/sysctl.d/ \ + ${exec_prefix}/lib/sysctl.d/ \ + ${exec_prefix}/lib/sysctl.d/50-default.conf \ + ${systemd_unitdir}/system/sysinit.target.wants/systemd-sysctl.service \ + ${systemd_unitdir}/system/systemd-sysctl.service \ + ${rootlibexecdir}/systemd/systemd-sysctl \ +" + +PACKAGES =+ "${PN}-services-sysusers" +SUMMARY_${PN}-services-sysusers = "systemd's service and tool to allocate system users and groups" +FILES_${PN}-services-sysusers = "\ + ${base_bindir}/systemd-sysusers \ + ${systemd_unitdir}/system/sysinit.target.wants/systemd-sysusers.service \ + ${systemd_unitdir}/system/systemd-sysusers.service \ + ${exec_prefix}/lib/sysusers.d/basic.conf \ + ${exec_prefix}/lib/sysusers.d/systemd.conf \ +" + +PACKAGES =+ "${PN}-services-sysvcompat" +SUMMARY_${PN}-services-sysvcompat = "systemd's SYSV legacy and compatibility service" +# NOTE: if no sysusers or tmpfiles, then users/groups and FS structure must be setup +RRECOMMENDS_${PN}-services-sysvcompat = "${PN}-services-sysusers ${PN}-services-tmpfiles" +FILES_${PN}-services-sysvcompat = "\ + ${rootlibexecdir}/systemd/systemd-bus-proxyd \ + ${rootlibexecdir}/systemd/systemd-socket-proxyd \ + ${bindir}/systemd-stdio-bridge \ + ${rootlibexecdir}/systemd/system-generators/systemd-rc-local-generator \ + ${rootlibexecdir}/systemd/system-generators/systemd-sysv-generator \ + ${rootlibexecdir}/systemd/systemd-initctl \ + ${rootlibexecdir}/systemd/systemd-update-utmp \ + ${systemd_unitdir}/system/halt-local.service \ + ${systemd_unitdir}/system/rc-local.service \ + ${systemd_unitdir}/system/runlevel1.target.wants/systemd-update-utmp-runlevel.service \ + ${systemd_unitdir}/system/runlevel2.target.wants/systemd-update-utmp-runlevel.service \ + ${systemd_unitdir}/system/runlevel3.target.wants/systemd-update-utmp-runlevel.service \ + ${systemd_unitdir}/system/runlevel4.target.wants/systemd-update-utmp-runlevel.service \ + ${systemd_unitdir}/system/runlevel5.target.wants/systemd-update-utmp-runlevel.service \ + ${systemd_unitdir}/system/sockets.target.wants/systemd-initctl.socket \ + ${systemd_unitdir}/system/sysinit.target.wants/systemd-update-utmp.service \ + ${systemd_unitdir}/system/systemd-initctl.service \ + ${systemd_unitdir}/system/systemd-initctl.socket \ + ${systemd_unitdir}/system/systemd-update-utmp-runlevel.service \ + ${systemd_unitdir}/system/systemd-update-utmp.service \ + ${exec_prefix}/lib/tmpfiles.d/legacy.conf \ +" + +PACKAGES =+ "${PN}-services-timedated" +SUMMARY_${PN}-services-timedated = "systemd's time and date management service" +RDEPENDS_${PN}-services-timedated = "${PN}-services-dbus" +CONFFILES_${PN}-services-timedated = "${sysconfdir}/dbus-1/system.d/org.freedesktop.timedate1.conf" +FILES_${PN}-services-timedated = "\ + ${sysconfdir}/dbus-1/system.d/org.freedesktop.timedate1.conf \ + ${bindir}/timedatectl \ + ${systemd_unitdir}/system/busnames.target.wants/org.freedesktop.timedate1.busname \ + ${systemd_unitdir}/system/dbus-org.freedesktop.timedate1.service \ + ${systemd_unitdir}/system/org.freedesktop.timedate1.busname \ + ${systemd_unitdir}/system/systemd-timedated.service \ + ${rootlibexecdir}/systemd/systemd-timedated \ + ${datadir}/dbus-1/system-services/org.freedesktop.timedate1.service \ + ${datadir}/polkit-1/actions/org.freedesktop.timedate1.policy \ +" + +PACKAGES =+ "${PN}-services-timesyncd" +SUMMARY_${PN}-services-timesyncd = "systemd's NTP sync service" +# NOTE: if no sysusers, then users/groups must be setup +RRECOMMENDS_${PN}-services-timesyncd = "${PN}-services-sysusers" +CONFFILES_${PN}-services-timesyncd = "${sysconfdir}/systemd/timesyncd.conf" +FILES_${PN}-services-timesyncd = "\ + ${sysconfdir}/systemd/system/sysinit.target.wants/systemd-timesyncd.service \ + ${sysconfdir}/systemd/timesyncd.conf \ + ${systemd_unitdir}/system/systemd-timesyncd.service \ + ${rootlibexecdir}/systemd/systemd-timesyncd \ +" + +PACKAGES =+ "${PN}-services-tmpfiles" +SUMMARY_${PN}-services-tmpfiles = "systemd's service to create, delete and clean up volatile/tmp files/dirs" +FILES_${PN}-services-tmpfiles = "\ + ${sysconfdir}/tmpfiles.d/ \ + ${base_bindir}/systemd-tmpfiles \ + ${systemd_unitdir}/system/sysinit.target.wants/systemd-tmpfiles-setup-dev.service \ + ${systemd_unitdir}/system/sysinit.target.wants/systemd-tmpfiles-setup.service \ + ${systemd_unitdir}/system/systemd-tmpfiles-clean.service \ + ${systemd_unitdir}/system/systemd-tmpfiles-clean.timer \ + ${systemd_unitdir}/system/systemd-tmpfiles-setup-dev.service \ + ${systemd_unitdir}/system/systemd-tmpfiles-setup.service \ + ${systemd_unitdir}/system/timers.target.wants/systemd-tmpfiles-clean.timer \ + ${exec_prefix}/lib/tmpfiles.d/etc.conf \ + ${exec_prefix}/lib/tmpfiles.d/systemd-nologin.conf \ + ${exec_prefix}/lib/tmpfiles.d/systemd.conf \ + ${exec_prefix}/lib/tmpfiles.d/tmp.conf \ + ${exec_prefix}/lib/tmpfiles.d/var.conf \ + ${exec_prefix}/lib/tmpfiles.d/00-create-volatile.conf \ + ${exec_prefix}/lib/tmpfiles.d/x11.conf \ +" + +PACKAGES =+ "${PN}-services-udev" +SUMMARY_${PN}-services-udev = "systemd's udev services" +RDEPENDS_${PN}-services-udev = "udev" +FILES_${PN}-services-udev = "\ + ${systemd_unitdir}/system/initrd-udevadm-cleanup-db.service \ + ${systemd_unitdir}/system/systemd-udev-hwdb-update.service \ + ${systemd_unitdir}/system/systemd-udev-settle.service \ + ${systemd_unitdir}/system/systemd-udev-trigger.service \ + ${systemd_unitdir}/system/systemd-udevd-control.socket \ + ${systemd_unitdir}/system/systemd-udevd-kernel.socket \ + ${systemd_unitdir}/system/systemd-udevd.service \ + ${systemd_unitdir}/system/sysinit.target.wants/systemd-udevd.service \ + ${systemd_unitdir}/system/sysinit.target.wants/systemd-udev-trigger.service \ + ${systemd_unitdir}/system/sysinit.target.wants/systemd-udev-hwdb-update.service \ + ${systemd_unitdir}/system/sockets.target.wants/systemd-udevd-kernel.socket \ + ${systemd_unitdir}/system/sockets.target.wants/systemd-udevd-control.socket \ +" + +PACKAGES =+ "${PN}-services-update" +SUMMARY_${PN}-services-update = "systemd's post update service" +FILES_${PN}-services-update = "\ + ${rootlibexecdir}/systemd/system-generators/systemd-system-update-generator \ + ${rootlibexecdir}/systemd/systemd-update-done \ + ${systemd_unitdir}/system/sysinit.target.wants/systemd-update-done.service \ + ${systemd_unitdir}/system/systemd-update-done.service \ +" + +PACKAGES =+ "${PN}-services-vconsole" +SUMMARY_${PN}-services-vconsole = "systemd's service to configure the virtual console (keyboard/font)" +RECOMMENDS_${PN}-services-vconsole = "kbd kbd-consolefonts kbd-keymaps" +FILES_${PN}-services-vconsole = "\ + ${systemd_unitdir}/system/sysinit.target.wants/systemd-vconsole-setup.service \ + ${systemd_unitdir}/system/systemd-vconsole-setup.service \ + ${rootlibexecdir}/systemd/systemd-vconsole-setup \ +" -FILES_${PN}-dbg += "${libdir}/systemd/ptest/.debug" +######################################################################## +# Standard BitBake Packages +######################################################################## + +FILES_${PN}-dbg += "\ + ${base_libdir}/security/.debug/ \ + ${libdir}/systemd/ptest/.debug \ + ${rootlibdir}/.debug \ + ${systemd_unitdir}/*/.debug \ + ${systemd_unitdir}/.debug \ +" FILES_${PN}-gui = "${bindir}/systemadm" -FILES_${PN}-vconsole-setup = "${rootlibexecdir}/systemd/systemd-vconsole-setup \ - ${systemd_unitdir}/system/systemd-vconsole-setup.service \ - ${systemd_unitdir}/system/sysinit.target.wants/systemd-vconsole-setup.service" +FILES_${PN}-dev += "\ + ${base_libdir}/security/*.la \ + ${datadir}/dbus-1/interfaces/ \ + ${sysconfdir}/rpm/macros.systemd \ +" + +USERADD_PACKAGES = "${PN}" +USERADD_PARAM_${PN} += "--system systemd-journal-gateway; --system systemd-timesync" +GROUPADD_PARAM_${PN} = "-r lock; -r systemd-journal" + +# The test cases need perl and bash to run correctly. +RDEPENDS_${PN}-ptest += "perl python bash" +FILES_${PN}-ptest += "\ + ${libdir}/udev/rules.d \ +" + +######################################################################## +# Misc Packages +######################################################################## + +PACKAGES =+ "${PN}-bash" +SUMMARY_${PN}-bash = "systemd bash shell commands completion" +FILES_${PN}-bash = "\ + ${datadir}/bash-completion/completions/bootctl \ + ${datadir}/bash-completion/completions/busctl \ + ${datadir}/bash-completion/completions/coredumpctl \ + ${datadir}/bash-completion/completions/hostnamectl \ + ${datadir}/bash-completion/completions/journalctl \ + ${datadir}/bash-completion/completions/kernel-install \ + ${datadir}/bash-completion/completions/localectl \ + ${datadir}/bash-completion/completions/loginctl \ + ${datadir}/bash-completion/completions/machinectl \ + ${datadir}/bash-completion/completions/systemctl \ + ${datadir}/bash-completion/completions/systemd-* \ + ${datadir}/bash-completion/completions/timedatectl \ +" +PACKAGES =+ "${PN}-initramfs" +SUMMARY_${PN}-initramfs = "systemd's initramfs support" +FILES_${PN}-initramfs = "/init" +RDEPENDS_${PN}-initramfs = "${PN}" + +PACKAGES =+ "${PN}-kernel-install" +SUMMARY_${PN}-kernel-install = "systemd tool to add/remove kernel and initramfs images to/from /boot" RDEPENDS_${PN}-kernel-install += "bash" -FILES_${PN}-kernel-install = "${bindir}/kernel-install \ - ${sysconfdir}/kernel/ \ - ${exec_prefix}/lib/kernel \ - " -FILES_${PN}-rpm-macros = "${exec_prefix}/lib/rpm \ - " - -FILES_${PN}-zsh = "${datadir}/zsh/site-functions" - -FILES_${PN}-binfmt = "${sysconfdir}/binfmt.d/ \ - ${exec_prefix}/lib/binfmt.d \ - ${rootlibexecdir}/systemd/systemd-binfmt \ - ${systemd_unitdir}/system/proc-sys-fs-binfmt_misc.* \ - ${systemd_unitdir}/system/systemd-binfmt.service" -RRECOMMENDS_${PN}-binfmt = "kernel-module-binfmt-misc" - -RRECOMMENDS_${PN}-vconsole-setup = "kbd kbd-consolefonts kbd-keymaps" - -CONFFILES_${PN} = "${sysconfdir}/systemd/journald.conf \ - ${sysconfdir}/systemd/logind.conf \ - ${sysconfdir}/systemd/system.conf \ - ${sysconfdir}/systemd/user.conf" - -FILES_${PN} = " ${base_bindir}/* \ - ${datadir}/bash-completion \ - ${datadir}/dbus-1/services \ - ${datadir}/dbus-1/system-services \ - ${datadir}/polkit-1 \ - ${datadir}/${BPN} \ - ${datadir}/factory \ - ${sysconfdir}/bash_completion.d/ \ - ${sysconfdir}/dbus-1/ \ - ${sysconfdir}/machine-id \ - ${sysconfdir}/modules-load.d/ \ - ${sysconfdir}/pam.d/ \ - ${sysconfdir}/sysctl.d/ \ - ${sysconfdir}/systemd/ \ - ${sysconfdir}/tmpfiles.d/ \ - ${sysconfdir}/xdg/ \ - ${sysconfdir}/init.d/README \ - ${rootlibexecdir}/systemd/* \ - ${systemd_unitdir}/* \ - ${base_libdir}/security/*.so \ - ${libdir}/libnss_* \ - /cgroup \ - ${bindir}/systemd* \ - ${bindir}/busctl \ - ${bindir}/localectl \ - ${bindir}/hostnamectl \ - ${bindir}/timedatectl \ - ${bindir}/bootctl \ - ${bindir}/kernel-install \ - ${exec_prefix}/lib/tmpfiles.d/*.conf \ - ${exec_prefix}/lib/systemd \ - ${exec_prefix}/lib/modules-load.d \ - ${exec_prefix}/lib/sysctl.d \ - ${exec_prefix}/lib/sysusers.d \ - ${localstatedir} \ - /lib/udev/rules.d/70-uaccess.rules \ - /lib/udev/rules.d/71-seat.rules \ - /lib/udev/rules.d/73-seat-late.rules \ - /lib/udev/rules.d/99-systemd.rules \ - " +FILES_${PN}-kernel-install = "\ + ${bindir}/kernel-install \ + ${sysconfdir}/kernel/ \ + ${exec_prefix}/lib/kernel \ +" -FILES_${PN}-dbg += "${rootlibdir}/.debug ${systemd_unitdir}/.debug ${systemd_unitdir}/*/.debug ${base_libdir}/security/.debug/" -FILES_${PN}-dev += "${base_libdir}/security/*.la ${datadir}/dbus-1/interfaces/ ${sysconfdir}/rpm/macros.systemd" +PACKAGES =+ "${PN}-pam" +SUMMARY_${PN}-pam = "systemd PAM modules and configuration" +FILES_${PN}-pam = "\ + ${sysconfdir}/pam.d \ + ${base_libdir}/security/pam_systemd.so \ +" -RDEPENDS_${PN} += "kmod dbus util-linux-mount udev (= ${EXTENDPKGV})" -RDEPENDS_${PN} += "volatile-binds" +PACKAGES =+ "${PN}-preset" +SUMMARY_${PN}-preset = "systemd's service enablement presets" +FILES_${PN}-preset = "${systemd_unitdir}/system-preset/90-systemd.preset" + +PACKAGES =+ "${PN}-rpm-macros" +SUMMARY_${PN}-rpm-macros = "systemd RPM macros" +FILES_${PN}-rpm-macros = "${exec_prefix}/lib/rpm \ + " -RRECOMMENDS_${PN} += "systemd-serialgetty systemd-compat-units udev-hwdb\ - util-linux-agetty \ - util-linux-fsck e2fsprogs-e2fsck \ - kernel-module-autofs4 kernel-module-unix kernel-module-ipv6 os-release \ +PACKAGES =+ "${PN}-zsh" +SUMMARY_${PN}-zsh = "systemd zsh shell commands completion" +FILES_${PN}-zsh = "\ + ${datadir}/zsh/site-functions \ " -PACKAGES =+ "udev-dbg udev udev-hwdb" -FILES_udev-dbg += "/lib/udev/.debug" +######################################################################## +# Aggregation of Split Packages +######################################################################## + +PACKAGES =+ "${PN}-services-essential" +SUMMARY_${PN}-services-essential = "systemd's essential services aggregation" +ALLOW_EMPTY_${PN}-services-essential = "1" +RDEPENDS_${PN}-services-essential = "\ + ${PN}-generators-filesystems \ + ${PN}-preset \ + ${PN}-services-fsck \ + ${PN}-services-journal \ + ${PN}-services-modules-load \ + ${PN}-services-randomseed \ + ${PN}-services-sleep \ + ${PN}-services-sysctl \ + ${PN}-services-sysusers \ + ${PN}-services-tmpfiles \ + ${PN}-services-udev \ + udev-rules-systemd \ +" -RPROVIDES_udev = "hotplug" +PACKAGES =+ "${PN}-services-base" +SUMMARY_${PN}-services-base = "systemd's base services aggregation" +ALLOW_EMPTY_${PN}-services-base = "1" +RDEPENDS_${PN}-services-base = "${PN}-services-essential \ + ${PN}-services-ask-password \ + ${PN}-services-backlight \ + ${PN}-services-binfmt \ + ${PN}-services-coredump \ + ${PN}-services-dbus \ + ${PN}-services-firstboot \ + ${PN}-services-fuse \ + ${PN}-services-hostnamed \ + ${PN}-services-ldconfig \ + ${PN}-services-localed \ + ${PN}-services-logind \ + ${PN}-services-networkd \ + ${PN}-services-quota \ + ${PN}-services-rfkill \ + ${PN}-services-timedated \ + ${PN}-services-timesyncd \ + ${PN}-services-update \ + ${PN}-services-vconsole \ + ${PN}-services-modules-static-nodes \ + ${PN}-bash \ + ${PN}-initramfs \ + ${PN}-kernel-install \ + ${PN}-rpm-macros \ + ${PN}-zsh \ +" -RDEPENDS_udev-hwdb += "udev" +PACKAGES =+ "${PN}-services-all" +SUMMARY_${PN}-services-all = "systemd's all services and tools aggregation" +ALLOW_EMPTY_${PN}-services-all = "1" +RDEPENDS_${PN}-services-all = "${PN}-services-base \ + ${PN}-services-bootchart \ + ${PN}-services-cryptsetup \ + ${PN}-services-debug \ + ${PN}-services-machined \ + ${PN}-services-nspawn \ + ${PN}-services-sysvcompat \ + ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '${PN}-services-multi-seat-x', '', d)} \ +" -FILES_udev += "${base_sbindir}/udevd \ - ${rootlibexecdir}/systemd/systemd-udevd \ - ${rootlibexecdir}/udev/accelerometer \ - ${rootlibexecdir}/udev/ata_id \ - ${rootlibexecdir}/udev/cdrom_id \ - ${rootlibexecdir}/udev/collect \ - ${rootlibexecdir}/udev/findkeyboards \ - ${rootlibexecdir}/udev/keyboard-force-release.sh \ - ${rootlibexecdir}/udev/keymap \ - ${rootlibexecdir}/udev/mtd_probe \ - ${rootlibexecdir}/udev/scsi_id \ - ${rootlibexecdir}/udev/v4l_id \ - ${rootlibexecdir}/udev/keymaps \ - ${rootlibexecdir}/udev/rules.d/*.rules \ - ${sysconfdir}/udev \ - ${sysconfdir}/init.d/systemd-udevd \ - ${systemd_unitdir}/system/*udev* \ - ${systemd_unitdir}/system/*.wants/*udev* \ - ${base_bindir}/udevadm \ - ${datadir}/bash-completion/completions/udevadm \ - " - -FILES_udev-hwdb = "${rootlibexecdir}/udev/hwdb.d" -INITSCRIPT_PACKAGES = "udev" -INITSCRIPT_NAME_udev = "systemd-udevd" -INITSCRIPT_PARAMS_udev = "start 03 S ." +######################################################################## +# Core Package +######################################################################## -python __anonymous() { - if not bb.utils.contains('DISTRO_FEATURES', 'sysvinit', True, False, d): - d.setVar("INHIBIT_UPDATERCD_BBCLASS", "1") -} +CONFFILES_${PN} = "\ + ${sysconfdir}/systemd/system.conf \ + ${sysconfdir}/systemd/user.conf \ +" +FILES_${PN} = "\ + ${base_bindir}/systemctl \ + ${base_bindir}/systemd-hwdb \ + ${bindir}/bootctl \ + ${datadir}/${BPN} \ + ${datadir}/factory \ + ${exec_prefix}/lib/libnss_myhostname* \ + ${exec_prefix}/lib/libnss_mymachines.so.2 \ + ${libdir}/systemd/user-generators/ \ + ${libdir}/systemd/user/ \ + ${localstatedir} \ + ${rootlibexecdir}/systemd/systemd \ + ${rootlibexecdir}/systemd/systemd-cgroups-agent \ + ${rootlibexecdir}/systemd/systemd-shutdown \ + ${rootlibexecdir}/systemd/systemd-shutdownd \ + ${rootlibexecdir}/systemd/systemd-machine-id-commit \ + ${rootlibexecdir}/systemd/systemd-hibernate-resume \ + ${rootlibexecdir}/systemd/systemd-importd \ + ${rootlibexecdir}/systemd/import-pubring.gpg \ + ${rootlibexecdir}/systemd/systemd-pull \ + ${sysconfdir}/init.d/README \ + ${sysconfdir}/machine-id \ + ${sysconfdir}/systemd/system.conf \ + ${sysconfdir}/systemd/system/ \ + ${sysconfdir}/systemd/user.conf \ + ${sysconfdir}/systemd/user/ \ + ${sysconfdir}/xdg/systemd/ \ + ${systemd_unitdir}/system-generators/ \ + ${systemd_unitdir}/system-preset/ \ + ${systemd_unitdir}/system-shutdown/ \ + ${systemd_unitdir}/system/ \ +" # TODO: # u-a for runlevel and telinit +RDEPENDS_${PN} += "kmod dbus util-linux-mount udev (= ${EXTENDPKGV})" +RDEPENDS_${PN} += "volatile-binds" + +RRECOMMENDS_${PN} += "\ + ${PN}-services-base \ + ${PN}-services-essential \ + ${PN}-services-all \ + ${PN}-tools \ + ${PN}-generators-getty \ + ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PN}-pam', '', d)} \ + ${PN}-services-getty \ + kernel-module-autofs4 \ + kernel-module-ipv6 \ + kernel-module-unix \ + util-linux-agetty \ + util-linux-fsck \ + e2fsprogs-e2fsck \ + os-release \ + udev-hwdb \ + systemd-serialgetty \ + systemd-compat-units \ +" ALTERNATIVE_${PN} = "init halt reboot shutdown poweroff runlevel"
@@ -375,6 +1003,41 @@ ALTERNATIVE_TARGET[runlevel] = "${base_bindir}/systemctl" ALTERNATIVE_LINK_NAME[runlevel] = "${base_sbindir}/runlevel" ALTERNATIVE_PRIORITY[runlevel] ?= "300" + +######################################################################## +# UDEV Section +######################################################################## + +PACKAGES =+ "udev-dbg" +SUMMARY_udev-dbg = "Dynamic device management - Debugging files" +RRECOMMENDS_udev-dbg += "${PN}-dbg" +FILES_udev-dbg = "\ + ${rootlibexecdir}/udev/.debug \ + ${base_sbindir}/.debug/udevd \ + ${base_bindir}/.debug/udevadm \ + ${rootlibexecdir}/systemd/.debug/systemd-udevd \ + ${base_libdir}/.debug/libudev* \ + ${base_libdir}/.debug/libgudev* \ + ${exec_prefix}/lib/.debug/libgudev* \ +" + +PACKAGES =+ "udev-dev" +SUMMARY_udev-dev = "Dynamic device management - Development files" +RRECOMMENDS_udev-dev += "${PN}-dev" +FILES_udev-dev = "\ + ${datadir}/pkgconfig/*udev* \ + ${libdir}/pkgconfig/*udev* \ + ${libdir}/lib*udev*.la \ + ${includedir}/*udev* \ +" + +PACKAGES =+ "udev-hwdb" +SUMMARY_udev-hwdb = "Dynamic device management - Hardware database" +RDEPENDS_udev-hwdb += "udev" +FILES_udev-hwdb = "\ + ${rootlibexecdir}/udev/hwdb.d/ \ +" + pkg_postinst_udev-hwdb () { if test -n "$D"; then ${@qemu_run_binary(d, '$D', '${base_bindir}/udevadm')} hwdb --update \
@@ -392,6 +1055,154 @@ pkg_prerm_udev-hwdb () { rm -f ${sysconfdir}/udev/hwdb.bin } +PACKAGES =+ "udev-bash" +SUMMARY_udev-bash = "Dynamic device management - Bash shell commands completion" +FILES_udev-bash = "${datadir}/bash-completion/completions/udevadm" + +PACKAGES =+ "udev-zsh" +SUMMARY_udev-zsh = "Dynamic device management - zsh shell commands completion" +FILES_udev-zsh = "${datadir}/zsh/site-functions/_udevadm" + + +######################################################################## +# UDEV Rules Packages +# split rules that require external programs or dependencies. +# those that use only builtins are not split +######################################################################## + +PACKAGES =+ "udev-rules-accelerometer" +SUMMARY_udev-rules-accelerometer = "Dynamic device management - accelerometer rules" +FILES_udev-rules-accelerometer = "\ + ${rootlibexecdir}/udev/accelerometer \ + ${rootlibexecdir}/udev/rules.d/61-accelerometer.rules \ + ${rootlibexecdir}/udev/rules.d/70-touchpad.rules \ +" + +PACKAGES =+ "udev-rules-cdrom" +SUMMARY_udev-rules-cdrom = "Dynamic device management - cdrom rules" +FILES_udev-rules-cdrom = "\ + ${rootlibexecdir}/udev/cdrom_id \ + ${rootlibexecdir}/udev/rules.d/60-cdrom_id.rules \ +" + +PACKAGES =+ "udev-rules-mtd" +SUMMARY_udev-rules-mtd = "Dynamic device management - mtd rules" +FILES_udev-rules-mtd = "\ + ${rootlibexecdir}/udev/mtd_probe \ + ${rootlibexecdir}/udev/rules.d/75-probe_mtd.rules \ +" + +PACKAGES =+ "udev-rules-persistent-storage" +SUMMARY_udev-rules-persistent-storage = "Dynamic device management - persistent storage rules" +FILES_udev-rules-persistent-storage = "\ + ${rootlibexecdir}/udev/ata_id \ + ${rootlibexecdir}/udev/scsi_id \ + ${rootlibexecdir}/udev/rules.d/60-persistent-storage.rules \ + ${rootlibexecdir}/udev/rules.d/60-persistent-storage-tape.rules \ +" + +PACKAGES =+ "udev-rules-systemd" +SUMMARY_udev-rules-systemd = "Dynamic device management - systemd rules" +RDEPENDS_udev-rules-systemd = "${PN} ${PN}-services-sysctl" +FILES_udev-rules-systemd = "\ + ${rootlibexecdir}/udev/rules.d/99-systemd.rules \ +" + +PACKAGES =+ "udev-rules-v4l" +SUMMARY_udev-rules-v4l = "Dynamic device management - v4l rules" +FILES_udev-rules-v4l = "\ + ${rootlibexecdir}/udev/v4l_id \ + ${rootlibexecdir}/udev/rules.d/*-persistent-v4l.rules \ +" + +PACKAGES =+ "udev-rules-all" +SUMMARY_udev-rules-all = "Dynamic device management - all rules aggregation" +ALLOW_EMPTY_udev-rules-all = "1" +RDEPENDS_udev-rules-all = "\ + udev-rules-accelerometer \ + udev-rules-cdrom \ + udev-rules-mtd \ + udev-rules-persistent-storage \ + udev-rules-systemd \ + udev-rules-v4l \ +" + +PACKAGES =+ "udev" +SUMMARY_udev = "Dynamic device management" +RPROVIDES_udev = "hotplug" +PROVIDES = "udev" +CONFFILES_udev = "${sysconfdir}/udev/udev.conf" +RDEPENDS_udev += "${PN}-services-vconsole" +FILES_udev = "\ + ${base_bindir}/udevadm \ + ${base_sbindir}/udevd \ + ${rootlibexecdir}/systemd/systemd-udevd \ + ${rootlibexecdir}/udev/collect \ + ${rootlibexecdir}/udev/rules.d/42-usb-hid-pm.rules \ + ${rootlibexecdir}/udev/rules.d/50-firmware.rules \ + ${rootlibexecdir}/udev/rules.d/50-udev-default.rules \ + ${rootlibexecdir}/udev/rules.d/60-drm.rules \ + ${rootlibexecdir}/udev/rules.d/60-keyboard.rules \ + ${rootlibexecdir}/udev/rules.d/60-persistent-alsa.rules \ + ${rootlibexecdir}/udev/rules.d/60-persistent-input.rules \ + ${rootlibexecdir}/udev/rules.d/60-persistent-serial.rules \ + ${rootlibexecdir}/udev/rules.d/64-btrfs.rules \ + ${rootlibexecdir}/udev/rules.d/75-net-description.rules \ + ${rootlibexecdir}/udev/rules.d/75-tty-description.rules \ + ${rootlibexecdir}/udev/rules.d/78-sound-card.rules \ + ${rootlibexecdir}/udev/rules.d/80-drivers.rules \ + ${rootlibexecdir}/udev/rules.d/80-net-setup-link.rules \ + ${rootlibexecdir}/udev/rules.d/95-udev-late.rules \ + ${rootlibexecdir}/udev/rules.d/70-mouse.rules \ + ${rootlibexecdir}/udev/rules.d/90-vconsole.rules \ + ${rootlibexecdir}/udev/rules.d/touchscreen.rules \ + ${sysconfdir}/init.d/systemd-udevd \ + ${sysconfdir}/udev \ +" + +RRECOMMENDS_udev = "\ + udev-hwdb \ + udev-rules-all \ +" + +INITSCRIPT_PACKAGES = "udev" +INITSCRIPT_NAME_udev = "systemd-udevd" +INITSCRIPT_PARAMS_udev = "start 03 S ." + +python __anonymous() { + if not bb.utils.contains('DISTRO_FEATURES', 'sysvinit', True, False, d): + d.setVar("INHIBIT_UPDATERCD_BBCLASS", "1") +} + +# TODO: +# u-a for runlevel and telinit + +ALTERNATIVE_${PN} = "init halt reboot shutdown poweroff runlevel" + +ALTERNATIVE_TARGET[init] = "${rootlibexecdir}/systemd/systemd" +ALTERNATIVE_LINK_NAME[init] = "${base_sbindir}/init" +ALTERNATIVE_PRIORITY[init] ?= "300" + +ALTERNATIVE_TARGET[halt] = "${base_bindir}/systemctl" +ALTERNATIVE_LINK_NAME[halt] = "${base_sbindir}/halt" +ALTERNATIVE_PRIORITY[halt] ?= "300" + +ALTERNATIVE_TARGET[reboot] = "${base_bindir}/systemctl" +ALTERNATIVE_LINK_NAME[reboot] = "${base_sbindir}/reboot" +ALTERNATIVE_PRIORITY[reboot] ?= "300" + +ALTERNATIVE_TARGET[shutdown] = "${base_bindir}/systemctl" +ALTERNATIVE_LINK_NAME[shutdown] = "${base_sbindir}/shutdown" +ALTERNATIVE_PRIORITY[shutdown] ?= "300" + +ALTERNATIVE_TARGET[poweroff] = "${base_bindir}/systemctl" +ALTERNATIVE_LINK_NAME[poweroff] = "${base_sbindir}/poweroff" +ALTERNATIVE_PRIORITY[poweroff] ?= "300" + +ALTERNATIVE_TARGET[runlevel] = "${base_bindir}/systemctl" +ALTERNATIVE_LINK_NAME[runlevel] = "${base_sbindir}/runlevel" +ALTERNATIVE_PRIORITY[runlevel] ?= "300" + # As this recipe builds udev, respect systemd being in DISTRO_FEATURES so # that we don't build both udev and systemd in world builds. python () {
Signature · 1 line
1.9.1
PATCH v2 4/4 systemd: v219 with stable fixes
In reply to Bruno BottazziniAdding patches that fix bugs for 219 version.
This will get the same consistency of the stable systemd 219 version.
More details:
http://cgit.freedesktop.org/systemd/systemd-stable/log/?h=v219-stable
--- ...remote-fix-certificate-status-memory-leak.patch | 31 + ...ournal-remote-fix-client_cert-memory-leak.patch | 35 + ...0003-tmpfiles-Fix-parse_acl-error-message.patch | 28 + ...-test-utf8-fix-utf16-tests-on-BE-machines.patch | 26 + ...iles-avoid-creating-duplicate-acl-entries.patch | 131 +++ .../0006-shared-time-util-fix-gcc5-warning.patch | 32 + ...time-test-infinity-parsing-in-nanoseconds.patch | 36 + .../0008-bootchart-fix-default-init-path.patch | 44 + ...emctl-bump-NOFILE-only-for-systemctl_main.patch | 44 + ...0-Make-root-s-home-directory-configurable.patch | 89 +- ...-util-avoid-freeing-uninitialized-pointer.patch | 37 + ...11-bootchart-svg-fix-checking-of-list-end.patch | 28 + ...md-add-getrandom-syscall-numbers-for-MIPS.patch | 38 + ...aker-dependencies-between-mount-and-devic.patch | 33 + ...topping-due-to-BindsTo-log-which-unit-cau.patch | 43 + ...grade-message-about-sysctl-overrides-to-d.patch | 30 + ...l-add-some-hints-how-to-override-settings.patch | 39 + .../0017-core-rework-device-state-logic.patch | 912 +++++++++++++++++++++ .../0018-core-fix-return-value-on-OOM.patch | 26 + ...e-x-machine-unix-prefix-for-the-container.patch | 33 + ...0-shared-AFS-is-also-a-network-filesystem.patch | 25 + ...downgrade-unit-type-not-supported-message.patch | 31 + ...ournal-remote-fix-saving-of-binary-fields.patch | 97 +++ ...ix-Inappropriate-ioctl-for-device-on-ext4.patch | 37 + ...eplace-VLA-with-alloca-to-make-llvm-happy.patch | 53 ++ ...ietly-ignore-ACLs-on-unsupported-filesyst.patch | 84 ++ ...-assume-ac-when-sys-class-power_supply-is.patch | 30 + meta/recipes-core/systemd/systemd_219.bb | 30 + 28 files changed, 2050 insertions(+), 52 deletions(-) create mode 100644 meta/recipes-core/systemd/systemd/0001-journal-remote-fix-certificate-status-memory-leak.patch create mode 100644 meta/recipes-core/systemd/systemd/0002-journal-remote-fix-client_cert-memory-leak.patch create mode 100644 meta/recipes-core/systemd/systemd/0003-tmpfiles-Fix-parse_acl-error-message.patch create mode 100644 meta/recipes-core/systemd/systemd/0004-test-utf8-fix-utf16-tests-on-BE-machines.patch create mode 100644 meta/recipes-core/systemd/systemd/0005-tmpfiles-avoid-creating-duplicate-acl-entries.patch create mode 100644 meta/recipes-core/systemd/systemd/0006-shared-time-util-fix-gcc5-warning.patch create mode 100644 meta/recipes-core/systemd/systemd/0007-test-time-test-infinity-parsing-in-nanoseconds.patch create mode 100644 meta/recipes-core/systemd/systemd/0008-bootchart-fix-default-init-path.patch create mode 100644 meta/recipes-core/systemd/systemd/0009-systemctl-bump-NOFILE-only-for-systemctl_main.patch create mode 100644 meta/recipes-core/systemd/systemd/0010-acl-util-avoid-freeing-uninitialized-pointer.patch create mode 100644 meta/recipes-core/systemd/systemd/0011-bootchart-svg-fix-checking-of-list-end.patch create mode 100644 meta/recipes-core/systemd/systemd/0012-systemd-add-getrandom-syscall-numbers-for-MIPS.patch create mode 100644 meta/recipes-core/systemd/systemd/0013-unit-use-weaker-dependencies-between-mount-and-devic.patch create mode 100644 meta/recipes-core/systemd/systemd/0014-unit-When-stopping-due-to-BindsTo-log-which-unit-cau.patch create mode 100644 meta/recipes-core/systemd/systemd/0015-sysctl-downgrade-message-about-sysctl-overrides-to-d.patch create mode 100644 meta/recipes-core/systemd/systemd/0016-sysctl-add-some-hints-how-to-override-settings.patch create mode 100644 meta/recipes-core/systemd/systemd/0017-core-rework-device-state-logic.patch create mode 100644 meta/recipes-core/systemd/systemd/0018-core-fix-return-value-on-OOM.patch create mode 100644 meta/recipes-core/systemd/systemd/0019-machined-use-x-machine-unix-prefix-for-the-container.patch create mode 100644 meta/recipes-core/systemd/systemd/0020-shared-AFS-is-also-a-network-filesystem.patch create mode 100644 meta/recipes-core/systemd/systemd/0021-core-downgrade-unit-type-not-supported-message.patch create mode 100644 meta/recipes-core/systemd/systemd/0022-journal-remote-fix-saving-of-binary-fields.patch create mode 100644 meta/recipes-core/systemd/systemd/0023-journal-fix-Inappropriate-ioctl-for-device-on-ext4.patch create mode 100644 meta/recipes-core/systemd/systemd/0024-sd-daemon-replace-VLA-with-alloca-to-make-llvm-happy.patch create mode 100644 meta/recipes-core/systemd/systemd/0025-tmpfiles-quietly-ignore-ACLs-on-unsupported-filesyst.patch create mode 100644 meta/recipes-core/systemd/systemd/0026-shared-util-assume-ac-when-sys-class-power_supply-is.patch
meta/recipes-core/systemd/systemd/0001-journal-remote-fix-certificate-status-memory-leak.patch new file +31 -0
@@ -0,0 +1,31 @@ +From 7057db8b36594bb03c611cab711cd992ad4de31e Mon Sep 17 00:00:00 2001 +From: Michal Schmidt <[email protected]> +Date: Tue, 17 Feb 2015 10:33:01 +0100 +Subject: [PATCH 01/26] journal-remote: fix certificate status memory leak + +The output of gnutls_certificate_verification_status_print() needs to be +freed. + +Noticed this while staring at verify_cert_authorized() to see what could +possibly confuse gcc5 on armv7hl to segfault during compilation. + +(cherry picked from commit 9c3cf9693ac5c0a332ba376f99e6adea28b1bb0d) +--- + src/journal-remote/microhttpd-util.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/journal-remote/microhttpd-util.c b/src/journal-remote/microhttpd-util.c +index 34d9337..de9c6ab 100644 +--- a/src/journal-remote/microhttpd-util.c ++++ b/src/journal-remote/microhttpd-util.c +@@ -179,6 +179,7 @@ static int verify_cert_authorized(gnutls_session_t session) { + return log_error_errno(r, "gnutls_certificate_verification_status_print failed: %m"); + + log_info("Certificate status: %s", out.data); ++ gnutls_free(out.data); + + return status == 0 ? 0 : -EPERM; + } +-- +1.9.1 +
meta/recipes-core/systemd/systemd/0002-journal-remote-fix-client_cert-memory-leak.patch new file +35 -0
@@ -0,0 +1,35 @@ +From 5852d2efbfb888dfb0adddb25afac0814d3ebcbb Mon Sep 17 00:00:00 2001 +From: Michal Schmidt <[email protected]> +Date: Tue, 17 Feb 2015 10:36:57 +0100 +Subject: [PATCH 02/26] journal-remote: fix client_cert memory leak + +Found by Valgrind while testing the previous memory leak fix. + +(cherry picked from commit 32c3d7144cf9a5c8c03761d7f198142ca0f5f7b8) +--- + src/journal-remote/microhttpd-util.c | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/src/journal-remote/microhttpd-util.c b/src/journal-remote/microhttpd-util.c +index de9c6ab..a95fff1 100644 +--- a/src/journal-remote/microhttpd-util.c ++++ b/src/journal-remote/microhttpd-util.c +@@ -239,10 +239,14 @@ static int get_auth_dn(gnutls_x509_crt_t client_cert, char **buf) { + return 0; + } + ++static inline void gnutls_x509_crt_deinitp(gnutls_x509_crt_t *p) { ++ gnutls_x509_crt_deinit(*p); ++} ++ + int check_permissions(struct MHD_Connection *connection, int *code, char **hostname) { + const union MHD_ConnectionInfo *ci; + gnutls_session_t session; +- gnutls_x509_crt_t client_cert; ++ _cleanup_(gnutls_x509_crt_deinitp) gnutls_x509_crt_t client_cert = NULL; + _cleanup_free_ char *buf = NULL; + int r; + +-- +1.9.1 +
meta/recipes-core/systemd/systemd/0003-tmpfiles-Fix-parse_acl-error-message.patch new file +28 -0
@@ -0,0 +1,28 @@ +From ea960d3fc09c1e3745791d3433094678fd7ccd50 Mon Sep 17 00:00:00 2001 +From: Martin Pitt <[email protected]> +Date: Tue, 17 Feb 2015 12:47:51 +0100 +Subject: [PATCH 03/26] tmpfiles: Fix parse_acl error message + +parse_acl() returns the error instead of setting errno. + +(cherry picked from commit 484adfd914504cd7e95867cea20ca7af71b888f2) +--- + src/tmpfiles/tmpfiles.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c +index c948d4d..88ba7e4 100644 +--- a/src/tmpfiles/tmpfiles.c ++++ b/src/tmpfiles/tmpfiles.c +@@ -689,7 +689,7 @@ static int get_acls_from_arg(Item *item) { + * afterwards, so the mask can be added now if necessary. */ + r = parse_acl(item->argument, &item->acl_access, &item->acl_default, !item->force); + if (r < 0) +- log_warning_errno(errno, "Failed to parse ACL \"%s\": %m. Ignoring", ++ log_warning_errno(r, "Failed to parse ACL \"%s\": %m. Ignoring", + item->argument); + #else + log_warning_errno(ENOSYS, "ACLs are not supported. Ignoring"); +-- +1.9.1 +
meta/recipes-core/systemd/systemd/0004-test-utf8-fix-utf16-tests-on-BE-machines.patch new file +26 -0
@@ -0,0 +1,26 @@ +From 8df2bb91718bf2ccc89c41f0dd19cd0bc8da1357 Mon Sep 17 00:00:00 2001 +From: Tom Gundersen <[email protected]> +Date: Wed, 18 Feb 2015 14:33:50 +0100 +Subject: [PATCH 04/26] test: utf8 - fix utf16 tests on BE machines + +(cherry picked from commit 502184de0f95d3a124d4d4c77ae7a88747a0fac2) +--- + src/test/test-utf8.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/test/test-utf8.c b/src/test/test-utf8.c +index befa385..346f852 100644 +--- a/src/test/test-utf8.c ++++ b/src/test/test-utf8.c +@@ -95,7 +95,7 @@ static void test_utf8_escaping_printable(void) { + + static void test_utf16_to_utf8(void) { + char *a = NULL; +- const uint16_t utf16[] = { 'a', 0xd800, 'b', 0xdc00, 'c', 0xd801, 0xdc37 }; ++ const uint16_t utf16[] = { htole16('a'), htole16(0xd800), htole16('b'), htole16(0xdc00), htole16('c'), htole16(0xd801), htole16(0xdc37) }; + const char utf8[] = { 'a', 'b', 'c', 0xf0, 0x90, 0x90, 0xb7, 0 }; + + a = utf16_to_utf8(utf16, 14); +-- +1.9.1 +
meta/recipes-core/systemd/systemd/0005-tmpfiles-avoid-creating-duplicate-acl-entries.patch new file +131 -0
131 lines not on this page · raw message
meta/recipes-core/systemd/systemd/0006-shared-time-util-fix-gcc5-warning.patch new file +32 -0
@@ -0,0 +1,32 @@ +From 57da343cebcd77d168d5648825698e4edbb56d2c Mon Sep 17 00:00:00 2001 +From: Daniel Mack <[email protected]> +Date: Tue, 24 Feb 2015 13:26:09 +0100 +Subject: [PATCH 06/26] shared/time-util: fix gcc5 warning + + CC src/shared/libsystemd_shared_la-time-util.lo +src/shared/time-util.c: In function 'parse_nsec': +src/shared/time-util.c:789:25: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] + if (!*s != 0) + ^ + +(cherry picked from commit 8e8933ca0f06bae19cb6db601e83b33f8ac80f2a) +--- + src/shared/time-util.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/shared/time-util.c b/src/shared/time-util.c +index 947ac1f..1c36c57 100644 +--- a/src/shared/time-util.c ++++ b/src/shared/time-util.c +@@ -786,7 +786,7 @@ int parse_nsec(const char *t, nsec_t *nsec) { + s = startswith(p, "infinity"); + if (s) { + s += strspn(s, WHITESPACE); +- if (!*s != 0) ++ if (*s != 0) + return -EINVAL; + + *nsec = NSEC_INFINITY; +-- +1.9.1 +
meta/recipes-core/systemd/systemd/0007-test-time-test-infinity-parsing-in-nanoseconds.patch new file +36 -0
@@ -0,0 +1,36 @@ +From 5248b6bbaf09c74cd152257132cba9358549446a Mon Sep 17 00:00:00 2001 +From: Daniel Mack <[email protected]> +Date: Tue, 24 Feb 2015 13:27:10 +0100 +Subject: [PATCH 07/26] test-time: test "infinity" parsing in nanoseconds + +(cherry picked from commit fdd30a1530810b659345c565e97beef06b7af2fd) +--- + src/test/test-time.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/src/test/test-time.c b/src/test/test-time.c +index 8cfc4cc..3840fff 100644 +--- a/src/test/test-time.c ++++ b/src/test/test-time.c +@@ -78,12 +78,18 @@ static void test_parse_nsec(void) { + assert_se(u == 2); + assert_se(parse_nsec(".7", &u) >= 0); + assert_se(u == 0); ++ assert_se(parse_nsec("infinity", &u) >= 0); ++ assert_se(u == NSEC_INFINITY); ++ assert_se(parse_nsec(" infinity ", &u) >= 0); ++ assert_se(u == NSEC_INFINITY); + + assert_se(parse_nsec(" xyz ", &u) < 0); + assert_se(parse_nsec("", &u) < 0); + assert_se(parse_nsec(" . ", &u) < 0); + assert_se(parse_nsec(" 5. ", &u) < 0); + assert_se(parse_nsec(".s ", &u) < 0); ++ assert_se(parse_nsec(" infinity .7", &u) < 0); ++ assert_se(parse_nsec(".3 infinity", &u) < 0); + } + + static void test_format_timespan_one(usec_t x, usec_t accuracy) { +-- +1.9.1 +
meta/recipes-core/systemd/systemd/0008-bootchart-fix-default-init-path.patch new file +44 -0
44 lines not on this page · raw message
meta/recipes-core/systemd/systemd/0009-systemctl-bump-NOFILE-only-for-systemctl_main.patch new file +44 -0
44 lines not on this page · raw message
meta/recipes-core/systemd/systemd/0010-Make-root-s-home-directory-configurable.patch +37 -52
174 lines not on this page · raw message
meta/recipes-core/systemd/systemd/0010-acl-util-avoid-freeing-uninitialized-pointer.patch new file +37 -0
@@ -0,0 +1,37 @@ +From f17b6474aaca077482a68aedc1de9d654ab21bad Mon Sep 17 00:00:00 2001 +From: Thomas Hindoe Paaboel Andersen <[email protected]> +Date: Tue, 24 Feb 2015 20:40:07 +0100 +Subject: [PATCH 10/26] acl-util: avoid freeing uninitialized pointer + +CID#1271344/1271345 + +(cherry picked from commit 76dcbc4992e895a377aad26f8c4a0dcd71002396) +--- + src/shared/acl-util.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/shared/acl-util.c b/src/shared/acl-util.c +index cbe09d7..e67e9ac 100644 +--- a/src/shared/acl-util.c ++++ b/src/shared/acl-util.c +@@ -302,7 +302,7 @@ static int acl_entry_equal(acl_entry_t a, acl_entry_t b) { + /* can have only one of those */ + return true; + case ACL_USER: { +- _cleanup_(acl_free_uid_tpp) uid_t *uid_a, *uid_b; ++ _cleanup_(acl_free_uid_tpp) uid_t *uid_a = NULL, *uid_b = NULL; + + uid_a = acl_get_qualifier(a); + if (!uid_a) +@@ -315,7 +315,7 @@ static int acl_entry_equal(acl_entry_t a, acl_entry_t b) { + return *uid_a == *uid_b; + } + case ACL_GROUP: { +- _cleanup_(acl_free_gid_tpp) gid_t *gid_a, *gid_b; ++ _cleanup_(acl_free_gid_tpp) gid_t *gid_a = NULL, *gid_b = NULL; + + gid_a = acl_get_qualifier(a); + if (!gid_a) +-- +1.9.1 +
meta/recipes-core/systemd/systemd/0011-bootchart-svg-fix-checking-of-list-end.patch new file +28 -0
@@ -0,0 +1,28 @@ +From 668529dde3ecf35e24f39eaf3a3044099e4d5273 Mon Sep 17 00:00:00 2001 +From: Aaro Koskinen <[email protected]> +Date: Tue, 24 Feb 2015 18:32:31 +0200 +Subject: [PATCH 11/26] bootchart: svg: fix checking of list end + +If we have less samples than expected, systemd-bootchart will crash. + +(cherry picked from commit c1682f17a0c966988e865c649e565dae41abf32d) +--- + src/bootchart/svg.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/bootchart/svg.c b/src/bootchart/svg.c +index e111fa9..144177c 100644 +--- a/src/bootchart/svg.c ++++ b/src/bootchart/svg.c +@@ -1170,7 +1170,7 @@ static void svg_ps_bars(void) { + + ps->sample = ps->sample->next; + sample_hz = ps->sample; +- for (ii=0;((ii<(int)arg_hz/2)&&(ps->sample->next));ii++) ++ for (ii=0;((ii<(int)arg_hz/2)&&(sample_hz->next));ii++) + sample_hz = sample_hz->next; + + /* subtract bootchart cpu utilization from total */ +-- +1.9.1 +
meta/recipes-core/systemd/systemd/0012-systemd-add-getrandom-syscall-numbers-for-MIPS.patch new file +38 -0
@@ -0,0 +1,38 @@ +From 5b49f6072e901336680708267c3d48a54c5410ae Mon Sep 17 00:00:00 2001 +From: Aaro Koskinen <[email protected]> +Date: Mon, 23 Feb 2015 16:01:31 +0200 +Subject: [PATCH 12/26] systemd: add getrandom syscall numbers for MIPS + +Add getrandom syscall numbers for MIPS. Based on Linux 3.17 kernel +(commit 42944521af97a3b25516f15f3149aec3779656dc, "MIPS: Wire up new +syscalls getrandom and memfd_create"). + +(cherry picked from commit 3bec6d4690d2a7f08dc27b8221299c1db94978c4) +--- + src/shared/missing.h | 10 ++++++++++ + 1 file changed, 10 insertions(+) + +diff --git a/src/shared/missing.h b/src/shared/missing.h +index b33a70c..e72631e 100644 +--- a/src/shared/missing.h ++++ b/src/shared/missing.h +@@ -179,6 +179,16 @@ static inline int memfd_create(const char *name, unsigned int flags) { + # define __NR_getrandom 349 + # elif defined(__powerpc__) + # define __NR_getrandom 359 ++# elif defined _MIPS_SIM ++# if _MIPS_SIM == _MIPS_SIM_ABI32 ++# define __NR_getrandom 4353 ++# endif ++# if _MIPS_SIM == _MIPS_SIM_NABI32 ++# define __NR_getrandom 6317 ++# endif ++# if _MIPS_SIM == _MIPS_SIM_ABI64 ++# define __NR_getrandom 5313 ++# endif + # else + # warning "__NR_getrandom unknown for your architecture" + # define __NR_getrandom 0xffffffff +-- +1.9.1 +
meta/recipes-core/systemd/systemd/0013-unit-use-weaker-dependencies-between-mount-and-devic.patch new file +33 -0
@@ -0,0 +1,33 @@ +From fc9805756d5c0088a3a67705bbf6bea30d0d35e5 Mon Sep 17 00:00:00 2001 +From: Lennart Poettering <[email protected]> +Date: Wed, 25 Feb 2015 22:05:14 +0100 +Subject: [PATCH 13/26] unit: use weaker dependencies between mount and device + units in --user mode + +When running in user mode unmounting of mount units when a device +vanishes is unlikely to work, and even if it would work is already done +by PID 1 anyway. HEnce, when creating implicit dependencies between +mount units and their backing devices, created a Wants= type dependency +in --user mode, but leave a BindsTo= dependency in --system mode. + +(cherry picked from commit 5bd4b173605142c7be493aa4d958ebaef21f421d) +--- + src/core/unit.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/core/unit.c b/src/core/unit.c +index ee8e607..9f1e55e 100644 +--- a/src/core/unit.c ++++ b/src/core/unit.c +@@ -2845,7 +2845,7 @@ int unit_add_node_link(Unit *u, const char *what, bool wants) { + if (r < 0) + return r; + +- r = unit_add_two_dependencies(u, UNIT_AFTER, UNIT_BINDS_TO, device, true); ++ r = unit_add_two_dependencies(u, UNIT_AFTER, u->manager->running_as == SYSTEMD_SYSTEM ? UNIT_BINDS_TO : UNIT_WANTS, device, true); + if (r < 0) + return r; + +-- +1.9.1 +
meta/recipes-core/systemd/systemd/0014-unit-When-stopping-due-to-BindsTo-log-which-unit-cau.patch new file +43 -0
43 lines not on this page · raw message
meta/recipes-core/systemd/systemd/0015-sysctl-downgrade-message-about-sysctl-overrides-to-d.patch new file +30 -0
@@ -0,0 +1,30 @@ +From 2439dc6083d27271ee942559f0f73c99fa9e2b4e Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <[email protected]> +Date: Thu, 26 Feb 2015 19:00:11 -0500 +Subject: [PATCH 15/26] sysctl: downgrade message about sysctl overrides to + debug + +Printing it at info level was tedious. We don't do that for any other +overrides. + +(cherry picked from commit 7933e4266f8124e3fca71f67757abd44155fa1cb) +--- + src/sysctl/sysctl.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/sysctl/sysctl.c b/src/sysctl/sysctl.c +index 275a5b7..2415d84 100644 +--- a/src/sysctl/sysctl.c ++++ b/src/sysctl/sysctl.c +@@ -176,7 +176,7 @@ found: + if (streq(value, existing)) + continue; + +- log_info("Overwriting earlier assignment of %s in file '%s'.", p, path); ++ log_debug("Overwriting earlier assignment of %s in file '%s'.", p, path); + free(hashmap_remove(sysctl_options, p)); + free(v); + } +-- +1.9.1 +
meta/recipes-core/systemd/systemd/0016-sysctl-add-some-hints-how-to-override-settings.patch new file +39 -0
@@ -0,0 +1,39 @@ +From af6a96a36415400482ad504392ea93c6a0e2ed43 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <[email protected]> +Date: Thu, 26 Feb 2015 19:05:51 -0500 +Subject: [PATCH 16/26] sysctl: add some hints how to override settings + +Also a link to decent documentation for sysrq keys. It is surprising +hard to find. + +https://lists.fedoraproject.org/pipermail/devel/2015-February/208412.html +(cherry picked from commit 16b65d7f463e91f6299dfa7b83d4b5fbeb109d1c) +--- + sysctl.d/50-default.conf | 9 ++++++++- + 1 file changed, 8 insertions(+), 1 deletion(-) + +diff --git a/sysctl.d/50-default.conf b/sysctl.d/50-default.conf +index f189233..def151b 100644 +--- a/sysctl.d/50-default.conf ++++ b/sysctl.d/50-default.conf +@@ -5,9 +5,16 @@ + # the Free Software Foundation; either version 2.1 of the License, or + # (at your option) any later version. + +-# See sysctl.d(5) and core(5) for for details. ++# See sysctl.d(5) and core(5) for for documentation. ++ ++# To override settings in this file, create a local file in /etc ++# (e.g. /etc/sysctl.d/90-override.conf), and put any assignments ++# there. + + # System Request functionality of the kernel (SYNC) ++# ++# Use kernel.sysrq = 1 to allow all keys. ++# See http://fedoraproject.org/wiki/QA/Sysrq for a list of values and keys. + kernel.sysrq = 16 + + # Append the PID to the core filename +-- +1.9.1 +
meta/recipes-core/systemd/systemd/0017-core-rework-device-state-logic.patch new file +912 -0
912 lines not on this page · raw message
meta/recipes-core/systemd/systemd/0018-core-fix-return-value-on-OOM.patch new file +26 -0
@@ -0,0 +1,26 @@ +From 3d3a67138c63b47f2a5723577f886bc3c7995748 Mon Sep 17 00:00:00 2001 +From: Thomas Hindoe Paaboel Andersen <[email protected]> +Date: Sat, 28 Feb 2015 23:39:55 +0100 +Subject: [PATCH 18/26] core: fix return value on OOM + +(cherry picked from commit c43b2132f37264600cc26e07c8d85dfdd6c969f0) +--- + src/core/device.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/core/device.c b/src/core/device.c +index 75b9a46..1cc103c 100644 +--- a/src/core/device.c ++++ b/src/core/device.c +@@ -211,6 +211,8 @@ static int device_update_description(Unit *u, struct udev_device *dev, const cha + j = strjoin(model, " ", label, NULL); + if (j) + r = unit_set_description(u, j); ++ else ++ r = -ENOMEM; + } else + r = unit_set_description(u, model); + } else +-- +1.9.1 +
meta/recipes-core/systemd/systemd/0019-machined-use-x-machine-unix-prefix-for-the-container.patch new file +33 -0
@@ -0,0 +1,33 @@ +From 9a46fe3127eea552cd76d4b549f8d8ba70ea01b3 Mon Sep 17 00:00:00 2001 +From: Benjamin Franzke <[email protected]> +Date: Thu, 19 Feb 2015 20:47:28 +0100 +Subject: [PATCH 19/26] machined: use x-machine-unix prefix for the container + bus on dbus1 + +This fixes "machinectl login" on systems configured with --disable-kdbus. + +The error was: +machinectl login foo +Failed to get machine PTY: Input/output error + +(cherry picked from commit f2273101c21bc59a390379e182e53cd4f07a7e71) +--- + src/machine/machine-dbus.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/machine/machine-dbus.c b/src/machine/machine-dbus.c +index b46f0a8..b0f0f66 100644 +--- a/src/machine/machine-dbus.c ++++ b/src/machine/machine-dbus.c +@@ -477,7 +477,7 @@ int bus_machine_method_open_login(sd_bus *bus, sd_bus_message *message, void *us + #ifdef ENABLE_KDBUS + asprintf(&container_bus->address, "x-machine-kernel:pid=" PID_FMT ";x-machine-unix:pid=" PID_FMT, m->leader, m->leader); + #else +- asprintf(&container_bus->address, "x-machine-kernel:pid=" PID_FMT, m->leader); ++ asprintf(&container_bus->address, "x-machine-unix:pid=" PID_FMT, m->leader); + #endif + if (!container_bus->address) + return -ENOMEM; +-- +1.9.1 +
meta/recipes-core/systemd/systemd/0020-shared-AFS-is-also-a-network-filesystem.patch new file +25 -0
@@ -0,0 +1,25 @@ +From 3c350019fe9e4be16bf110988c324cfa3a21c61b Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= <[email protected]> +Date: Fri, 20 Feb 2015 15:35:11 -0300 +Subject: [PATCH 20/26] shared: AFS is also a network filesystem + +(cherry picked from commit ba89821c104d959082aad6f3f0e05a8afd575023) +--- + src/shared/util.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/shared/util.c b/src/shared/util.c +index ba035ca..f24b5b4 100644 +--- a/src/shared/util.c ++++ b/src/shared/util.c +@@ -1689,6 +1689,7 @@ bool chars_intersect(const char *a, const char *b) { + + bool fstype_is_network(const char *fstype) { + static const char table[] = ++ "afs\0" + "cifs\0" + "smbfs\0" + "sshfs\0" +-- +1.9.1 +
meta/recipes-core/systemd/systemd/0021-core-downgrade-unit-type-not-supported-message.patch new file +31 -0
@@ -0,0 +1,31 @@ +From 4e2d4dd757c6faa4d5a471c10cf6f45978524845 Mon Sep 17 00:00:00 2001 +From: Umut Tezduyar Lindskog <[email protected]> +Date: Fri, 20 Feb 2015 10:53:28 +0100 +Subject: [PATCH 21/26] core: downgrade unit type not supported message + +Otherwise every daemon reload prints out warnings like: + +systemd[1]: Unit type .busname is not supported on this system. +systemd[1]: Unit type .swap is not supported on this system. + +(cherry picked from commit 03afec3c9aa849ba13161c253b129b834298fd40) +--- + src/core/manager.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/core/manager.c b/src/core/manager.c +index 4775219..bc9b7ec 100644 +--- a/src/core/manager.c ++++ b/src/core/manager.c +@@ -961,7 +961,7 @@ int manager_enumerate(Manager *m) { + int q; + + if (unit_vtable[c]->supported && !unit_vtable[c]->supported(m)) { +- log_info("Unit type .%s is not supported on this system.", unit_type_to_string(c)); ++ log_debug("Unit type .%s is not supported on this system.", unit_type_to_string(c)); + continue; + } + +-- +1.9.1 +
meta/recipes-core/systemd/systemd/0022-journal-remote-fix-saving-of-binary-fields.patch new file +97 -0
97 lines not on this page · raw message
meta/recipes-core/systemd/systemd/0023-journal-fix-Inappropriate-ioctl-for-device-on-ext4.patch new file +37 -0
@@ -0,0 +1,37 @@ +From 983c520982b548c9bb8f2689a93f2fb35c54c392 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= <[email protected]> +Date: Sun, 1 Mar 2015 21:13:10 -0300 +Subject: [PATCH 23/26] journal: fix Inappropriate ioctl for device on ext4 + +Logs constantly show + +systemd-journald[395]: Failed to set file attributes: Inappropriate ioctl for device + +This is because ext4 does not support FS_NOCOW_FL. + +[zj: fold into one conditional as suggested on the ML and + fix (preexisting) r/errno confusion in error message.] + +(cherry picked from commit 65eae3b76243d2dfd869f8c43b787575f7b4b994) +--- + src/journal/journal-file.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c +index 2845e05..0f28718 100644 +--- a/src/journal/journal-file.c ++++ b/src/journal/journal-file.c +@@ -2611,8 +2611,8 @@ int journal_file_open( + * shouldn't be too bad, given that we do our own + * checksumming). */ + r = chattr_fd(f->fd, true, FS_NOCOW_FL); +- if (r < 0) +- log_warning_errno(errno, "Failed to set file attributes: %m"); ++ if (r < 0 && r != -ENOTTY) ++ log_warning_errno(r, "Failed to set file attributes: %m"); + + /* Let's attach the creation time to the journal file, + * so that the vacuuming code knows the age of this +-- +1.9.1 +
meta/recipes-core/systemd/systemd/0024-sd-daemon-replace-VLA-with-alloca-to-make-llvm-happy.patch new file +53 -0
53 lines not on this page · raw message
meta/recipes-core/systemd/systemd/0025-tmpfiles-quietly-ignore-ACLs-on-unsupported-filesyst.patch new file +84 -0
84 lines not on this page · raw message
meta/recipes-core/systemd/systemd/0026-shared-util-assume-ac-when-sys-class-power_supply-is.patch new file +30 -0
@@ -0,0 +1,30 @@ +From 0436d5c5f4b39ba8177437fa92f082f8ef1830fb Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <[email protected]> +Date: Tue, 3 Mar 2015 19:07:28 -0500 +Subject: [PATCH 26/26] shared/util: assume ac when /sys/class/power_supply is + missing + +On s390 (at least) /sys/class/power_supply is not present. We should +treat this like if this directory was empty, and not an error. + +(cherry picked from commit 6d89003462484c8656b698e07b9cf0a337e3818e) +--- + src/shared/util.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/shared/util.c b/src/shared/util.c +index f24b5b4..8548723 100644 +--- a/src/shared/util.c ++++ b/src/shared/util.c +@@ -5994,7 +5994,7 @@ int on_ac_power(void) { + + d = opendir("/sys/class/power_supply"); + if (!d) +- return -errno; ++ return errno == ENOENT ? true : -errno; + + for (;;) { + struct dirent *de; +-- +1.9.1 +
meta/recipes-core/systemd/systemd_219.bb +30 -0
@@ -49,6 +49,36 @@ SRC_URI = "git://anongit.freedesktop.org/systemd/systemd;branch=master;protocol= S = "${WORKDIR}/git" +# Appending backport fixes released for version 219-stable +SRC_URI_append = "\ + file://0001-journal-remote-fix-certificate-status-memory-leak.patch \ + file://0002-journal-remote-fix-client_cert-memory-leak.patch \ + file://0003-tmpfiles-Fix-parse_acl-error-message.patch \ + file://0004-test-utf8-fix-utf16-tests-on-BE-machines.patch \ + file://0005-tmpfiles-avoid-creating-duplicate-acl-entries.patch \ + file://0006-shared-time-util-fix-gcc5-warning.patch \ + file://0007-test-time-test-infinity-parsing-in-nanoseconds.patch \ + file://0008-bootchart-fix-default-init-path.patch \ + file://0009-systemctl-bump-NOFILE-only-for-systemctl_main.patch \ + file://0010-acl-util-avoid-freeing-uninitialized-pointer.patch \ + file://0011-bootchart-svg-fix-checking-of-list-end.patch \ + file://0012-systemd-add-getrandom-syscall-numbers-for-MIPS.patch \ + file://0013-unit-use-weaker-dependencies-between-mount-and-devic.patch \ + file://0014-unit-When-stopping-due-to-BindsTo-log-which-unit-cau.patch \ + file://0015-sysctl-downgrade-message-about-sysctl-overrides-to-d.patch \ + file://0016-sysctl-add-some-hints-how-to-override-settings.patch \ + file://0017-core-rework-device-state-logic.patch \ + file://0018-core-fix-return-value-on-OOM.patch \ + file://0019-machined-use-x-machine-unix-prefix-for-the-container.patch \ + file://0020-shared-AFS-is-also-a-network-filesystem.patch \ + file://0021-core-downgrade-unit-type-not-supported-message.patch \ + file://0022-journal-remote-fix-saving-of-binary-fields.patch \ + file://0023-journal-fix-Inappropriate-ioctl-for-device-on-ext4.patch \ + file://0024-sd-daemon-replace-VLA-with-alloca-to-make-llvm-happy.patch \ + file://0025-tmpfiles-quietly-ignore-ACLs-on-unsupported-filesyst.patch \ + file://0026-shared-util-assume-ac-when-sys-class-power_supply-is.patch \ + " + SRC_URI_append_libc-uclibc = "\ file://0001-units-Prefer-getty-to-agetty-in-console-setup-system.patch \ "
Signature · 1 line
1.9.1
Ping
Quoted 116 lines · Bruno Bottazzini
Differences from v1:
dbus: Adding change that Andreas Oberritter recommended. -Setting RRECOMMENDS_${PN}_class-native instead RPROVIDES
dbus-native-tools-native.systemd: Adding change that Anders Darander and Khem Raj recommended -Modifying PACKAGECONFIG as requested to use it with bbutils.
systemd: Adding change that Khem Raj requested:
-Porting patches that was used on the release of the 219 stable version
instead of changing the repository.-------------------------------------------------------------------------------
In this patchset we include the following:1- dbus: split tools package
Most tools are not required if one is launching a simple daemon. So, we split it into two packages dbus and dbus-tools which the user will be able to exclude it from the image if he wants to.2- systemd: verify if files test-udev and systemd-journal-flush exists
If the user put --disable-tests onEXTRA_OECONFfor systemd, some files will not be created and systemddo_installphase
will fail.
This patch will give this flexibility for the user3- systemd: split modules into packages
Since systemd repo grows with more and more tools, the recipe will provide a customizable layer and he will be able to choose what he wants to ship to the final image.
He will be able to save space and exclude unwanted packages from the final image.4- systemd: add patches from systemd 219 - stable
Adding patches that fix bugs for 219 version.
This will get the same consistency of the stable systemd 219 version.Bruno Bottazzini (3):
systemd: verify if files test-udev and systemd-journal-flush exists
systemd: split modules into packages
systemd: v219 with stable fixesGustavo Sverzut Barbieri (1):
dbus: split tools package.Bruno Bottazzini (3):
systemd: verify if files test-udev and systemd-journal-flush exists
systemd: split modules into packages
systemd: v219 with stable fixesGustavo Sverzut Barbieri (1):
dbus: split tools package.meta/recipes-core/dbus/dbus.inc | 9 +- ...remote-fix-certificate-status-memory-leak.patch | 31 + ...ournal-remote-fix-client_cert-memory-leak.patch | 35 + ...0003-tmpfiles-Fix-parse_acl-error-message.patch | 28 + ...-test-utf8-fix-utf16-tests-on-BE-machines.patch | 26 + ...iles-avoid-creating-duplicate-acl-entries.patch | 131 +++ .../0006-shared-time-util-fix-gcc5-warning.patch | 32 + ...time-test-infinity-parsing-in-nanoseconds.patch | 36 + .../0008-bootchart-fix-default-init-path.patch | 44 + ...emctl-bump-NOFILE-only-for-systemctl_main.patch | 44 + ...0-Make-root-s-home-directory-configurable.patch | 89 +- ...-util-avoid-freeing-uninitialized-pointer.patch | 37 + ...11-bootchart-svg-fix-checking-of-list-end.patch | 28 + ...md-add-getrandom-syscall-numbers-for-MIPS.patch | 38 + ...aker-dependencies-between-mount-and-devic.patch | 33 + ...topping-due-to-BindsTo-log-which-unit-cau.patch | 43 + ...grade-message-about-sysctl-overrides-to-d.patch | 30 + ...l-add-some-hints-how-to-override-settings.patch | 39 + .../0017-core-rework-device-state-logic.patch | 912 ++++++++++++++++ .../0018-core-fix-return-value-on-OOM.patch | 26 + ...e-x-machine-unix-prefix-for-the-container.patch | 33 + ...0-shared-AFS-is-also-a-network-filesystem.patch | 25 + ...downgrade-unit-type-not-supported-message.patch | 31 + ...ournal-remote-fix-saving-of-binary-fields.patch | 97 ++ ...ix-Inappropriate-ioctl-for-device-on-ext4.patch | 37 + ...eplace-VLA-with-alloca-to-make-llvm-happy.patch | 53 + ...ietly-ignore-ACLs-on-unsupported-filesyst.patch | 84 ++ ...-assume-ac-when-sys-class-power_supply-is.patch | 30 + meta/recipes-core/systemd/systemd_219.bb | 1111 +++++++++++++++++--- 29 files changed, 3006 insertions(+), 186 deletions(-) create mode 100644 meta/recipes-core/systemd/systemd/0001-journal-remote-fix-certificate-status-memory-leak.patch create mode 100644 meta/recipes-core/systemd/systemd/0002-journal-remote-fix-client_cert-memory-leak.patch create mode 100644 meta/recipes-core/systemd/systemd/0003-tmpfiles-Fix-parse_acl-error-message.patch create mode 100644 meta/recipes-core/systemd/systemd/0004-test-utf8-fix-utf16-tests-on-BE-machines.patch create mode 100644 meta/recipes-core/systemd/systemd/0005-tmpfiles-avoid-creating-duplicate-acl-entries.patch create mode 100644 meta/recipes-core/systemd/systemd/0006-shared-time-util-fix-gcc5-warning.patch create mode 100644 meta/recipes-core/systemd/systemd/0007-test-time-test-infinity-parsing-in-nanoseconds.patch create mode 100644 meta/recipes-core/systemd/systemd/0008-bootchart-fix-default-init-path.patch create mode 100644 meta/recipes-core/systemd/systemd/0009-systemctl-bump-NOFILE-only-for-systemctl_main.patch create mode 100644 meta/recipes-core/systemd/systemd/0010-acl-util-avoid-freeing-uninitialized-pointer.patch create mode 100644 meta/recipes-core/systemd/systemd/0011-bootchart-svg-fix-checking-of-list-end.patch create mode 100644 meta/recipes-core/systemd/systemd/0012-systemd-add-getrandom-syscall-numbers-for-MIPS.patch create mode 100644 meta/recipes-core/systemd/systemd/0013-unit-use-weaker-dependencies-between-mount-and-devic.patch create mode 100644 meta/recipes-core/systemd/systemd/0014-unit-When-stopping-due-to-BindsTo-log-which-unit-cau.patch create mode 100644 meta/recipes-core/systemd/systemd/0015-sysctl-downgrade-message-about-sysctl-overrides-to-d.patch create mode 100644 meta/recipes-core/systemd/systemd/0016-sysctl-add-some-hints-how-to-override-settings.patch create mode 100644 meta/recipes-core/systemd/systemd/0017-core-rework-device-state-logic.patch create mode 100644 meta/recipes-core/systemd/systemd/0018-core-fix-return-value-on-OOM.patch create mode 100644 meta/recipes-core/systemd/systemd/0019-machined-use-x-machine-unix-prefix-for-the-container.patch create mode 100644 meta/recipes-core/systemd/systemd/0020-shared-AFS-is-also-a-network-filesystem.patch create mode 100644 meta/recipes-core/systemd/systemd/0021-core-downgrade-unit-type-not-supported-message.patch create mode 100644 meta/recipes-core/systemd/systemd/0022-journal-remote-fix-saving-of-binary-fields.patch create mode 100644 meta/recipes-core/systemd/systemd/0023-journal-fix-Inappropriate-ioctl-for-device-on-ext4.patch create mode 100644 meta/recipes-core/systemd/systemd/0024-sd-daemon-replace-VLA-with-alloca-to-make-llvm-happy.patch create mode 100644 meta/recipes-core/systemd/systemd/0025-tmpfiles-quietly-ignore-ACLs-on-unsupported-filesyst.patch create mode 100644 meta/recipes-core/systemd/systemd/0026-shared-util-assume-ac-when-sys-class-power_supply-is.patchSignature · 1 line
1.9.1
Could you guys look at this patch ?
Quoted 121 lines · Bruno
Ping
Quoted 116 lines · Bruno Bottazzini
Differences from v1:
dbus: Adding change that Andreas Oberritter recommended. -Setting RRECOMMENDS_${PN}_class-native instead RPROVIDES
dbus-native-tools-native.systemd: Adding change that Anders Darander and Khem Raj recommended -Modifying PACKAGECONFIG as requested to use it with bbutils.
systemd: Adding change that Khem Raj requested:
-Porting patches that was used on the release of the 219 stable version
instead of changing the repository.-------------------------------------------------------------------------------
In this patchset we include the following:1- dbus: split tools package
Most tools are not required if one is launching a simple daemon. So, we split it into two packages dbus and dbus-tools which the user will be able to exclude it from the image if he wants to.2- systemd: verify if files test-udev and systemd-journal-flush exists
If the user put --disable-tests onEXTRA_OECONFfor systemd, some files will not be created and systemddo_installphase
will fail.
This patch will give this flexibility for the user3- systemd: split modules into packages
Since systemd repo grows with more and more tools, the recipe will provide a customizable layer and he will be able to choose what he wants to ship to the final image.
He will be able to save space and exclude unwanted packages from the final image.4- systemd: add patches from systemd 219 - stable
Adding patches that fix bugs for 219 version.
This will get the same consistency of the stable systemd 219 version.Bruno Bottazzini (3):
systemd: verify if files test-udev and systemd-journal-flush exists
systemd: split modules into packages
systemd: v219 with stable fixesGustavo Sverzut Barbieri (1):
dbus: split tools package.Bruno Bottazzini (3):
systemd: verify if files test-udev and systemd-journal-flush exists
systemd: split modules into packages
systemd: v219 with stable fixesGustavo Sverzut Barbieri (1):
dbus: split tools package.meta/recipes-core/dbus/dbus.inc | 9 +- ...remote-fix-certificate-status-memory-leak.patch | 31 + ...ournal-remote-fix-client_cert-memory-leak.patch | 35 + ...0003-tmpfiles-Fix-parse_acl-error-message.patch | 28 + ...-test-utf8-fix-utf16-tests-on-BE-machines.patch | 26 + ...iles-avoid-creating-duplicate-acl-entries.patch | 131 +++ .../0006-shared-time-util-fix-gcc5-warning.patch | 32 + ...time-test-infinity-parsing-in-nanoseconds.patch | 36 + .../0008-bootchart-fix-default-init-path.patch | 44 + ...emctl-bump-NOFILE-only-for-systemctl_main.patch | 44 + ...0-Make-root-s-home-directory-configurable.patch | 89 +- ...-util-avoid-freeing-uninitialized-pointer.patch | 37 + ...11-bootchart-svg-fix-checking-of-list-end.patch | 28 + ...md-add-getrandom-syscall-numbers-for-MIPS.patch | 38 + ...aker-dependencies-between-mount-and-devic.patch | 33 + ...topping-due-to-BindsTo-log-which-unit-cau.patch | 43 + ...grade-message-about-sysctl-overrides-to-d.patch | 30 + ...l-add-some-hints-how-to-override-settings.patch | 39 + .../0017-core-rework-device-state-logic.patch | 912 ++++++++++++++++ .../0018-core-fix-return-value-on-OOM.patch | 26 + ...e-x-machine-unix-prefix-for-the-container.patch | 33 + ...0-shared-AFS-is-also-a-network-filesystem.patch | 25 + ...downgrade-unit-type-not-supported-message.patch | 31 + ...ournal-remote-fix-saving-of-binary-fields.patch | 97 ++ ...ix-Inappropriate-ioctl-for-device-on-ext4.patch | 37 + ...eplace-VLA-with-alloca-to-make-llvm-happy.patch | 53 + ...ietly-ignore-ACLs-on-unsupported-filesyst.patch | 84 ++ ...-assume-ac-when-sys-class-power_supply-is.patch | 30 + meta/recipes-core/systemd/systemd_219.bb | 1111 +++++++++++++++++--- 29 files changed, 3006 insertions(+), 186 deletions(-) create mode 100644 meta/recipes-core/systemd/systemd/0001-journal-remote-fix-certificate-status-memory-leak.patch create mode 100644 meta/recipes-core/systemd/systemd/0002-journal-remote-fix-client_cert-memory-leak.patch create mode 100644 meta/recipes-core/systemd/systemd/0003-tmpfiles-Fix-parse_acl-error-message.patch create mode 100644 meta/recipes-core/systemd/systemd/0004-test-utf8-fix-utf16-tests-on-BE-machines.patch create mode 100644 meta/recipes-core/systemd/systemd/0005-tmpfiles-avoid-creating-duplicate-acl-entries.patch create mode 100644 meta/recipes-core/systemd/systemd/0006-shared-time-util-fix-gcc5-warning.patch create mode 100644 meta/recipes-core/systemd/systemd/0007-test-time-test-infinity-parsing-in-nanoseconds.patch create mode 100644 meta/recipes-core/systemd/systemd/0008-bootchart-fix-default-init-path.patch create mode 100644 meta/recipes-core/systemd/systemd/0009-systemctl-bump-NOFILE-only-for-systemctl_main.patch create mode 100644 meta/recipes-core/systemd/systemd/0010-acl-util-avoid-freeing-uninitialized-pointer.patch create mode 100644 meta/recipes-core/systemd/systemd/0011-bootchart-svg-fix-checking-of-list-end.patch create mode 100644 meta/recipes-core/systemd/systemd/0012-systemd-add-getrandom-syscall-numbers-for-MIPS.patch create mode 100644 meta/recipes-core/systemd/systemd/0013-unit-use-weaker-dependencies-between-mount-and-devic.patch create mode 100644 meta/recipes-core/systemd/systemd/0014-unit-When-stopping-due-to-BindsTo-log-which-unit-cau.patch create mode 100644 meta/recipes-core/systemd/systemd/0015-sysctl-downgrade-message-about-sysctl-overrides-to-d.patch create mode 100644 meta/recipes-core/systemd/systemd/0016-sysctl-add-some-hints-how-to-override-settings.patch create mode 100644 meta/recipes-core/systemd/systemd/0017-core-rework-device-state-logic.patch create mode 100644 meta/recipes-core/systemd/systemd/0018-core-fix-return-value-on-OOM.patch create mode 100644 meta/recipes-core/systemd/systemd/0019-machined-use-x-machine-unix-prefix-for-the-container.patch create mode 100644 meta/recipes-core/systemd/systemd/0020-shared-AFS-is-also-a-network-filesystem.patch create mode 100644 meta/recipes-core/systemd/systemd/0021-core-downgrade-unit-type-not-supported-message.patch create mode 100644 meta/recipes-core/systemd/systemd/0022-journal-remote-fix-saving-of-binary-fields.patch create mode 100644 meta/recipes-core/systemd/systemd/0023-journal-fix-Inappropriate-ioctl-for-device-on-ext4.patch create mode 100644 meta/recipes-core/systemd/systemd/0024-sd-daemon-replace-VLA-with-alloca-to-make-llvm-happy.patch create mode 100644 meta/recipes-core/systemd/systemd/0025-tmpfiles-quietly-ignore-ACLs-on-unsupported-filesyst.patch create mode 100644 meta/recipes-core/systemd/systemd/0026-shared-util-assume-ac-when-sys-class-power_supply-is.patchSignature · 1 line
1.9.1
Quoted 2 lines · Bruno
Could you guys look at this patch ?
I would hold off this until after 1.8 and consider this for master and backport immediately for 1.8.1 release.
Quoted 129 lines · Bruno
Quoted 116 lines
Ping
Quoted 113 lines · Bruno Bottazzini
Differences from v1:
dbus: Adding change that Andreas Oberritter recommended. -Setting RRECOMMENDS_${PN}_class-native instead RPROVIDES
dbus-native-tools-native.systemd: Adding change that Anders Darander and Khem Raj recommended -Modifying PACKAGECONFIG as requested to use it with bbutils.
systemd: Adding change that Khem Raj requested:
-Porting patches that was used on the release of the 219 stable version
instead of changing the repository.-------------------------------------------------------------------------------
In this patchset we include the following:1- dbus: split tools package
Most tools are not required if one is launching a simple daemon. So, we split it into two packages dbus and dbus-tools which the user will be able to exclude it from the image if he wants to.2- systemd: verify if files test-udev and systemd-journal-flush exists
If the user put --disable-tests onEXTRA_OECONFfor systemd, some files will not be created and systemddo_installphase
will fail.
This patch will give this flexibility for the user3- systemd: split modules into packages
Since systemd repo grows with more and more tools, the recipe will provide a customizable layer and he will be able to choose what he wants to ship to the final image.
He will be able to save space and exclude unwanted packages from the final image.4- systemd: add patches from systemd 219 - stable
Adding patches that fix bugs for 219 version.
This will get the same consistency of the stable systemd 219 version.Bruno Bottazzini (3):
systemd: verify if files test-udev and systemd-journal-flush exists
systemd: split modules into packages
systemd: v219 with stable fixesGustavo Sverzut Barbieri (1):
dbus: split tools package.Bruno Bottazzini (3):
systemd: verify if files test-udev and systemd-journal-flush exists
systemd: split modules into packages
systemd: v219 with stable fixesGustavo Sverzut Barbieri (1):
dbus: split tools package.meta/recipes-core/dbus/dbus.inc | 9 +- ...remote-fix-certificate-status-memory-leak.patch | 31 + ...ournal-remote-fix-client_cert-memory-leak.patch | 35 + ...0003-tmpfiles-Fix-parse_acl-error-message.patch | 28 + ...-test-utf8-fix-utf16-tests-on-BE-machines.patch | 26 + ...iles-avoid-creating-duplicate-acl-entries.patch | 131 +++ .../0006-shared-time-util-fix-gcc5-warning.patch | 32 + ...time-test-infinity-parsing-in-nanoseconds.patch | 36 + .../0008-bootchart-fix-default-init-path.patch | 44 + ...emctl-bump-NOFILE-only-for-systemctl_main.patch | 44 + ...0-Make-root-s-home-directory-configurable.patch | 89 +- ...-util-avoid-freeing-uninitialized-pointer.patch | 37 + ...11-bootchart-svg-fix-checking-of-list-end.patch | 28 + ...md-add-getrandom-syscall-numbers-for-MIPS.patch | 38 + ...aker-dependencies-between-mount-and-devic.patch | 33 + ...topping-due-to-BindsTo-log-which-unit-cau.patch | 43 + ...grade-message-about-sysctl-overrides-to-d.patch | 30 + ...l-add-some-hints-how-to-override-settings.patch | 39 + .../0017-core-rework-device-state-logic.patch | 912 ++++++++++++++++ .../0018-core-fix-return-value-on-OOM.patch | 26 + ...e-x-machine-unix-prefix-for-the-container.patch | 33 + ...0-shared-AFS-is-also-a-network-filesystem.patch | 25 + ...downgrade-unit-type-not-supported-message.patch | 31 + ...ournal-remote-fix-saving-of-binary-fields.patch | 97 ++ ...ix-Inappropriate-ioctl-for-device-on-ext4.patch | 37 + ...eplace-VLA-with-alloca-to-make-llvm-happy.patch | 53 + ...ietly-ignore-ACLs-on-unsupported-filesyst.patch | 84 ++ ...-assume-ac-when-sys-class-power_supply-is.patch | 30 + meta/recipes-core/systemd/systemd_219.bb | 1111 +++++++++++++++++--- 29 files changed, 3006 insertions(+), 186 deletions(-) create mode 100644 meta/recipes-core/systemd/systemd/0001-journal-remote-fix-certificate-status-memory-leak.patch create mode 100644 meta/recipes-core/systemd/systemd/0002-journal-remote-fix-client_cert-memory-leak.patch create mode 100644 meta/recipes-core/systemd/systemd/0003-tmpfiles-Fix-parse_acl-error-message.patch create mode 100644 meta/recipes-core/systemd/systemd/0004-test-utf8-fix-utf16-tests-on-BE-machines.patch create mode 100644 meta/recipes-core/systemd/systemd/0005-tmpfiles-avoid-creating-duplicate-acl-entries.patch create mode 100644 meta/recipes-core/systemd/systemd/0006-shared-time-util-fix-gcc5-warning.patch create mode 100644 meta/recipes-core/systemd/systemd/0007-test-time-test-infinity-parsing-in-nanoseconds.patch create mode 100644 meta/recipes-core/systemd/systemd/0008-bootchart-fix-default-init-path.patch create mode 100644 meta/recipes-core/systemd/systemd/0009-systemctl-bump-NOFILE-only-for-systemctl_main.patch create mode 100644 meta/recipes-core/systemd/systemd/0010-acl-util-avoid-freeing-uninitialized-pointer.patch create mode 100644 meta/recipes-core/systemd/systemd/0011-bootchart-svg-fix-checking-of-list-end.patch create mode 100644 meta/recipes-core/systemd/systemd/0012-systemd-add-getrandom-syscall-numbers-for-MIPS.patch create mode 100644 meta/recipes-core/systemd/systemd/0013-unit-use-weaker-dependencies-between-mount-and-devic.patch create mode 100644 meta/recipes-core/systemd/systemd/0014-unit-When-stopping-due-to-BindsTo-log-which-unit-cau.patch create mode 100644 meta/recipes-core/systemd/systemd/0015-sysctl-downgrade-message-about-sysctl-overrides-to-d.patch create mode 100644 meta/recipes-core/systemd/systemd/0016-sysctl-add-some-hints-how-to-override-settings.patch create mode 100644 meta/recipes-core/systemd/systemd/0017-core-rework-device-state-logic.patch create mode 100644 meta/recipes-core/systemd/systemd/0018-core-fix-return-value-on-OOM.patch create mode 100644 meta/recipes-core/systemd/systemd/0019-machined-use-x-machine-unix-prefix-for-the-container.patch create mode 100644 meta/recipes-core/systemd/systemd/0020-shared-AFS-is-also-a-network-filesystem.patch create mode 100644 meta/recipes-core/systemd/systemd/0021-core-downgrade-unit-type-not-supported-message.patch create mode 100644 meta/recipes-core/systemd/systemd/0022-journal-remote-fix-saving-of-binary-fields.patch create mode 100644 meta/recipes-core/systemd/systemd/0023-journal-fix-Inappropriate-ioctl-for-device-on-ext4.patch create mode 100644 meta/recipes-core/systemd/systemd/0024-sd-daemon-replace-VLA-with-alloca-to-make-llvm-happy.patch create mode 100644 meta/recipes-core/systemd/systemd/0025-tmpfiles-quietly-ignore-ACLs-on-unsupported-filesyst.patch create mode 100644 meta/recipes-core/systemd/systemd/0026-shared-util-assume-ac-when-sys-class-power_supply-is.patchQuoted 5 lines
Quoted 3 lines
--
1.9.1--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 7 lines · Khem Raj
Quoted 2 lines · Bruno
Could you guys look at this patch ?
I would hold off this until after 1.8 and consider this for master and backport immediately for 1.8.1 release.
Sorry, I didn't get why we can't consider this patchset to be included into master now.
I mean, if there is something to be changed I will be glad to change it until we merge them into master.
Is there any special reason ?
Thanks for answering.
Best Regards,
Bruno Bottazzini
Quoted 130 lines
Quoted 130 lines · Bruno
Quoted 116 lines
Ping
Quoted 113 lines · Bruno Bottazzini
Differences from v1:
dbus: Adding change that Andreas Oberritter recommended. -Setting RRECOMMENDS_${PN}_class-native instead RPROVIDES
dbus-native-tools-native.systemd: Adding change that Anders Darander and Khem Raj recommended -Modifying PACKAGECONFIG as requested to use it with bbutils.
systemd: Adding change that Khem Raj requested:
-Porting patches that was used on the release of the 219 stable version
instead of changing the repository.-------------------------------------------------------------------------------
In this patchset we include the following:1- dbus: split tools package
Most tools are not required if one is launching a simple daemon. So, we split it into two packages dbus and dbus-tools which the user will be able to exclude it from the image if he wants to.2- systemd: verify if files test-udev and systemd-journal-flush exists
If the user put --disable-tests onEXTRA_OECONFfor systemd, some files will not be created and systemddo_installphase
will fail.
This patch will give this flexibility for the user3- systemd: split modules into packages
Since systemd repo grows with more and more tools, the recipe will provide a customizable layer and he will be able to choose what he wants to ship to the final image.
He will be able to save space and exclude unwanted packages from the final image.4- systemd: add patches from systemd 219 - stable
Adding patches that fix bugs for 219 version.
This will get the same consistency of the stable systemd 219 version.Bruno Bottazzini (3):
systemd: verify if files test-udev and systemd-journal-flush exists
systemd: split modules into packages
systemd: v219 with stable fixesGustavo Sverzut Barbieri (1):
dbus: split tools package.Bruno Bottazzini (3):
systemd: verify if files test-udev and systemd-journal-flush exists
systemd: split modules into packages
systemd: v219 with stable fixesGustavo Sverzut Barbieri (1):
dbus: split tools package.meta/recipes-core/dbus/dbus.inc | 9 +- ...remote-fix-certificate-status-memory-leak.patch | 31 + ...ournal-remote-fix-client_cert-memory-leak.patch | 35 + ...0003-tmpfiles-Fix-parse_acl-error-message.patch | 28 + ...-test-utf8-fix-utf16-tests-on-BE-machines.patch | 26 + ...iles-avoid-creating-duplicate-acl-entries.patch | 131 +++ .../0006-shared-time-util-fix-gcc5-warning.patch | 32 + ...time-test-infinity-parsing-in-nanoseconds.patch | 36 + .../0008-bootchart-fix-default-init-path.patch | 44 + ...emctl-bump-NOFILE-only-for-systemctl_main.patch | 44 + ...0-Make-root-s-home-directory-configurable.patch | 89 +- ...-util-avoid-freeing-uninitialized-pointer.patch | 37 + ...11-bootchart-svg-fix-checking-of-list-end.patch | 28 + ...md-add-getrandom-syscall-numbers-for-MIPS.patch | 38 + ...aker-dependencies-between-mount-and-devic.patch | 33 + ...topping-due-to-BindsTo-log-which-unit-cau.patch | 43 + ...grade-message-about-sysctl-overrides-to-d.patch | 30 + ...l-add-some-hints-how-to-override-settings.patch | 39 + .../0017-core-rework-device-state-logic.patch | 912 ++++++++++++++++ .../0018-core-fix-return-value-on-OOM.patch | 26 + ...e-x-machine-unix-prefix-for-the-container.patch | 33 + ...0-shared-AFS-is-also-a-network-filesystem.patch | 25 + ...downgrade-unit-type-not-supported-message.patch | 31 + ...ournal-remote-fix-saving-of-binary-fields.patch | 97 ++ ...ix-Inappropriate-ioctl-for-device-on-ext4.patch | 37 + ...eplace-VLA-with-alloca-to-make-llvm-happy.patch | 53 + ...ietly-ignore-ACLs-on-unsupported-filesyst.patch | 84 ++ ...-assume-ac-when-sys-class-power_supply-is.patch | 30 + meta/recipes-core/systemd/systemd_219.bb | 1111 +++++++++++++++++--- 29 files changed, 3006 insertions(+), 186 deletions(-) create mode 100644 meta/recipes-core/systemd/systemd/0001-journal-remote-fix-certificate-status-memory-leak.patch create mode 100644 meta/recipes-core/systemd/systemd/0002-journal-remote-fix-client_cert-memory-leak.patch create mode 100644 meta/recipes-core/systemd/systemd/0003-tmpfiles-Fix-parse_acl-error-message.patch create mode 100644 meta/recipes-core/systemd/systemd/0004-test-utf8-fix-utf16-tests-on-BE-machines.patch create mode 100644 meta/recipes-core/systemd/systemd/0005-tmpfiles-avoid-creating-duplicate-acl-entries.patch create mode 100644 meta/recipes-core/systemd/systemd/0006-shared-time-util-fix-gcc5-warning.patch create mode 100644 meta/recipes-core/systemd/systemd/0007-test-time-test-infinity-parsing-in-nanoseconds.patch create mode 100644 meta/recipes-core/systemd/systemd/0008-bootchart-fix-default-init-path.patch create mode 100644 meta/recipes-core/systemd/systemd/0009-systemctl-bump-NOFILE-only-for-systemctl_main.patch create mode 100644 meta/recipes-core/systemd/systemd/0010-acl-util-avoid-freeing-uninitialized-pointer.patch create mode 100644 meta/recipes-core/systemd/systemd/0011-bootchart-svg-fix-checking-of-list-end.patch create mode 100644 meta/recipes-core/systemd/systemd/0012-systemd-add-getrandom-syscall-numbers-for-MIPS.patch create mode 100644 meta/recipes-core/systemd/systemd/0013-unit-use-weaker-dependencies-between-mount-and-devic.patch create mode 100644 meta/recipes-core/systemd/systemd/0014-unit-When-stopping-due-to-BindsTo-log-which-unit-cau.patch create mode 100644 meta/recipes-core/systemd/systemd/0015-sysctl-downgrade-message-about-sysctl-overrides-to-d.patch create mode 100644 meta/recipes-core/systemd/systemd/0016-sysctl-add-some-hints-how-to-override-settings.patch create mode 100644 meta/recipes-core/systemd/systemd/0017-core-rework-device-state-logic.patch create mode 100644 meta/recipes-core/systemd/systemd/0018-core-fix-return-value-on-OOM.patch create mode 100644 meta/recipes-core/systemd/systemd/0019-machined-use-x-machine-unix-prefix-for-the-container.patch create mode 100644 meta/recipes-core/systemd/systemd/0020-shared-AFS-is-also-a-network-filesystem.patch create mode 100644 meta/recipes-core/systemd/systemd/0021-core-downgrade-unit-type-not-supported-message.patch create mode 100644 meta/recipes-core/systemd/systemd/0022-journal-remote-fix-saving-of-binary-fields.patch create mode 100644 meta/recipes-core/systemd/systemd/0023-journal-fix-Inappropriate-ioctl-for-device-on-ext4.patch create mode 100644 meta/recipes-core/systemd/systemd/0024-sd-daemon-replace-VLA-with-alloca-to-make-llvm-happy.patch create mode 100644 meta/recipes-core/systemd/systemd/0025-tmpfiles-quietly-ignore-ACLs-on-unsupported-filesyst.patch create mode 100644 meta/recipes-core/systemd/systemd/0026-shared-util-assume-ac-when-sys-class-power_supply-is.patchQuoted 5 lines
Quoted 3 lines
--
1.9.1--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 3 lines · Bruno
Sorry, I didn't get why we can't consider this patchset to be included into master now.
Because when Khem said that, master was freezing so that we can make the 1.8 release. We've now branched off the release branch so master is open, but the current focus is on the release.
Ross
Quoted 8 lines · Ross
On 18 March 2015 at 21:40, Bottazzini, Bruno <[email protected]> wrote:
Sorry, I didn't get why we can't consider this patchset to be included
into master now.
Quoted 4 lines
Because when Khem said that, master was freezing so that we can make the 1.8 release. We've now branched off the release branch so master is open, but the current focus is on the release.
Alright! Thanks
Quoted 2 lines
Ross