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