From 82df2b3f3f63ff2a8259d52e938595ca26c42776 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Fri, 12 Jan 2018 17:07:48 +0100 Subject: systemd: version bump 235 -> 236 Signed-off-by: Michael Olbrich --- .../0001-missing-defined-extra-clock-ids.patch | 34 - patches/systemd-234/0002-missing-add-BPF_XOR.patch | 28 - ...003-missing-define-__NR_kcmp-if-necessary.patch | 28 - ...4-missing-define-O_PATH-and-AT_EMPTY_PATH.patch | 44 -- ...ure.ac-disable-NLS-to-avoid-unnecessary-d.patch | 35 - .../systemd-234/0006-missing-define-syncfs.patch | 45 -- .../0007-missing-add-more-btrfs-defines.patch | 69 -- ...e-missing.h-in-btrfs-ctree.h-for-BTRFS_UU.patch | 24 - .../0009-HACK-add-local-copy-of-uchar.h.patch | 152 ---- ...10-HACK-fix-building-without-linux-sctp.h.patch | 45 -- ...-SMACK_MAGIC-EFIVARFS_MAGIC-BINFMTFS_MAGI.patch | 34 - .../0012-missing-define-PR_SET_MM.patch | 43 - ...-install-broken-var-lib-machines.mount-li.patch | 25 - patches/systemd-234/autogen.sh | 9 - patches/systemd-234/series | 18 - ...ntltool-use-use-meson-s-merge_file-direct.patch | 866 --------------------- ...t-include-man-meson.build-if-xsltproc-not.patch | 33 - ...t-create-systemd-user-sessions.service-if.patch | 23 - patches/systemd-235/series | 6 - projectroot/etc/fstab | 1 + projectroot/usr/lib/systemd/systemd-rc-once | 4 +- rules/host-systemd.make | 6 +- rules/systemd.make | 11 +- 23 files changed, 15 insertions(+), 1568 deletions(-) delete mode 100644 patches/systemd-234/0001-missing-defined-extra-clock-ids.patch delete mode 100644 patches/systemd-234/0002-missing-add-BPF_XOR.patch delete mode 100644 patches/systemd-234/0003-missing-define-__NR_kcmp-if-necessary.patch delete mode 100644 patches/systemd-234/0004-missing-define-O_PATH-and-AT_EMPTY_PATH.patch delete mode 100644 patches/systemd-234/0005-HACK-configure.ac-disable-NLS-to-avoid-unnecessary-d.patch delete mode 100644 patches/systemd-234/0006-missing-define-syncfs.patch delete mode 100644 patches/systemd-234/0007-missing-add-more-btrfs-defines.patch delete mode 100644 patches/systemd-234/0008-HACK-include-missing.h-in-btrfs-ctree.h-for-BTRFS_UU.patch delete mode 100644 patches/systemd-234/0009-HACK-add-local-copy-of-uchar.h.patch delete mode 100644 patches/systemd-234/0010-HACK-fix-building-without-linux-sctp.h.patch delete mode 100644 patches/systemd-234/0011-missing-add-SMACK_MAGIC-EFIVARFS_MAGIC-BINFMTFS_MAGI.patch delete mode 100644 patches/systemd-234/0012-missing-define-PR_SET_MM.patch delete mode 100644 patches/systemd-234/0100-build-don-t-install-broken-var-lib-machines.mount-li.patch delete mode 100755 patches/systemd-234/autogen.sh delete mode 100644 patches/systemd-234/series delete mode 100644 patches/systemd-235/0001-i18n-drop-intltool-use-use-meson-s-merge_file-direct.patch delete mode 100644 patches/systemd-235/0002-meson-do-not-include-man-meson.build-if-xsltproc-not.patch delete mode 100644 patches/systemd-235/0003-meson-do-not-create-systemd-user-sessions.service-if.patch delete mode 100644 patches/systemd-235/series diff --git a/patches/systemd-234/0001-missing-defined-extra-clock-ids.patch b/patches/systemd-234/0001-missing-defined-extra-clock-ids.patch deleted file mode 100644 index 0370dd0a8..000000000 --- a/patches/systemd-234/0001-missing-defined-extra-clock-ids.patch +++ /dev/null @@ -1,34 +0,0 @@ -From: Michael Olbrich -Date: Thu, 19 Jun 2014 10:48:55 +0200 -Subject: [PATCH] missing: defined extra clock ids - -This is required for glibc <= 2.13 - -Upstream requires glibc 2.14 but this is useful for host-systemd. - -Signed-off-by: Michael Olbrich ---- - src/basic/missing.h | 10 ++++++++++ - 1 file changed, 10 insertions(+) - -diff --git a/src/basic/missing.h b/src/basic/missing.h -index 7830a4f415b9..ae5f3ce165eb 100644 ---- a/src/basic/missing.h -+++ b/src/basic/missing.h -@@ -948,6 +948,16 @@ struct input_mask { - #define RTA_PREF 20 - #endif - -+#ifndef CLOCK_BOOTTIME -+#define CLOCK_BOOTTIME 7 -+#endif -+#ifndef CLOCK_REALTIME_ALARM -+#define CLOCK_REALTIME_ALARM 8 -+#endif -+#ifndef CLOCK_BOOTTIME_ALARM -+#define CLOCK_BOOTTIME_ALARM 9 -+#endif -+ - #ifndef IPV6_UNICAST_IF - #define IPV6_UNICAST_IF 76 - #endif diff --git a/patches/systemd-234/0002-missing-add-BPF_XOR.patch b/patches/systemd-234/0002-missing-add-BPF_XOR.patch deleted file mode 100644 index ed618b053..000000000 --- a/patches/systemd-234/0002-missing-add-BPF_XOR.patch +++ /dev/null @@ -1,28 +0,0 @@ -From: Michael Olbrich -Date: Thu, 21 Aug 2014 12:30:15 +0200 -Subject: [PATCH] missing: add BPF_XOR - -BPF_XOR was introduced in kernel 3.7 - -Not for upstream, but needed for host-systemd. - -Signed-off-by: Michael Olbrich ---- - src/basic/missing.h | 4 ++++ - 1 file changed, 4 insertions(+) - -diff --git a/src/basic/missing.h b/src/basic/missing.h -index ae5f3ce165eb..16c1a140ee65 100644 ---- a/src/basic/missing.h -+++ b/src/basic/missing.h -@@ -1014,6 +1014,10 @@ struct input_mask { - # define BPF_XOR 0xa0 - #endif - -+#ifndef BPF_XOR -+# define BPF_XOR 0xa0 -+#endif -+ - /* Note that LOOPBACK_IFINDEX is currently not exported by the - * kernel/glibc, but hardcoded internally by the kernel. However, as - * it is exported to userspace indirectly via rtnetlink and the diff --git a/patches/systemd-234/0003-missing-define-__NR_kcmp-if-necessary.patch b/patches/systemd-234/0003-missing-define-__NR_kcmp-if-necessary.patch deleted file mode 100644 index de7dd1f1e..000000000 --- a/patches/systemd-234/0003-missing-define-__NR_kcmp-if-necessary.patch +++ /dev/null @@ -1,28 +0,0 @@ -From: Michael Olbrich -Date: Thu, 5 Mar 2015 10:33:25 +0100 -Subject: [PATCH] missing: define __NR_kcmp if necessary - -Needed for Kernel Headers < v3.5 - -Not for upstream, but needed for host-systemd. - -Signed-off-by: Michael Olbrich ---- - src/basic/missing_syscall.h | 4 ++++ - 1 file changed, 4 insertions(+) - -diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h -index 898116c7b310..cf9a57f92595 100644 ---- a/src/basic/missing_syscall.h -+++ b/src/basic/missing_syscall.h -@@ -239,6 +239,10 @@ static inline int renameat2(int oldfd, const char *oldname, int newfd, const cha - - /* ======================================================================= */ - -+#ifndef __NR_kcmp -+# define __NR_kcmp 0xffffffff -+#endif -+ - #if !HAVE_DECL_KCMP - static inline int kcmp(pid_t pid1, pid_t pid2, int type, unsigned long idx1, unsigned long idx2) { - # ifdef __NR_kcmp diff --git a/patches/systemd-234/0004-missing-define-O_PATH-and-AT_EMPTY_PATH.patch b/patches/systemd-234/0004-missing-define-O_PATH-and-AT_EMPTY_PATH.patch deleted file mode 100644 index 5085c8790..000000000 --- a/patches/systemd-234/0004-missing-define-O_PATH-and-AT_EMPTY_PATH.patch +++ /dev/null @@ -1,44 +0,0 @@ -From: Michael Olbrich -Date: Tue, 2 Jun 2015 10:46:05 +0200 -Subject: [PATCH] missing: define O_PATH and AT_EMPTY_PATH - -This is required for glibc <= 2.15 - -Upstream requires glibc 2.16 but this is useful for host-systemd. - -Signed-off-by: Michael Olbrich ---- - src/basic/missing.h | 7 +++++++ - src/basic/xattr-util.c | 1 + - 2 files changed, 8 insertions(+) - -diff --git a/src/basic/missing.h b/src/basic/missing.h -index 16c1a140ee65..8671c56140a6 100644 ---- a/src/basic/missing.h -+++ b/src/basic/missing.h -@@ -958,6 +958,13 @@ struct input_mask { - #define CLOCK_BOOTTIME_ALARM 9 - #endif - -+#ifndef O_PATH -+#define O_PATH 010000000 -+#endif -+#ifndef AT_EMPTY_PATH -+#define AT_EMPTY_PATH 0x1000 /* Allow empty relative pathname */ -+#endif -+ - #ifndef IPV6_UNICAST_IF - #define IPV6_UNICAST_IF 76 - #endif -diff --git a/src/basic/xattr-util.c b/src/basic/xattr-util.c -index 8256899edae3..dc64a9aeb4c8 100644 ---- a/src/basic/xattr-util.c -+++ b/src/basic/xattr-util.c -@@ -25,6 +25,7 @@ - #include - #include - -+#include "missing.h" - #include "alloc-util.h" - #include "fd-util.h" - #include "macro.h" diff --git a/patches/systemd-234/0005-HACK-configure.ac-disable-NLS-to-avoid-unnecessary-d.patch b/patches/systemd-234/0005-HACK-configure.ac-disable-NLS-to-avoid-unnecessary-d.patch deleted file mode 100644 index fe1fd978f..000000000 --- a/patches/systemd-234/0005-HACK-configure.ac-disable-NLS-to-avoid-unnecessary-d.patch +++ /dev/null @@ -1,35 +0,0 @@ -From: Michael Olbrich -Date: Tue, 7 Jul 2015 09:58:21 +0200 -Subject: [PATCH] HACK: configure.ac: disable NLS to avoid unnecessary - dependencies during autogen.sh - -Signed-off-by: Michael Olbrich ---- - configure.ac | 7 +++++++ - 1 file changed, 7 insertions(+) - -diff --git a/configure.ac b/configure.ac -index c7537aafc0c9..c8fa808bc4d3 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -60,6 +60,7 @@ SET_ARCH(MIPS, mips*) - SET_ARCH(ARM, arm*) - SET_ARCH(AARCH64, aarch64*) - -+m4_ifdef([AM_NLS__DISABLED], [ - # i18n stuff for the PolicyKit policy files, heck whether intltool can be found, disable NLS otherwise - AC_CHECK_PROG(intltool_found, [intltool-merge], [yes], [no]) - AS_IF([test x"$intltool_found" != xyes], -@@ -82,6 +83,12 @@ AS_IF([test -z "$INTLTOOL_POLICY_RULE"], [ - INTLTOOL_POLICY_RULE='%.policy: %.policy.in ; @echo " ITMRG " $@ && echo "*** intltool support required to build target $@" && false' - AC_SUBST(INTLTOOL_POLICY_RULE) - ]) -+],[ -+touch `dirname $0`/po/Makefile.in.in -+echo -e 'all:\ninstall:\n' > `dirname $0`/po/Makefile -+INTLTOOL_POLICY_RULE= -+AC_SUBST(INTLTOOL_POLICY_RULE) -+]) - - GETTEXT_PACKAGE=systemd - AC_SUBST(GETTEXT_PACKAGE) diff --git a/patches/systemd-234/0006-missing-define-syncfs.patch b/patches/systemd-234/0006-missing-define-syncfs.patch deleted file mode 100644 index 6dc619eca..000000000 --- a/patches/systemd-234/0006-missing-define-syncfs.patch +++ /dev/null @@ -1,45 +0,0 @@ -From: Michael Olbrich -Date: Sat, 1 Aug 2015 21:36:38 +0200 -Subject: [PATCH] missing: define syncfs - -This is required for glibc < 2.14 - -Upstream requires glibc 2.16 but this is useful for host-systemd. - -Signed-off-by: Michael Olbrich ---- - configure.ac | 1 + - src/basic/missing.h | 8 ++++++++ - 2 files changed, 9 insertions(+) - -diff --git a/configure.ac b/configure.ac -index c8fa808bc4d3..2101755d4e58 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -335,6 +335,7 @@ AC_CHECK_DECLS([ - pivot_root, - name_to_handle_at, - setns, -+ syncfs, - renameat2, - kcmp, - keyctl, -diff --git a/src/basic/missing.h b/src/basic/missing.h -index 8671c56140a6..fae5329663b2 100644 ---- a/src/basic/missing.h -+++ b/src/basic/missing.h -@@ -965,6 +965,14 @@ struct input_mask { - #define AT_EMPTY_PATH 0x1000 /* Allow empty relative pathname */ - #endif - -+#if !HAVE_DECL_SYNCFS -+static inline int syncfs(int fd) -+{ -+ errno = ENOSYS; -+ return -1; -+} -+#endif -+ - #ifndef IPV6_UNICAST_IF - #define IPV6_UNICAST_IF 76 - #endif diff --git a/patches/systemd-234/0007-missing-add-more-btrfs-defines.patch b/patches/systemd-234/0007-missing-add-more-btrfs-defines.patch deleted file mode 100644 index 35493d484..000000000 --- a/patches/systemd-234/0007-missing-add-more-btrfs-defines.patch +++ /dev/null @@ -1,69 +0,0 @@ -From: Michael Olbrich -Date: Thu, 19 Nov 2015 16:52:47 +0100 -Subject: [PATCH] missing: add more btrfs defines - -Signed-off-by: Michael Olbrich ---- - src/basic/missing.h | 37 +++++++++++++++++++++++++++++++++++++ - 1 file changed, 37 insertions(+) - -diff --git a/src/basic/missing.h b/src/basic/missing.h -index fae5329663b2..975d6054c5ce 100644 ---- a/src/basic/missing.h -+++ b/src/basic/missing.h -@@ -331,6 +331,23 @@ struct btrfs_ioctl_quota_ctl_args { - __u64 cmd; - __u64 status; - }; -+ -+struct btrfs_ioctl_quota_rescan_args { -+ __u64 flags; -+ __u64 progress; -+ __u64 reserved[6]; -+}; -+ -+struct btrfs_ioctl_qgroup_assign_args { -+ __u64 assign; -+ __u64 src; -+ __u64 dst; -+}; -+ -+struct btrfs_ioctl_qgroup_create_args { -+ __u64 create; -+ __u64 qgroupid; -+}; - #endif - - #ifndef BTRFS_IOC_DEFRAG -@@ -405,11 +422,31 @@ struct btrfs_ioctl_quota_ctl_args { - struct btrfs_ioctl_quota_ctl_args) - #endif - -+#ifndef BTRFS_IOC_QGROUP_ASSIGN -+#define BTRFS_IOC_QGROUP_ASSIGN _IOW(BTRFS_IOCTL_MAGIC, 41, \ -+ struct btrfs_ioctl_qgroup_assign_args) -+#endif -+ -+#ifndef BTRFS_IOC_QGROUP_CREATE -+#define BTRFS_IOC_QGROUP_CREATE _IOW(BTRFS_IOCTL_MAGIC, 42, \ -+ struct btrfs_ioctl_qgroup_create_args) -+#endif -+ - #ifndef BTRFS_IOC_QGROUP_LIMIT - #define BTRFS_IOC_QGROUP_LIMIT _IOR(BTRFS_IOCTL_MAGIC, 43, \ - struct btrfs_ioctl_qgroup_limit_args) - #endif - -+#ifndef BTRFS_IOC_QUOTA_RESCAN -+#define BTRFS_IOC_QUOTA_RESCAN _IOW(BTRFS_IOCTL_MAGIC, 44, \ -+ struct btrfs_ioctl_quota_rescan_args) -+#endif -+ -+#ifndef BTRFS_IOC_QUOTA_RESCAN_STATUS -+#define BTRFS_IOC_QUOTA_RESCAN_STATUS _IOR(BTRFS_IOCTL_MAGIC, 45, \ -+ struct btrfs_ioctl_quota_rescan_args) -+#endif -+ - #ifndef BTRFS_IOC_QUOTA_RESCAN_WAIT - #define BTRFS_IOC_QUOTA_RESCAN_WAIT _IO(BTRFS_IOCTL_MAGIC, 46) - #endif diff --git a/patches/systemd-234/0008-HACK-include-missing.h-in-btrfs-ctree.h-for-BTRFS_UU.patch b/patches/systemd-234/0008-HACK-include-missing.h-in-btrfs-ctree.h-for-BTRFS_UU.patch deleted file mode 100644 index f75dd8613..000000000 --- a/patches/systemd-234/0008-HACK-include-missing.h-in-btrfs-ctree.h-for-BTRFS_UU.patch +++ /dev/null @@ -1,24 +0,0 @@ -From: Michael Olbrich -Date: Thu, 19 Nov 2015 16:53:42 +0100 -Subject: [PATCH] HACK: include missing.h in btrfs-ctree.h for BTRFS_UUID_SIZE - -This is needed for older Kernel headers without btrfs.h - -Not for upstream, but needed for host-systemd. - -Signed-off-by: Michael Olbrich ---- - src/basic/btrfs-ctree.h | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/src/basic/btrfs-ctree.h b/src/basic/btrfs-ctree.h -index 66bdf9736ef5..e9edc8eb5445 100644 ---- a/src/basic/btrfs-ctree.h -+++ b/src/basic/btrfs-ctree.h -@@ -1,5 +1,6 @@ - #pragma once - -+#include "missing.h" - #include "macro.h" - #include "sparse-endian.h" - diff --git a/patches/systemd-234/0009-HACK-add-local-copy-of-uchar.h.patch b/patches/systemd-234/0009-HACK-add-local-copy-of-uchar.h.patch deleted file mode 100644 index db5a28a9c..000000000 --- a/patches/systemd-234/0009-HACK-add-local-copy-of-uchar.h.patch +++ /dev/null @@ -1,152 +0,0 @@ -From: Michael Olbrich -Date: Fri, 15 Apr 2016 16:33:14 +0200 -Subject: [PATCH] HACK: add local copy of uchar.h - -Upstream requires glibc 2.16 and uchar.h is available in that version. - -Signed-off-by: Michael Olbrich ---- - configure.ac | 1 + - src/basic/_uchar.h | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++ - src/basic/escape.h | 1 - - src/basic/missing.h | 4 +++ - src/basic/utf8.h | 1 - - 5 files changed, 83 insertions(+), 2 deletions(-) - create mode 100644 src/basic/_uchar.h - -diff --git a/configure.ac b/configure.ac -index 2101755d4e58..335a718ad2c1 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -317,6 +317,7 @@ AC_CHECK_HEADERS([sys/capability.h], [], [AC_MSG_ERROR([*** POSIX caps headers n - AC_CHECK_HEADERS([linux/btrfs.h], [], []) - AC_CHECK_HEADERS([linux/memfd.h], [], []) - AC_CHECK_HEADERS([linux/vm_sockets.h], [], [], [#include ]) -+AC_CHECK_HEADERS([uchar.h], [], []) - - # unconditionally pull-in librt with old glibc versions - AC_SEARCH_LIBS([clock_gettime], [rt], [], []) -diff --git a/src/basic/_uchar.h b/src/basic/_uchar.h -new file mode 100644 -index 000000000000..b15d355ae0c5 ---- /dev/null -+++ b/src/basic/_uchar.h -@@ -0,0 +1,78 @@ -+/* Copyright (C) 2011-2015 Free Software Foundation, Inc. -+ This file is part of the GNU C Library. -+ -+ The GNU C Library is free software; you can redistribute it and/or -+ modify it under the terms of the GNU Lesser General Public -+ License as published by the Free Software Foundation; either -+ version 2.1 of the License, or (at your option) any later version. -+ -+ The GNU C Library is distributed in the hope that it will be useful, -+ but WITHOUT ANY WARRANTY; without even the implied warranty of -+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -+ Lesser General Public License for more details. -+ -+ You should have received a copy of the GNU Lesser General Public -+ License along with the GNU C Library; if not, see -+ . */ -+ -+/* -+ * ISO C11 Standard: 7.28 -+ * Unicode utilities -+ */ -+ -+#ifndef _UCHAR_H -+#define _UCHAR_H 1 -+ -+#include -+ -+#define __need_size_t -+#include -+#define __need_mbstate_t -+#include -+ -+/* Public type. */ -+typedef __mbstate_t mbstate_t; -+ -+ -+#if defined __GNUC__ && !defined __USE_ISOCXX11 -+/* Define the 16-bit and 32-bit character types. Use the information -+ provided by the compiler. */ -+# if !defined __CHAR16_TYPE__ || !defined __CHAR32_TYPE__ -+# if defined __STDC_VERSION__ && __STDC_VERSION__ < 201000L -+# error " requires ISO C11 mode" -+# else -+# error "definitions of __CHAR16_TYPE__ and/or __CHAR32_TYPE__ missing" -+# endif -+# endif -+typedef __CHAR16_TYPE__ char16_t; -+typedef __CHAR32_TYPE__ char32_t; -+#endif -+ -+ -+__BEGIN_DECLS -+ -+/* Write char16_t representation of multibyte character pointed -+ to by S to PC16. */ -+extern size_t mbrtoc16 (char16_t *__restrict __pc16, -+ const char *__restrict __s, size_t __n, -+ mbstate_t *__restrict __p) __THROW; -+ -+/* Write multibyte representation of char16_t C16 to S. */ -+extern size_t c16rtomb (char *__restrict __s, char16_t __c16, -+ mbstate_t *__restrict __ps) __THROW; -+ -+ -+ -+/* Write char32_t representation of multibyte character pointed -+ to by S to PC32. */ -+extern size_t mbrtoc32 (char32_t *__restrict __pc32, -+ const char *__restrict __s, size_t __n, -+ mbstate_t *__restrict __p) __THROW; -+ -+/* Write multibyte representation of char32_t C32 to S. */ -+extern size_t c32rtomb (char *__restrict __s, char32_t __c32, -+ mbstate_t *__restrict __ps) __THROW; -+ -+__END_DECLS -+ -+#endif /* uchar.h */ -diff --git a/src/basic/escape.h b/src/basic/escape.h -index 6f5cc60bc80d..d2edac9ccdce 100644 ---- a/src/basic/escape.h -+++ b/src/basic/escape.h -@@ -23,7 +23,6 @@ - #include - #include - #include --#include - - #include "string-util.h" - #include "missing.h" -diff --git a/src/basic/missing.h b/src/basic/missing.h -index 975d6054c5ce..a7f53e4622af 100644 ---- a/src/basic/missing.h -+++ b/src/basic/missing.h -@@ -37,7 +37,11 @@ - #include - #include - #include -+#ifdef HAVE_UCHAR_H - #include -+#else -+#include "_uchar.h" -+#endif - #include - - #ifdef HAVE_AUDIT -diff --git a/src/basic/utf8.h b/src/basic/utf8.h -index f9b9c9468bb1..6ac9a3c8d087 100644 ---- a/src/basic/utf8.h -+++ b/src/basic/utf8.h -@@ -22,7 +22,6 @@ - #include - #include - #include --#include - - #include "macro.h" - #include "missing.h" diff --git a/patches/systemd-234/0010-HACK-fix-building-without-linux-sctp.h.patch b/patches/systemd-234/0010-HACK-fix-building-without-linux-sctp.h.patch deleted file mode 100644 index 77195d9a0..000000000 --- a/patches/systemd-234/0010-HACK-fix-building-without-linux-sctp.h.patch +++ /dev/null @@ -1,45 +0,0 @@ -From: Michael Olbrich -Date: Mon, 18 Apr 2016 12:22:22 +0200 -Subject: [PATCH] HACK: fix building without linux/sctp.h - -linux/sctp.h exists since kernel 3.10. - -Upstream requires kernel 3.11 but this is useful for host-systemd. - -Signed-off-by: Michael Olbrich ---- - configure.ac | 4 ++++ - src/core/socket.c | 4 ++++ - 2 files changed, 8 insertions(+) - -diff --git a/configure.ac b/configure.ac -index 335a718ad2c1..b13ab6f0b67d 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -318,6 +318,10 @@ AC_CHECK_HEADERS([linux/btrfs.h], [], []) - AC_CHECK_HEADERS([linux/memfd.h], [], []) - AC_CHECK_HEADERS([linux/vm_sockets.h], [], [], [#include ]) - AC_CHECK_HEADERS([uchar.h], [], []) -+AC_CHECK_HEADERS([linux/sctp.h], [], [], [ -+#include -+#include -+]) - - # unconditionally pull-in librt with old glibc versions - AC_SEARCH_LIBS([clock_gettime], [rt], [], []) -diff --git a/src/core/socket.c b/src/core/socket.c -index 8750643d926c..e9f0d0f7c17e 100644 ---- a/src/core/socket.c -+++ b/src/core/socket.c -@@ -26,7 +26,11 @@ - #include - #include - #include -+#ifdef HAVE_LINUX_SCTP_H - #include -+#else -+#define SCTP_NODELAY 3 -+#endif - - #include "alloc-util.h" - #include "bus-error.h" diff --git a/patches/systemd-234/0011-missing-add-SMACK_MAGIC-EFIVARFS_MAGIC-BINFMTFS_MAGI.patch b/patches/systemd-234/0011-missing-add-SMACK_MAGIC-EFIVARFS_MAGIC-BINFMTFS_MAGI.patch deleted file mode 100644 index 6fe162a89..000000000 --- a/patches/systemd-234/0011-missing-add-SMACK_MAGIC-EFIVARFS_MAGIC-BINFMTFS_MAGI.patch +++ /dev/null @@ -1,34 +0,0 @@ -From: Michael Olbrich -Date: Fri, 27 May 2016 10:49:55 +0200 -Subject: [PATCH] missing: add SMACK_MAGIC, EFIVARFS_MAGIC, BINFMTFS_MAGIC - -These were all introduced before kernel v3.9 - -Not for upstream, but needed for host-systemd. - -Signed-off-by: Michael Olbrich ---- - src/basic/missing.h | 10 ++++++++++ - 1 file changed, 10 insertions(+) - -diff --git a/src/basic/missing.h b/src/basic/missing.h -index a7f53e4622af..54ee7fa91414 100644 ---- a/src/basic/missing.h -+++ b/src/basic/missing.h -@@ -1014,6 +1014,16 @@ static inline int syncfs(int fd) - } - #endif - -+#ifndef SMACK_MAGIC -+#define SMACK_MAGIC 0x43415d53 -+#endif -+#ifndef EFIVARFS_MAGIC -+#define EFIVARFS_MAGIC 0xde5e81e4 -+#endif -+#ifndef BINFMTFS_MAGIC -+#define BINFMTFS_MAGIC 0x42494e4d -+#endif -+ - #ifndef IPV6_UNICAST_IF - #define IPV6_UNICAST_IF 76 - #endif diff --git a/patches/systemd-234/0012-missing-define-PR_SET_MM.patch b/patches/systemd-234/0012-missing-define-PR_SET_MM.patch deleted file mode 100644 index 4c0f4417c..000000000 --- a/patches/systemd-234/0012-missing-define-PR_SET_MM.patch +++ /dev/null @@ -1,43 +0,0 @@ -From: Michael Olbrich -Date: Mon, 13 Mar 2017 18:43:37 +0100 -Subject: [PATCH] missing: define PR_SET_MM* - -These were all introduced before kernel v3.4 - -Not for upstream, but needed for host-systemd. - -Signed-off-by: Michael Olbrich ---- - src/basic/missing.h | 19 +++++++++++++++++++ - 1 file changed, 19 insertions(+) - -diff --git a/src/basic/missing.h b/src/basic/missing.h -index 54ee7fa91414..3bebd8d59e47 100644 ---- a/src/basic/missing.h -+++ b/src/basic/missing.h -@@ -1024,6 +1024,25 @@ static inline int syncfs(int fd) - #define BINFMTFS_MAGIC 0x42494e4d - #endif - -+#ifndef PR_SET_MM -+#define PR_SET_MM 35 -+# define PR_SET_MM_START_CODE 1 -+# define PR_SET_MM_END_CODE 2 -+# define PR_SET_MM_START_DATA 3 -+# define PR_SET_MM_END_DATA 4 -+# define PR_SET_MM_START_STACK 5 -+# define PR_SET_MM_START_BRK 6 -+# define PR_SET_MM_BRK 7 -+# define PR_SET_MM_ARG_START 8 -+# define PR_SET_MM_ARG_END 9 -+# define PR_SET_MM_ENV_START 10 -+# define PR_SET_MM_ENV_END 11 -+# define PR_SET_MM_AUXV 12 -+# define PR_SET_MM_EXE_FILE 13 -+# define PR_SET_MM_MAP 14 -+# define PR_SET_MM_MAP_SIZE 15 -+#endif -+ - #ifndef IPV6_UNICAST_IF - #define IPV6_UNICAST_IF 76 - #endif diff --git a/patches/systemd-234/0100-build-don-t-install-broken-var-lib-machines.mount-li.patch b/patches/systemd-234/0100-build-don-t-install-broken-var-lib-machines.mount-li.patch deleted file mode 100644 index d263d6495..000000000 --- a/patches/systemd-234/0100-build-don-t-install-broken-var-lib-machines.mount-li.patch +++ /dev/null @@ -1,25 +0,0 @@ -From: Michael Olbrich -Date: Wed, 13 Sep 2017 12:24:17 +0200 -Subject: [PATCH] build: don't install broken var-lib-machines.mount link if - machined is disabled - -Signed-off-by: Michael Olbrich ---- - Makefile.am | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/Makefile.am b/Makefile.am -index c16e62280be7..ff10cfe4cd97 100644 ---- a/Makefile.am -+++ b/Makefile.am -@@ -6602,8 +6602,10 @@ LOCAL_FS_TARGET_WANTS += \ - systemd-remount-fs.service \ - tmp.mount - -+if ENABLE_MACHINED - REMOTE_FS_TARGET_WANTS += \ - var-lib-machines.mount -+endif - - MULTI_USER_TARGET_WANTS += \ - getty.target \ diff --git a/patches/systemd-234/autogen.sh b/patches/systemd-234/autogen.sh deleted file mode 100755 index cbfab1ee7..000000000 --- a/patches/systemd-234/autogen.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -autoreconf \ - --force \ - --install \ - --warnings=cross \ - --warnings=syntax \ - --warnings=obsolete \ - --warnings=unsupported diff --git a/patches/systemd-234/series b/patches/systemd-234/series deleted file mode 100644 index c39337ae1..000000000 --- a/patches/systemd-234/series +++ /dev/null @@ -1,18 +0,0 @@ -# generated by git-ptx-patches -#tag:base --start-number 1 -#tag:host-systemd --start-number 1 -0001-missing-defined-extra-clock-ids.patch -0002-missing-add-BPF_XOR.patch -0003-missing-define-__NR_kcmp-if-necessary.patch -0004-missing-define-O_PATH-and-AT_EMPTY_PATH.patch -0005-HACK-configure.ac-disable-NLS-to-avoid-unnecessary-d.patch -0006-missing-define-syncfs.patch -0007-missing-add-more-btrfs-defines.patch -0008-HACK-include-missing.h-in-btrfs-ctree.h-for-BTRFS_UU.patch -0009-HACK-add-local-copy-of-uchar.h.patch -0010-HACK-fix-building-without-linux-sctp.h.patch -0011-missing-add-SMACK_MAGIC-EFIVARFS_MAGIC-BINFMTFS_MAGI.patch -0012-missing-define-PR_SET_MM.patch -#tag:fixes --start-number 100 -0100-build-don-t-install-broken-var-lib-machines.mount-li.patch -# 8331ad1f7461614c95d5eac0a9d31dc5 - git-ptx-patches magic diff --git a/patches/systemd-235/0001-i18n-drop-intltool-use-use-meson-s-merge_file-direct.patch b/patches/systemd-235/0001-i18n-drop-intltool-use-use-meson-s-merge_file-direct.patch deleted file mode 100644 index e9a0d05ac..000000000 --- a/patches/systemd-235/0001-i18n-drop-intltool-use-use-meson-s-merge_file-direct.patch +++ /dev/null @@ -1,866 +0,0 @@ -From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= -Date: Mon, 13 Nov 2017 13:30:39 +0100 -Subject: [PATCH] i18n: drop intltool use, use meson's merge_file directly - -This didn't work during the initial conversion to meson, but should now. -A sufficiently new polkit is also required, for the .its rules files. - -Note that https://github.com/mesonbuild/meson/blob/master/docs/markdown/i18n-module.md -says that 'install' argument was added in meson 0.43.0. If this is accurate, -warnigs might be generated with older mesons. Fedora has 0.43.0 across the -board, but other distros probably don't, but I guess that a warning is -prefereable to having to update do latest meson. - -The advantages are: -- one less dependency (intltool) -- using the generic implementation instead of our open-coded calls -- we don't need to use the fake "_" prefixes in XML - -Replaces #1609, fixes #7300. ---- - README | 1 + - po/meson.build | 8 -- - src/core/meson.build | 15 +-- - src/core/org.freedesktop.systemd1.policy.in.in | 20 ++-- - src/hostname/meson.build | 4 +- - src/hostname/org.freedesktop.hostname1.policy.in | 12 +-- - src/import/meson.build | 4 +- - src/import/org.freedesktop.import1.policy.in | 12 +-- - src/locale/meson.build | 4 +- - src/locale/org.freedesktop.locale1.policy.in | 8 +- - src/login/meson.build | 4 +- - src/login/org.freedesktop.login1.policy.in | 128 +++++++++++------------ - src/machine/meson.build | 4 +- - src/machine/org.freedesktop.machine1.policy.in | 32 +++--- - src/timedate/meson.build | 4 +- - src/timedate/org.freedesktop.timedate1.policy.in | 20 ++-- - 16 files changed, 131 insertions(+), 149 deletions(-) - -diff --git a/README b/README -index e36a1f9fa156..f73524df1d72 100644 ---- a/README -+++ b/README -@@ -149,6 +149,7 @@ REQUIREMENTS: - libpython (optional) - libidn2 or libidn (optional) - elfutils >= 158 (optional) -+ polkit >= 0.113-22-gc78819245f (optional) - pkg-config - gperf - docbook-xsl (optional, required for documentation) -diff --git a/po/meson.build b/po/meson.build -index f89291bfc435..c4654be5ffe5 100644 ---- a/po/meson.build -+++ b/po/meson.build -@@ -1,12 +1,4 @@ - i18n = import('i18n') - i18n.gettext(meson.project_name()) - --##################################################################### -- --intltool_merge = find_program('intltool-merge') - po_dir = meson.current_source_dir() -- --intltool_cache = join_paths(meson.current_build_dir(), 'intltool-merge-cache') --intltool_command = [intltool_merge, '-x', '-u', -- '-c', intltool_cache, -- po_dir, '@INPUT@', '@OUTPUT@'] -diff --git a/src/core/meson.build b/src/core/meson.build -index 4355f9ca6dbb..d364c5a284a2 100644 ---- a/src/core/meson.build -+++ b/src/core/meson.build -@@ -197,25 +197,14 @@ policy_in = configure_file( - output : 'org.freedesktop.systemd1.policy.in', - configuration : substs) - --custom_target( -+i18n.merge_file( - 'org.freedesktop.systemd1.policy', - input : policy_in, - output : 'org.freedesktop.systemd1.policy', -- command : intltool_command, -+ po_dir : po_dir, - install : install_polkit, - install_dir : polkitpolicydir) - --# TODO: this might work with meson from git, see --# https://github.com/mesonbuild/meson/issues/1441#issuecomment-283585493 --# --# i18n.merge_file( --# 'org.freedesktop.systemd1.policy', --# po_dir : po_dir, --# input : policy_in, --# output : 'org.freedesktop.systemd1.policy', --# install : install_polkit, --# install_dir : polkitpolicydir) -- - install_data('system.conf', - 'user.conf', - install_dir : pkgsysconfdir) -diff --git a/src/core/org.freedesktop.systemd1.policy.in.in b/src/core/org.freedesktop.systemd1.policy.in.in -index cc39a9e1c3ac..9f9263762e83 100644 ---- a/src/core/org.freedesktop.systemd1.policy.in.in -+++ b/src/core/org.freedesktop.systemd1.policy.in.in -@@ -17,8 +17,8 @@ - http://www.freedesktop.org/wiki/Software/systemd - - -- <_description>Send passphrase back to system -- <_message>Authentication is required to send the entered passphrase back to the system. -+ Send passphrase back to system -+ Authentication is required to send the entered passphrase back to the system. - - no - no -@@ -28,8 +28,8 @@ - - - -- <_description>Manage system services or other units -- <_message>Authentication is required to manage system services or other units. -+ Manage system services or other units -+ Authentication is required to manage system services or other units. - - auth_admin - auth_admin -@@ -38,8 +38,8 @@ - - - -- <_description>Manage system service or unit files -- <_message>Authentication is required to manage system service or unit files. -+ Manage system service or unit files -+ Authentication is required to manage system service or unit files. - - auth_admin - auth_admin -@@ -48,8 +48,8 @@ - - - -- <_description>Set or unset system and service manager environment variables -- <_message>Authentication is required to set or unset system and service manager environment variables. -+ Set or unset system and service manager environment variables -+ Authentication is required to set or unset system and service manager environment variables. - - auth_admin - auth_admin -@@ -58,8 +58,8 @@ - - - -- <_description>Reload the systemd state -- <_message>Authentication is required to reload the systemd state. -+ Reload the systemd state -+ Authentication is required to reload the systemd state. - - auth_admin - auth_admin -diff --git a/src/hostname/meson.build b/src/hostname/meson.build -index 834300ae6e1f..b4db5afb1f6e 100644 ---- a/src/hostname/meson.build -+++ b/src/hostname/meson.build -@@ -4,11 +4,11 @@ if conf.get('ENABLE_HOSTNAMED') == 1 - install_data('org.freedesktop.hostname1.service', - install_dir : dbussystemservicedir) - -- custom_target( -+ i18n.merge_file( - 'org.freedesktop.hostname1.policy', - input : 'org.freedesktop.hostname1.policy.in', - output : 'org.freedesktop.hostname1.policy', -- command : intltool_command, -+ po_dir : po_dir, - install : install_polkit, - install_dir : polkitpolicydir) - endif -diff --git a/src/hostname/org.freedesktop.hostname1.policy.in b/src/hostname/org.freedesktop.hostname1.policy.in -index c32c1d4fda05..cf61c15619cc 100644 ---- a/src/hostname/org.freedesktop.hostname1.policy.in -+++ b/src/hostname/org.freedesktop.hostname1.policy.in -@@ -17,8 +17,8 @@ - http://www.freedesktop.org/wiki/Software/systemd - - -- <_description>Set host name -- <_message>Authentication is required to set the local host name. -+ Set host name -+ Authentication is required to set the local host name. - - auth_admin_keep - auth_admin_keep -@@ -27,8 +27,8 @@ - - - -- <_description>Set static host name -- <_message>Authentication is required to set the statically configured local host name, as well as the pretty host name. -+ Set static host name -+ Authentication is required to set the statically configured local host name, as well as the pretty host name. - - auth_admin_keep - auth_admin_keep -@@ -38,8 +38,8 @@ - - - -- <_description>Set machine information -- <_message>Authentication is required to set local machine information. -+ Set machine information -+ Authentication is required to set local machine information. - - auth_admin_keep - auth_admin_keep -diff --git a/src/import/meson.build b/src/import/meson.build -index e3a0da65d211..9ace20f50d94 100644 ---- a/src/import/meson.build -+++ b/src/import/meson.build -@@ -54,11 +54,11 @@ if conf.get('ENABLE_IMPORTD') == 1 - install_data('org.freedesktop.import1.service', - install_dir : dbussystemservicedir) - -- custom_target( -+ i18n.merge_file( - 'org.freedesktop.import1.policy', - input : 'org.freedesktop.import1.policy.in', - output : 'org.freedesktop.import1.policy', -- command : intltool_command, -+ po_dir : po_dir, - install : install_polkit, - install_dir : polkitpolicydir) - -diff --git a/src/import/org.freedesktop.import1.policy.in b/src/import/org.freedesktop.import1.policy.in -index 85924ed7437b..39167b06bc24 100644 ---- a/src/import/org.freedesktop.import1.policy.in -+++ b/src/import/org.freedesktop.import1.policy.in -@@ -17,8 +17,8 @@ - http://www.freedesktop.org/wiki/Software/systemd - - -- <_description>Import a VM or container image -- <_message>Authentication is required to import a VM or container image -+ Import a VM or container image -+ Authentication is required to import a VM or container image - - auth_admin - auth_admin -@@ -27,8 +27,8 @@ - - - -- <_description>Export a VM or container image -- <_message>Authentication is required to export a VM or container image -+ Export a VM or container image -+ Authentication is required to export a VM or container image - - auth_admin - auth_admin -@@ -37,8 +37,8 @@ - - - -- <_description>Download a VM or container image -- <_message>Authentication is required to download a VM or container image -+ Download a VM or container image -+ Authentication is required to download a VM or container image - - auth_admin - auth_admin -diff --git a/src/locale/meson.build b/src/locale/meson.build -index e9de6089f319..a0411fb1a666 100644 ---- a/src/locale/meson.build -+++ b/src/locale/meson.build -@@ -12,11 +12,11 @@ if conf.get('ENABLE_LOCALED') == 1 - install_data('org.freedesktop.locale1.service', - install_dir : dbussystemservicedir) - -- custom_target( -+ i18n.merge_file( - 'org.freedesktop.locale1.policy', - input : 'org.freedesktop.locale1.policy.in', - output : 'org.freedesktop.locale1.policy', -- command : intltool_command, -+ po_dir : po_dir, - install : install_polkit, - install_dir : polkitpolicydir) - endif -diff --git a/src/locale/org.freedesktop.locale1.policy.in b/src/locale/org.freedesktop.locale1.policy.in -index df63845e9be6..575a1ffaaf04 100644 ---- a/src/locale/org.freedesktop.locale1.policy.in -+++ b/src/locale/org.freedesktop.locale1.policy.in -@@ -17,8 +17,8 @@ - http://www.freedesktop.org/wiki/Software/systemd - - -- <_description>Set system locale -- <_message>Authentication is required to set the system locale. -+ Set system locale -+ Authentication is required to set the system locale. - - auth_admin_keep - auth_admin_keep -@@ -28,8 +28,8 @@ - - - -- <_description>Set system keyboard settings -- <_message>Authentication is required to set the system keyboard settings. -+ Set system keyboard settings -+ Authentication is required to set the system keyboard settings. - - auth_admin_keep - auth_admin_keep -diff --git a/src/login/meson.build b/src/login/meson.build -index d0723f134f43..339c5d73cae3 100644 ---- a/src/login/meson.build -+++ b/src/login/meson.build -@@ -71,11 +71,11 @@ if conf.get('ENABLE_LOGIND') == 1 - install_data('org.freedesktop.login1.service', - install_dir : dbussystemservicedir) - -- custom_target( -+ i18n.merge_file( - 'org.freedesktop.login1.policy', - input : 'org.freedesktop.login1.policy.in', - output : 'org.freedesktop.login1.policy', -- command : intltool_command, -+ po_dir : po_dir, - install : install_polkit, - install_dir : polkitpolicydir) - -diff --git a/src/login/org.freedesktop.login1.policy.in b/src/login/org.freedesktop.login1.policy.in -index 3e8a9bbe3f9f..17bae02f5e6e 100644 ---- a/src/login/org.freedesktop.login1.policy.in -+++ b/src/login/org.freedesktop.login1.policy.in -@@ -17,8 +17,8 @@ - http://www.freedesktop.org/wiki/Software/systemd - - -- <_description>Allow applications to inhibit system shutdown -- <_message>Authentication is required for an application to inhibit system shutdown. -+ Allow applications to inhibit system shutdown -+ Authentication is required for an application to inhibit system shutdown. - - no - yes -@@ -28,8 +28,8 @@ - - - -- <_description>Allow applications to delay system shutdown -- <_message>Authentication is required for an application to delay system shutdown. -+ Allow applications to delay system shutdown -+ Authentication is required for an application to delay system shutdown. - - yes - yes -@@ -39,8 +39,8 @@ - - - -- <_description>Allow applications to inhibit system sleep -- <_message>Authentication is required for an application to inhibit system sleep. -+ Allow applications to inhibit system sleep -+ Authentication is required for an application to inhibit system sleep. - - no - yes -@@ -50,8 +50,8 @@ - - - -- <_description>Allow applications to delay system sleep -- <_message>Authentication is required for an application to delay system sleep. -+ Allow applications to delay system sleep -+ Authentication is required for an application to delay system sleep. - - yes - yes -@@ -60,8 +60,8 @@ - - - -- <_description>Allow applications to inhibit automatic system suspend -- <_message>Authentication is required for an application to inhibit automatic system suspend. -+ Allow applications to inhibit automatic system suspend -+ Authentication is required for an application to inhibit automatic system suspend. - - yes - yes -@@ -70,8 +70,8 @@ - - - -- <_description>Allow applications to inhibit system handling of the power key -- <_message>Authentication is required for an application to inhibit system handling of the power key. -+ Allow applications to inhibit system handling of the power key -+ Authentication is required for an application to inhibit system handling of the power key. - - no - yes -@@ -81,8 +81,8 @@ - - - -- <_description>Allow applications to inhibit system handling of the suspend key -- <_message>Authentication is required for an application to inhibit system handling of the suspend key. -+ Allow applications to inhibit system handling of the suspend key -+ Authentication is required for an application to inhibit system handling of the suspend key. - - no - yes -@@ -92,8 +92,8 @@ - - - -- <_description>Allow applications to inhibit system handling of the hibernate key -- <_message>Authentication is required for an application to inhibit system handling of the hibernate key. -+ Allow applications to inhibit system handling of the hibernate key -+ Authentication is required for an application to inhibit system handling of the hibernate key. - - no - yes -@@ -102,8 +102,8 @@ - - - -- <_description>Allow applications to inhibit system handling of the lid switch -- <_message>Authentication is required for an application to inhibit system handling of the lid switch. -+ Allow applications to inhibit system handling of the lid switch -+ Authentication is required for an application to inhibit system handling of the lid switch. - - no - yes -@@ -112,8 +112,8 @@ - - - -- <_description>Allow non-logged-in user to run programs -- <_message>Explicit request is required to run programs as a non-logged-in user. -+ Allow non-logged-in user to run programs -+ Explicit request is required to run programs as a non-logged-in user. - - yes - yes -@@ -122,8 +122,8 @@ - - - -- <_description>Allow non-logged-in users to run programs -- <_message>Authentication is required to run programs as a non-logged-in user. -+ Allow non-logged-in users to run programs -+ Authentication is required to run programs as a non-logged-in user. - - auth_admin_keep - auth_admin_keep -@@ -132,8 +132,8 @@ - - - -- <_description>Allow attaching devices to seats -- <_message>Authentication is required for attaching a device to a seat. -+ Allow attaching devices to seats -+ Authentication is required for attaching a device to a seat. - - auth_admin_keep - auth_admin_keep -@@ -143,8 +143,8 @@ - - - -- <_description>Flush device to seat attachments -- <_message>Authentication is required for resetting how devices are attached to seats. -+ Flush device to seat attachments -+ Authentication is required for resetting how devices are attached to seats. - - auth_admin_keep - auth_admin_keep -@@ -153,8 +153,8 @@ - - - -- <_description>Power off the system -- <_message>Authentication is required for powering off the system. -+ Power off the system -+ Authentication is required for powering off the system. - - auth_admin_keep - auth_admin_keep -@@ -164,8 +164,8 @@ - - - -- <_description>Power off the system while other users are logged in -- <_message>Authentication is required for powering off the system while other users are logged in. -+ Power off the system while other users are logged in -+ Authentication is required for powering off the system while other users are logged in. - - auth_admin_keep - auth_admin_keep -@@ -175,8 +175,8 @@ - - - -- <_description>Power off the system while an application asked to inhibit it -- <_message>Authentication is required for powering off the system while an application asked to inhibit it. -+ Power off the system while an application asked to inhibit it -+ Authentication is required for powering off the system while an application asked to inhibit it. - - auth_admin_keep - auth_admin_keep -@@ -186,8 +186,8 @@ - - - -- <_description>Reboot the system -- <_message>Authentication is required for rebooting the system. -+ Reboot the system -+ Authentication is required for rebooting the system. - - auth_admin_keep - auth_admin_keep -@@ -197,8 +197,8 @@ - - - -- <_description>Reboot the system while other users are logged in -- <_message>Authentication is required for rebooting the system while other users are logged in. -+ Reboot the system while other users are logged in -+ Authentication is required for rebooting the system while other users are logged in. - - auth_admin_keep - auth_admin_keep -@@ -208,8 +208,8 @@ - - - -- <_description>Reboot the system while an application asked to inhibit it -- <_message>Authentication is required for rebooting the system while an application asked to inhibit it. -+ Reboot the system while an application asked to inhibit it -+ Authentication is required for rebooting the system while an application asked to inhibit it. - - auth_admin_keep - auth_admin_keep -@@ -219,8 +219,8 @@ - - - -- <_description>Halt the system -- <_message>Authentication is required for halting the system. -+ Halt the system -+ Authentication is required for halting the system. - - auth_admin_keep - auth_admin_keep -@@ -230,8 +230,8 @@ - - - -- <_description>Halt the system while other users are logged in -- <_message>Authentication is required for halting the system while other users are logged in. -+ Halt the system while other users are logged in -+ Authentication is required for halting the system while other users are logged in. - - auth_admin_keep - auth_admin_keep -@@ -241,8 +241,8 @@ - - - -- <_description>Halt the system while an application asked to inhibit it -- <_message>Authentication is required for halting the system while an application asked to inhibit it. -+ Halt the system while an application asked to inhibit it -+ Authentication is required for halting the system while an application asked to inhibit it. - - auth_admin_keep - auth_admin_keep -@@ -252,8 +252,8 @@ - - - -- <_description>Suspend the system -- <_message>Authentication is required for suspending the system. -+ Suspend the system -+ Authentication is required for suspending the system. - - auth_admin_keep - auth_admin_keep -@@ -262,8 +262,8 @@ - - - -- <_description>Suspend the system while other users are logged in -- <_message>Authentication is required for suspending the system while other users are logged in. -+ Suspend the system while other users are logged in -+ Authentication is required for suspending the system while other users are logged in. - - auth_admin_keep - auth_admin_keep -@@ -273,8 +273,8 @@ - - - -- <_description>Suspend the system while an application asked to inhibit it -- <_message>Authentication is required for suspending the system while an application asked to inhibit it. -+ Suspend the system while an application asked to inhibit it -+ Authentication is required for suspending the system while an application asked to inhibit it. - - auth_admin_keep - auth_admin_keep -@@ -284,8 +284,8 @@ - - - -- <_description>Hibernate the system -- <_message>Authentication is required for hibernating the system. -+ Hibernate the system -+ Authentication is required for hibernating the system. - - auth_admin_keep - auth_admin_keep -@@ -294,8 +294,8 @@ - - - -- <_description>Hibernate the system while other users are logged in -- <_message>Authentication is required for hibernating the system while other users are logged in. -+ Hibernate the system while other users are logged in -+ Authentication is required for hibernating the system while other users are logged in. - - auth_admin_keep - auth_admin_keep -@@ -305,8 +305,8 @@ - - - -- <_description>Hibernate the system while an application asked to inhibit it -- <_message>Authentication is required for hibernating the system while an application asked to inhibit it. -+ Hibernate the system while an application asked to inhibit it -+ Authentication is required for hibernating the system while an application asked to inhibit it. - - auth_admin_keep - auth_admin_keep -@@ -316,8 +316,8 @@ - - - -- <_description>Manage active sessions, users and seats -- <_message>Authentication is required for managing active sessions, users and seats. -+ Manage active sessions, users and seats -+ Authentication is required for managing active sessions, users and seats. - - auth_admin_keep - auth_admin_keep -@@ -326,8 +326,8 @@ - - - -- <_description>Lock or unlock active sessions -- <_message>Authentication is required to lock or unlock active sessions. -+ Lock or unlock active sessions -+ Authentication is required to lock or unlock active sessions. - - auth_admin_keep - auth_admin_keep -@@ -336,8 +336,8 @@ - - - -- <_description>Allow indication to the firmware to boot to setup interface -- <_message>Authentication is required to indicate to the firmware to boot to setup interface. -+ Allow indication to the firmware to boot to setup interface -+ Authentication is required to indicate to the firmware to boot to setup interface. - - auth_admin_keep - auth_admin_keep -@@ -346,8 +346,8 @@ - - - -- <_description>Set a wall message -- <_message>Authentication is required to set a wall message -+ Set a wall message -+ Authentication is required to set a wall message - - auth_admin_keep - auth_admin_keep -diff --git a/src/machine/meson.build b/src/machine/meson.build -index 693503da539f..bdf64ac3d2b7 100644 ---- a/src/machine/meson.build -+++ b/src/machine/meson.build -@@ -27,11 +27,11 @@ if conf.get('ENABLE_MACHINED') == 1 - install_data('org.freedesktop.machine1.service', - install_dir : dbussystemservicedir) - -- custom_target( -+ i18n.merge_file( - 'org.freedesktop.machine1.policy', - input : 'org.freedesktop.machine1.policy.in', - output : 'org.freedesktop.machine1.policy', -- command : intltool_command, -+ po_dir : po_dir, - install : install_polkit, - install_dir : polkitpolicydir) - endif -diff --git a/src/machine/org.freedesktop.machine1.policy.in b/src/machine/org.freedesktop.machine1.policy.in -index 69f78a5c2505..b266b564b050 100644 ---- a/src/machine/org.freedesktop.machine1.policy.in -+++ b/src/machine/org.freedesktop.machine1.policy.in -@@ -17,8 +17,8 @@ - http://www.freedesktop.org/wiki/Software/systemd - - -- <_description>Log into a local container -- <_message>Authentication is required to log into a local container. -+ Log into a local container -+ Authentication is required to log into a local container. - - auth_admin - auth_admin -@@ -27,8 +27,8 @@ - - - -- <_description>Log into the local host -- <_message>Authentication is required to log into the local host. -+ Log into the local host -+ Authentication is required to log into the local host. - - auth_admin - auth_admin -@@ -37,8 +37,8 @@ - - - -- <_description>Acquire a shell in a local container -- <_message>Authentication is required to acquire a shell in a local container. -+ Acquire a shell in a local container -+ Authentication is required to acquire a shell in a local container. - - auth_admin - auth_admin -@@ -48,8 +48,8 @@ - - - -- <_description>Acquire a shell on the local host -- <_message>Authentication is required to acquire a shell on the local host. -+ Acquire a shell on the local host -+ Authentication is required to acquire a shell on the local host. - - auth_admin - auth_admin -@@ -59,8 +59,8 @@ - - - -- <_description>Acquire a pseudo TTY in a local container -- <_message>Authentication is required to acquire a pseudo TTY in a local container. -+ Acquire a pseudo TTY in a local container -+ Authentication is required to acquire a pseudo TTY in a local container. - - auth_admin - auth_admin -@@ -69,8 +69,8 @@ - - - -- <_description>Acquire a pseudo TTY on the local host -- <_message>Authentication is required to acquire a pseudo TTY on the local host. -+ Acquire a pseudo TTY on the local host -+ Authentication is required to acquire a pseudo TTY on the local host. - - auth_admin - auth_admin -@@ -79,8 +79,8 @@ - - - -- <_description>Manage local virtual machines and containers -- <_message>Authentication is required to manage local virtual machines and containers. -+ Manage local virtual machines and containers -+ Authentication is required to manage local virtual machines and containers. - - auth_admin - auth_admin -@@ -90,8 +90,8 @@ - - - -- <_description>Manage local virtual machine and container images -- <_message>Authentication is required to manage local virtual machine and container images. -+ Manage local virtual machine and container images -+ Authentication is required to manage local virtual machine and container images. - - auth_admin - auth_admin -diff --git a/src/timedate/meson.build b/src/timedate/meson.build -index ce92a6be692b..188cdcac7d4d 100644 ---- a/src/timedate/meson.build -+++ b/src/timedate/meson.build -@@ -4,11 +4,11 @@ if conf.get('ENABLE_TIMEDATED') == 1 - install_data('org.freedesktop.timedate1.service', - install_dir : dbussystemservicedir) - -- custom_target( -+ i18n.merge_file( - 'org.freedesktop.timedate1.policy', - input : 'org.freedesktop.timedate1.policy.in', - output : 'org.freedesktop.timedate1.policy', -- command : intltool_command, -+ po_dir : po_dir, - install : install_polkit, - install_dir : polkitpolicydir) - endif -diff --git a/src/timedate/org.freedesktop.timedate1.policy.in b/src/timedate/org.freedesktop.timedate1.policy.in -index aa30b70831ad..c70605098514 100644 ---- a/src/timedate/org.freedesktop.timedate1.policy.in -+++ b/src/timedate/org.freedesktop.timedate1.policy.in -@@ -17,8 +17,8 @@ - http://www.freedesktop.org/wiki/Software/systemd - - -- <_description>Set system time -- <_message>Authentication is required to set the system time. -+ Set system time -+ Authentication is required to set the system time. - - auth_admin_keep - auth_admin_keep -@@ -28,8 +28,8 @@ - - - -- <_description>Set system timezone -- <_message>Authentication is required to set the system timezone. -+ Set system timezone -+ Authentication is required to set the system timezone. - - auth_admin_keep - auth_admin_keep -@@ -38,9 +38,9 @@ - - - -- <_description>Set RTC to local timezone or UTC -- <_message>Authentication is required to control whether -- the RTC stores the local or UTC time. -+ Set RTC to local timezone or UTC -+ Authentication is required to control whether -+ the RTC stores the local or UTC time. - - auth_admin_keep - auth_admin_keep -@@ -49,9 +49,9 @@ - - - -- <_description>Turn network time synchronization on or off -- <_message>Authentication is required to control whether -- network time synchronization shall be enabled. -+ Turn network time synchronization on or off -+ Authentication is required to control whether -+ network time synchronization shall be enabled. - - auth_admin_keep - auth_admin_keep diff --git a/patches/systemd-235/0002-meson-do-not-include-man-meson.build-if-xsltproc-not.patch b/patches/systemd-235/0002-meson-do-not-include-man-meson.build-if-xsltproc-not.patch deleted file mode 100644 index f724c68df..000000000 --- a/patches/systemd-235/0002-meson-do-not-include-man-meson.build-if-xsltproc-not.patch +++ /dev/null @@ -1,33 +0,0 @@ -From: Yu Watanabe -Date: Tue, 31 Oct 2017 17:12:13 +0900 -Subject: [PATCH] meson: do not include man/meson.build if xsltproc not found - -Fixes #7232. ---- - man/meson.build | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff --git a/man/meson.build b/man/meson.build -index 7d28e6ba1ad5..e376bb8365b8 100644 ---- a/man/meson.build -+++ b/man/meson.build -@@ -32,7 +32,7 @@ custom_entities_ent = configure_file( - man_pages = [] - html_pages = [] - source_xml_files = [] --foreach tuple : manpages -+foreach tuple : want_man or want_html ? manpages : [] - stem = tuple[0] - section = tuple[1] - aliases = tuple[2] -@@ -115,8 +115,8 @@ systemd_index_xml = custom_target( - output : 'systemd.index.xml', - command : [make_man_index_py, '@OUTPUT@'] + nonindex_xml_files) - --foreach tuple : [['systemd.directives', '7', systemd_directives_xml], -- ['systemd.index', '7', systemd_index_xml]] -+foreach tuple : want_man or want_html ? [['systemd.directives', '7', systemd_directives_xml], -+ ['systemd.index', '7', systemd_index_xml]] : [] - stem = tuple[0] - section = tuple[1] - xml = tuple[2] diff --git a/patches/systemd-235/0003-meson-do-not-create-systemd-user-sessions.service-if.patch b/patches/systemd-235/0003-meson-do-not-create-systemd-user-sessions.service-if.patch deleted file mode 100644 index 51bc622ae..000000000 --- a/patches/systemd-235/0003-meson-do-not-create-systemd-user-sessions.service-if.patch +++ /dev/null @@ -1,23 +0,0 @@ -From: Yu Watanabe -Date: Tue, 31 Oct 2017 16:20:53 +0900 -Subject: [PATCH] meson: do not create systemd-user-sessions.service if PAM is - disabled - -Fixes #7227. ---- - units/meson.build | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/units/meson.build b/units/meson.build -index 8494d23e9e40..1f4ed261a6d9 100644 ---- a/units/meson.build -+++ b/units/meson.build -@@ -209,7 +209,7 @@ in_units = [ - 'multi-user.target.wants/ graphical.target.wants/ rescue.target.wants/'], - ['systemd-update-utmp.service', 'ENABLE_UTMP', - 'sysinit.target.wants/'], -- ['systemd-user-sessions.service', '', -+ ['systemd-user-sessions.service', 'HAVE_PAM', - 'multi-user.target.wants/'], - ['systemd-vconsole-setup.service', 'ENABLE_VCONSOLE'], - ['systemd-volatile-root.service', ''], diff --git a/patches/systemd-235/series b/patches/systemd-235/series deleted file mode 100644 index fdcade551..000000000 --- a/patches/systemd-235/series +++ /dev/null @@ -1,6 +0,0 @@ -# generated by git-ptx-patches -#tag:base --start-number 1 -0001-i18n-drop-intltool-use-use-meson-s-merge_file-direct.patch -0002-meson-do-not-include-man-meson.build-if-xsltproc-not.patch -0003-meson-do-not-create-systemd-user-sessions.service-if.patch -# cccf8ceaeee467543076765c53e2a20a - git-ptx-patches magic diff --git a/projectroot/etc/fstab b/projectroot/etc/fstab index 0121c3076..269e35f66 100644 --- a/projectroot/etc/fstab +++ b/projectroot/etc/fstab @@ -14,3 +14,4 @@ tmpfs /run tmpfs nosuid,nodev,strictatime,mode=0755 0 0 tmpfs /var/log tmpfs nosuid,nodev,noexec,mode=0755,size=10% 0 0 tmpfs /var/lock tmpfs nosuid,nodev,noexec,mode=0755,size=1M 0 0 tmpfs /var/tmp tmpfs nosuid,nodev,mode=1777,size=20% 0 0 +tmpfs /var/lib/private tmpfs mode=0700,size=20% 0 0 diff --git a/projectroot/usr/lib/systemd/systemd-rc-once b/projectroot/usr/lib/systemd/systemd-rc-once index a1721de7f..2b9850d37 100644 --- a/projectroot/usr/lib/systemd/systemd-rc-once +++ b/projectroot/usr/lib/systemd/systemd-rc-once @@ -14,8 +14,8 @@ start() { systemctl daemon-reexec sleep 1 if [ -d /var/lib/systemd/timesync ]; then - touch /var/lib/systemd/clock - chown systemd-timesync:nogroup /var/lib/systemd/clock + touch /var/lib/systemd/timesync/clock + chown systemd-timesync:nogroup /var/lib/systemd/timesync/clock fi exec "$0" umount } diff --git a/rules/host-systemd.make b/rules/host-systemd.make index fc611fc2e..8040c6503 100644 --- a/rules/host-systemd.make +++ b/rules/host-systemd.make @@ -86,11 +86,13 @@ HOST_SYSTEMD_CONF_OPT := \ -Drfkill=false \ -Dseccomp=false \ -Dselinux=false \ + -Dslow-tests=false \ -Dsmack=false \ -Dsplit-usr=false \ -Dsystem-gid-max=999 \ -Dsystem-uid-max=999 \ -Dsysusers=false \ + -Dtests=true \ -Dtimedated=false \ -Dtimesyncd=false \ -Dtmpfiles=false \ @@ -113,8 +115,8 @@ $(STATEDIR)/host-systemd.install: @rm -rf $(HOST_SYSTEMD_PKGDIR) @install -vD -m755 $(HOST_SYSTEMD_DIR)-build/systemd-hwdb \ $(HOST_SYSTEMD_PKGDIR)/bin/systemd-hwdb - @install -vD -m755 $(HOST_SYSTEMD_DIR)-build/src/shared/libsystemd-shared-235.so \ - $(HOST_SYSTEMD_PKGDIR)/lib/libsystemd-shared-235.so + @install -vD -m755 $(HOST_SYSTEMD_DIR)-build/src/shared/libsystemd-shared-$(HOST_SYSTEMD_VERSION).so \ + $(HOST_SYSTEMD_PKGDIR)/lib/libsystemd-shared-$(HOST_SYSTEMD_VERSION).so @$(call touch) # vim: syntax=make diff --git a/rules/systemd.make b/rules/systemd.make index deaaa04a8..e80fb4d67 100644 --- a/rules/systemd.make +++ b/rules/systemd.make @@ -17,8 +17,8 @@ PACKAGES-$(PTXCONF_SYSTEMD) += systemd # # Paths and names # -SYSTEMD_VERSION := 235 -SYSTEMD_MD5 := d53a925f1ca5b2e124de0a8aa65d0db2 +SYSTEMD_VERSION := 236 +SYSTEMD_MD5 := 8609cb9043ac8f374371cbac5546acf4 SYSTEMD := systemd-$(SYSTEMD_VERSION) SYSTEMD_SUFFIX := tar.gz SYSTEMD_URL := https://github.com/systemd/systemd/archive/v$(SYSTEMD_VERSION).$(SYSTEMD_SUFFIX) @@ -76,6 +76,7 @@ SYSTEMD_CONF_OPT := \ -Dgcrypt=false \ -Dglib=false \ -Dgnutls=false \ + -Dgroup-render-mode=0666 \ -Dgshadow=false \ -Dhibernate=false \ -Dhostnamed=true \ @@ -123,6 +124,7 @@ SYSTEMD_CONF_OPT := \ -Dseccomp=$(call ptx/truefalse,PTXCONF_SYSTEMD_SECCOMP) \ -Dselinux=$(call ptx/truefalse,PTXCONF_GLOBAL_SELINUX) \ -Dsetfont-path=/usr/bin/setfont \ + -Dslow-tests=false \ -Dsmack=false \ -Dsplit-usr=false \ -Dsulogin-path=/sbin/sulogin \ @@ -130,6 +132,7 @@ SYSTEMD_CONF_OPT := \ -Dsystem-uid-max=999 \ -Dsysusers=false \ -Dtelinit-path=/usr/bin/telinit \ + -Dtests=true \ -Dtime-epoch=`date --date "$(PTXDIST_VERSION_YEAR)-$(PTXDIST_VERSION_MONTH)-01 UTC" +%s` \ -Dtimedated=$(call ptx/truefalse,PTXCONF_SYSTEMD_TIMEDATE) \ -Dtimesyncd=$(call ptx/truefalse,PTXCONF_SYSTEMD_TIMEDATE) \ @@ -137,6 +140,7 @@ SYSTEMD_CONF_OPT := \ -Dtpm=false \ -Dtty-gid=112 \ -Dumount-path=/usr/bin/umount \ + -Dusers-gid= \ -Dutmp=false \ -Dvconsole=$(call ptx/truefalse,PTXCONF_SYSTEMD_VCONSOLE) \ -Dwheel-group=false \ @@ -377,12 +381,13 @@ ifdef PTXCONF_SYSTEMD_VCONSOLE endif @$(call install_copy, systemd, 0, 0, 0755, /var/lib/systemd) + @$(call install_copy, systemd, 0, 0, 0700, /var/lib/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, 0755, \ + @$(call install_link, systemd, ../private/systemd/timesync, \ /var/lib/systemd/timesync) endif -- cgit v1.2.3