Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/systemd/
Date: Thu, 28 Jun 2018 01:45:18
Message-Id: 1530150307.1bc54332fc362fff66a25f9bb1c81c887ee9731d.floppym@gentoo
1 commit: 1bc54332fc362fff66a25f9bb1c81c887ee9731d
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 28 01:44:39 2018 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 28 01:45:07 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1bc54332
7
8 sys-apps/systemd: bugfixes for 239
9
10 Package-Manager: Portage-2.3.40_p15, Repoman-2.3.9_p247
11
12 sys-apps/systemd/Manifest | 1 +
13 sys-apps/systemd/systemd-239-r1.ebuild | 447 +++++++++++++++++++++++++++++++++
14 2 files changed, 448 insertions(+)
15
16 diff --git a/sys-apps/systemd/Manifest b/sys-apps/systemd/Manifest
17 index 47959ffa234..bc680ff9ea6 100644
18 --- a/sys-apps/systemd/Manifest
19 +++ b/sys-apps/systemd/Manifest
20 @@ -2,4 +2,5 @@ DIST systemd-236-patches-2.tar.gz 54737 BLAKE2B bce5f9e234c975a2b6e474ca2a0c2c82
21 DIST systemd-236.tar.gz 6759035 BLAKE2B 0fc26bd67fb6cc3b0565c763fc26e38186c4b05c3d38652b73a2189dfbfb46382dba239f7f6f889eec57ad1d8f69d4098745c8f4ca16a707aa23b7771f2328f3 SHA512 1a9672960e03e05c09e41fb8cfe9b0f25e867fd43f37f8371515ddddfdbd4270afd746a6da733f6d1d3b2cc43db1ecc7a9f2245f2dac2ec233db74e9e70e4f6d
22 DIST systemd-238-patches-1.tar.gz 47512 BLAKE2B 9edf8835ec7bba43bd00b1481b23bc5a4148030724633a8bfe1e82ec48b79699d4822b0bc5ea3a979b404e706efa9c0eae8e0460d76658ba2e901c4853da0c04 SHA512 809d8a3a9a023217b509b738e0d341d060f1343df6159e5acfcededfb452986de140ddf4b879a5157fba1a5646d00db8b6537aba8358c48f75fd6527f881a14c
23 DIST systemd-238.tar.gz 6954022 BLAKE2B 9b5cc36a7234c0d037a2656ee1e5ed54186a394b8be41771ebc29c903d3efcecf7f13f004a6d1695c022923bd0d540a243e897852f07e810f73fd3163f688dde SHA512 c0f272b022308d3bd94679184e102a8dc85de55310bda205a458ea33c77c7733e5c8c8e5b15f786ba3e0ce59e7c6a9bf0d5a0950517c6b91e0f345950129b9c8
24 +DIST systemd-239-patches-0.tar.gz 14007 BLAKE2B a1653ac6cb46347fa1e1a4a81a7003af0e565ac2ba43e1aaed9df87d7e4bd13cdcf26ffc9527f46defa226d7d11b03fbc6b018f0734a6654a0f4bf88bf4ef6e7 SHA512 a640a446db153523a2ca97b811e20bc42c8273d2c494ebd8a6c5cd33718c714e37544533749cad57e887c17635cbfca01b86b52e9f5a12878ef70f2e95fc7485
25 DIST systemd-239.tar.gz 7157293 BLAKE2B 975f6215c8bb6662d6e161f637e1fece22930c0190b3c31a8fc4cb1a10600546a252704ac95590d9d14e495fcd06082a590e6d755e36603a41b3a396d579d8b0 SHA512 fd44590dfd148504c5ed1e67521efce50d84b627b7fc77015fa95dfa76d7a42297c56cc89eff40181809732024b16d48f2a87038cf435e0c63bc2b95ecd86b0f
26
27 diff --git a/sys-apps/systemd/systemd-239-r1.ebuild b/sys-apps/systemd/systemd-239-r1.ebuild
28 new file mode 100644
29 index 00000000000..1fc28a80c2a
30 --- /dev/null
31 +++ b/sys-apps/systemd/systemd-239-r1.ebuild
32 @@ -0,0 +1,447 @@
33 +# Copyright 1999-2018 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +if [[ ${PV} == 9999 ]]; then
39 + EGIT_REPO_URI="https://github.com/systemd/systemd.git"
40 + inherit git-r3
41 +else
42 + SRC_URI="https://github.com/systemd/systemd/archive/v${PV}/${P}.tar.gz
43 + https://dev.gentoo.org/~floppym/dist/${P}-patches-0.tar.gz"
44 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
45 +fi
46 +
47 +PYTHON_COMPAT=( python{3_4,3_5,3_6} )
48 +
49 +inherit bash-completion-r1 linux-info meson multilib-minimal ninja-utils pam python-any-r1 systemd toolchain-funcs udev user
50 +
51 +DESCRIPTION="System and service manager for Linux"
52 +HOMEPAGE="https://www.freedesktop.org/wiki/Software/systemd"
53 +
54 +LICENSE="GPL-2 LGPL-2.1 MIT public-domain"
55 +SLOT="0/2"
56 +IUSE="acl apparmor audit build cryptsetup curl elfutils +gcrypt gnuefi http idn importd +kmod libidn2 +lz4 lzma nat pam pcre policykit qrcode +resolvconf +seccomp selinux +split-usr ssl +sysv-utils test vanilla xkb"
57 +
58 +REQUIRED_USE="importd? ( curl gcrypt lzma )"
59 +RESTRICT="!test? ( test )"
60 +
61 +MINKV="3.11"
62 +
63 +COMMON_DEPEND=">=sys-apps/util-linux-2.30:0=[${MULTILIB_USEDEP}]
64 + sys-libs/libcap:0=[${MULTILIB_USEDEP}]
65 + !<sys-libs/glibc-2.16
66 + acl? ( sys-apps/acl:0= )
67 + apparmor? ( sys-libs/libapparmor:0= )
68 + audit? ( >=sys-process/audit-2:0= )
69 + cryptsetup? ( >=sys-fs/cryptsetup-1.6:0= )
70 + curl? ( net-misc/curl:0= )
71 + elfutils? ( >=dev-libs/elfutils-0.158:0= )
72 + gcrypt? ( >=dev-libs/libgcrypt-1.4.5:0=[${MULTILIB_USEDEP}] )
73 + http? (
74 + >=net-libs/libmicrohttpd-0.9.33:0=
75 + ssl? ( >=net-libs/gnutls-3.1.4:0= )
76 + )
77 + idn? (
78 + libidn2? ( net-dns/libidn2:= )
79 + !libidn2? ( net-dns/libidn:= )
80 + )
81 + importd? (
82 + app-arch/bzip2:0=
83 + sys-libs/zlib:0=
84 + )
85 + kmod? ( >=sys-apps/kmod-15:0= )
86 + lz4? ( >=app-arch/lz4-0_p131:0=[${MULTILIB_USEDEP}] )
87 + lzma? ( >=app-arch/xz-utils-5.0.5-r1:0=[${MULTILIB_USEDEP}] )
88 + nat? ( net-firewall/iptables:0= )
89 + pam? ( virtual/pam:=[${MULTILIB_USEDEP}] )
90 + pcre? ( dev-libs/libpcre2 )
91 + qrcode? ( media-gfx/qrencode:0= )
92 + seccomp? ( >=sys-libs/libseccomp-2.3.3:0= )
93 + selinux? ( sys-libs/libselinux:0= )
94 + xkb? ( >=x11-libs/libxkbcommon-0.4.1:0= )"
95 +
96 +# baselayout-2.2 has /run
97 +RDEPEND="${COMMON_DEPEND}
98 + >=sys-apps/baselayout-2.2
99 + selinux? ( sec-policy/selinux-base-policy[systemd] )
100 + sysv-utils? ( !sys-apps/sysvinit )
101 + !sysv-utils? ( sys-apps/sysvinit )
102 + resolvconf? ( !net-dns/openresolv )
103 + !build? ( || (
104 + sys-apps/util-linux[kill(-)]
105 + sys-process/procps[kill(+)]
106 + sys-apps/coreutils[kill(-)]
107 + ) )
108 + !sys-auth/nss-myhostname
109 + !<sys-kernel/dracut-044
110 + !sys-fs/eudev
111 + !sys-fs/udev"
112 +
113 +# sys-apps/dbus: the daemon only (+ build-time lib dep for tests)
114 +PDEPEND=">=sys-apps/dbus-1.9.8[systemd]
115 + >=sys-apps/hwids-20150417[udev]
116 + >=sys-fs/udev-init-scripts-25
117 + policykit? ( sys-auth/polkit )
118 + !vanilla? ( sys-apps/gentoo-systemd-integration )"
119 +
120 +# Newer linux-headers needed by ia64, bug #480218
121 +DEPEND="${COMMON_DEPEND}
122 + app-arch/xz-utils:0
123 + dev-util/gperf
124 + >=dev-util/intltool-0.50
125 + >=sys-apps/coreutils-8.16
126 + >=sys-kernel/linux-headers-${MINKV}
127 + virtual/pkgconfig
128 + gnuefi? ( >=sys-boot/gnu-efi-3.0.2 )
129 + test? ( sys-apps/dbus )
130 + app-text/docbook-xml-dtd:4.2
131 + app-text/docbook-xml-dtd:4.5
132 + app-text/docbook-xsl-stylesheets
133 + dev-libs/libxslt:0
134 + $(python_gen_any_dep 'dev-python/lxml[${PYTHON_USEDEP}]')
135 +"
136 +
137 +pkg_pretend() {
138 + if [[ ${MERGE_TYPE} != buildonly ]]; then
139 + local CONFIG_CHECK="~AUTOFS4_FS ~BLK_DEV_BSG ~CGROUPS
140 + ~CHECKPOINT_RESTORE ~DEVTMPFS ~EPOLL ~FANOTIFY ~FHANDLE
141 + ~INOTIFY_USER ~IPV6 ~NET ~NET_NS ~PROC_FS ~SIGNALFD ~SYSFS
142 + ~TIMERFD ~TMPFS_XATTR ~UNIX
143 + ~CRYPTO_HMAC ~CRYPTO_SHA256 ~CRYPTO_USER_API_HASH
144 + ~!FW_LOADER_USER_HELPER_FALLBACK ~!GRKERNSEC_PROC ~!IDE ~!SYSFS_DEPRECATED
145 + ~!SYSFS_DEPRECATED_V2"
146 +
147 + use acl && CONFIG_CHECK+=" ~TMPFS_POSIX_ACL"
148 + use seccomp && CONFIG_CHECK+=" ~SECCOMP ~SECCOMP_FILTER"
149 + kernel_is -lt 3 7 && CONFIG_CHECK+=" ~HOTPLUG"
150 + kernel_is -lt 4 7 && CONFIG_CHECK+=" ~DEVPTS_MULTIPLE_INSTANCES"
151 + kernel_is -ge 4 10 && CONFIG_CHECK+=" ~CGROUP_BPF"
152 +
153 + if linux_config_exists; then
154 + local uevent_helper_path=$(linux_chkconfig_string UEVENT_HELPER_PATH)
155 + if [[ -n ${uevent_helper_path} ]] && [[ ${uevent_helper_path} != '""' ]]; then
156 + ewarn "It's recommended to set an empty value to the following kernel config option:"
157 + ewarn "CONFIG_UEVENT_HELPER_PATH=${uevent_helper_path}"
158 + fi
159 + if linux_chkconfig_present X86; then
160 + CONFIG_CHECK+=" ~DMIID"
161 + fi
162 + fi
163 +
164 + if kernel_is -lt ${MINKV//./ }; then
165 + ewarn "Kernel version at least ${MINKV} required"
166 + fi
167 +
168 + check_extra_config
169 + fi
170 +}
171 +
172 +pkg_setup() {
173 + :
174 +}
175 +
176 +src_unpack() {
177 + default
178 + [[ ${PV} != 9999 ]] || git-r3_src_unpack
179 +}
180 +
181 +src_prepare() {
182 + # Do NOT add patches here
183 + local PATCHES=()
184 +
185 + [[ -d "${WORKDIR}"/patches ]] && PATCHES+=( "${WORKDIR}"/patches )
186 +
187 + # Add local patches here
188 + PATCHES+=(
189 + )
190 +
191 + if ! use vanilla; then
192 + PATCHES+=(
193 + "${FILESDIR}/gentoo-Dont-enable-audit-by-default.patch"
194 + "${FILESDIR}/gentoo-systemd-user-pam.patch"
195 + "${FILESDIR}/gentoo-uucp-group-r1.patch"
196 + "${FILESDIR}/gentoo-generator-path.patch"
197 + )
198 + fi
199 +
200 + default
201 +}
202 +
203 +src_configure() {
204 + # Prevent conflicts with i686 cross toolchain, bug 559726
205 + tc-export AR CC NM OBJCOPY RANLIB
206 +
207 + python_setup
208 +
209 + multilib-minimal_src_configure
210 +}
211 +
212 +meson_use() {
213 + usex "$1" true false
214 +}
215 +
216 +meson_multilib() {
217 + if multilib_is_native_abi; then
218 + echo true
219 + else
220 + echo false
221 + fi
222 +}
223 +
224 +meson_multilib_native_use() {
225 + if multilib_is_native_abi && use "$1"; then
226 + echo true
227 + else
228 + echo false
229 + fi
230 +}
231 +
232 +multilib_src_configure() {
233 + local myconf=(
234 + --localstatedir="${EPREFIX}/var"
235 + -Dpamlibdir="$(getpam_mod_dir)"
236 + # avoid bash-completion dep
237 + -Dbashcompletiondir="$(get_bashcompdir)"
238 + # make sure we get /bin:/sbin in PATH
239 + -Dsplit-usr=$(usex split-usr true false)
240 + -Drootprefix="$(usex split-usr "${EPREFIX:-/}" "${EPREFIX}/usr")"
241 + -Dsysvinit-path=
242 + -Dsysvrcnd-path=
243 + # Avoid infinite exec recursion, bug 642724
244 + -Dtelinit-path="${EPREFIX}/lib/sysvinit/telinit"
245 + # no deps
246 + -Defi=$(meson_multilib)
247 + -Dima=true
248 + # Optional components/dependencies
249 + -Dacl=$(meson_multilib_native_use acl)
250 + -Dapparmor=$(meson_multilib_native_use apparmor)
251 + -Daudit=$(meson_multilib_native_use audit)
252 + -Dlibcryptsetup=$(meson_multilib_native_use cryptsetup)
253 + -Dlibcurl=$(meson_multilib_native_use curl)
254 + -Delfutils=$(meson_multilib_native_use elfutils)
255 + -Dgcrypt=$(meson_use gcrypt)
256 + -Dgnu-efi=$(meson_multilib_native_use gnuefi)
257 + -Defi-libdir="${EPREFIX}/usr/$(get_libdir)"
258 + -Dmicrohttpd=$(meson_multilib_native_use http)
259 + $(usex http -Dgnutls=$(meson_multilib_native_use ssl) -Dgnutls=false)
260 + -Dimportd=$(meson_multilib_native_use importd)
261 + -Dbzip2=$(meson_multilib_native_use importd)
262 + -Dzlib=$(meson_multilib_native_use importd)
263 + -Dkmod=$(meson_multilib_native_use kmod)
264 + -Dlz4=$(meson_use lz4)
265 + -Dxz=$(meson_use lzma)
266 + -Dlibiptc=$(meson_multilib_native_use nat)
267 + -Dpam=$(meson_use pam)
268 + -Dpcre2=$(meson_multilib_native_use pcre)
269 + -Dpolkit=$(meson_multilib_native_use policykit)
270 + -Dqrencode=$(meson_multilib_native_use qrcode)
271 + -Dseccomp=$(meson_multilib_native_use seccomp)
272 + -Dselinux=$(meson_multilib_native_use selinux)
273 + #-Dtests=$(meson_multilib_native_use test)
274 + -Ddbus=$(meson_multilib_native_use test)
275 + -Dxkbcommon=$(meson_multilib_native_use xkb)
276 + # hardcode a few paths to spare some deps
277 + -Dkill-path=/bin/kill
278 + -Dntp-servers="0.gentoo.pool.ntp.org 1.gentoo.pool.ntp.org 2.gentoo.pool.ntp.org 3.gentoo.pool.ntp.org"
279 + # Breaks screen, tmux, etc.
280 + -Ddefault-kill-user-processes=false
281 +
282 + # multilib options
283 + -Dbacklight=$(meson_multilib)
284 + -Dbinfmt=$(meson_multilib)
285 + -Dcoredump=$(meson_multilib)
286 + -Denvironment-d=$(meson_multilib)
287 + -Dfirstboot=$(meson_multilib)
288 + -Dhibernate=$(meson_multilib)
289 + -Dhostnamed=$(meson_multilib)
290 + -Dhwdb=$(meson_multilib)
291 + -Dldconfig=$(meson_multilib)
292 + -Dlocaled=$(meson_multilib)
293 + -Dman=$(meson_multilib)
294 + -Dnetworkd=$(meson_multilib)
295 + -Dquotacheck=$(meson_multilib)
296 + -Drandomseed=$(meson_multilib)
297 + -Drfkill=$(meson_multilib)
298 + -Dsysusers=$(meson_multilib)
299 + -Dtimedated=$(meson_multilib)
300 + -Dtimesyncd=$(meson_multilib)
301 + -Dtmpfiles=$(meson_multilib)
302 + -Dvconsole=$(meson_multilib)
303 + )
304 +
305 + if multilib_is_native_abi && use idn; then
306 + myconf+=(
307 + -Dlibidn2=$(usex libidn2 true false)
308 + -Dlibidn=$(usex libidn2 false true)
309 + )
310 + else
311 + myconf+=(
312 + -Dlibidn2=false
313 + -Dlibidn=false
314 + )
315 + fi
316 +
317 + meson_src_configure "${myconf[@]}"
318 +}
319 +
320 +multilib_src_compile() {
321 + eninja
322 +}
323 +
324 +multilib_src_test() {
325 + unset DBUS_SESSION_BUS_ADDRESS XDG_RUNTIME_DIR
326 + eninja test
327 +}
328 +
329 +multilib_src_install() {
330 + DESTDIR="${D}" eninja install
331 +}
332 +
333 +multilib_src_install_all() {
334 + local rootprefix=$(usex split-usr '' /usr)
335 +
336 + # meson doesn't know about docdir
337 + mv "${ED%/}"/usr/share/doc/{systemd,${PF}} || die
338 +
339 + einstalldocs
340 + dodoc "${FILESDIR}"/nsswitch.conf
341 +
342 + if ! use resolvconf; then
343 + rm -f "${ED%/}${rootprefix}"/sbin/resolvconf || die
344 + fi
345 +
346 + if ! use sysv-utils; then
347 + rm "${ED%/}${rootprefix}"/sbin/{halt,init,poweroff,reboot,runlevel,shutdown,telinit} || die
348 + rm "${ED%/}"/usr/share/man/man1/init.1 || die
349 + rm "${ED%/}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 || die
350 + fi
351 +
352 + if ! use resolvconf && ! use sysv-utils; then
353 + rmdir "${ED%/}${rootprefix}"/sbin || die
354 + fi
355 +
356 + # Preserve empty dirs in /etc & /var, bug #437008
357 + keepdir /etc/{binfmt.d,modules-load.d,tmpfiles.d}
358 + keepdir /etc/systemd/{ntp-units.d,user} /var/lib/systemd
359 + keepdir /etc/udev/{hwdb.d,rules.d}
360 + keepdir /var/log/journal/remote
361 +
362 + # Symlink /etc/sysctl.conf for easy migration.
363 + dosym ../sysctl.conf /etc/sysctl.d/99-sysctl.conf
364 +
365 + # If we install these symlinks, there is no way for the sysadmin to remove them
366 + # permanently.
367 + rm -f "${ED%/}"/etc/systemd/system/multi-user.target.wants/systemd-networkd.service || die
368 + rm -f "${ED%/}"/etc/systemd/system/dbus-org.freedesktop.network1.service || die
369 + rm -f "${ED%/}"/etc/systemd/system/multi-user.target.wants/systemd-resolved.service || die
370 + rm -f "${ED%/}"/etc/systemd/system/dbus-org.freedesktop.resolve1.service || die
371 + rm -fr "${ED%/}"/etc/systemd/system/network-online.target.wants || die
372 + rm -fr "${ED%/}"/etc/systemd/system/sockets.target.wants || die
373 + rm -fr "${ED%/}"/etc/systemd/system/sysinit.target.wants || die
374 +
375 + local udevdir=/lib/udev
376 + use split-usr || udevdir=/usr/lib/udev
377 +
378 + rm -r "${ED%/}${udevdir}/hwdb.d" || die
379 +
380 + if use split-usr; then
381 + # Avoid breaking boot/reboot
382 + dosym ../../../lib/systemd/systemd /usr/lib/systemd/systemd
383 + dosym ../../../lib/systemd/systemd-shutdown /usr/lib/systemd/systemd-shutdown
384 + fi
385 +}
386 +
387 +migrate_locale() {
388 + local envd_locale_def="${EROOT%/}/etc/env.d/02locale"
389 + local envd_locale=( "${EROOT%/}"/etc/env.d/??locale )
390 + local locale_conf="${EROOT%/}/etc/locale.conf"
391 +
392 + if [[ ! -L ${locale_conf} && ! -e ${locale_conf} ]]; then
393 + # If locale.conf does not exist...
394 + if [[ -e ${envd_locale} ]]; then
395 + # ...either copy env.d/??locale if there's one
396 + ebegin "Moving ${envd_locale} to ${locale_conf}"
397 + mv "${envd_locale}" "${locale_conf}"
398 + eend ${?} || FAIL=1
399 + else
400 + # ...or create a dummy default
401 + ebegin "Creating ${locale_conf}"
402 + cat > "${locale_conf}" <<-EOF
403 + # This file has been created by the sys-apps/systemd ebuild.
404 + # See locale.conf(5) and localectl(1).
405 +
406 + # LANG=${LANG}
407 + EOF
408 + eend ${?} || FAIL=1
409 + fi
410 + fi
411 +
412 + if [[ ! -L ${envd_locale} ]]; then
413 + # now, if env.d/??locale is not a symlink (to locale.conf)...
414 + if [[ -e ${envd_locale} ]]; then
415 + # ...warn the user that he has duplicate locale settings
416 + ewarn
417 + ewarn "To ensure consistent behavior, you should replace ${envd_locale}"
418 + ewarn "with a symlink to ${locale_conf}. Please migrate your settings"
419 + ewarn "and create the symlink with the following command:"
420 + ewarn "ln -s -n -f ../locale.conf ${envd_locale}"
421 + ewarn
422 + else
423 + # ...or just create the symlink if there's nothing here
424 + ebegin "Creating ${envd_locale_def} -> ../locale.conf symlink"
425 + ln -n -s ../locale.conf "${envd_locale_def}"
426 + eend ${?} || FAIL=1
427 + fi
428 + fi
429 +}
430 +
431 +pkg_postinst() {
432 + newusergroup() {
433 + enewgroup "$1"
434 + enewuser "$1" -1 -1 -1 "$1"
435 + }
436 +
437 + enewgroup input
438 + enewgroup kvm 78
439 + enewgroup render
440 + enewgroup systemd-journal
441 + newusergroup systemd-bus-proxy
442 + newusergroup systemd-coredump
443 + newusergroup systemd-journal-gateway
444 + newusergroup systemd-journal-remote
445 + newusergroup systemd-journal-upload
446 + newusergroup systemd-network
447 + newusergroup systemd-resolve
448 + newusergroup systemd-timesync
449 +
450 + systemd_update_catalog
451 +
452 + # Keep this here in case the database format changes so it gets updated
453 + # when required. Despite that this file is owned by sys-apps/hwids.
454 + if has_version "sys-apps/hwids[udev]"; then
455 + udevadm hwdb --update --root="${EROOT%/}"
456 + fi
457 +
458 + udev_reload || FAIL=1
459 +
460 + # Bug 465468, make sure locales are respect, and ensure consistency
461 + # between OpenRC & systemd
462 + migrate_locale
463 +
464 + systemd_reenable systemd-networkd.service systemd-resolved.service
465 +
466 + if [[ ${FAIL} ]]; then
467 + eerror "One of the postinst commands failed. Please check the postinst output"
468 + eerror "for errors. You may need to clean up your system and/or try installing"
469 + eerror "systemd again."
470 + eerror
471 + fi
472 +}
473 +
474 +pkg_prerm() {
475 + # If removing systemd completely, remove the catalog database.
476 + if [[ ! ${REPLACED_BY_VERSION} ]]; then
477 + rm -f -v "${EROOT}"/var/lib/systemd/catalog/database
478 + fi
479 +}