Gentoo Archives: gentoo-commits

From: "Mike Gilbert (floppym)" <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/systemd: systemd-218-r3.ebuild systemd-216-r4.ebuild systemd-9999.ebuild ChangeLog
Date: Sun, 08 Feb 2015 17:21:22
Message-Id: 20150208172118.D66A111557@oystercatcher.gentoo.org
1 floppym 15/02/08 17:21:18
2
3 Modified: systemd-9999.ebuild ChangeLog
4 Added: systemd-218-r3.ebuild systemd-216-r4.ebuild
5 Log:
6 Make sure we build all the nss libs on non-native abis. Bug 538966 by Hristo Venev.
7
8 (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)
9
10 Revision Changes Path
11 1.157 sys-apps/systemd/systemd-9999.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-9999.ebuild?rev=1.157&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-9999.ebuild?rev=1.157&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-9999.ebuild?r1=1.156&r2=1.157
16
17 Index: systemd-9999.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-9999.ebuild,v
20 retrieving revision 1.156
21 retrieving revision 1.157
22 diff -u -r1.156 -r1.157
23 --- systemd-9999.ebuild 2 Feb 2015 21:23:09 -0000 1.156
24 +++ systemd-9999.ebuild 8 Feb 2015 17:21:18 -0000 1.157
25 @@ -1,6 +1,6 @@
26 # Copyright 1999-2015 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-9999.ebuild,v 1.156 2015/02/02 21:23:09 floppym Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-9999.ebuild,v 1.157 2015/02/08 17:21:18 floppym Exp $
30
31 EAPI=5
32
33 @@ -174,14 +174,6 @@
34 multilib-minimal_src_configure
35 }
36
37 -multilib_native_enable() {
38 - if multilib_is_native_abi; then
39 - echo "--enable-${1}"
40 - else
41 - echo "--disable-${1}"
42 - fi
43 -}
44 -
45 multilib_src_configure() {
46 local myeconfargs=(
47 # disable -flto since it is an optimization flag
48 @@ -238,28 +230,6 @@
49 $(multilib_native_use_enable test dbus)
50 $(multilib_native_use_enable xkb xkbcommon)
51
52 - # Disable optional binaries for non-native abis
53 - $(multilib_native_enable backlight)
54 - $(multilib_native_enable binfmt)
55 - $(multilib_native_enable bootchart)
56 - $(multilib_native_enable coredump)
57 - $(multilib_native_enable firstboot)
58 - $(multilib_native_enable hibernate)
59 - $(multilib_native_enable hostnamed)
60 - $(multilib_native_enable localed)
61 - $(multilib_native_enable logind)
62 - $(multilib_native_enable machined)
63 - $(multilib_native_enable networkd)
64 - $(multilib_native_enable quotacheck)
65 - $(multilib_native_enable randomseed)
66 - $(multilib_native_enable resolved)
67 - $(multilib_native_enable rfkill)
68 - $(multilib_native_enable sysusers)
69 - $(multilib_native_enable timedated)
70 - $(multilib_native_enable timesyncd)
71 - $(multilib_native_enable tmpfiles)
72 - $(multilib_native_enable vconsole)
73 -
74 # not supported (avoid automagic deps in the future)
75 --disable-chkconfig
76
77
78
79
80 1.346 sys-apps/systemd/ChangeLog
81
82 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/ChangeLog?rev=1.346&view=markup
83 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/ChangeLog?rev=1.346&content-type=text/plain
84 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/ChangeLog?r1=1.345&r2=1.346
85
86 Index: ChangeLog
87 ===================================================================
88 RCS file: /var/cvsroot/gentoo-x86/sys-apps/systemd/ChangeLog,v
89 retrieving revision 1.345
90 retrieving revision 1.346
91 diff -u -r1.345 -r1.346
92 --- ChangeLog 2 Feb 2015 21:23:09 -0000 1.345
93 +++ ChangeLog 8 Feb 2015 17:21:18 -0000 1.346
94 @@ -1,6 +1,14 @@
95 # ChangeLog for sys-apps/systemd
96 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
97 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/ChangeLog,v 1.345 2015/02/02 21:23:09 floppym Exp $
98 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/ChangeLog,v 1.346 2015/02/08 17:21:18 floppym Exp $
99 +
100 +*systemd-216-r4 (08 Feb 2015)
101 +*systemd-218-r3 (08 Feb 2015)
102 +
103 + 08 Feb 2015; Mike Gilbert <floppym@g.o> +systemd-216-r4.ebuild,
104 + +systemd-218-r3.ebuild, systemd-9999.ebuild:
105 + Make sure we build all the nss libs on non-native abis. Bug 538966 by Hristo
106 + Venev.
107
108 02 Feb 2015; Mike Gilbert <floppym@g.o> systemd-218-r2.ebuild,
109 systemd-9999.ebuild:
110
111
112
113 1.1 sys-apps/systemd/systemd-218-r3.ebuild
114
115 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-218-r3.ebuild?rev=1.1&view=markup
116 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-218-r3.ebuild?rev=1.1&content-type=text/plain
117
118 Index: systemd-218-r3.ebuild
119 ===================================================================
120 # Copyright 1999-2015 Gentoo Foundation
121 # Distributed under the terms of the GNU General Public License v2
122 # $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-218-r3.ebuild,v 1.1 2015/02/08 17:21:18 floppym Exp $
123
124 EAPI=5
125
126 AUTOTOOLS_PRUNE_LIBTOOL_FILES=all
127 PYTHON_COMPAT=( python{2_7,3_2,3_3,3_4} )
128 inherit autotools-utils bash-completion-r1 linux-info multilib \
129 multilib-minimal pam python-single-r1 systemd toolchain-funcs udev \
130 user
131
132 DESCRIPTION="System and service manager for Linux"
133 HOMEPAGE="http://www.freedesktop.org/wiki/Software/systemd"
134 SRC_URI="http://www.freedesktop.org/software/systemd/${P}.tar.xz"
135
136 LICENSE="GPL-2 LGPL-2.1 MIT public-domain"
137 SLOT="0/2"
138 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
139 IUSE="acl apparmor audit cryptsetup curl doc elfutils gcrypt gudev http
140 idn introspection kdbus +kmod lz4 lzma pam policykit python qrcode +seccomp
141 selinux ssl sysv-utils terminal test vanilla xkb"
142
143 MINKV="3.8"
144
145 COMMON_DEPEND=">=sys-apps/util-linux-2.25:0=
146 sys-libs/libcap:0=
147 acl? ( sys-apps/acl:0= )
148 apparmor? ( sys-libs/libapparmor:0= )
149 audit? ( >=sys-process/audit-2:0= )
150 cryptsetup? ( >=sys-fs/cryptsetup-1.6:0= )
151 curl? ( net-misc/curl:0= )
152 elfutils? ( >=dev-libs/elfutils-0.158:0= )
153 gcrypt? ( >=dev-libs/libgcrypt-1.4.5:0=[${MULTILIB_USEDEP}] )
154 gudev? ( >=dev-libs/glib-2.34.3:2=[${MULTILIB_USEDEP}] )
155 http? (
156 >=net-libs/libmicrohttpd-0.9.33:0=
157 ssl? ( >=net-libs/gnutls-3.1.4:0= )
158 )
159 idn? ( net-dns/libidn:0= )
160 introspection? ( >=dev-libs/gobject-introspection-1.31.1:0= )
161 kmod? ( >=sys-apps/kmod-15:0= )
162 lz4? ( >=app-arch/lz4-0_p119:0=[${MULTILIB_USEDEP}] )
163 lzma? ( >=app-arch/xz-utils-5.0.5-r1:0=[${MULTILIB_USEDEP}] )
164 pam? ( virtual/pam:= )
165 python? ( ${PYTHON_DEPS} )
166 qrcode? ( media-gfx/qrencode:0= )
167 seccomp? ( sys-libs/libseccomp:0= )
168 selinux? ( sys-libs/libselinux:0= )
169 sysv-utils? (
170 !sys-apps/systemd-sysv-utils
171 !sys-apps/sysvinit )
172 terminal? ( >=dev-libs/libevdev-1.2:0=
173 >=x11-libs/libxkbcommon-0.5:0=
174 >=x11-libs/libdrm-2.4:0= )
175 xkb? ( >=x11-libs/libxkbcommon-0.4.1:0= )
176 abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20130224-r9
177 !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] )"
178
179 # baselayout-2.2 has /run
180 RDEPEND="${COMMON_DEPEND}
181 >=sys-apps/baselayout-2.2
182 !sys-auth/nss-myhostname
183 !<sys-libs/glibc-2.14
184 !sys-fs/eudev
185 !sys-fs/udev"
186
187 # sys-apps/dbus: the daemon only (+ build-time lib dep for tests)
188 PDEPEND=">=sys-apps/dbus-1.6.8-r1:0[systemd]
189 >=sys-apps/hwids-20130717-r1[udev]
190 >=sys-fs/udev-init-scripts-25
191 policykit? ( sys-auth/polkit )
192 !vanilla? ( sys-apps/gentoo-systemd-integration )"
193
194 # Newer linux-headers needed by ia64, bug #480218
195 DEPEND="${COMMON_DEPEND}
196 app-arch/xz-utils:0
197 dev-util/gperf
198 >=dev-util/intltool-0.50
199 >=sys-apps/coreutils-8.16
200 >=sys-devel/binutils-2.23.1
201 >=sys-devel/gcc-4.6
202 >=sys-kernel/linux-headers-${MINKV}
203 ia64? ( >=sys-kernel/linux-headers-3.9 )
204 virtual/pkgconfig
205 doc? ( >=dev-util/gtk-doc-1.18 )
206 python? ( dev-python/lxml[${PYTHON_USEDEP}] )
207 test? ( >=sys-apps/dbus-1.6.8-r1:0 )"
208
209 PATCHES=( "${FILESDIR}/218-Dont-enable-audit-by-default.patch" )
210
211 pkg_pretend() {
212 local CONFIG_CHECK="~AUTOFS4_FS ~BLK_DEV_BSG ~CGROUPS
213 ~DEVPTS_MULTIPLE_INSTANCES ~DEVTMPFS ~DMIID ~EPOLL ~FANOTIFY ~FHANDLE
214 ~INOTIFY_USER ~IPV6 ~NET ~NET_NS ~PROC_FS ~SECCOMP ~SIGNALFD ~SYSFS
215 ~TIMERFD ~TMPFS_XATTR
216 ~!FW_LOADER_USER_HELPER ~!GRKERNSEC_PROC ~!IDE ~!SYSFS_DEPRECATED
217 ~!SYSFS_DEPRECATED_V2"
218
219 use acl && CONFIG_CHECK+=" ~TMPFS_POSIX_ACL"
220 kernel_is -lt 3 7 && CONFIG_CHECK+=" ~HOTPLUG"
221
222 if linux_config_exists; then
223 local uevent_helper_path=$(linux_chkconfig_string UEVENT_HELPER_PATH)
224 if [ -n "${uevent_helper_path}" ] && [ "${uevent_helper_path}" != '""' ]; then
225 ewarn "It's recommended to set an empty value to the following kernel config option:"
226 ewarn "CONFIG_UEVENT_HELPER_PATH=${uevent_helper_path}"
227 fi
228 fi
229
230 if [[ ${MERGE_TYPE} != binary ]]; then
231 if [[ $(gcc-major-version) -lt 4
232 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ) ]]
233 then
234 eerror "systemd requires at least gcc 4.6 to build. Please switch the active"
235 eerror "gcc version using gcc-config."
236 die "systemd requires at least gcc 4.6"
237 fi
238 fi
239
240 if [[ ${MERGE_TYPE} != buildonly ]]; then
241 if kernel_is -lt ${MINKV//./ }; then
242 ewarn "Kernel version at least ${MINKV} required"
243 fi
244
245 check_extra_config
246 fi
247 }
248
249 pkg_setup() {
250 use python && python-single-r1_pkg_setup
251 }
252
253 src_prepare() {
254 # Bug 463376
255 sed -i -e 's/GROUP="dialout"/GROUP="uucp"/' rules/*.rules || die
256
257 # missing in tarball
258 cp "${FILESDIR}"/217-systemd-consoled.service.in \
259 units/user/systemd-consoled.service.in || die
260
261 autotools-utils_src_prepare
262 }
263
264 src_configure() {
265 # Keep using the one where the rules were installed.
266 MY_UDEVDIR=$(get_udevdir)
267 # Fix systems broken by bug #509454.
268 [[ ${MY_UDEVDIR} ]] || MY_UDEVDIR=/lib/udev
269
270 multilib-minimal_src_configure
271 }
272
273 multilib_src_configure() {
274 local myeconfargs=(
275 # disable -flto since it is an optimization flag
276 # and makes distcc less effective
277 cc_cv_CFLAGS__flto=no
278
279 # Workaround for bug 516346
280 --enable-dependency-tracking
281
282 --disable-maintainer-mode
283 --localstatedir=/var
284 --with-pamlibdir=$(getpam_mod_dir)
285 # avoid bash-completion dep
286 --with-bashcompletiondir="$(get_bashcompdir)"
287 # make sure we get /bin:/sbin in $PATH
288 --enable-split-usr
289 # For testing.
290 --with-rootprefix="${ROOTPREFIX-/usr}"
291 --with-rootlibdir="${ROOTPREFIX-/usr}/$(get_libdir)"
292 # disable sysv compatibility
293 --with-sysvinit-path=
294 --with-sysvrcnd-path=
295 # no deps
296 --enable-efi
297 --enable-ima
298
299 # Optional components/dependencies
300 $(multilib_native_use_enable acl)
301 $(multilib_native_use_enable apparmor)
302 $(multilib_native_use_enable audit)
303 $(multilib_native_use_enable cryptsetup libcryptsetup)
304 $(multilib_native_use_enable curl libcurl)
305 $(multilib_native_use_enable doc gtk-doc)
306 $(multilib_native_use_enable elfutils)
307 $(use_enable gcrypt)
308 $(use_enable gudev)
309 $(multilib_native_use_enable http microhttpd)
310 $(usex http $(multilib_native_use_enable ssl gnutls) --disable-gnutls)
311 $(multilib_native_use_enable idn libidn)
312 $(multilib_native_use_enable introspection)
313 $(use_enable kdbus)
314 $(multilib_native_use_enable kmod)
315 $(use_enable lz4)
316 $(use_enable lzma xz)
317 $(multilib_native_use_enable pam)
318 $(multilib_native_use_enable policykit polkit)
319 $(multilib_native_use_with python)
320 $(multilib_native_use_enable python python-devel)
321 $(multilib_native_use_enable qrcode qrencode)
322 $(multilib_native_use_enable seccomp)
323 $(multilib_native_use_enable selinux)
324 $(multilib_native_use_enable terminal)
325 $(multilib_native_use_enable test tests)
326 $(multilib_native_use_enable test dbus)
327 $(multilib_native_use_enable xkb xkbcommon)
328
329 # not supported (avoid automagic deps in the future)
330 --disable-chkconfig
331
332 # hardcode a few paths to spare some deps
333 QUOTAON=/usr/sbin/quotaon
334 QUOTACHECK=/usr/sbin/quotacheck
335
336 # dbus paths
337 --with-dbuspolicydir="${EPREFIX}/etc/dbus-1/system.d"
338 --with-dbussessionservicedir="${EPREFIX}/usr/share/dbus-1/services"
339 --with-dbussystemservicedir="${EPREFIX}/usr/share/dbus-1/system-services"
340 --with-dbusinterfacedir="${EPREFIX}/usr/share/dbus-1/interfaces"
341
342 --with-ntp-servers="0.gentoo.pool.ntp.org 1.gentoo.pool.ntp.org 2.gentoo.pool.ntp.org 3.gentoo.pool.ntp.org"
343 )
344
345 if ! multilib_is_native_abi; then
346 myeconfargs+=(
347 MOUNT_{CFLAGS,LIBS}=' '
348
349 ac_cv_search_cap_init=
350 ac_cv_header_sys_capability_h=yes
351 )
352 fi
353
354 # Work around bug 463846.
355 tc-export CC
356
357 autotools-utils_src_configure
358 }
359
360 multilib_src_compile() {
361 local mymakeopts=(
362 udevlibexecdir="${MY_UDEVDIR}"
363 )
364
365 if multilib_is_native_abi; then
366 emake "${mymakeopts[@]}"
367 else
368 # prerequisites for gudev
369 use gudev && emake src/gudev/gudev{enumtypes,marshal}.{c,h}
370
371 echo 'gentoo: $(BUILT_SOURCES)' | \
372 emake "${mymakeopts[@]}" -f Makefile -f - gentoo
373 echo 'gentoo: $(lib_LTLIBRARIES) $(pkgconfiglib_DATA)' | \
374 emake "${mymakeopts[@]}" -f Makefile -f - gentoo
375 fi
376 }
377
378 multilib_src_test() {
379 multilib_is_native_abi || continue
380
381 default
382 }
383
384 multilib_src_install() {
385 local mymakeopts=(
386 # automake fails with parallel libtool relinking
387 # https://bugs.gentoo.org/show_bug.cgi?id=491398
388 -j1
389
390 udevlibexecdir="${MY_UDEVDIR}"
391 dist_udevhwdb_DATA=
392 DESTDIR="${D}"
393 )
394
395 if multilib_is_native_abi; then
396 emake "${mymakeopts[@]}" install
397 else
398 mymakeopts+=(
399 install-libLTLIBRARIES
400 install-pkgconfiglibDATA
401 install-includeHEADERS
402 # safe to call unconditionally, 'installs' empty list
403 install-libgudev_includeHEADERS
404 install-pkgincludeHEADERS
405 )
406
407 emake "${mymakeopts[@]}"
408 fi
409
410 # install compat pkg-config files
411 # Change dbus to >=sys-apps/dbus-1.8.8 if/when this is dropped.
412 local pcfiles=( src/compat-libs/libsystemd-{daemon,id128,journal,login}.pc )
413 emake "${mymakeopts[@]}" install-pkgconfiglibDATA \
414 pkgconfiglib_DATA="${pcfiles[*]}"
415 }
416
417 multilib_src_install_all() {
418 prune_libtool_files --modules
419 einstalldocs
420
421 if use sysv-utils; then
422 for app in halt poweroff reboot runlevel shutdown telinit; do
423 dosym "..${ROOTPREFIX-/usr}/bin/systemctl" /sbin/${app}
424 done
425 dosym "..${ROOTPREFIX-/usr}/lib/systemd/systemd" /sbin/init
426 else
427 # we just keep sysvinit tools, so no need for the mans
428 rm "${D}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 \
429 || die
430 rm "${D}"/usr/share/man/man1/init.1 || die
431 fi
432
433 # Disable storing coredumps in journald, bug #433457
434 mv "${D}"/usr/lib/sysctl.d/50-coredump.conf{,.disabled} || die
435
436 # Preserve empty dirs in /etc & /var, bug #437008
437 keepdir /etc/binfmt.d /etc/modules-load.d /etc/tmpfiles.d \
438 /etc/systemd/ntp-units.d /etc/systemd/user /var/lib/systemd \
439 /var/log/journal/remote
440
441 # Symlink /etc/sysctl.conf for easy migration.
442 dosym ../sysctl.conf /etc/sysctl.d/99-sysctl.conf
443
444 # If we install these symlinks, there is no way for the sysadmin to remove them
445 # permanently.
446 rm "${D}"/etc/systemd/system/multi-user.target.wants/systemd-networkd.service || die
447 rm "${D}"/etc/systemd/system/multi-user.target.wants/systemd-resolved.service || die
448 rm -r "${D}"/etc/systemd/system/network-online.target.wants || die
449 rm -r "${D}"/etc/systemd/system/sysinit.target.wants || die
450 }
451
452 migrate_locale() {
453 local envd_locale_def="${EROOT%/}/etc/env.d/02locale"
454 local envd_locale=( "${EROOT%/}"/etc/env.d/??locale )
455 local locale_conf="${EROOT%/}/etc/locale.conf"
456
457 if [[ ! -L ${locale_conf} && ! -e ${locale_conf} ]]; then
458 # If locale.conf does not exist...
459 if [[ -e ${envd_locale} ]]; then
460 # ...either copy env.d/??locale if there's one
461 ebegin "Moving ${envd_locale} to ${locale_conf}"
462 mv "${envd_locale}" "${locale_conf}"
463 eend ${?} || FAIL=1
464 else
465 # ...or create a dummy default
466 ebegin "Creating ${locale_conf}"
467 cat > "${locale_conf}" <<-EOF
468 # This file has been created by the sys-apps/systemd ebuild.
469 # See locale.conf(5) and localectl(1).
470
471 # LANG=${LANG}
472 EOF
473 eend ${?} || FAIL=1
474 fi
475 fi
476
477 if [[ ! -L ${envd_locale} ]]; then
478 # now, if env.d/??locale is not a symlink (to locale.conf)...
479 if [[ -e ${envd_locale} ]]; then
480 # ...warn the user that he has duplicate locale settings
481 ewarn
482 ewarn "To ensure consistent behavior, you should replace ${envd_locale}"
483 ewarn "with a symlink to ${locale_conf}. Please migrate your settings"
484 ewarn "and create the symlink with the following command:"
485 ewarn "ln -s -n -f ../locale.conf ${envd_locale}"
486 ewarn
487 else
488 # ...or just create the symlink if there's nothing here
489 ebegin "Creating ${envd_locale_def} -> ../locale.conf symlink"
490 ln -n -s ../locale.conf "${envd_locale_def}"
491 eend ${?} || FAIL=1
492 fi
493 fi
494 }
495
496 migrate_net_name_slot() {
497 # If user has disabled 80-net-name-slot.rules using a empty file or a symlink to /dev/null,
498 # do the same for 80-net-setup-link.rules to keep the old behavior
499 local net_move=no
500 local net_name_slot_sym=no
501 local net_rules_path="${EROOT%/}"/etc/udev/rules.d
502 local net_name_slot="${net_rules_path}"/80-net-name-slot.rules
503 local net_setup_link="${net_rules_path}"/80-net-setup-link.rules
504 if [[ -e ${net_setup_link} ]]; then
505 net_move=no
506 elif [[ -f ${net_name_slot} && $(sed -e "/^#/d" -e "/^\W*$/d" ${net_name_slot} | wc -l) == 0 ]]; then
507 net_move=yes
508 elif [[ -L ${net_name_slot} && $(readlink ${net_name_slot}) == /dev/null ]]; then
509 net_move=yes
510 net_name_slot_sym=yes
511 fi
512 if [[ ${net_move} == yes ]]; then
513 ebegin "Copying ${net_name_slot} to ${net_setup_link}"
514
515 if [[ ${net_name_slot_sym} == yes ]]; then
516 ln -nfs /dev/null "${net_setup_link}"
517 else
518 cp "${net_name_slot}" "${net_setup_link}"
519 fi
520 eend $? || FAIL=1
521 fi
522 }
523
524 pkg_postinst() {
525 newusergroup() {
526 enewgroup "$1"
527 enewuser "$1" -1 -1 -1 "$1"
528 }
529
530 enewgroup input
531 enewgroup systemd-journal
532 newusergroup systemd-bus-proxy
533 newusergroup systemd-journal-gateway
534 newusergroup systemd-journal-remote
535 newusergroup systemd-journal-upload
536 newusergroup systemd-network
537 newusergroup systemd-resolve
538 newusergroup systemd-timesync
539 use http && newusergroup systemd-journal-gateway
540
541 systemd_update_catalog
542
543 # Keep this here in case the database format changes so it gets updated
544 # when required. Despite that this file is owned by sys-apps/hwids.
545 if has_version "sys-apps/hwids[udev]"; then
546 udevadm hwdb --update --root="${ROOT%/}"
547 fi
548
549 udev_reload || FAIL=1
550
551 # Bug 465468, make sure locales are respect, and ensure consistency
552 # between OpenRC & systemd
553 migrate_locale
554
555 # Migrate 80-net-name-slot.rules -> 80-net-setup-link.rules
556 migrate_net_name_slot
557
558 if [[ ${FAIL} ]]; then
559 eerror "One of the postinst commands failed. Please check the postinst output"
560 eerror "for errors. You may need to clean up your system and/or try installing"
561 eerror "systemd again."
562 eerror
563 fi
564
565 if [[ ! -L "${ROOT}"/etc/mtab ]]; then
566 ewarn "Upstream mandates the /etc/mtab file should be a symlink to /proc/mounts."
567 ewarn "Not having it is not supported by upstream and will cause tools like 'df'"
568 ewarn "and 'mount' to not work properly. Please run:"
569 ewarn " # ln -sf '${ROOT}proc/self/mounts' '${ROOT}etc/mtab'"
570 ewarn
571 fi
572
573 if [[ $(readlink "${ROOT}"/etc/resolv.conf) == */run/systemd/network/resolv.conf ]]; then
574 ewarn "resolv.conf is now generated by systemd-resolved. To use it, enable"
575 ewarn "systemd-resolved.service, and create a symlink from /etc/resolv.conf"
576 ewarn "to /run/systemd/resolve/resolv.conf"
577 ewarn
578 fi
579
580 if ! has_version sys-apps/systemd-ui; then
581 elog "To get additional features, a number of optional runtime dependencies may"
582 elog "be installed:"
583 elog "- sys-apps/systemd-ui: for GTK+ systemadm UI and gnome-ask-password-agent"
584 fi
585
586 if has_version sys-apps/openrc &&
587 ! has_version sys-fs/udev-init-scripts; then
588 elog "If you plan to boot using OpenRC and udev or eudev, you"
589 elog "need to install the udev-init-scripts package."
590 fi
591 }
592
593 pkg_prerm() {
594 # If removing systemd completely, remove the catalog database.
595 if [[ ! ${REPLACED_BY_VERSION} ]]; then
596 rm -f -v "${EROOT}"/var/lib/systemd/catalog/database
597 fi
598 }
599
600
601
602 1.1 sys-apps/systemd/systemd-216-r4.ebuild
603
604 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-216-r4.ebuild?rev=1.1&view=markup
605 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-216-r4.ebuild?rev=1.1&content-type=text/plain
606
607 Index: systemd-216-r4.ebuild
608 ===================================================================
609 # Copyright 1999-2015 Gentoo Foundation
610 # Distributed under the terms of the GNU General Public License v2
611 # $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-216-r4.ebuild,v 1.1 2015/02/08 17:21:18 floppym Exp $
612
613 EAPI=5
614
615 AUTOTOOLS_PRUNE_LIBTOOL_FILES=all
616 PYTHON_COMPAT=( python{2_7,3_2,3_3,3_4} )
617 inherit autotools-utils bash-completion-r1 linux-info multilib \
618 multilib-minimal pam python-single-r1 systemd toolchain-funcs udev \
619 user
620
621 DESCRIPTION="System and service manager for Linux"
622 HOMEPAGE="http://www.freedesktop.org/wiki/Software/systemd"
623 SRC_URI="http://www.freedesktop.org/software/systemd/${P}.tar.xz"
624
625 LICENSE="GPL-2 LGPL-2.1 MIT public-domain"
626 SLOT="0/2"
627 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
628 IUSE="acl apparmor audit cryptsetup curl doc elfutils +firmware-loader gcrypt gudev http
629 idn introspection kdbus +kmod lz4 lzma pam policykit python qrcode +seccomp
630 selinux ssl sysv-utils test vanilla"
631
632 MINKV="3.8"
633
634 COMMON_DEPEND=">=sys-apps/util-linux-2.20:0=
635 sys-libs/libcap:0=
636 acl? ( sys-apps/acl:0= )
637 apparmor? ( sys-libs/libapparmor:0= )
638 audit? ( >=sys-process/audit-2:0= )
639 cryptsetup? ( >=sys-fs/cryptsetup-1.6:0= )
640 curl? ( net-misc/curl:0= )
641 elfutils? ( >=dev-libs/elfutils-0.158:0= )
642 gcrypt? ( >=dev-libs/libgcrypt-1.4.5:0=[${MULTILIB_USEDEP}] )
643 gudev? ( >=dev-libs/glib-2.34.3:2=[${MULTILIB_USEDEP}] )
644 http? (
645 >=net-libs/libmicrohttpd-0.9.33:0=
646 ssl? ( >=net-libs/gnutls-3.1.4:0= )
647 )
648 idn? ( net-dns/libidn:0= )
649 introspection? ( >=dev-libs/gobject-introspection-1.31.1:0= )
650 kmod? ( >=sys-apps/kmod-15:0= )
651 lz4? ( >=app-arch/lz4-0_p119:0=[${MULTILIB_USEDEP}] )
652 lzma? ( >=app-arch/xz-utils-5.0.5-r1:0=[${MULTILIB_USEDEP}] )
653 pam? ( virtual/pam:= )
654 python? ( ${PYTHON_DEPS} )
655 qrcode? ( media-gfx/qrencode:0= )
656 seccomp? ( sys-libs/libseccomp:0= )
657 selinux? ( sys-libs/libselinux:0= )
658 sysv-utils? (
659 !sys-apps/systemd-sysv-utils
660 !sys-apps/sysvinit
661 >=sys-apps/util-linux-2.24.1-r2 )
662 abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20130224-r9
663 !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] )"
664
665 # baselayout-2.2 has /run
666 RDEPEND="${COMMON_DEPEND}
667 >=sys-apps/baselayout-2.2
668 || (
669 >=sys-apps/util-linux-2.22
670 <sys-apps/sysvinit-2.88-r4
671 )
672 !sys-auth/nss-myhostname
673 !<sys-libs/glibc-2.14
674 !sys-fs/udev"
675
676 # sys-apps/dbus: the daemon only (+ build-time lib dep for tests)
677 PDEPEND=">=sys-apps/dbus-1.6.8-r1:0[systemd]
678 >=sys-apps/hwids-20130717-r1[udev]
679 >=sys-fs/udev-init-scripts-25
680 policykit? ( sys-auth/polkit )
681 !vanilla? ( sys-apps/gentoo-systemd-integration )"
682
683 # Newer linux-headers needed by ia64, bug #480218
684 DEPEND="${COMMON_DEPEND}
685 app-arch/xz-utils:0
686 dev-util/gperf
687 >=dev-util/intltool-0.50
688 >=sys-apps/coreutils-8.16
689 >=sys-devel/binutils-2.23.1
690 >=sys-devel/gcc-4.6
691 >=sys-kernel/linux-headers-${MINKV}
692 ia64? ( >=sys-kernel/linux-headers-3.9 )
693 virtual/pkgconfig
694 doc? ( >=dev-util/gtk-doc-1.18 )
695 python? ( dev-python/lxml[${PYTHON_USEDEP}] )
696 test? ( >=sys-apps/dbus-1.6.8-r1:0 )"
697
698 PATCHES=(
699 "${FILESDIR}/216-lz4-build.patch"
700 "${FILESDIR}/216-tmpfiles-setup-dev.patch"
701 )
702
703 src_prepare() {
704 # Bug 463376
705 sed -i -e 's/GROUP="dialout"/GROUP="uucp"/' rules/*.rules || die
706
707 autotools-utils_src_prepare
708 }
709
710 pkg_pretend() {
711 local CONFIG_CHECK="~AUTOFS4_FS ~BLK_DEV_BSG ~CGROUPS ~DEVTMPFS ~DMIID
712 ~EPOLL ~FANOTIFY ~FHANDLE ~INOTIFY_USER ~IPV6 ~NET ~NET_NS ~PROC_FS
713 ~SECCOMP ~SIGNALFD ~SYSFS ~TIMERFD ~TMPFS_XATTR ~DEVPTS_MULTIPLE_INSTANCES
714 ~!IDE ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2
715 ~!GRKERNSEC_PROC"
716
717 use acl && CONFIG_CHECK+=" ~TMPFS_POSIX_ACL"
718 kernel_is -lt 3 7 && CONFIG_CHECK+=" ~HOTPLUG"
719 use firmware-loader || CONFIG_CHECK+=" ~!FW_LOADER_USER_HELPER"
720
721 if linux_config_exists; then
722 local uevent_helper_path=$(linux_chkconfig_string UEVENT_HELPER_PATH)
723 if [ -n "${uevent_helper_path}" ] && [ "${uevent_helper_path}" != '""' ]; then
724 ewarn "It's recommended to set an empty value to the following kernel config option:"
725 ewarn "CONFIG_UEVENT_HELPER_PATH=${uevent_helper_path}"
726 fi
727 fi
728
729 if [[ ${MERGE_TYPE} != binary ]]; then
730 if [[ $(gcc-major-version) -lt 4
731 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ) ]]
732 then
733 eerror "systemd requires at least gcc 4.6 to build. Please switch the active"
734 eerror "gcc version using gcc-config."
735 die "systemd requires at least gcc 4.6"
736 fi
737 fi
738
739 if [[ ${MERGE_TYPE} != buildonly ]]; then
740 if kernel_is -lt ${MINKV//./ }; then
741 ewarn "Kernel version at least ${MINKV} required"
742 fi
743
744 if ! use firmware-loader && kernel_is -lt 3 8; then
745 ewarn "You seem to be using kernel older than 3.8. Those kernel versions"
746 ewarn "require systemd with USE=firmware-loader to support loading"
747 ewarn "firmware. Missing this flag may cause some hardware not to work."
748 fi
749
750 check_extra_config
751 fi
752 }
753
754 pkg_setup() {
755 use python && python-single-r1_pkg_setup
756 }
757
758 src_configure() {
759 # Keep using the one where the rules were installed.
760 MY_UDEVDIR=$(get_udevdir)
761 # Fix systems broken by bug #509454.
762 [[ ${MY_UDEVDIR} ]] || MY_UDEVDIR=/lib/udev
763
764 multilib-minimal_src_configure
765 }
766
767 multilib_native_enable() {
768 if multilib_is_native_abi; then
769 echo "--enable-${1}"
770 else
771 echo "--disable-${1}"
772 fi
773 }
774
775 multilib_src_configure() {
776 local myeconfargs=(
777 # disable -flto since it is an optimization flag
778 # and makes distcc less effective
779 cc_cv_CFLAGS__flto=no
780
781 # Workaround for bug 516346
782 --enable-dependency-tracking
783
784 --disable-maintainer-mode
785 --localstatedir=/var
786 --with-pamlibdir=$(getpam_mod_dir)
787 # avoid bash-completion dep
788 --with-bashcompletiondir="$(get_bashcompdir)"
789 # make sure we get /bin:/sbin in $PATH
790 --enable-split-usr
791 # For testing.
792 --with-rootprefix="${ROOTPREFIX-/usr}"
793 --with-rootlibdir="${ROOTPREFIX-/usr}/$(get_libdir)"
794 # disable sysv compatibility
795 --with-sysvinit-path=
796 --with-sysvrcnd-path=
797 # no deps
798 --enable-efi
799 --enable-ima
800
801 # Optional components/dependencies
802 $(multilib_native_use_enable acl)
803 $(multilib_native_use_enable apparmor)
804 $(multilib_native_use_enable audit)
805 $(multilib_native_use_enable cryptsetup libcryptsetup)
806 $(multilib_native_use_enable curl libcurl)
807 $(multilib_native_use_enable doc gtk-doc)
808 $(multilib_native_use_enable elfutils)
809 $(use_enable gcrypt)
810 $(use_enable gudev)
811 $(multilib_native_use_enable http microhttpd)
812 $(usex http $(multilib_native_use_enable ssl gnutls) --disable-gnutls)
813 $(multilib_native_use_enable idn libidn)
814 $(multilib_native_use_enable introspection)
815 $(use_enable kdbus)
816 $(multilib_native_use_enable kmod)
817 $(use_enable lz4)
818 $(use_enable lzma xz)
819 $(multilib_native_use_enable pam)
820 $(multilib_native_use_enable policykit polkit)
821 $(multilib_native_use_with python)
822 $(multilib_native_use_enable python python-devel)
823 $(multilib_native_use_enable qrcode qrencode)
824 $(multilib_native_use_enable seccomp)
825 $(multilib_native_use_enable selinux)
826 $(multilib_native_use_enable test tests)
827 $(multilib_native_use_enable test dbus)
828
829 # Disable optional binaries for non-native abis
830 $(multilib_native_enable backlight)
831 $(multilib_native_enable binfmt)
832 $(multilib_native_enable bootchart)
833 $(multilib_native_enable coredump)
834 $(multilib_native_enable firstboot)
835 $(multilib_native_enable hostnamed)
836 $(multilib_native_enable localed)
837 $(multilib_native_enable logind)
838 $(multilib_native_enable networkd)
839 $(multilib_native_enable quotacheck)
840 $(multilib_native_enable randomseed)
841 $(multilib_native_enable readahead)
842 $(multilib_native_enable rfkill)
843 $(multilib_native_enable sysusers)
844 $(multilib_native_enable timedated)
845 $(multilib_native_enable timesyncd)
846 $(multilib_native_enable tmpfiles)
847 $(multilib_native_enable vconsole)
848
849 # not supported (avoid automagic deps in the future)
850 --disable-chkconfig
851
852 # hardcode a few paths to spare some deps
853 QUOTAON=/usr/sbin/quotaon
854 QUOTACHECK=/usr/sbin/quotacheck
855
856 # dbus paths
857 --with-dbuspolicydir="${EPREFIX}/etc/dbus-1/system.d"
858 --with-dbussessionservicedir="${EPREFIX}/usr/share/dbus-1/services"
859 --with-dbussystemservicedir="${EPREFIX}/usr/share/dbus-1/system-services"
860 --with-dbusinterfacedir="${EPREFIX}/usr/share/dbus-1/interfaces"
861
862 --with-ntp-servers="0.gentoo.pool.ntp.org 1.gentoo.pool.ntp.org 2.gentoo.pool.ntp.org 3.gentoo.pool.ntp.org"
863 )
864
865 if use firmware-loader; then
866 myeconfargs+=(
867 --with-firmware-path="/lib/firmware/updates:/lib/firmware"
868 )
869 fi
870
871 if ! multilib_is_native_abi; then
872 myeconfargs+=(
873 ac_cv_search_cap_init=
874 ac_cv_header_sys_capability_h=yes
875 )
876 fi
877
878 # Work around bug 463846.
879 tc-export CC
880
881 autotools-utils_src_configure
882 }
883
884 multilib_src_compile() {
885 local mymakeopts=(
886 udevlibexecdir="${MY_UDEVDIR}"
887 )
888
889 if multilib_is_native_abi; then
890 emake "${mymakeopts[@]}"
891 else
892 # prerequisites for gudev
893 use gudev && emake src/gudev/gudev{enumtypes,marshal}.{c,h}
894
895 echo 'gentoo: $(BUILT_SOURCES)' | \
896 emake "${mymakeopts[@]}" -f Makefile -f - gentoo
897 echo 'gentoo: $(lib_LTLIBRARIES) $(pkgconfiglib_DATA)' | \
898 emake "${mymakeopts[@]}" -f Makefile -f - gentoo
899 fi
900 }
901
902 multilib_src_test() {
903 multilib_is_native_abi || continue
904
905 default
906 }
907
908 multilib_src_install() {
909 local mymakeopts=(
910 # automake fails with parallel libtool relinking
911 # https://bugs.gentoo.org/show_bug.cgi?id=491398
912 -j1
913
914 udevlibexecdir="${MY_UDEVDIR}"
915 dist_udevhwdb_DATA=
916 DESTDIR="${D}"
917 )
918
919 if multilib_is_native_abi; then
920 emake "${mymakeopts[@]}" install
921 else
922 mymakeopts+=(
923 install-libLTLIBRARIES
924 install-pkgconfiglibDATA
925 install-includeHEADERS
926 # safe to call unconditionally, 'installs' empty list
927 install-libgudev_includeHEADERS
928 install-pkgincludeHEADERS
929 )
930
931 emake "${mymakeopts[@]}"
932 fi
933
934 # install compat pkg-config files
935 local pcfiles=( src/compat-libs/libsystemd-{daemon,id128,journal,login}.pc )
936 emake "${mymakeopts[@]}" install-pkgconfiglibDATA \
937 pkgconfiglib_DATA="${pcfiles[*]}"
938 }
939
940 multilib_src_install_all() {
941 prune_libtool_files --modules
942 einstalldocs
943
944 if use sysv-utils; then
945 for app in halt poweroff reboot runlevel shutdown telinit; do
946 dosym "..${ROOTPREFIX-/usr}/bin/systemctl" /sbin/${app}
947 done
948 dosym "..${ROOTPREFIX-/usr}/lib/systemd/systemd" /sbin/init
949 else
950 # we just keep sysvinit tools, so no need for the mans
951 rm "${D}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 \
952 || die
953 rm "${D}"/usr/share/man/man1/init.1 || die
954 fi
955
956 # Disable storing coredumps in journald, bug #433457
957 mv "${D}"/usr/lib/sysctl.d/50-coredump.conf{,.disabled} || die
958
959 # Preserve empty dirs in /etc & /var, bug #437008
960 keepdir /etc/binfmt.d /etc/modules-load.d /etc/tmpfiles.d \
961 /etc/systemd/ntp-units.d /etc/systemd/user /var/lib/systemd \
962 /var/log/journal/remote
963
964 # Symlink /etc/sysctl.conf for easy migration.
965 dosym ../sysctl.conf /etc/sysctl.d/99-sysctl.conf
966
967 # If we install these symlinks, there is no way for the sysadmin to remove them
968 # permanently.
969 rm -f "${D}"/etc/systemd/system/multi-user.target.wants/systemd-networkd.service
970 rm -f "${D}"/etc/systemd/system/multi-user.target.wants/systemd-resolved.service
971 rm -f "${D}"/etc/systemd/system/multi-user.target.wants/systemd-timesyncd.service
972 rm -rf "${D}"/etc/systemd/system/network-online.target.wants
973 }
974
975 migrate_locale() {
976 local envd_locale_def="${EROOT%/}/etc/env.d/02locale"
977 local envd_locale=( "${EROOT%/}"/etc/env.d/??locale )
978 local locale_conf="${EROOT%/}/etc/locale.conf"
979
980 if [[ ! -L ${locale_conf} && ! -e ${locale_conf} ]]; then
981 # If locale.conf does not exist...
982 if [[ -e ${envd_locale} ]]; then
983 # ...either copy env.d/??locale if there's one
984 ebegin "Moving ${envd_locale} to ${locale_conf}"
985 mv "${envd_locale}" "${locale_conf}"
986 eend ${?} || FAIL=1
987 else
988 # ...or create a dummy default
989 ebegin "Creating ${locale_conf}"
990 cat > "${locale_conf}" <<-EOF
991 # This file has been created by the sys-apps/systemd ebuild.
992 # See locale.conf(5) and localectl(1).
993
994 # LANG=${LANG}
995 EOF
996 eend ${?} || FAIL=1
997 fi
998 fi
999
1000 if [[ ! -L ${envd_locale} ]]; then
1001 # now, if env.d/??locale is not a symlink (to locale.conf)...
1002 if [[ -e ${envd_locale} ]]; then
1003 # ...warn the user that he has duplicate locale settings
1004 ewarn
1005 ewarn "To ensure consistent behavior, you should replace ${envd_locale}"
1006 ewarn "with a symlink to ${locale_conf}. Please migrate your settings"
1007 ewarn "and create the symlink with the following command:"
1008 ewarn "ln -s -n -f ../locale.conf ${envd_locale}"
1009 ewarn
1010 else
1011 # ...or just create the symlink if there's nothing here
1012 ebegin "Creating ${envd_locale_def} -> ../locale.conf symlink"
1013 ln -n -s ../locale.conf "${envd_locale_def}"
1014 eend ${?} || FAIL=1
1015 fi
1016 fi
1017 }
1018
1019 migrate_net_name_slot() {
1020 # If user has disabled 80-net-name-slot.rules using a empty file or a symlink to /dev/null,
1021 # do the same for 80-net-setup-link.rules to keep the old behavior
1022 local net_move=no
1023 local net_name_slot_sym=no
1024 local net_rules_path="${EROOT%/}"/etc/udev/rules.d
1025 local net_name_slot="${net_rules_path}"/80-net-name-slot.rules
1026 local net_setup_link="${net_rules_path}"/80-net-setup-link.rules
1027 if [[ -e ${net_setup_link} ]]; then
1028 net_move=no
1029 elif [[ -f ${net_name_slot} && $(sed -e "/^#/d" -e "/^\W*$/d" ${net_name_slot} | wc -l) == 0 ]]; then
1030 net_move=yes
1031 elif [[ -L ${net_name_slot} && $(readlink ${net_name_slot}) == /dev/null ]]; then
1032 net_move=yes
1033 net_name_slot_sym=yes
1034 fi
1035 if [[ ${net_move} == yes ]]; then
1036 ebegin "Copying ${net_name_slot} to ${net_setup_link}"
1037
1038 if [[ ${net_name_slot_sym} == yes ]]; then
1039 ln -nfs /dev/null "${net_setup_link}"
1040 else
1041 cp "${net_name_slot}" "${net_setup_link}"
1042 fi
1043 eend $? || FAIL=1
1044 fi
1045 }
1046
1047 pkg_postinst() {
1048 newusergroup() {
1049 enewgroup "$1"
1050 enewuser "$1" -1 -1 -1 "$1"
1051 }
1052
1053 enewgroup input
1054 enewgroup systemd-journal
1055 newusergroup systemd-bus-proxy
1056 newusergroup systemd-journal-gateway
1057 newusergroup systemd-journal-remote
1058 newusergroup systemd-journal-upload
1059 newusergroup systemd-network
1060 newusergroup systemd-resolve
1061 newusergroup systemd-timesync
1062 use http && newusergroup systemd-journal-gateway
1063
1064 systemd_update_catalog
1065
1066 # Keep this here in case the database format changes so it gets updated
1067 # when required. Despite that this file is owned by sys-apps/hwids.
1068 if has_version "sys-apps/hwids[udev]"; then
1069 udevadm hwdb --update --root="${ROOT%/}"
1070 fi
1071
1072 udev_reload || FAIL=1
1073
1074 # Bug 465468, make sure locales are respect, and ensure consistency
1075 # between OpenRC & systemd
1076 migrate_locale
1077
1078 # Migrate 80-net-name-slot.rules -> 80-net-setup-link.rules
1079 migrate_net_name_slot
1080
1081 if [[ ${FAIL} ]]; then
1082 eerror "One of the postinst commands failed. Please check the postinst output"
1083 eerror "for errors. You may need to clean up your system and/or try installing"
1084 eerror "systemd again."
1085 eerror
1086 fi
1087
1088 if [[ ! -L "${ROOT}"/etc/mtab ]]; then
1089 ewarn "Upstream mandates the /etc/mtab file should be a symlink to /proc/mounts."
1090 ewarn "Not having it is not supported by upstream and will cause tools like 'df'"
1091 ewarn "and 'mount' to not work properly. Please run:"
1092 ewarn " # ln -sf '${ROOT}proc/self/mounts' '${ROOT}etc/mtab'"
1093 ewarn
1094 fi
1095
1096 if [[ $(readlink "${ROOT}"/etc/resolv.conf) == */run/systemd/network/resolv.conf ]]; then
1097 ewarn "resolv.conf is now generated by systemd-resolved. To use it, enable"
1098 ewarn "systemd-resolved.service, and create a symlink from /etc/resolv.conf"
1099 ewarn "to /run/systemd/resolve/resolv.conf"
1100 ewarn
1101 fi
1102
1103 if ! has_version sys-apps/systemd-ui; then
1104 elog "To get additional features, a number of optional runtime dependencies may"
1105 elog "be installed:"
1106 elog "- sys-apps/systemd-ui: for GTK+ systemadm UI and gnome-ask-password-agent"
1107 fi
1108
1109 if has_version sys-apps/openrc &&
1110 ! has_version sys-fs/udev-init-scripts; then
1111 elog "If you plan to boot using OpenRC and udev or eudev, you"
1112 elog "need to install the udev-init-scripts package."
1113 fi
1114 }
1115
1116 pkg_prerm() {
1117 # If removing systemd completely, remove the catalog database.
1118 if [[ ! ${REPLACED_BY_VERSION} ]]; then
1119 rm -f -v "${EROOT}"/var/lib/systemd/catalog/database
1120 fi
1121 }