mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 16:27:27 +00:00
systemd: update to v189
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Eric Bénard <eric@eukrea.com>
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
DESCRIPTION = "Systemd a init replacement"
|
||||
HOMEPAGE = "http://www.freedesktop.org/wiki/Software/systemd"
|
||||
LICENSE = "GPLv2+"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=751419260aa954499f7abaabaa882bbe"
|
||||
|
||||
DEPENDS = "xz kmod docbook-sgml-dtd-4.1-native intltool-native gperf-native acl readline udev dbus libcap libcgroup tcp-wrappers"
|
||||
LICENSE = "GPLv2 & LGPLv2.1 & MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.GPL2;md5=751419260aa954499f7abaabaa882bbe \
|
||||
file://LICENSE.LGPL2.1;md5=fb919cc88dbe06ec0b0bd50e001ccf1f \
|
||||
file://LICENSE.MIT;md5=544799d0b492f119fa04641d1b8868ed"
|
||||
|
||||
PROVIDES = "udev"
|
||||
|
||||
DEPENDS = "xz kmod docbook-sgml-dtd-4.1-native intltool-native gperf-native acl readline dbus libcap libcgroup tcp-wrappers usbutils glib-2.0 libgcrypt"
|
||||
DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
|
||||
|
||||
SERIAL_CONSOLE ?= "115200 /dev/ttyS0"
|
||||
@@ -14,21 +19,28 @@ inherit gitpkgv
|
||||
PKGV = "v${GITPKGVTAG}"
|
||||
|
||||
PV = "git"
|
||||
PR = "r28"
|
||||
PR = "r6"
|
||||
|
||||
inherit useradd pkgconfig autotools vala perlnative
|
||||
inherit useradd pkgconfig autotools perlnative
|
||||
|
||||
SRCREV = "3eff4208ffecedd778fec260f0d4b18e94dab443"
|
||||
SRCREV = "38a60d7112d33ffd596b23e8df53d75a7c09e71b"
|
||||
|
||||
SRC_URI = "git://anongit.freedesktop.org/systemd/systemd;protocol=git \
|
||||
${UCLIBCPATCHES} \
|
||||
file://use-rootlibdir.patch \
|
||||
file://gtk-doc.make \
|
||||
file://touchscreen.rules \
|
||||
file://modprobe.rules \
|
||||
file://var-run.conf \
|
||||
${UCLIBCPATCHES} \
|
||||
"
|
||||
UCLIBCPATCHES = ""
|
||||
UCLIBCPATCHES_libc-uclibc = "file://paper-over-mkostemp.patch \
|
||||
file://format-replace-m-uclibc.patch \
|
||||
UCLIBCPATCHES_libc-uclibc = "file://systemd-pam-configure-check-uclibc.patch \
|
||||
file://systemd-pam-fix-execvpe.patch \
|
||||
file://systemd-pam-fix-fallocate.patch \
|
||||
file://systemd-pam-fix-getty-unit.patch \
|
||||
file://systemd-pam-fix-mkostemp.patch \
|
||||
file://systemd-pam-fix-msformat.patch \
|
||||
"
|
||||
|
||||
LDFLAGS_libc-uclibc_append = " -lrt"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
@@ -36,21 +48,33 @@ S = "${WORKDIR}/git"
|
||||
SYSTEMDDISTRO ?= "debian"
|
||||
SYSTEMDDISTRO_angstrom = "angstrom"
|
||||
|
||||
CACHED_CONFIGUREVARS = "ac_cv_file__usr_share_pci_ids=no \
|
||||
ac_cv_file__usr_share_hwdata_pci_ids=no \
|
||||
ac_cv_file__usr_share_misc_pci_ids=yes"
|
||||
# The gtk+ tools should get built as a separate recipe e.g. systemd-tools
|
||||
EXTRA_OECONF = " --with-distro=${SYSTEMDDISTRO} \
|
||||
--with-rootprefix=${base_prefix} \
|
||||
--with-rootlibdir=${base_libdir} \
|
||||
--sbindir=${base_sbindir} \
|
||||
--libexecdir=${base_libdir} \
|
||||
${@base_contains('DISTRO_FEATURES', 'pam', '--enable-pam', '--disable-pam', d)} \
|
||||
--disable-gtk \
|
||||
--enable-xz \
|
||||
--disable-manpages \
|
||||
--disable-coredump \
|
||||
--disable-introspection \
|
||||
--with-pci-ids-path=/usr/share/misc \
|
||||
--disable-gtk-doc-html \
|
||||
--disable-tcpwrap \
|
||||
--enable-split-usr \
|
||||
"
|
||||
|
||||
# There's no docbook-xsl-native, so for the xsltproc check to false
|
||||
do_configure_prepend() {
|
||||
export CPP="${HOST_PREFIX}cpp ${TOOLCHAIN_OPTIONS} ${HOST_CC_ARCH}"
|
||||
sed -i /xsltproc/d configure.ac
|
||||
|
||||
cp ${WORKDIR}/gtk-doc.make ${S}/docs/
|
||||
|
||||
# we only have /home/root, not /root
|
||||
sed -i -e 's:=/root:=/home/root:g' units/*.service*
|
||||
}
|
||||
@@ -70,6 +94,8 @@ do_install() {
|
||||
# 20:12 < mezcalero> koen: you have three options: a) run systemd-machine-id-setup at install time, b) have / read-only and an empty file there (for stateless) and c) boot with / writable
|
||||
touch ${D}${sysconfdir}/machine-id
|
||||
|
||||
install -m 0644 ${WORKDIR}/*.rules ${D}${sysconfdir}/udev/rules.d/
|
||||
|
||||
install -m 0644 ${WORKDIR}/var-run.conf ${D}${sysconfdir}/tmpfiles.d/
|
||||
}
|
||||
|
||||
@@ -103,10 +129,18 @@ FILES_${PN} = " ${base_bindir}/* \
|
||||
${datadir}/dbus-1/system-services \
|
||||
${datadir}/polkit-1 \
|
||||
${datadir}/${PN} \
|
||||
${sysconfdir} \
|
||||
${sysconfdir}/bash_completion.d/ \
|
||||
${sysconfdir}/binfmt.d/ \
|
||||
${sysconfdir}/dbus-1/ \
|
||||
${sysconfdir}/machine-id \
|
||||
${sysconfdir}/modules-load.d/ \
|
||||
${sysconfdir}/sysctl.d/ \
|
||||
${sysconfdir}/systemd/ \
|
||||
${sysconfdir}/tmpfiles.d/ \
|
||||
${sysconfdir}/xdg/ \
|
||||
${systemd_unitdir}/* \
|
||||
${systemd_unitdir}/system/* \
|
||||
${base_libdir}/udev/rules.d \
|
||||
${base_libdir}/udev/rules.d/99-systemd.rules \
|
||||
${base_libdir}/security/*.so \
|
||||
/cgroup \
|
||||
${bindir}/systemd* \
|
||||
@@ -117,10 +151,14 @@ FILES_${PN} = " ${base_bindir}/* \
|
||||
${libdir}/sysctl.d \
|
||||
${localstatedir} \
|
||||
${libexecdir} \
|
||||
${base_libdir}/udev/rules.d/70-uaccess.rules \
|
||||
${base_libdir}/udev/rules.d/71-seat.rules \
|
||||
${base_libdir}/udev/rules.d/73-seat-late.rules \
|
||||
${base_libdir}/udev/rules.d/99-systemd.rules \
|
||||
"
|
||||
|
||||
FILES_${PN}-dbg += "${systemd_unitdir}/.debug ${systemd_unitdir}/*/.debug ${base_libdir}/security/.debug/"
|
||||
FILES_${PN}-dev += "${base_libdir}/security/*.la ${datadir}/dbus-1/interfaces/"
|
||||
FILES_${PN}-dev += "${base_libdir}/security/*.la ${datadir}/dbus-1/interfaces/ ${sysconfdir}/rpm/macros.systemd"
|
||||
|
||||
RDEPENDS_${PN} += "dbus-systemd udev-systemd"
|
||||
|
||||
@@ -139,6 +177,45 @@ RRECOMMENDS_${PN} += "systemd-serialgetty \
|
||||
kernel-module-autofs4 kernel-module-unix kernel-module-ipv6 \
|
||||
"
|
||||
|
||||
PACKAGES =+ "udev-dbg udev udev-consolekit udev-utils udev-systemd"
|
||||
|
||||
FILES_udev-dbg += "${base_libdir}/udev/.debug"
|
||||
|
||||
RDEPENDS_udev += "udev-utils"
|
||||
RPROVIDES_udev = "hotplug"
|
||||
|
||||
FILES_udev += "${base_libdir}/udev/udevd \
|
||||
${base_libdir}/systemd/systemd-udevd \
|
||||
${base_libdir}/udev/accelerometer \
|
||||
${base_libdir}/udev/ata_id \
|
||||
${base_libdir}/udev/cdrom_id \
|
||||
${base_libdir}/udev/collect \
|
||||
${base_libdir}/udev/findkeyboards \
|
||||
${base_libdir}/udev/keyboard-force-release.sh \
|
||||
${base_libdir}/udev/keymap \
|
||||
${base_libdir}/udev/mtd_probe \
|
||||
${base_libdir}/udev/scsi_id \
|
||||
${base_libdir}/udev/v4l_id \
|
||||
${base_libdir}/udev/keymaps \
|
||||
${base_libdir}/udev/rules.d/4*.rules \
|
||||
${base_libdir}/udev/rules.d/5*.rules \
|
||||
${base_libdir}/udev/rules.d/6*.rules \
|
||||
${base_libdir}/udev/rules.d/70-power-switch.rules \
|
||||
${base_libdir}/udev/rules.d/75*.rules \
|
||||
${base_libdir}/udev/rules.d/78*.rules \
|
||||
${base_libdir}/udev/rules.d/8*.rules \
|
||||
${base_libdir}/udev/rules.d/95*.rules \
|
||||
${sysconfdir}/udev \
|
||||
"
|
||||
|
||||
FILES_udev-consolekit += "${libdir}/ConsoleKit"
|
||||
RDEPENDS_udev-consolekit += "${@base_contains('DISTRO_FEATURES', 'x11', 'consolekit', '', d)}"
|
||||
|
||||
FILES_udev-utils = "${bindir}/udevadm"
|
||||
|
||||
FILES_udev-systemd = "${base_libdir}/systemd/system/*udev* ${base_libdir}/systemd/system/*.wants/*udev*"
|
||||
RDEPENDS_udev-systemd = "udev"
|
||||
|
||||
# TODO:
|
||||
# u-a for runlevel and telinit
|
||||
|
||||
|
||||
Reference in New Issue
Block a user