diff options
author | Alex Kiernan <alex.kiernan@gmail.com> | 2020-02-03 22:35:26 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-02-04 15:56:29 +0000 |
commit | 2c0e4daab9e3e3df160313a10e98efc55486b98d (patch) | |
tree | 1c7ae281b245aadc7e8d510c634df789c12e08e9 /meta/recipes-core/systemd/systemd_243.2.bb | |
parent | bb637cc802366865c8e1e219eadf24d5c80fff8b (diff) | |
download | poky-2c0e4daab9e3e3df160313a10e98efc55486b98d.tar.gz |
systemd: Upgrade 243.2 -> 243.4-latest
Update to latest on the 243 stable branch. This includes (amongst other
fixes) seccomp filter changes which fix failures with glibc 2.31, e.g.
systemd-journald[543]: Assertion 'clock_gettime(map_clock_id(clock_id), &ts) == 0' failed at src/basic/time-util.c:55, function now(). Aborting.
Refresh:
0001-binfmt-Don-t-install-dependency-links-at-install-tim.patch
0001-do-not-disable-buffer-in-writing-files.patch
Drop 0001-unit-file.c-consider-symlink-on-filesystems-like-NFS.patch,
fixed in 5c0224c7bf3c ("Handle d_type == DT_UNKNOWN correctly").
Drop 0001-seccomp-more-comprehensive-protection-against-libsec.patch,
fixed in 70e8c1978a9a ("seccomp: real syscall numbers are >= 0").
Drop 0004-rules-whitelist-hd-devices.patch and
0005-rules-watch-metadata-changes-in-ide-devices.patch which cause
ide-cd to flap with tray open messages (and don't appear to be required
any more)
Commits from v243-stable:
70e8c1978a9a seccomp: real syscall numbers are >= 0
a0a1977d9a5d seccomp: more comprehensive protection against libseccomp's __NR_xyz namespace invasion
7f936c60d597 network: set ipv6 mtu after link-up or device mtu change
b59d88cc62a4 man: fix typo in net-naming-scheme man page
c5e5ac095821 man: fix typos (#14304)
9a2f26564d5a ipv4ll: do not reset conflict counter on restart
bc9e1ebfdd3b Fix typo (duplicate "or")
c6cb71b7e741 network: if /sys is rw, then udev should be around
67dcdfd95629 nspawn: do not fail if udev is not running
a7938a1bc6d3 Create parent directories when creating systemd-private subdirs
53aa44f8738a network: do not return error but return UINT64_MAX if speed meter is disabled
65abf126744f core: swap priority can be negative
b1cf452ff5f6 systemctl: enhance message about kexec missing kernel
07a0e5b42523 man: use mkswap@ instead of makeswap@
57dc017c6bac journald: don't ask for the machine ID if we don't need it
ac392a57c08c journalctl: pager_close() calls fflush(stdout) anyway as first thing
ee7dfadc8237 journald: remove unused field
471073f1b52b journalctl: return EOPNOTSUPP if pcre is not enabled
002ededb61a0 man: drop reference to machined, add one for journald instead
fd3bd4be3bff pid1: make TimeoutAbortSec settable for transient units
eb2ef4d6643e pid1: fix setting of DefaultTimeoutAbortSec
1d75e29b2378 shared/ask-password-api: modify keyctl break value
a16b1ee7e565 cryptsetup: reduce the chance that we will be OOM killed
4836fb010ae8 core: write out correct field name when creating transient service units
3e2c547f6d3c udevd: don't use monitor after manager_exit()
d42f7d45a8e2 Revert "udevd: fix crash when workers time out after exit is signal caught"
c9a287eee8fd man/systemd.link: Add missing verb *be*
a67a3ae04b89 man: document all pager variables for systemctl and systemd
3a8fce3f38b6 core.timer: fix "systemd-analyze dump" and docs syntax inconsistencies wrt OnTimezoneChange=
fdffd284b682 core/service: downgrade "scheduling restart" message to debug
733e7f19d3cf travis: add missing closing quote sign
0d7b7817fc34 systemd-tmpfiles: don't install timer when service isn't installed either
0e7f83cd2b31 pam_systemd: prolong method call timeout when allocating session
e51d9bf9e5ac man: add entry about SpeedMeter=
aa1fc791c7a1 udev: silence warning about PROGRAM+= or IMPORT+= rules
b9a619bb6738 udevadm: ignore EROFS and return earlier
1ec5b9f80cb5 basic: add vmware hypervisor detection from device-tree
7fa7080248aa umount: be happy if /proc/swaps doesn't exist
71ccd774bb33 shutdown: make logging more useful if NULL swap/mount table files are specified
38453c6d42e4 man: share description of $SYSTEMD_COLORS in other tools
b50ca0152681 core: do not propagate polkit error to caller
99b72a66ca55 ask-password: don't hit assert() when we query pw which the user C-d and caching is enabled
288edd686911 man: mention $RUNTIME_DIRECTORY & friends in environment list
37aeadd433d3 cryptsetup-generator: guess whether the keyfile argument is two items or one
a87e8fdc72d7 verify: fix segmentation fault
3aea728cd2d2 timedated: it might be that tzinfo files are just not installed
cc103c72abc1 timedated: handle UTC specially, when generating /etc/localtime
f5a4caa5418b time-util: treat /etc/localtime missing as UTC
2139d58652bb bpf: fix off-by-one in class whitelisting
cb7693595db9 bpf: fix device type filter
56e1ba304b00 core: constify bpf program arrays
b06b7ace92c1 run: propagate return code/status from the child
5db454b8031c udevd: fix crash when workers time out after exit is signal caught
b774282a855e udev: ignore error caused by device disconnection
8d88a2ecd7ce udev: fix error code in the log message
c41484a2f3d7 udev: ignore ENOENT when chmod_and_chown() device node
f218b65b3246 udev: do not append newline when write attributes
ce4d17ddbc16 time-util: uniquify timezone list, in case UTC is listed in timezone1970.tab, too
28f0b34c57bc time-util: always accept UTC as valid timezone
8b888d236007 seccomp: add all *time64 syscalls
53d8feeb2334 libblkid: open device in nonblock mode.
b9478046b03d man: describe ordering in case of Conflicts=
fa3e5bd2bbb4 man: put description of Wants= above Requires=
bdebd2c325fc meson: remove strange dep that causes meson to enter infinite loop
26bc77d8e5af man: fix option typo in pam_systemd man page
9c12127e3d2e man: save pull-raw example file without underscores
4c106cbcf1af man: small grammatical/word choice fixes to crypttab man page
03cc374fca74 shared/format-table: disable ellipsization when piped
0a5497d3fa4b sd-device-enumerator: do not return error when a device is removed
7b0d0331d051 bootctl: create leading dirs when "bootctl random-seed" is called if needed
5aab35aac9db core, job: fix breakage of ordering dependencies by systemctl reload command
cd86ae937305 journalctl: allow running vacuum on remote journals, too
fc0451bc0a3f allow an empty DefaultInstance= in configuration files
587266c24aae man/systemd.net-naming-scheme: fix typo
e0e63f0f9bb9 nspawn: respect quiet on capabilities warning
37e50c05b564 nspawn: mangle slice name
4fefc493541e mkosi: Find hostname command on Arch Linux
c430e8affba4 Fix mkosi on Arch Linux
1765b8d803dd Update to Fedora31
0b9a2a9a9868 sd-boot: Silence compiler warning when building with -O2
24e02f8d49b6 sd-boot: Don't loudly complain if RNG protocol isn't available
14e377ef3519 sd-boot: Only disable optimization on debug builds
a39008ddecb9 meson: correct man page deps
4c1dcc06fa30 sd-event: don't invalidate source type on disconnect
fb89ee34cedc analyze: fix minor memleak
a449299bc087 analyze: sort list of unknown syscalls kernel implements
51ea58a04b18 seccomp: add new Linux 5.3 syscalls to syscall filter lists
819695c8b027 resolved: check for IP in certificate when using DoT with GnuTLS
37f817e21097 resolved: require at least version 3.6.0 of GnuTLS for DNS-over-TLS
32056809baa2 coverity: replace python with jq
d2b4d7ee17de network-generator: Add missing help for --root
f1b18c206208 modules-load: do not fail service if modules are not present
606de6626714 pid1: order .automount units after local-fs-pre.target
1366b81f2bc5 shared/install: failing with -ELOOP can be due to the use of an alias in install_error()
84d5cd699e25 shared/install: fix error codes returned by install_context_apply()
417779c58a86 man: alias names can't be used with enable command
00af6c447f25 resolved: set stream type during DnsStream creation
66dd9d7d25fd sd-device: allow sd_device_get_devtype to be called with NULL arg and do not assert
048f9da1a4b3 Remove unused plymouth_running() function
34fa67bbe732 machine-id-setup: avoid unexpected aborting
24c99fa2ef3d test-socket-util: avoid writing past the defined buffer
ce82233f99b3 test: drop duplicated 's'
75a0e7209114 nspawn: fix handling of --console=help
f41a282875fc Revert "sysusers: properly mark generated accounts as locked"
fc2dceac6172 Remove unprintable non-ASCII char from special glyph ASCII fallback table
dedf5b511e6f logind: fix emission of PropertiesChanged for users
6e3cfe2e58f5 logind: fix emission of PropertiesChanged on seats
a9152084d7e9 resolved: fix connection failures with TLS 1.3 and GnuTLS
961879ed9ddb udev: tag any display devices as master-of-seat when nomodeset is used
8aa7bafa1295 systemd-fsck: fix systemd-fsck/fsck pipe bad closure
19590e289ace ceph is a network filesystem
339606ad9e99 portabled: allow to detach an image with a unit in linked-runtime state
bd9692734ac5 network: ndisc: do not drop all prefixes when a prefix matches a blacklist
5e6d4f8b79e0 systemctl: fix memleak caused by wrong cleanup func
47d0e23d26af udev: fix memleak caused by wrong cleanup function
a6fb0542c5ef parse_hwdb: fix compatibility with pyparsing 2.4.*
cb1d892f1780 parse_hwdb: process files in order
ef677436aa20 test: Pass personality test even when i686 userland runs on x86_64 kernel
3f6398c450b8 docs: fix inadvertent change in uid range
25bb377a73e7 cgroup: fix typo in BPF firewall support warning message
6d97aca0d503 fix build with compilers with default stack-protector enabled
fbad077cec34 nspawn: surrender controlling terminal to PID2 when using the PID1 stub
0553c3c66889 pid1: fix DefaultTasksMax initialization
f406a691a722 src/core/automount: use DirectoryMode when calling mkdir -p
20438f96c326 udevadm trigger: do not propagate EACCES and ENODEV
6480630bc397 hwdb: Correct WWWW Pattern In Documentation Comment
9d8e889810b5 nspawn: consistenly fail if parsing the environment fails
40e169b30423 nspawn: default to unified hierarchy if --as-pid2 is used
b5df1037a0c0 cgroup: Mark memory protections as explicitly set in transient units
f14e3e02cca7 cgroup: Respect DefaultMemoryMin when setting memory.min
ea248e53bf76 cgroup: Check ancestor memory min for unified memory config
de1d25a506db cgroup: docs: memory.high doc fixups
2ab45f38d8c4 cgroup: docs: Mention unbounded protection for memory.{low,min}
19a43dc38a13 Consider smb3 as remote filesystem
5c0224c7bf3c Handle d_type == DT_UNKNOWN correctly
8282bc61df10 util-lib: Don't propagate EACCES from find_binary PATH lookup to caller
9d0ae987a634 network: drop noisy log message
f67f0e4ec45a Updated log message when the timesync happens for the first time (#13624)
e151bf467494 units: make systemd-binfmt.service easier to work with no autofs
2b8e574d8242 Corect man page reference in systemd-nologin.conf comments
a0577353f191 man: Add a missing space in machinectl(1)
693e98398869 log: Add missing "%" in "%m" log format strings
ea7151b8c435 pid1: do not warn if /run/systemd/relabel-extra.d/ doesn't exist
b90549290e33 man: fix typo
(From OE-Core rev: 48a061c1da0745ca2263cfcfb9041d67cd018193)
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/systemd/systemd_243.2.bb')
-rw-r--r-- | meta/recipes-core/systemd/systemd_243.2.bb | 684 |
1 files changed, 0 insertions, 684 deletions
diff --git a/meta/recipes-core/systemd/systemd_243.2.bb b/meta/recipes-core/systemd/systemd_243.2.bb deleted file mode 100644 index e31fac8c56..0000000000 --- a/meta/recipes-core/systemd/systemd_243.2.bb +++ /dev/null | |||
@@ -1,684 +0,0 @@ | |||
1 | require systemd.inc | ||
2 | |||
3 | PROVIDES = "udev" | ||
4 | |||
5 | PE = "1" | ||
6 | |||
7 | DEPENDS = "intltool-native gperf-native libcap util-linux" | ||
8 | |||
9 | SECTION = "base/shell" | ||
10 | |||
11 | inherit useradd pkgconfig meson perlnative update-rc.d update-alternatives qemu systemd gettext bash-completion manpages features_check | ||
12 | |||
13 | # As this recipe builds udev, respect systemd being in DISTRO_FEATURES so | ||
14 | # that we don't build both udev and systemd in world builds. | ||
15 | REQUIRED_DISTRO_FEATURES = "systemd" | ||
16 | |||
17 | SRC_URI += "file://touchscreen.rules \ | ||
18 | file://00-create-volatile.conf \ | ||
19 | file://init \ | ||
20 | file://0001-binfmt-Don-t-install-dependency-links-at-install-tim.patch \ | ||
21 | file://0002-use-lnr-wrapper-instead-of-looking-for-relative-opti.patch \ | ||
22 | file://0003-implment-systemd-sysv-install-for-OE.patch \ | ||
23 | file://0004-rules-whitelist-hd-devices.patch \ | ||
24 | file://0005-rules-watch-metadata-changes-in-ide-devices.patch \ | ||
25 | file://0001-unit-file.c-consider-symlink-on-filesystems-like-NFS.patch \ | ||
26 | file://0001-seccomp-more-comprehensive-protection-against-libsec.patch \ | ||
27 | file://99-default.preset \ | ||
28 | " | ||
29 | |||
30 | # patches needed by musl | ||
31 | SRC_URI_append_libc-musl = " ${SRC_URI_MUSL}" | ||
32 | SRC_URI_MUSL = "\ | ||
33 | file://0002-don-t-use-glibc-specific-qsort_r.patch \ | ||
34 | file://0003-missing_type.h-add-__compare_fn_t-and-comparison_fn_.patch \ | ||
35 | file://0004-add-fallback-parse_printf_format-implementation.patch \ | ||
36 | file://0005-src-basic-missing.h-check-for-missing-strndupa.patch \ | ||
37 | file://0006-Include-netinet-if_ether.h.patch \ | ||
38 | file://0007-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not.patch \ | ||
39 | file://0008-add-missing-FTW_-macros-for-musl.patch \ | ||
40 | file://0010-fix-missing-of-__register_atfork-for-non-glibc-build.patch \ | ||
41 | file://0011-Use-uintmax_t-for-handling-rlim_t.patch \ | ||
42 | file://0014-test-sizeof.c-Disable-tests-for-missing-typedefs-in-.patch \ | ||
43 | file://0015-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch \ | ||
44 | file://0016-Define-glibc-compatible-basename-for-non-glibc-syste.patch \ | ||
45 | file://0017-Do-not-disable-buffering-when-writing-to-oom_score_a.patch \ | ||
46 | file://0018-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch \ | ||
47 | file://0019-Hide-__start_BUS_ERROR_MAP-and-__stop_BUS_ERROR_MAP.patch \ | ||
48 | file://0020-missing_type.h-add-__compar_d_fn_t-definition.patch \ | ||
49 | file://0021-avoid-redefinition-of-prctl_mm_map-structure.patch \ | ||
50 | file://0022-Use-INT_MAX-instead-of-TIME_T_MAX-for-timerfd_settim.patch \ | ||
51 | file://0024-test-json.c-define-M_PIl.patch \ | ||
52 | file://0001-do-not-disable-buffer-in-writing-files.patch \ | ||
53 | file://0002-src-login-brightness.c-include-sys-wait.h.patch \ | ||
54 | file://0003-src-basic-copy.c-include-signal.h.patch \ | ||
55 | file://0004-src-shared-cpu-set-util.h-add-__cpu_mask-definition.patch \ | ||
56 | " | ||
57 | |||
58 | PAM_PLUGINS = " \ | ||
59 | pam-plugin-unix \ | ||
60 | pam-plugin-loginuid \ | ||
61 | pam-plugin-keyinit \ | ||
62 | " | ||
63 | |||
64 | PACKAGECONFIG ??= " \ | ||
65 | ${@bb.utils.filter('DISTRO_FEATURES', 'efi ldconfig pam selinux usrmerge polkit', d)} \ | ||
66 | ${@bb.utils.contains('DISTRO_FEATURES', 'wifi', 'rfkill', '', d)} \ | ||
67 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xkbcommon', '', d)} \ | ||
68 | acl \ | ||
69 | backlight \ | ||
70 | binfmt \ | ||
71 | gshadow \ | ||
72 | hibernate \ | ||
73 | hostnamed \ | ||
74 | idn \ | ||
75 | ima \ | ||
76 | kmod \ | ||
77 | localed \ | ||
78 | logind \ | ||
79 | machined \ | ||
80 | myhostname \ | ||
81 | networkd \ | ||
82 | nss \ | ||
83 | nss-mymachines \ | ||
84 | nss-resolve \ | ||
85 | quotacheck \ | ||
86 | randomseed \ | ||
87 | resolved \ | ||
88 | set-time-epoch \ | ||
89 | smack \ | ||
90 | sysusers \ | ||
91 | timedated \ | ||
92 | timesyncd \ | ||
93 | utmp \ | ||
94 | vconsole \ | ||
95 | xz \ | ||
96 | " | ||
97 | |||
98 | PACKAGECONFIG_remove_libc-musl = " \ | ||
99 | gshadow \ | ||
100 | idn \ | ||
101 | localed \ | ||
102 | myhostname \ | ||
103 | nss \ | ||
104 | nss-mymachines \ | ||
105 | nss-resolve \ | ||
106 | resolved \ | ||
107 | smack \ | ||
108 | sysusers \ | ||
109 | utmp \ | ||
110 | " | ||
111 | |||
112 | # Use the upstream systemd serial-getty@.service and rely on | ||
113 | # systemd-getty-generator instead of using the OE-core specific | ||
114 | # systemd-serialgetty.bb - not enabled by default. | ||
115 | PACKAGECONFIG[serial-getty-generator] = "" | ||
116 | |||
117 | PACKAGECONFIG[acl] = "-Dacl=true,-Dacl=false,acl" | ||
118 | PACKAGECONFIG[audit] = "-Daudit=true,-Daudit=false,audit" | ||
119 | PACKAGECONFIG[backlight] = "-Dbacklight=true,-Dbacklight=false" | ||
120 | PACKAGECONFIG[binfmt] = "-Dbinfmt=true,-Dbinfmt=false" | ||
121 | PACKAGECONFIG[bzip2] = "-Dbzip2=true,-Dbzip2=false,bzip2" | ||
122 | PACKAGECONFIG[cgroupv2] = "-Ddefault-hierarchy=unified,-Ddefault-hierarchy=hybrid" | ||
123 | PACKAGECONFIG[coredump] = "-Dcoredump=true,-Dcoredump=false" | ||
124 | PACKAGECONFIG[cryptsetup] = "-Dlibcryptsetup=true,-Dlibcryptsetup=false,cryptsetup" | ||
125 | PACKAGECONFIG[dbus] = "-Ddbus=true,-Ddbus=false,dbus" | ||
126 | PACKAGECONFIG[efi] = "-Defi=true,-Defi=false" | ||
127 | PACKAGECONFIG[gnu-efi] = "-Dgnu-efi=true -Defi-libdir=${STAGING_LIBDIR} -Defi-includedir=${STAGING_INCDIR}/efi,-Dgnu-efi=false,gnu-efi" | ||
128 | PACKAGECONFIG[elfutils] = "-Delfutils=true,-Delfutils=false,elfutils" | ||
129 | PACKAGECONFIG[firstboot] = "-Dfirstboot=true,-Dfirstboot=false" | ||
130 | # Sign the journal for anti-tampering | ||
131 | PACKAGECONFIG[gcrypt] = "-Dgcrypt=true,-Dgcrypt=false,libgcrypt" | ||
132 | PACKAGECONFIG[gnutls] = "-Dgnutls=true,-Dgnutls=false,gnutls" | ||
133 | PACKAGECONFIG[gshadow] = "-Dgshadow=true,-Dgshadow=false" | ||
134 | PACKAGECONFIG[hibernate] = "-Dhibernate=true,-Dhibernate=false" | ||
135 | PACKAGECONFIG[hostnamed] = "-Dhostnamed=true,-Dhostnamed=false" | ||
136 | PACKAGECONFIG[idn] = "-Didn=true,-Didn=false" | ||
137 | PACKAGECONFIG[ima] = "-Dima=true,-Dima=false" | ||
138 | # importd requires curl/xz/zlib/bzip2/gcrypt | ||
139 | PACKAGECONFIG[importd] = "-Dimportd=true,-Dimportd=false" | ||
140 | # Update NAT firewall rules | ||
141 | PACKAGECONFIG[iptc] = "-Dlibiptc=true,-Dlibiptc=false,iptables" | ||
142 | PACKAGECONFIG[journal-upload] = "-Dlibcurl=true,-Dlibcurl=false,curl" | ||
143 | PACKAGECONFIG[kmod] = "-Dkmod=true,-Dkmod=false,kmod" | ||
144 | PACKAGECONFIG[ldconfig] = "-Dldconfig=true,-Dldconfig=false,,ldconfig" | ||
145 | PACKAGECONFIG[libidn] = "-Dlibidn=true,-Dlibidn=false,libidn" | ||
146 | PACKAGECONFIG[localed] = "-Dlocaled=true,-Dlocaled=false" | ||
147 | PACKAGECONFIG[logind] = "-Dlogind=true,-Dlogind=false" | ||
148 | PACKAGECONFIG[lz4] = "-Dlz4=true,-Dlz4=false,lz4" | ||
149 | PACKAGECONFIG[machined] = "-Dmachined=true,-Dmachined=false" | ||
150 | PACKAGECONFIG[manpages] = "-Dman=true,-Dman=false,libxslt-native xmlto-native docbook-xml-dtd4-native docbook-xsl-stylesheets-native" | ||
151 | PACKAGECONFIG[microhttpd] = "-Dmicrohttpd=true,-Dmicrohttpd=false,libmicrohttpd" | ||
152 | PACKAGECONFIG[myhostname] = "-Dnss-myhostname=true,-Dnss-myhostname=false,,libnss-myhostname" | ||
153 | PACKAGECONFIG[networkd] = "-Dnetworkd=true,-Dnetworkd=false" | ||
154 | PACKAGECONFIG[nss] = "-Dnss-systemd=true,-Dnss-systemd=false" | ||
155 | PACKAGECONFIG[nss-mymachines] = "-Dnss-mymachines=true,-Dnss-mymachines=false" | ||
156 | PACKAGECONFIG[nss-resolve] = "-Dnss-resolve=true,-Dnss-resolve=false" | ||
157 | PACKAGECONFIG[openssl] = "-Dopenssl=true,-Dopenssl=false,openssl" | ||
158 | PACKAGECONFIG[pam] = "-Dpam=true,-Dpam=false,libpam,${PAM_PLUGINS}" | ||
159 | PACKAGECONFIG[pcre2] = "-Dpcre2=true,-Dpcre2=false,libpcre2" | ||
160 | PACKAGECONFIG[polkit] = "-Dpolkit=true,-Dpolkit=false" | ||
161 | PACKAGECONFIG[portabled] = "-Dportabled=true,-Dportabled=false" | ||
162 | PACKAGECONFIG[qrencode] = "-Dqrencode=true,-Dqrencode=false,qrencode" | ||
163 | PACKAGECONFIG[quotacheck] = "-Dquotacheck=true,-Dquotacheck=false" | ||
164 | PACKAGECONFIG[randomseed] = "-Drandomseed=true,-Drandomseed=false" | ||
165 | PACKAGECONFIG[resolved] = "-Dresolve=true,-Dresolve=false" | ||
166 | PACKAGECONFIG[rfkill] = "-Drfkill=true,-Drfkill=false" | ||
167 | # libseccomp is found in meta-security | ||
168 | PACKAGECONFIG[seccomp] = "-Dseccomp=true,-Dseccomp=false,libseccomp" | ||
169 | PACKAGECONFIG[selinux] = "-Dselinux=true,-Dselinux=false,libselinux,initscripts-sushell" | ||
170 | PACKAGECONFIG[smack] = "-Dsmack=true,-Dsmack=false" | ||
171 | PACKAGECONFIG[sysusers] = "-Dsysusers=true,-Dsysusers=false" | ||
172 | # When enabled use reproducble build timestamp if set as time epoch, | ||
173 | # or build time if not. When disabled, time epoch is unset. | ||
174 | def build_epoch(d): | ||
175 | epoch = d.getVar('SOURCE_DATE_EPOCH') or "-1" | ||
176 | return '-Dtime-epoch=%d' % int(epoch) | ||
177 | PACKAGECONFIG[set-time-epoch] = "${@build_epoch(d)},-Dtime-epoch=0" | ||
178 | PACKAGECONFIG[timedated] = "-Dtimedated=true,-Dtimedated=false" | ||
179 | PACKAGECONFIG[timesyncd] = "-Dtimesyncd=true,-Dtimesyncd=false" | ||
180 | PACKAGECONFIG[usrmerge] = "-Dsplit-usr=false,-Dsplit-usr=true" | ||
181 | PACKAGECONFIG[sbinmerge] = "-Dsplit-bin=false,-Dsplit-bin=true" | ||
182 | PACKAGECONFIG[utmp] = "-Dutmp=true,-Dutmp=false" | ||
183 | PACKAGECONFIG[valgrind] = "-DVALGRIND=1,,valgrind" | ||
184 | PACKAGECONFIG[vconsole] = "-Dvconsole=true,-Dvconsole=false,,${PN}-vconsole-setup" | ||
185 | # Verify keymaps on locale change | ||
186 | PACKAGECONFIG[xkbcommon] = "-Dxkbcommon=true,-Dxkbcommon=false,libxkbcommon" | ||
187 | PACKAGECONFIG[xz] = "-Dxz=true,-Dxz=false,xz" | ||
188 | PACKAGECONFIG[zlib] = "-Dzlib=true,-Dzlib=false,zlib" | ||
189 | |||
190 | # Helper variables to clarify locations. This mirrors the logic in systemd's | ||
191 | # build system. | ||
192 | rootprefix ?= "${root_prefix}" | ||
193 | rootlibdir ?= "${base_libdir}" | ||
194 | rootlibexecdir = "${rootprefix}/lib" | ||
195 | |||
196 | # This links udev statically with systemd helper library. | ||
197 | # Otherwise udev package would depend on systemd package (which has the needed shared library), | ||
198 | # and always pull it into images. | ||
199 | EXTRA_OEMESON += "-Dlink-udev-shared=false" | ||
200 | |||
201 | EXTRA_OEMESON += "-Dnobody-user=nobody \ | ||
202 | -Dnobody-group=nobody \ | ||
203 | -Drootlibdir=${rootlibdir} \ | ||
204 | -Drootprefix=${rootprefix} \ | ||
205 | -Dsysvrcnd-path=${sysconfdir} \ | ||
206 | -Ddefault-locale=C \ | ||
207 | " | ||
208 | |||
209 | # Hardcode target binary paths to avoid using paths from sysroot | ||
210 | EXTRA_OEMESON += "-Dkexec-path=${sbindir}/kexec \ | ||
211 | -Dkmod-path=${base_bindir}/kmod \ | ||
212 | -Dmount-path=${base_bindir}/mount \ | ||
213 | -Dquotacheck-path=${sbindir}/quotacheck \ | ||
214 | -Dquotaon-path=${sbindir}/quotaon \ | ||
215 | -Dsulogin-path=${base_sbindir}/sulogin \ | ||
216 | -Dnologin-path=${base_sbindir}/nologin \ | ||
217 | -Dumount-path=${base_bindir}/umount" | ||
218 | |||
219 | do_install() { | ||
220 | meson_do_install | ||
221 | install -d ${D}/${base_sbindir} | ||
222 | if ${@bb.utils.contains('PACKAGECONFIG', 'serial-getty-generator', 'false', 'true', d)}; then | ||
223 | # Provided by a separate recipe | ||
224 | rm ${D}${systemd_unitdir}/system/serial-getty* -f | ||
225 | fi | ||
226 | |||
227 | # Provide support for initramfs | ||
228 | [ ! -e ${D}/init ] && ln -s ${rootlibexecdir}/systemd/systemd ${D}/init | ||
229 | [ ! -e ${D}/${base_sbindir}/udevd ] && ln -s ${rootlibexecdir}/systemd/systemd-udevd ${D}/${base_sbindir}/udevd | ||
230 | |||
231 | install -d ${D}${sysconfdir}/udev/rules.d/ | ||
232 | install -d ${D}${sysconfdir}/tmpfiles.d | ||
233 | install -m 0644 ${WORKDIR}/*.rules ${D}${sysconfdir}/udev/rules.d/ | ||
234 | |||
235 | install -m 0644 ${WORKDIR}/00-create-volatile.conf ${D}${sysconfdir}/tmpfiles.d/ | ||
236 | |||
237 | if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','true','false',d)}; then | ||
238 | install -d ${D}${sysconfdir}/init.d | ||
239 | install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/systemd-udevd | ||
240 | sed -i s%@UDEVD@%${rootlibexecdir}/systemd/systemd-udevd% ${D}${sysconfdir}/init.d/systemd-udevd | ||
241 | fi | ||
242 | |||
243 | chown root:systemd-journal ${D}/${localstatedir}/log/journal | ||
244 | |||
245 | # Delete journal README, as log can be symlinked inside volatile. | ||
246 | rm -f ${D}/${localstatedir}/log/README | ||
247 | |||
248 | # journal-remote creates this at start | ||
249 | rm -rf ${D}/${localstatedir}/log/journal/remote | ||
250 | |||
251 | install -d ${D}${systemd_unitdir}/system/graphical.target.wants | ||
252 | install -d ${D}${systemd_unitdir}/system/multi-user.target.wants | ||
253 | install -d ${D}${systemd_unitdir}/system/poweroff.target.wants | ||
254 | install -d ${D}${systemd_unitdir}/system/reboot.target.wants | ||
255 | install -d ${D}${systemd_unitdir}/system/rescue.target.wants | ||
256 | |||
257 | # Create symlinks for systemd-update-utmp-runlevel.service | ||
258 | if ${@bb.utils.contains('PACKAGECONFIG', 'utmp', 'true', 'false', d)}; then | ||
259 | ln -sf ../systemd-update-utmp-runlevel.service ${D}${systemd_unitdir}/system/graphical.target.wants/systemd-update-utmp-runlevel.service | ||
260 | ln -sf ../systemd-update-utmp-runlevel.service ${D}${systemd_unitdir}/system/multi-user.target.wants/systemd-update-utmp-runlevel.service | ||
261 | ln -sf ../systemd-update-utmp-runlevel.service ${D}${systemd_unitdir}/system/poweroff.target.wants/systemd-update-utmp-runlevel.service | ||
262 | ln -sf ../systemd-update-utmp-runlevel.service ${D}${systemd_unitdir}/system/reboot.target.wants/systemd-update-utmp-runlevel.service | ||
263 | ln -sf ../systemd-update-utmp-runlevel.service ${D}${systemd_unitdir}/system/rescue.target.wants/systemd-update-utmp-runlevel.service | ||
264 | fi | ||
265 | |||
266 | # this file is needed to exist if networkd is disabled but timesyncd is still in use since timesyncd checks it | ||
267 | # for existence else it fails | ||
268 | if [ -s ${D}${exec_prefix}/lib/tmpfiles.d/systemd.conf ]; then | ||
269 | ${@bb.utils.contains('PACKAGECONFIG', 'networkd', ':', 'sed -i -e "\$ad /run/systemd/netif/links 0755 root root -" ${D}${exec_prefix}/lib/tmpfiles.d/systemd.conf', d)} | ||
270 | fi | ||
271 | if ! ${@bb.utils.contains('PACKAGECONFIG', 'resolved', 'true', 'false', d)}; then | ||
272 | echo 'L! ${sysconfdir}/resolv.conf - - - - ../run/systemd/resolve/resolv.conf' >>${D}${exec_prefix}/lib/tmpfiles.d/etc.conf | ||
273 | echo 'd /run/systemd/resolve 0755 root root -' >>${D}${exec_prefix}/lib/tmpfiles.d/systemd.conf | ||
274 | echo 'f /run/systemd/resolve/resolv.conf 0644 root root' >>${D}${exec_prefix}/lib/tmpfiles.d/systemd.conf | ||
275 | ln -s ../run/systemd/resolve/resolv.conf ${D}${sysconfdir}/resolv-conf.systemd | ||
276 | else | ||
277 | sed -i -e "s%^L! /etc/resolv.conf.*$%L! /etc/resolv.conf - - - - ../run/systemd/resolve/resolv.conf%g" ${D}${exec_prefix}/lib/tmpfiles.d/etc.conf | ||
278 | ln -s ../run/systemd/resolve/resolv.conf ${D}${sysconfdir}/resolv-conf.systemd | ||
279 | fi | ||
280 | install -Dm 0755 ${S}/src/systemctl/systemd-sysv-install.SKELETON ${D}${systemd_unitdir}/systemd-sysv-install | ||
281 | |||
282 | # If polkit is setup fixup permissions and ownership | ||
283 | if ${@bb.utils.contains('PACKAGECONFIG', 'polkit', 'true', 'false', d)}; then | ||
284 | if [ -d ${D}${datadir}/polkit-1/rules.d ]; then | ||
285 | chmod 700 ${D}${datadir}/polkit-1/rules.d | ||
286 | chown polkitd:root ${D}${datadir}/polkit-1/rules.d | ||
287 | fi | ||
288 | fi | ||
289 | |||
290 | # create link for existing udev rules | ||
291 | ln -s ${base_bindir}/udevadm ${D}${base_sbindir}/udevadm | ||
292 | |||
293 | # duplicate udevadm for postinst script | ||
294 | install -d ${D}${libexecdir} | ||
295 | ln ${D}${base_bindir}/udevadm ${D}${libexecdir}/${MLPREFIX}udevadm | ||
296 | |||
297 | # install default policy for presets | ||
298 | # https://www.freedesktop.org/wiki/Software/systemd/Preset/#howto | ||
299 | install -Dm 0644 ${WORKDIR}/99-default.preset ${D}${systemd_unitdir}/system-preset/99-default.preset | ||
300 | |||
301 | # We use package postinsts for the hwdb update, as the update service is | ||
302 | # easily triggered for no reason and will slow down boots. | ||
303 | find ${D} -name systemd-hwdb-update.service -delete | ||
304 | } | ||
305 | |||
306 | python populate_packages_prepend (){ | ||
307 | systemdlibdir = d.getVar("rootlibdir") | ||
308 | do_split_packages(d, systemdlibdir, '^lib(.*)\.so\.*', 'lib%s', 'Systemd %s library', extra_depends='', allow_links=True) | ||
309 | } | ||
310 | PACKAGES_DYNAMIC += "^lib(udev|systemd|nss).*" | ||
311 | |||
312 | PACKAGES =+ "\ | ||
313 | ${PN}-gui \ | ||
314 | ${PN}-vconsole-setup \ | ||
315 | ${PN}-initramfs \ | ||
316 | ${PN}-analyze \ | ||
317 | ${PN}-kernel-install \ | ||
318 | ${PN}-rpm-macros \ | ||
319 | ${PN}-binfmt \ | ||
320 | ${PN}-zsh-completion \ | ||
321 | ${PN}-container \ | ||
322 | ${PN}-journal-gatewayd \ | ||
323 | ${PN}-journal-upload \ | ||
324 | ${PN}-journal-remote \ | ||
325 | ${PN}-extra-utils \ | ||
326 | " | ||
327 | |||
328 | SUMMARY_${PN}-container = "Tools for containers and VMs" | ||
329 | DESCRIPTION_${PN}-container = "Systemd tools to spawn and manage containers and virtual machines." | ||
330 | |||
331 | SUMMARY_${PN}-journal-gatewayd = "HTTP server for journal events" | ||
332 | DESCRIPTION_${PN}-journal-gatewayd = "systemd-journal-gatewayd serves journal events over the network. Clients must connect using HTTP. The server listens on port 19531 by default." | ||
333 | |||
334 | SUMMARY_${PN}-journal-upload = "Send journal messages over the network" | ||
335 | DESCRIPTION_${PN}-journal-upload = "systemd-journal-upload uploads journal entries to a specified URL." | ||
336 | |||
337 | SUMMARY_${PN}-journal-remote = "Receive journal messages over the network" | ||
338 | DESCRIPTION_${PN}-journal-remote = "systemd-journal-remote is a command to receive serialized journal events and store them to journal files." | ||
339 | |||
340 | SYSTEMD_PACKAGES = "${@bb.utils.contains('PACKAGECONFIG', 'binfmt', '${PN}-binfmt', '', d)} \ | ||
341 | ${@bb.utils.contains('PACKAGECONFIG', 'microhttpd', '${PN}-journal-gatewayd', '', d)} \ | ||
342 | ${@bb.utils.contains('PACKAGECONFIG', 'microhttpd', '${PN}-journal-remote', '', d)} \ | ||
343 | ${@bb.utils.contains('PACKAGECONFIG', 'journal-upload', '${PN}-journal-upload', '', d)} \ | ||
344 | " | ||
345 | SYSTEMD_SERVICE_${PN}-binfmt = "systemd-binfmt.service" | ||
346 | |||
347 | USERADD_PACKAGES = "${PN} ${PN}-extra-utils \ | ||
348 | ${@bb.utils.contains('PACKAGECONFIG', 'microhttpd', '${PN}-journal-gateway', '', d)} \ | ||
349 | ${@bb.utils.contains('PACKAGECONFIG', 'microhttpd', '${PN}-journal-remote', '', d)} \ | ||
350 | ${@bb.utils.contains('PACKAGECONFIG', 'journal-upload', '${PN}-journal-upload', '', d)} \ | ||
351 | " | ||
352 | GROUPADD_PARAM_${PN} = "-r systemd-journal" | ||
353 | USERADD_PARAM_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'coredump', '--system -d / -M --shell /bin/nologin systemd-coredump;', '', d)}" | ||
354 | USERADD_PARAM_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'networkd', '--system -d / -M --shell /bin/nologin systemd-network;', '', d)}" | ||
355 | USERADD_PARAM_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'polkit', '--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 polkitd;', '', d)}" | ||
356 | USERADD_PARAM_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'resolved', '--system -d / -M --shell /bin/nologin systemd-resolve;', '', d)}" | ||
357 | USERADD_PARAM_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'timesyncd', '--system -d / -M --shell /bin/nologin systemd-timesync;', '', d)}" | ||
358 | USERADD_PARAM_${PN}-extra-utils = "--system -d / -M --shell /bin/nologin systemd-bus-proxy" | ||
359 | USERADD_PARAM_${PN}-journal-gateway = "--system -d / -M --shell /bin/nologin systemd-journal-gateway" | ||
360 | USERADD_PARAM_${PN}-journal-remote = "--system -d / -M --shell /bin/nologin systemd-journal-remote" | ||
361 | USERADD_PARAM_${PN}-journal-upload = "--system -d / -M --shell /bin/nologin systemd-journal-upload" | ||
362 | |||
363 | FILES_${PN}-analyze = "${bindir}/systemd-analyze" | ||
364 | |||
365 | FILES_${PN}-initramfs = "/init" | ||
366 | RDEPENDS_${PN}-initramfs = "${PN}" | ||
367 | |||
368 | FILES_${PN}-gui = "${bindir}/systemadm" | ||
369 | |||
370 | FILES_${PN}-vconsole-setup = "${rootlibexecdir}/systemd/systemd-vconsole-setup \ | ||
371 | ${systemd_unitdir}/system/systemd-vconsole-setup.service \ | ||
372 | ${systemd_unitdir}/system/sysinit.target.wants/systemd-vconsole-setup.service" | ||
373 | |||
374 | RDEPENDS_${PN}-kernel-install += "bash" | ||
375 | FILES_${PN}-kernel-install = "${bindir}/kernel-install \ | ||
376 | ${sysconfdir}/kernel/ \ | ||
377 | ${exec_prefix}/lib/kernel \ | ||
378 | " | ||
379 | FILES_${PN}-rpm-macros = "${exec_prefix}/lib/rpm \ | ||
380 | " | ||
381 | |||
382 | FILES_${PN}-zsh-completion = "${datadir}/zsh/site-functions" | ||
383 | |||
384 | FILES_${PN}-binfmt = "${sysconfdir}/binfmt.d/ \ | ||
385 | ${exec_prefix}/lib/binfmt.d \ | ||
386 | ${rootlibexecdir}/systemd/systemd-binfmt \ | ||
387 | ${systemd_unitdir}/system/proc-sys-fs-binfmt_misc.* \ | ||
388 | ${systemd_unitdir}/system/systemd-binfmt.service" | ||
389 | RRECOMMENDS_${PN}-binfmt = "kernel-module-binfmt-misc" | ||
390 | |||
391 | RRECOMMENDS_${PN}-vconsole-setup = "kbd kbd-consolefonts kbd-keymaps" | ||
392 | |||
393 | |||
394 | FILES_${PN}-journal-gatewayd = "${rootlibexecdir}/systemd/systemd-journal-gatewayd \ | ||
395 | ${systemd_system_unitdir}/systemd-journal-gatewayd.service \ | ||
396 | ${systemd_system_unitdir}/systemd-journal-gatewayd.socket \ | ||
397 | ${systemd_system_unitdir}/sockets.target.wants/systemd-journal-gatewayd.socket \ | ||
398 | ${datadir}/systemd/gatewayd/browse.html \ | ||
399 | " | ||
400 | SYSTEMD_SERVICE_${PN}-journal-gatewayd = "systemd-journal-gatewayd.socket" | ||
401 | |||
402 | FILES_${PN}-journal-upload = "${rootlibexecdir}/systemd/systemd-journal-upload \ | ||
403 | ${systemd_system_unitdir}/systemd-journal-upload.service \ | ||
404 | ${sysconfdir}/systemd/journal-upload.conf \ | ||
405 | " | ||
406 | SYSTEMD_SERVICE_${PN}-journal-upload = "systemd-journal-upload.service" | ||
407 | |||
408 | FILES_${PN}-journal-remote = "${rootlibexecdir}/systemd/systemd-journal-remote \ | ||
409 | ${sysconfdir}/systemd/journal-remote.conf \ | ||
410 | ${systemd_system_unitdir}/systemd-journal-remote.service \ | ||
411 | ${systemd_system_unitdir}/systemd-journal-remote.socket \ | ||
412 | " | ||
413 | SYSTEMD_SERVICE_${PN}-journal-remote = "systemd-journal-remote.socket" | ||
414 | |||
415 | |||
416 | FILES_${PN}-container = "${sysconfdir}/dbus-1/system.d/org.freedesktop.import1.conf \ | ||
417 | ${sysconfdir}/dbus-1/system.d/org.freedesktop.machine1.conf \ | ||
418 | ${sysconfdir}/systemd/system/multi-user.target.wants/machines.target \ | ||
419 | ${base_bindir}/machinectl \ | ||
420 | ${bindir}/systemd-nspawn \ | ||
421 | ${nonarch_libdir}/systemd/import-pubring.gpg \ | ||
422 | ${systemd_system_unitdir}/busnames.target.wants/org.freedesktop.import1.busname \ | ||
423 | ${systemd_system_unitdir}/busnames.target.wants/org.freedesktop.machine1.busname \ | ||
424 | ${systemd_system_unitdir}/local-fs.target.wants/var-lib-machines.mount \ | ||
425 | ${systemd_system_unitdir}/machines.target.wants/var-lib-machines.mount \ | ||
426 | ${systemd_system_unitdir}/remote-fs.target.wants/var-lib-machines.mount \ | ||
427 | ${systemd_system_unitdir}/machine.slice \ | ||
428 | ${systemd_system_unitdir}/machines.target \ | ||
429 | ${systemd_system_unitdir}/org.freedesktop.import1.busname \ | ||
430 | ${systemd_system_unitdir}/org.freedesktop.machine1.busname \ | ||
431 | ${systemd_system_unitdir}/systemd-importd.service \ | ||
432 | ${systemd_system_unitdir}/systemd-machined.service \ | ||
433 | ${systemd_system_unitdir}/dbus-org.freedesktop.machine1.service \ | ||
434 | ${systemd_system_unitdir}/var-lib-machines.mount \ | ||
435 | ${rootlibexecdir}/systemd/systemd-import \ | ||
436 | ${rootlibexecdir}/systemd/systemd-importd \ | ||
437 | ${rootlibexecdir}/systemd/systemd-machined \ | ||
438 | ${rootlibexecdir}/systemd/systemd-pull \ | ||
439 | ${exec_prefix}/lib/tmpfiles.d/systemd-nspawn.conf \ | ||
440 | ${systemd_system_unitdir}/systemd-nspawn@.service \ | ||
441 | ${libdir}/libnss_mymachines.so.2 \ | ||
442 | ${datadir}/dbus-1/system-services/org.freedesktop.import1.service \ | ||
443 | ${datadir}/dbus-1/system-services/org.freedesktop.machine1.service \ | ||
444 | ${datadir}/dbus-1/system.d/org.freedesktop.import1.conf \ | ||
445 | ${datadir}/dbus-1/system.d/org.freedesktop.machine1.conf \ | ||
446 | ${datadir}/polkit-1/actions/org.freedesktop.import1.policy \ | ||
447 | ${datadir}/polkit-1/actions/org.freedesktop.machine1.policy \ | ||
448 | " | ||
449 | |||
450 | RRECOMMENDS_${PN}-container += "\ | ||
451 | ${PN}-journal-upload \ | ||
452 | ${PN}-journal-remote \ | ||
453 | ${PN}-journal-gatewayd \ | ||
454 | " | ||
455 | |||
456 | FILES_${PN}-extra-utils = "\ | ||
457 | ${base_bindir}/systemd-escape \ | ||
458 | ${base_bindir}/systemd-inhibit \ | ||
459 | ${bindir}/systemd-detect-virt \ | ||
460 | ${bindir}/systemd-path \ | ||
461 | ${bindir}/systemd-run \ | ||
462 | ${bindir}/systemd-cat \ | ||
463 | ${bindir}/systemd-delta \ | ||
464 | ${bindir}/systemd-cgls \ | ||
465 | ${bindir}/systemd-cgtop \ | ||
466 | ${bindir}/systemd-stdio-bridge \ | ||
467 | ${base_bindir}/systemd-ask-password \ | ||
468 | ${base_bindir}/systemd-tty-ask-password-agent \ | ||
469 | ${systemd_unitdir}/system/systemd-ask-password-console.path \ | ||
470 | ${systemd_unitdir}/system/systemd-ask-password-console.service \ | ||
471 | ${systemd_unitdir}/system/systemd-ask-password-wall.path \ | ||
472 | ${systemd_unitdir}/system/systemd-ask-password-wall.service \ | ||
473 | ${systemd_unitdir}/system/sysinit.target.wants/systemd-ask-password-console.path \ | ||
474 | ${systemd_unitdir}/system/sysinit.target.wants/systemd-ask-password-wall.path \ | ||
475 | ${systemd_unitdir}/system/multi-user.target.wants/systemd-ask-password-wall.path \ | ||
476 | ${rootlibexecdir}/systemd/systemd-resolve-host \ | ||
477 | ${rootlibexecdir}/systemd/systemd-ac-power \ | ||
478 | ${rootlibexecdir}/systemd/systemd-activate \ | ||
479 | ${rootlibexecdir}/systemd/systemd-bus-proxyd \ | ||
480 | ${systemd_unitdir}/system/systemd-bus-proxyd.service \ | ||
481 | ${systemd_unitdir}/system/systemd-bus-proxyd.socket \ | ||
482 | ${rootlibexecdir}/systemd/systemd-socket-proxyd \ | ||
483 | ${rootlibexecdir}/systemd/systemd-reply-password \ | ||
484 | ${rootlibexecdir}/systemd/systemd-sleep \ | ||
485 | ${rootlibexecdir}/systemd/system-sleep \ | ||
486 | ${systemd_unitdir}/system/systemd-hibernate.service \ | ||
487 | ${systemd_unitdir}/system/systemd-hybrid-sleep.service \ | ||
488 | ${systemd_unitdir}/system/systemd-suspend.service \ | ||
489 | ${systemd_unitdir}/system/sleep.target \ | ||
490 | ${rootlibexecdir}/systemd/systemd-initctl \ | ||
491 | ${systemd_unitdir}/system/systemd-initctl.service \ | ||
492 | ${systemd_unitdir}/system/systemd-initctl.socket \ | ||
493 | ${systemd_unitdir}/system/sockets.target.wants/systemd-initctl.socket \ | ||
494 | ${rootlibexecdir}/systemd/system-generators/systemd-gpt-auto-generator \ | ||
495 | ${rootlibexecdir}/systemd/systemd-cgroups-agent \ | ||
496 | " | ||
497 | |||
498 | CONFFILES_${PN} = "${sysconfdir}/systemd/coredump.conf \ | ||
499 | ${sysconfdir}/systemd/journald.conf \ | ||
500 | ${sysconfdir}/systemd/logind.conf \ | ||
501 | ${sysconfdir}/systemd/system.conf \ | ||
502 | ${sysconfdir}/systemd/user.conf \ | ||
503 | ${sysconfdir}/systemd/resolved.conf \ | ||
504 | ${sysconfdir}/systemd/timesyncd.conf \ | ||
505 | " | ||
506 | |||
507 | FILES_${PN} = " ${base_bindir}/* \ | ||
508 | ${base_sbindir}/shutdown \ | ||
509 | ${base_sbindir}/halt \ | ||
510 | ${base_sbindir}/poweroff \ | ||
511 | ${base_sbindir}/runlevel \ | ||
512 | ${base_sbindir}/telinit \ | ||
513 | ${base_sbindir}/resolvconf \ | ||
514 | ${base_sbindir}/reboot \ | ||
515 | ${base_sbindir}/init \ | ||
516 | ${datadir}/dbus-1/services \ | ||
517 | ${datadir}/dbus-1/system-services \ | ||
518 | ${datadir}/polkit-1 \ | ||
519 | ${datadir}/${BPN} \ | ||
520 | ${datadir}/factory \ | ||
521 | ${sysconfdir}/dbus-1/ \ | ||
522 | ${sysconfdir}/modules-load.d/ \ | ||
523 | ${sysconfdir}/pam.d/ \ | ||
524 | ${sysconfdir}/sysctl.d/ \ | ||
525 | ${sysconfdir}/systemd/ \ | ||
526 | ${sysconfdir}/tmpfiles.d/ \ | ||
527 | ${sysconfdir}/xdg/ \ | ||
528 | ${sysconfdir}/init.d/README \ | ||
529 | ${sysconfdir}/resolv-conf.systemd \ | ||
530 | ${sysconfdir}/X11/xinit/xinitrc.d/* \ | ||
531 | ${rootlibexecdir}/systemd/* \ | ||
532 | ${systemd_unitdir}/* \ | ||
533 | ${base_libdir}/security/*.so \ | ||
534 | /cgroup \ | ||
535 | ${bindir}/systemd* \ | ||
536 | ${bindir}/busctl \ | ||
537 | ${bindir}/coredumpctl \ | ||
538 | ${bindir}/localectl \ | ||
539 | ${bindir}/hostnamectl \ | ||
540 | ${bindir}/resolvectl \ | ||
541 | ${bindir}/timedatectl \ | ||
542 | ${bindir}/bootctl \ | ||
543 | ${bindir}/kernel-install \ | ||
544 | ${exec_prefix}/lib/tmpfiles.d/*.conf \ | ||
545 | ${exec_prefix}/lib/systemd \ | ||
546 | ${exec_prefix}/lib/modules-load.d \ | ||
547 | ${exec_prefix}/lib/sysctl.d \ | ||
548 | ${exec_prefix}/lib/sysusers.d \ | ||
549 | ${exec_prefix}/lib/environment.d \ | ||
550 | ${localstatedir} \ | ||
551 | ${nonarch_base_libdir}/udev/rules.d/70-uaccess.rules \ | ||
552 | ${nonarch_base_libdir}/udev/rules.d/71-seat.rules \ | ||
553 | ${nonarch_base_libdir}/udev/rules.d/73-seat-late.rules \ | ||
554 | ${nonarch_base_libdir}/udev/rules.d/99-systemd.rules \ | ||
555 | ${nonarch_base_libdir}/modprobe.d/systemd.conf \ | ||
556 | ${datadir}/dbus-1/system.d/org.freedesktop.timedate1.conf \ | ||
557 | ${datadir}/dbus-1/system.d/org.freedesktop.locale1.conf \ | ||
558 | ${datadir}/dbus-1/system.d/org.freedesktop.network1.conf \ | ||
559 | ${datadir}/dbus-1/system.d/org.freedesktop.resolve1.conf \ | ||
560 | ${datadir}/dbus-1/system.d/org.freedesktop.systemd1.conf \ | ||
561 | ${datadir}/dbus-1/system.d/org.freedesktop.hostname1.conf \ | ||
562 | ${datadir}/dbus-1/system.d/org.freedesktop.login1.conf \ | ||
563 | ${datadir}/dbus-1/system.d/org.freedesktop.timesync1.conf \ | ||
564 | ${datadir}/dbus-1/system.d/org.freedesktop.portable1.conf \ | ||
565 | " | ||
566 | |||
567 | FILES_${PN}-dev += "${base_libdir}/security/*.la ${datadir}/dbus-1/interfaces/ ${sysconfdir}/rpm/macros.systemd" | ||
568 | |||
569 | RDEPENDS_${PN} += "kmod dbus util-linux-mount util-linux-umount udev (= ${EXTENDPKGV}) util-linux-agetty util-linux-fsck" | ||
570 | RDEPENDS_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'serial-getty-generator', '', 'systemd-serialgetty', d)}" | ||
571 | RDEPENDS_${PN} += "volatile-binds update-rc.d" | ||
572 | |||
573 | RRECOMMENDS_${PN} += "systemd-extra-utils \ | ||
574 | systemd-compat-units udev-hwdb \ | ||
575 | e2fsprogs-e2fsck \ | ||
576 | kernel-module-autofs4 kernel-module-unix kernel-module-ipv6 \ | ||
577 | os-release \ | ||
578 | systemd-conf \ | ||
579 | " | ||
580 | |||
581 | INSANE_SKIP_${PN} += "dev-so libdir" | ||
582 | INSANE_SKIP_${PN}-dbg += "libdir" | ||
583 | INSANE_SKIP_${PN}-doc += " libdir" | ||
584 | |||
585 | PACKAGES =+ "udev udev-hwdb" | ||
586 | |||
587 | RPROVIDES_udev = "hotplug" | ||
588 | |||
589 | RDEPENDS_udev-hwdb += "udev" | ||
590 | |||
591 | FILES_udev += "${base_sbindir}/udevd \ | ||
592 | ${rootlibexecdir}/systemd/network/99-default.link \ | ||
593 | ${rootlibexecdir}/systemd/systemd-udevd \ | ||
594 | ${rootlibexecdir}/udev/accelerometer \ | ||
595 | ${rootlibexecdir}/udev/ata_id \ | ||
596 | ${rootlibexecdir}/udev/cdrom_id \ | ||
597 | ${rootlibexecdir}/udev/collect \ | ||
598 | ${rootlibexecdir}/udev/findkeyboards \ | ||
599 | ${rootlibexecdir}/udev/keyboard-force-release.sh \ | ||
600 | ${rootlibexecdir}/udev/keymap \ | ||
601 | ${rootlibexecdir}/udev/mtd_probe \ | ||
602 | ${rootlibexecdir}/udev/scsi_id \ | ||
603 | ${rootlibexecdir}/udev/v4l_id \ | ||
604 | ${rootlibexecdir}/udev/keymaps \ | ||
605 | ${rootlibexecdir}/udev/rules.d/*.rules \ | ||
606 | ${sysconfdir}/udev \ | ||
607 | ${sysconfdir}/init.d/systemd-udevd \ | ||
608 | ${systemd_unitdir}/system/*udev* \ | ||
609 | ${systemd_unitdir}/system/*.wants/*udev* \ | ||
610 | ${base_bindir}/udevadm \ | ||
611 | ${base_sbindir}/udevadm \ | ||
612 | ${libexecdir}/${MLPREFIX}udevadm \ | ||
613 | ${datadir}/bash-completion/completions/udevadm \ | ||
614 | " | ||
615 | |||
616 | FILES_udev-hwdb = "${rootlibexecdir}/udev/hwdb.d" | ||
617 | |||
618 | RCONFLICTS_${PN} = "tiny-init ${@bb.utils.contains('PACKAGECONFIG', 'resolved', 'resolvconf', '', d)}" | ||
619 | |||
620 | INITSCRIPT_PACKAGES = "udev" | ||
621 | INITSCRIPT_NAME_udev = "systemd-udevd" | ||
622 | INITSCRIPT_PARAMS_udev = "start 03 S ." | ||
623 | |||
624 | python __anonymous() { | ||
625 | if not bb.utils.contains('DISTRO_FEATURES', 'sysvinit', True, False, d): | ||
626 | d.setVar("INHIBIT_UPDATERCD_BBCLASS", "1") | ||
627 | } | ||
628 | |||
629 | python do_warn_musl() { | ||
630 | if d.getVar('TCLIBC') == "musl": | ||
631 | bb.warn("Using systemd with musl is not recommended since it is not supported upstream and some patches are known to be problematic.") | ||
632 | } | ||
633 | addtask warn_musl before do_configure | ||
634 | |||
635 | ALTERNATIVE_${PN} = "halt reboot shutdown poweroff runlevel ${@bb.utils.contains('PACKAGECONFIG', 'resolved', 'resolv-conf', '', d)}" | ||
636 | |||
637 | ALTERNATIVE_TARGET[resolv-conf] = "${sysconfdir}/resolv-conf.systemd" | ||
638 | ALTERNATIVE_LINK_NAME[resolv-conf] = "${sysconfdir}/resolv.conf" | ||
639 | ALTERNATIVE_PRIORITY[resolv-conf] ?= "50" | ||
640 | |||
641 | ALTERNATIVE_TARGET[halt] = "${base_bindir}/systemctl" | ||
642 | ALTERNATIVE_LINK_NAME[halt] = "${base_sbindir}/halt" | ||
643 | ALTERNATIVE_PRIORITY[halt] ?= "300" | ||
644 | |||
645 | ALTERNATIVE_TARGET[reboot] = "${base_bindir}/systemctl" | ||
646 | ALTERNATIVE_LINK_NAME[reboot] = "${base_sbindir}/reboot" | ||
647 | ALTERNATIVE_PRIORITY[reboot] ?= "300" | ||
648 | |||
649 | ALTERNATIVE_TARGET[shutdown] = "${base_bindir}/systemctl" | ||
650 | ALTERNATIVE_LINK_NAME[shutdown] = "${base_sbindir}/shutdown" | ||
651 | ALTERNATIVE_PRIORITY[shutdown] ?= "300" | ||
652 | |||
653 | ALTERNATIVE_TARGET[poweroff] = "${base_bindir}/systemctl" | ||
654 | ALTERNATIVE_LINK_NAME[poweroff] = "${base_sbindir}/poweroff" | ||
655 | ALTERNATIVE_PRIORITY[poweroff] ?= "300" | ||
656 | |||
657 | ALTERNATIVE_TARGET[runlevel] = "${base_bindir}/systemctl" | ||
658 | ALTERNATIVE_LINK_NAME[runlevel] = "${base_sbindir}/runlevel" | ||
659 | ALTERNATIVE_PRIORITY[runlevel] ?= "300" | ||
660 | |||
661 | pkg_postinst_${PN}_libc-glibc () { | ||
662 | sed -e '/^hosts:/s/\s*\<myhostname\>//' \ | ||
663 | -e 's/\(^hosts:.*\)\(\<files\>\)\(.*\)\(\<dns\>\)\(.*\)/\1\2 myhostname \3\4\5/' \ | ||
664 | -i $D${sysconfdir}/nsswitch.conf | ||
665 | } | ||
666 | |||
667 | pkg_prerm_${PN}_libc-glibc () { | ||
668 | sed -e '/^hosts:/s/\s*\<myhostname\>//' \ | ||
669 | -e '/^hosts:/s/\s*myhostname//' \ | ||
670 | -i $D${sysconfdir}/nsswitch.conf | ||
671 | } | ||
672 | |||
673 | PACKAGE_WRITE_DEPS += "qemu-native" | ||
674 | pkg_postinst_udev-hwdb () { | ||
675 | if test -n "$D"; then | ||
676 | $INTERCEPT_DIR/postinst_intercept update_udev_hwdb ${PKG} mlprefix=${MLPREFIX} binprefix=${MLPREFIX} | ||
677 | else | ||
678 | udevadm hwdb --update | ||
679 | fi | ||
680 | } | ||
681 | |||
682 | pkg_prerm_udev-hwdb () { | ||
683 | rm -f $D${sysconfdir}/udev/hwdb.bin | ||
684 | } | ||