From 95d12957e84aa64255ed4816c4f105057c7e43bb Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Fri, 19 Apr 2019 12:22:36 +0200 Subject: systemd: version bump 241-7-ga09c170122cf -> 242 Signed-off-by: Michael Olbrich --- ...re-version.h-as-dep-for-various-targets-t.patch | 110 ------------- ...clare-version.h-as-dependency-for-systemd.patch | 24 --- patches/systemd-241-7-ga09c170122cf/series | 5 - rules/systemd.make | 177 +++++++++++---------- 4 files changed, 92 insertions(+), 224 deletions(-) delete mode 100644 patches/systemd-241-7-ga09c170122cf/0001-meson-declare-version.h-as-dep-for-various-targets-t.patch delete mode 100644 patches/systemd-241-7-ga09c170122cf/0002-meson-declare-version.h-as-dependency-for-systemd.patch delete mode 100644 patches/systemd-241-7-ga09c170122cf/series diff --git a/patches/systemd-241-7-ga09c170122cf/0001-meson-declare-version.h-as-dep-for-various-targets-t.patch b/patches/systemd-241-7-ga09c170122cf/0001-meson-declare-version.h-as-dep-for-various-targets-t.patch deleted file mode 100644 index cb4437a2d..000000000 --- a/patches/systemd-241-7-ga09c170122cf/0001-meson-declare-version.h-as-dep-for-various-targets-t.patch +++ /dev/null @@ -1,110 +0,0 @@ -From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= -Date: Sun, 24 Feb 2019 22:49:38 +0100 -Subject: [PATCH] meson: declare version.h as dep for various targets that - include build.h - -Should fix #11565. ---- - meson.build | 19 +++++++++++++------ - src/core/meson.build | 3 ++- - src/udev/meson.build | 1 + - 3 files changed, 16 insertions(+), 7 deletions(-) - -diff --git a/meson.build b/meson.build -index 56c98b9c1b7b..3972f7097290 100644 ---- a/meson.build -+++ b/meson.build -@@ -1639,7 +1639,8 @@ exe = executable('systemd-analyze', - include_directories : includes, - link_with : [libcore, - libshared], -- dependencies : [threads, -+ dependencies : [versiondep, -+ threads, - librt, - libseccomp, - libselinux, -@@ -2185,7 +2186,8 @@ if conf.get('ENABLE_IMPORTD') == 1 - systemd_pull_sources, - include_directories : includes, - link_with : [libshared], -- dependencies : [libcurl, -+ dependencies : [versiondep, -+ libcurl, - libz, - libbzip2, - libxz, -@@ -2234,7 +2236,8 @@ if conf.get('ENABLE_REMOTE') == 1 and conf.get('HAVE_LIBCURL') == 1 - systemd_journal_upload_sources, - include_directories : includes, - link_with : [libshared], -- dependencies : [threads, -+ dependencies : [versiondep, -+ threads, - libcurl, - libgnutls, - libxz, -@@ -2560,6 +2563,7 @@ exe = executable('systemd-stdio-bridge', - 'src/stdio-bridge/stdio-bridge.c', - include_directories : includes, - link_with : [libshared], -+ dependencies : [versiondep], - install_rpath : rootlibexecdir, - install : true) - public_programs += exe -@@ -2643,7 +2647,8 @@ exe = executable('systemd-udevd', - link_with : [libudev_core, - libsystemd_network, - libudev_static], -- dependencies : [threads, -+ dependencies : [versiondep, -+ threads, - libkmod, - libidn, - libacl, -@@ -2660,7 +2665,8 @@ exe = executable('udevadm', - link_with : [libudev_core, - libsystemd_network, - libudev_static], -- dependencies : [threads, -+ dependencies : [versiondep, -+ threads, - libkmod, - libidn, - libacl, -@@ -2800,7 +2806,8 @@ foreach tuple : tests - sources, - include_directories : incs, - link_with : link_with, -- dependencies : dependencies, -+ dependencies : [versiondep, -+ dependencies], - c_args : defs, - build_by_default : want_tests != 'false', - install_rpath : rootlibexecdir, -diff --git a/src/core/meson.build b/src/core/meson.build -index 85021bdc0100..88fb093732b6 100644 ---- a/src/core/meson.build -+++ b/src/core/meson.build -@@ -150,7 +150,8 @@ libcore = static_library( - load_fragment_gperf_c, - load_fragment_gperf_nulstr_c, - include_directories : includes, -- dependencies : [threads, -+ dependencies : [versiondep, -+ threads, - librt, - libseccomp, - libpam, -diff --git a/src/udev/meson.build b/src/udev/meson.build -index 9d3f6d1c5624..973a75ec8b6a 100644 ---- a/src/udev/meson.build -+++ b/src/udev/meson.build -@@ -180,6 +180,7 @@ foreach prog : [['ata_id/ata_id.c'], - prog, - include_directories : includes, - c_args : ['-DLOG_REALM=LOG_REALM_UDEV'], -+ dependencies : [versiondep], - link_with : [libudev_static], - install_rpath : udev_rpath, - install : true, diff --git a/patches/systemd-241-7-ga09c170122cf/0002-meson-declare-version.h-as-dependency-for-systemd.patch b/patches/systemd-241-7-ga09c170122cf/0002-meson-declare-version.h-as-dependency-for-systemd.patch deleted file mode 100644 index 2d72ef672..000000000 --- a/patches/systemd-241-7-ga09c170122cf/0002-meson-declare-version.h-as-dependency-for-systemd.patch +++ /dev/null @@ -1,24 +0,0 @@ -From: Michael Olbrich -Date: Mon, 25 Feb 2019 11:59:23 +0100 -Subject: [PATCH] meson: declare version.h as dependency for systemd - -This is a followup to #11815 and adds the last missing dependency. -With this #11565 is hopefully really fixed. ---- - meson.build | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/meson.build b/meson.build -index 3972f7097290..75dd07ff9596 100644 ---- a/meson.build -+++ b/meson.build -@@ -1620,7 +1620,8 @@ executable('systemd', - include_directories : includes, - link_with : [libcore, - libshared], -- dependencies : [threads, -+ dependencies : [versiondep, -+ threads, - librt, - libseccomp, - libselinux, diff --git a/patches/systemd-241-7-ga09c170122cf/series b/patches/systemd-241-7-ga09c170122cf/series deleted file mode 100644 index 1f6b06fe6..000000000 --- a/patches/systemd-241-7-ga09c170122cf/series +++ /dev/null @@ -1,5 +0,0 @@ -# generated by git-ptx-patches -#tag:base --start-number 1 -0001-meson-declare-version.h-as-dep-for-various-targets-t.patch -0002-meson-declare-version.h-as-dependency-for-systemd.patch -# 9ddaa69688eaf4ec66afc0bed0996c99 - git-ptx-patches magic diff --git a/rules/systemd.make b/rules/systemd.make index 09410146a..099ee201e 100644 --- a/rules/systemd.make +++ b/rules/systemd.make @@ -17,13 +17,11 @@ PACKAGES-$(PTXCONF_SYSTEMD) += systemd # # Paths and names # -SYSTEMD_VERSION := 241-7-ga09c170122cf -SYSTEMD_MD5 := 8727ee060d128457965e1be937e0cdd2 eaa594a7181b2b9a7037d7cd37ff86e8 +SYSTEMD_VERSION := 242 +SYSTEMD_MD5 := 5e004a4007cebbc4c7a06bfd2b9b3d4c SYSTEMD := systemd-$(SYSTEMD_VERSION) SYSTEMD_SUFFIX := tar.gz -SYSTEMD_URL := \ - https://github.com/systemd/systemd/archive/v$(SYSTEMD_VERSION).$(SYSTEMD_SUFFIX) \ - https://github.com/systemd/systemd-stable/archive/v$(SYSTEMD_VERSION).$(SYSTEMD_SUFFIX) +SYSTEMD_URL := https://github.com/systemd/systemd/archive/v$(SYSTEMD_VERSION).$(SYSTEMD_SUFFIX) SYSTEMD_SOURCE := $(SRCDIR)/$(SYSTEMD).$(SYSTEMD_SUFFIX) SYSTEMD_DIR := $(BUILDDIR)/$(SYSTEMD) SYSTEMD_LICENSE := GPL-2.0-or-later AND LGPL-2.1-only @@ -190,14 +188,17 @@ $(STATEDIR)/systemd.install: ifdef PTXCONF_SYSTEMD_UDEV_HWDB @$(PTXDIST_SYSROOT_HOST)/bin/systemd-hwdb update --usr --root $(SYSTEMD_PKGDIR) endif -ifndef PTXCONF_SYSTEMD_VCONSOLE - @rm -v $(SYSTEMD_PKGDIR)/etc/systemd/system/getty.target.wants/getty@tty1.service -endif +# # no interactive password prompts + @rm -v $(SYSTEMD_PKGDIR)/usr/lib/systemd/system/systemd-ask-password-console.path + @rm -v $(SYSTEMD_PKGDIR)/usr/lib/systemd/system/systemd-ask-password-console.service + @rm -v $(SYSTEMD_PKGDIR)/usr/lib/systemd/system/systemd-ask-password-wall.path + @rm -v $(SYSTEMD_PKGDIR)/usr/lib/systemd/system/systemd-ask-password-wall.service + @rm -v $(SYSTEMD_PKGDIR)/usr/lib/systemd/system/multi-user.target.wants/systemd-ask-password-wall.path + @rm -v $(SYSTEMD_PKGDIR)/usr/lib/systemd/system/sysinit.target.wants/systemd-ask-password-console.path + # # don't touch /etc and /home @rm -v $(SYSTEMD_PKGDIR)/usr/lib/tmpfiles.d/etc.conf @rm -v $(SYSTEMD_PKGDIR)/usr/lib/tmpfiles.d/home.conf -# # the upstream default (graphical.target) wants display-manager.service - @ln -sf multi-user.target $(SYSTEMD_PKGDIR)/usr/lib/systemd/system/default.target @$(call touch) # ---------------------------------------------------------------------------- @@ -236,7 +237,8 @@ SYSTEMD_HELPER := \ systemd-udevd \ systemd-update-done \ $(call ptx/ifdef, PTXCONF_SYSTEMD_UNITS_USER,systemd-user-runtime-dir) \ - $(call ptx/ifdef, PTXCONF_SYSTEMD_VCONSOLE,systemd-vconsole-setup) + $(call ptx/ifdef, PTXCONF_SYSTEMD_VCONSOLE,systemd-vconsole-setup) \ + systemd-volatile-root SYSTEMD_UDEV_HELPER-y := @@ -261,7 +263,8 @@ SYSTEMD_UDEV_RULES-y := \ 70-mouse.rules \ 75-net-description.rules \ 78-sound-card.rules \ - 80-net-setup-link.rules + 80-net-setup-link.rules \ + 99-systemd.rules SYSTEMD_UDEV_RULES-$(PTXCONF_SYSTEMD_LOGIND) += \ 70-power-switch.rules \ @@ -286,40 +289,21 @@ $(STATEDIR)/systemd.targetinstall: @$(call install_fixup, systemd,AUTHOR,"Robert Schwebel ") @$(call install_fixup, systemd,DESCRIPTION,missing) -# # -# # Some info about the current state of systemd support in ptxdist: -# # -# # - we don't care about a user systemd yet -# # - @$(call install_lib, systemd, 0, 0, 0644, libsystemd) @$(call install_lib, systemd, 0, 0, 0644, systemd/libsystemd-shared-$(firstword $(subst -, ,$(SYSTEMD_VERSION)))) @$(call install_lib, systemd, 0, 0, 0644, libnss_myhostname) @$(call install_lib, systemd, 0, 0, 0644, libnss_systemd) -ifdef PTXCONF_SYSTEMD_NETWORK - @$(call install_lib, systemd, 0, 0, 0644, libnss_resolve) -endif # # daemon + tools @$(call install_copy, systemd, 0, 0, 0755, -, /usr/bin/systemctl) @$(call install_copy, systemd, 0, 0, 0755, -, /usr/bin/journalctl) -ifdef PTXCONF_SYSTEMD_LOGIND - @$(call install_copy, systemd, 0, 0, 0755, -, /usr/bin/loginctl) - @$(call install_copy, systemd, 0, 0, 0755, -, /usr/bin/systemd-inhibit) -endif -ifdef PTXCONF_SYSTEMD_NETWORK - @$(call install_copy, systemd, 0, 0, 0755, -, /usr/bin/networkctl) -endif @$(call install_copy, systemd, 0, 0, 0755, -, /usr/bin/systemd-escape) @$(call install_copy, systemd, 0, 0, 0755, -, /usr/bin/systemd-machine-id-setup) @$(call install_copy, systemd, 0, 0, 0755, -, /usr/bin/systemd-notify) @$(call install_copy, systemd, 0, 0, 0755, -, /usr/bin/systemd-tmpfiles) @$(call install_copy, systemd, 0, 0, 0755, -, /usr/bin/busctl) @$(call install_copy, systemd, 0, 0, 0755, -, /usr/bin/hostnamectl) -ifdef PTXCONF_SYSTEMD_LOCALES - @$(call install_copy, systemd, 0, 0, 0755, -, /usr/bin/localectl) -endif @$(call install_copy, systemd, 0, 0, 0755, -, /usr/bin/systemd-analyze) @$(call install_copy, systemd, 0, 0, 0755, -, /usr/bin/systemd-cat) @$(call install_copy, systemd, 0, 0, 0755, -, /usr/bin/systemd-cgls) @@ -332,96 +316,123 @@ endif @$(call install_copy, systemd, 0, 0, 0755, -, /usr/bin/systemd-socket-activate) @$(call install_copy, systemd, 0, 0, 0755, -, /usr/bin/systemd-stdio-bridge) @$(call install_link, systemd, systemd-mount, /usr/bin/systemd-umount) -ifdef PTXCONF_SYSTEMD_TIMEDATE - @$(call install_copy, systemd, 0, 0, 0755, -, /usr/bin/timedatectl) -endif @$(call install_tree, systemd, 0, 0, -, /usr/lib/systemd/system-generators/) @$(foreach helper, $(SYSTEMD_HELPER), \ $(call install_copy, systemd, 0, 0, 755, -, \ /usr/lib/systemd/$(helper));) - -ifdef PTXCONF_INITMETHOD_SYSTEMD - @$(call install_link, systemd, ../lib/systemd/systemd, /usr/sbin/init) - @$(call install_link, systemd, ../bin/systemctl, /usr/sbin/halt) - @$(call install_link, systemd, ../bin/systemctl, /usr/sbin/poweroff) - @$(call install_link, systemd, ../bin/systemctl, /usr/sbin/reboot) -endif - # # configuration @$(call install_alternative, systemd, 0, 0, 0644, \ /etc/systemd/system.conf) @$(call install_alternative, systemd, 0, 0, 0644, \ /etc/systemd/journald.conf) -ifdef PTXCONF_SYSTEMD_LOGIND - @$(call install_alternative, systemd, 0, 0, 0644, \ - /etc/systemd/logind.conf) -endif -ifdef PTXCONF_SYSTEMD_TIMEDATE - @$(call install_alternative, systemd, 0, 0, 0644, \ - /etc/systemd/timesyncd.conf) -endif -ifdef PTXCONF_SYSTEMD_NETWORK - @$(call install_copy, systemd, 0, 0, 0755, -, /usr/bin/systemd-resolve) - @$(call install_copy, systemd, 0, 0, 0644, -, /usr/lib/systemd/resolv.conf) - @$(call install_alternative, systemd, 0, 0, 0644, \ - /etc/systemd/resolved.conf) -endif -ifdef PTXCONF_SYSTEMD_JOURNAL_REMOTE - @$(call install_alternative, systemd, 0, 0, 0644, \ - /etc/systemd/journal-remote.conf) -endif - @$(call install_tree, systemd, 0, 0, -, /etc/systemd/system/) + @$(call install_tree, systemd, 0, 0, -, /usr/share/dbus-1/system.d/) @$(call install_tree, systemd, 0, 0, -, /usr/lib/tmpfiles.d/) @$(call install_copy, systemd, 0, 0, 0644, -, /usr/lib/sysctl.d/50-default.conf) + @$(call install_tree, systemd, 0, 0, -, /usr/share/dbus-1/services/) + @$(call install_tree, systemd, 0, 0, -, /usr/share/dbus-1/system-services/) + +# # systemd expects this directory to exist. + @$(call install_copy, systemd, 0, 0, 0755, /var/lib/systemd) + @$(call install_copy, systemd, 0, 0, 0755, /var/lib/systemd/coredump) + @$(call install_copy, systemd, 0, 0, 0700, /var/lib/machines) + @$(call install_copy, systemd, 0, 0, 0700, /var/lib/private) + @$(call install_copy, systemd, 0, 0, 0700, /var/cache/private) + +# # units + @$(call install_tree, systemd, 0, 0, -, /usr/lib/systemd/system/) + @$(call install_link, systemd, ../remote-fs.target, \ + /usr/lib/systemd/system/multi-user.target.wants/remote-fs.target) + @$(call install_link, systemd, multi-user.target, \ + /usr/lib/systemd/system/default.target) +ifdef PTXCONF_SYSTEMD_UNITS_USER + @$(call install_tree, systemd, 0, 0, -, /usr/lib/systemd/user/) +endif + + @$(call install_alternative, systemd, 0, 0, 0644, /etc/profile.d/systemd.sh) + +ifdef PTXCONF_INITMETHOD_SYSTEMD + @$(call install_link, systemd, ../lib/systemd/systemd, /usr/sbin/init) + @$(call install_link, systemd, ../bin/systemctl, /usr/sbin/halt) + @$(call install_link, systemd, ../bin/systemctl, /usr/sbin/poweroff) + @$(call install_link, systemd, ../bin/systemctl, /usr/sbin/reboot) + @$(call install_link, systemd, ../bin/systemctl, /usr/sbin/runlevel) + @$(call install_link, systemd, ../bin/systemctl, /usr/sbin/shutdown) + @$(call install_link, systemd, ../bin/systemctl, /usr/sbin/telinit) +endif + ifdef PTXCONF_SYSTEMD_COREDUMP @$(call install_copy, systemd, 0, 0, 0644, -, /usr/lib/sysctl.d/50-coredump.conf) @$(call install_copy, systemd, 0, 0, 0755, -, /usr/bin/coredumpctl) @$(call install_alternative, systemd, 0, 0, 0644, /etc/systemd/coredump.conf) endif - @$(call install_tree, systemd, 0, 0, -, /usr/share/dbus-1/services/) - @$(call install_tree, systemd, 0, 0, -, /usr/share/dbus-1/system-services/) +ifdef PTXCONF_SYSTEMD_JOURNAL_REMOTE + @$(call install_alternative, systemd, 0, 0, 0644, \ + /etc/systemd/journal-remote.conf) +endif + ifdef PTXCONF_SYSTEMD_LOCALES + @$(call install_copy, systemd, 0, 0, 0755, -, /usr/bin/localectl) @$(call install_copy, systemd, 0, 0, 0644, -, /usr/share/systemd/kbd-model-map) endif - @$(call install_copy, systemd, 0, 0, 0644, -, /usr/lib/udev/rules.d/99-systemd.rules) +ifdef PTXCONF_SYSTEMD_LOGIND + @$(call install_copy, systemd, 0, 0, 0755, -, /usr/bin/loginctl) + @$(call install_copy, systemd, 0, 0, 0755, -, /usr/bin/systemd-inhibit) + @$(call install_alternative, systemd, 0, 0, 0644, \ + /etc/systemd/logind.conf) +endif + ifdef PTXCONF_SYSTEMD_NETWORK + @$(call install_copy, systemd, 0, 0, 0755, -, /usr/bin/networkctl) + @$(call install_copy, systemd, 0, 0, 0755, -, /usr/bin/resolvectl) + @$(call install_copy, systemd, 0, 0, 0755, -, /usr/bin/systemd-resolve) + @$(call install_lib, systemd, 0, 0, 0644, libnss_resolve) + @$(call install_copy, systemd, 0, 0, 0644, -, /usr/lib/systemd/resolv.conf) + @$(call install_alternative, systemd, 0, 0, 0644, \ + /etc/systemd/resolved.conf) + @$(call install_link, systemd, ../systemd-resolved.service, \ + /usr/lib/systemd/system/multi-user.target.wants/systemd-resolved.service) + @$(call install_link, systemd, ../systemd-networkd.service, \ + /usr/lib/systemd/system/multi-user.target.wants/systemd-networkd.service) + @$(call install_link, systemd, ../systemd-networkd.socket, \ + /usr/lib/systemd/system/sockets.target.wants/systemd-networkd.socket) + @$(call install_link, systemd, ../systemd-networkd-wait-online.service, \ + /usr/lib/systemd/system/network-online.target.wants/systemd-networkd-wait-online.service) + @$(call install_tree, systemd, 0, 0, -, /usr/lib/systemd/network) @$(call install_alternative_tree, systemd, 0, 0, /usr/lib/systemd/network) -endif +else @$(call install_alternative, systemd, 0, 0, 0644, \ /usr/lib/systemd/network/99-default.link) - -# # units - @$(call install_tree, systemd, 0, 0, -, /usr/lib/systemd/system/) -ifdef PTXCONF_SYSTEMD_UNITS_USER - @$(call install_tree, systemd, 0, 0, -, /usr/lib/systemd/user/) endif -ifdef PTXCONF_SYSTEMD_VCONSOLE - @$(call install_alternative, systemd, 0, 0, 0644, /etc/vconsole.conf) +ifdef PTXCONF_SYSTEMD_POLKIT + @$(call install_alternative_tree, systemd, 0, 0, /usr/share/polkit-1) endif - @$(call install_copy, systemd, 0, 0, 0755, /var/lib/systemd) - @$(call install_copy, systemd, 0, 0, 0700, /var/lib/private) - @$(call install_copy, systemd, 0, 0, 0700, /var/cache/private) - -# # systemd expects this directory to exist. - @$(call install_copy, systemd, 0, 0, 0755, /var/lib/systemd/coredump) - @$(call install_copy, systemd, 0, 0, 0700, /var/lib/machines) ifdef PTXCONF_SYSTEMD_TIMEDATE - @$(call install_copy, systemd, systemd-timesync, nogroup, 0700, \ + @$(call install_copy, systemd, 0, 0, 0755, -, /usr/bin/timedatectl) + @$(call install_alternative, systemd, 0, 0, 0644, \ + /etc/systemd/timesyncd.conf) + @$(call install_copy, systemd, systemd-timesync, nogroup, 0755, \ /var/lib/systemd/timesync) + @$(call install_link, systemd, ../systemd-timesyncd.service, \ + /usr/lib/systemd/system/sysinit.target.wants/systemd-timesyncd.service) endif - @$(call install_alternative, systemd, 0, 0, 0644, /etc/profile.d/systemd.sh) +ifdef PTXCONF_SYSTEMD_VCONSOLE + @$(call install_link, systemd, ../getty@.service, \ + /usr/lib/systemd/system/getty.target.wants/getty@tty1.service) + @$(call install_alternative, systemd, 0, 0, 0644, /etc/vconsole.conf) +endif +# # udev @$(call install_copy, systemd, 0, 0, 0755, -, /usr/bin/udevadm) @$(call install_lib, systemd, 0, 0, 0644, libudev) @@ -441,10 +452,6 @@ ifdef PTXCONF_SYSTEMD_UDEV_CUST_RULES @$(call install_alternative_tree, systemd, 0, 0, /usr/lib/udev/rules.d) endif -ifdef PTXCONF_SYSTEMD_POLKIT - @$(call install_alternative_tree, systemd, 0, 0, /usr/share/polkit-1) -endif - @$(call install_finish, systemd) @$(call touch) -- cgit v1.2.3