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-208-r2.ebuild systemd-9999.ebuild systemd-208-r3.ebuild ChangeLog
Date: Tue, 21 Jan 2014 00:11:19
Message-Id: 20140120225308.228ED2005C@flycatcher.gentoo.org
1 floppym 14/01/20 22:53:08
2
3 Modified: systemd-208-r2.ebuild systemd-9999.ebuild ChangeLog
4 Added: systemd-208-r3.ebuild
5 Log:
6 Replace dialout with uucp group in udev rules, bug 463376.
7
8 (Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)
9
10 Revision Changes Path
11 1.14 sys-apps/systemd/systemd-208-r2.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-208-r2.ebuild?rev=1.14&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-208-r2.ebuild?rev=1.14&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-208-r2.ebuild?r1=1.13&r2=1.14
16
17 Index: systemd-208-r2.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-208-r2.ebuild,v
20 retrieving revision 1.13
21 retrieving revision 1.14
22 diff -u -r1.13 -r1.14
23 --- systemd-208-r2.ebuild 19 Jan 2014 12:01:36 -0000 1.13
24 +++ systemd-208-r2.ebuild 20 Jan 2014 22:53:07 -0000 1.14
25 @@ -1,6 +1,6 @@
26 # Copyright 1999-2014 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-208-r2.ebuild,v 1.13 2014/01/19 12:01:36 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-208-r2.ebuild,v 1.14 2014/01/20 22:53:07 floppym Exp $
30
31 EAPI=5
32
33 @@ -131,6 +131,9 @@
34 "${WORKDIR}"/${PN}-gentoo-patchset*/*.patch
35 )
36
37 + # Bug 463376
38 + sed -i -e 's/GROUP="dialout"/GROUP="uucp"/' rules/*.rules || die
39 +
40 autotools-utils_src_prepare
41 }
42
43 @@ -333,9 +336,6 @@
44 }
45
46 pkg_postinst() {
47 - # for udev rules
48 - enewgroup dialout
49 -
50 enewgroup systemd-journal
51 if use http; then
52 enewgroup systemd-journal-gateway
53
54
55
56 1.80 sys-apps/systemd/systemd-9999.ebuild
57
58 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-9999.ebuild?rev=1.80&view=markup
59 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-9999.ebuild?rev=1.80&content-type=text/plain
60 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-9999.ebuild?r1=1.79&r2=1.80
61
62 Index: systemd-9999.ebuild
63 ===================================================================
64 RCS file: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-9999.ebuild,v
65 retrieving revision 1.79
66 retrieving revision 1.80
67 diff -u -r1.79 -r1.80
68 --- systemd-9999.ebuild 7 Jan 2014 09:41:03 -0000 1.79
69 +++ systemd-9999.ebuild 20 Jan 2014 22:53:07 -0000 1.80
70 @@ -1,6 +1,6 @@
71 # Copyright 1999-2014 Gentoo Foundation
72 # Distributed under the terms of the GNU General Public License v2
73 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-9999.ebuild,v 1.79 2014/01/07 09:41:03 pacho Exp $
74 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-9999.ebuild,v 1.80 2014/01/20 22:53:07 floppym Exp $
75
76 EAPI=5
77
78 @@ -100,6 +100,9 @@
79 echo 'EXTRA_DIST =' > docs/gtk-doc.make
80 fi
81
82 + # Bug 463376
83 + sed -i -e 's/GROUP="dialout"/GROUP="uucp"/' rules/*.rules || die
84 +
85 autotools-utils_src_prepare
86 }
87 #endif
88 @@ -356,9 +359,6 @@
89 }
90
91 pkg_postinst() {
92 - # for udev rules
93 - enewgroup dialout
94 -
95 enewgroup systemd-journal
96 if use http; then
97 enewgroup systemd-journal-gateway
98
99
100
101 1.210 sys-apps/systemd/ChangeLog
102
103 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/ChangeLog?rev=1.210&view=markup
104 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/ChangeLog?rev=1.210&content-type=text/plain
105 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/ChangeLog?r1=1.209&r2=1.210
106
107 Index: ChangeLog
108 ===================================================================
109 RCS file: /var/cvsroot/gentoo-x86/sys-apps/systemd/ChangeLog,v
110 retrieving revision 1.209
111 retrieving revision 1.210
112 diff -u -r1.209 -r1.210
113 --- ChangeLog 19 Jan 2014 12:01:36 -0000 1.209
114 +++ ChangeLog 20 Jan 2014 22:53:07 -0000 1.210
115 @@ -1,6 +1,12 @@
116 # ChangeLog for sys-apps/systemd
117 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
118 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/ChangeLog,v 1.209 2014/01/19 12:01:36 ago Exp $
119 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/ChangeLog,v 1.210 2014/01/20 22:53:07 floppym Exp $
120 +
121 +*systemd-208-r3 (20 Jan 2014)
122 +
123 + 20 Jan 2014; Mike Gilbert <floppym@g.o> +systemd-208-r3.ebuild,
124 + systemd-208-r2.ebuild, systemd-9999.ebuild:
125 + Replace dialout with uucp group in udev rules, bug 463376.
126
127 19 Jan 2014; Agostino Sarubbo <ago@g.o> systemd-208-r2.ebuild:
128 Add ~sparc, wrt bug #478076
129
130
131
132 1.1 sys-apps/systemd/systemd-208-r3.ebuild
133
134 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-208-r3.ebuild?rev=1.1&view=markup
135 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-208-r3.ebuild?rev=1.1&content-type=text/plain
136
137 Index: systemd-208-r3.ebuild
138 ===================================================================
139 # Copyright 1999-2014 Gentoo Foundation
140 # Distributed under the terms of the GNU General Public License v2
141 # $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-208-r3.ebuild,v 1.1 2014/01/20 22:53:07 floppym Exp $
142
143 EAPI=5
144
145 AUTOTOOLS_PRUNE_LIBTOOL_FILES=all
146 PYTHON_COMPAT=( python2_7 )
147 inherit autotools-utils bash-completion-r1 fcaps linux-info multilib \
148 multilib-minimal pam python-single-r1 systemd toolchain-funcs udev \
149 user
150
151 DESCRIPTION="System and service manager for Linux"
152 HOMEPAGE="http://www.freedesktop.org/wiki/Software/systemd"
153 SRC_URI="http://www.freedesktop.org/software/systemd/${P}.tar.xz -> ${P}-r1.tar.xz
154 http://dev.gentoo.org/~mgorny/dist/${PN}-gentoo-patchset-${PV}_p19.tar.bz2"
155
156 LICENSE="GPL-2 LGPL-2.1 MIT public-domain"
157 SLOT="0/1"
158 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
159 IUSE="acl audit cryptsetup doc +firmware-loader gcrypt gudev http introspection
160 +kmod lzma pam policykit python qrcode selinux tcpd test
161 vanilla xattr"
162
163 MINKV="3.0"
164
165 COMMON_DEPEND=">=sys-apps/dbus-1.6.8-r1
166 >=sys-apps/util-linux-2.20
167 sys-libs/libcap
168 acl? ( sys-apps/acl )
169 audit? ( >=sys-process/audit-2 )
170 cryptsetup? ( >=sys-fs/cryptsetup-1.6 )
171 gcrypt? ( >=dev-libs/libgcrypt-1.4.5 )
172 gudev? ( >=dev-libs/glib-2[${MULTILIB_USEDEP}] )
173 http? ( net-libs/libmicrohttpd )
174 introspection? ( >=dev-libs/gobject-introspection-1.31.1 )
175 kmod? ( >=sys-apps/kmod-14-r1 )
176 lzma? ( app-arch/xz-utils[${MULTILIB_USEDEP}] )
177 pam? ( virtual/pam )
178 python? ( ${PYTHON_DEPS} )
179 qrcode? ( media-gfx/qrencode )
180 selinux? ( sys-libs/libselinux )
181 tcpd? ( sys-apps/tcp-wrappers )
182 xattr? ( sys-apps/attr )
183 abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20130224-r9
184 !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] )"
185
186 # baselayout-2.2 has /run
187 RDEPEND="${COMMON_DEPEND}
188 >=sys-apps/baselayout-2.2
189 || (
190 >=sys-apps/util-linux-2.22
191 <sys-apps/sysvinit-2.88-r4
192 )
193 !sys-auth/nss-myhostname
194 !<sys-libs/glibc-2.10
195 !sys-fs/udev"
196
197 PDEPEND=">=sys-apps/hwids-20130717-r1[udev]
198 >=sys-fs/udev-init-scripts-25
199 policykit? ( sys-auth/polkit )
200 !vanilla? ( sys-apps/gentoo-systemd-integration )"
201
202 # Newer linux-headers needed by ia64, bug #480218
203 DEPEND="${COMMON_DEPEND}
204 app-arch/xz-utils
205 app-text/docbook-xml-dtd:4.2
206 app-text/docbook-xsl-stylesheets
207 dev-libs/libxslt
208 dev-util/gperf
209 >=dev-util/intltool-0.50
210 >=sys-devel/binutils-2.23.1
211 >=sys-devel/gcc-4.6
212 >=sys-kernel/linux-headers-${MINKV}
213 ia64? ( >=sys-kernel/linux-headers-3.9 )
214 virtual/pkgconfig
215 doc? ( >=dev-util/gtk-doc-1.18 )"
216
217 pkg_pretend() {
218 local CONFIG_CHECK="~AUTOFS4_FS ~BLK_DEV_BSG ~CGROUPS ~DEVTMPFS ~DMIID
219 ~EPOLL ~FANOTIFY ~FHANDLE ~INOTIFY_USER ~IPV6 ~NET ~PROC_FS
220 ~SECCOMP ~SIGNALFD ~SYSFS ~TIMERFD
221 ~!IDE ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2
222 ~!GRKERNSEC_PROC"
223
224 use acl && CONFIG_CHECK+=" ~TMPFS_POSIX_ACL"
225 use pam && CONFIG_CHECK+=" ~AUDITSYSCALL"
226 use xattr && CONFIG_CHECK+=" ~TMPFS_XATTR"
227 kernel_is -lt 3 7 && CONFIG_CHECK+=" ~HOTPLUG"
228 use firmware-loader || CONFIG_CHECK+=" ~!FW_LOADER_USER_HELPER"
229
230 if linux_config_exists; then
231 local uevent_helper_path=$(linux_chkconfig_string UEVENT_HELPER_PATH)
232 if [ -n "${uevent_helper_path}" ] && [ "${uevent_helper_path}" != '""' ]; then
233 ewarn "It's recommended to set an empty value to the following kernel config option:"
234 ewarn "CONFIG_UEVENT_HELPER_PATH=${uevent_helper_path}"
235 fi
236 fi
237
238 if [[ ${MERGE_TYPE} != binary ]]; then
239 if [[ $(gcc-major-version) -lt 4
240 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ) ]]
241 then
242 eerror "systemd requires at least gcc 4.6 to build. Please switch the active"
243 eerror "gcc version using gcc-config."
244 die "systemd requires at least gcc 4.6"
245 fi
246 fi
247
248 if [[ ${MERGE_TYPE} != buildonly ]]; then
249 if kernel_is -lt ${MINKV//./ }; then
250 ewarn "Kernel version at least ${MINKV} required"
251 fi
252
253 if ! use firmware-loader && kernel_is -lt 3 8; then
254 ewarn "You seem to be using kernel older than 3.8. Those kernel versions"
255 ewarn "require systemd with USE=firmware-loader to support loading"
256 ewarn "firmware. Missing this flag may cause some hardware not to work."
257 fi
258
259 check_extra_config
260 fi
261 }
262
263 pkg_setup() {
264 use python && python-single-r1_pkg_setup
265 }
266
267 src_prepare() {
268 local PATCHES=(
269 "${WORKDIR}"/${PN}-gentoo-patchset*/*.patch
270 )
271
272 # Bug 463376
273 sed -i -e 's/GROUP="dialout"/GROUP="uucp"/' rules/*.rules || die
274
275 autotools-utils_src_prepare
276 }
277
278 multilib_src_configure() {
279 local myeconfargs=(
280 --localstatedir=/var
281 --with-pamlibdir=$(getpam_mod_dir)
282 # avoid bash-completion dep
283 --with-bashcompletiondir="$(get_bashcompdir)"
284 # make sure we get /bin:/sbin in $PATH
285 --enable-split-usr
286 # disable sysv compatibility
287 --with-sysvinit-path=
288 --with-sysvrcnd-path=
289 # no deps
290 --enable-efi
291 --enable-ima
292 # optional components/dependencies
293 $(use_enable acl)
294 $(use_enable audit)
295 $(use_enable cryptsetup libcryptsetup)
296 $(use_enable doc gtk-doc)
297 $(use_enable gcrypt)
298 $(use_enable gudev)
299 $(use_enable http microhttpd)
300 $(use_enable introspection)
301 $(use_enable kmod)
302 $(use_enable lzma xz)
303 $(use_enable pam)
304 $(use_enable policykit polkit)
305 $(use_enable python python-devel)
306 $(use python && echo PYTHON_CONFIG=/usr/bin/python-config-${EPYTHON#python})
307 $(use_enable qrcode qrencode)
308 $(use_enable selinux)
309 $(use_enable tcpd tcpwrap)
310 $(use_enable test tests)
311 $(use_enable xattr)
312
313 # not supported (avoid automagic deps in the future)
314 --disable-chkconfig
315
316 # hardcode a few paths to spare some deps
317 QUOTAON=/usr/sbin/quotaon
318 QUOTACHECK=/usr/sbin/quotacheck
319 )
320
321 # Keep using the one where the rules were installed.
322 MY_UDEVDIR=$(get_udevdir)
323
324 if use firmware-loader; then
325 myeconfargs+=(
326 --with-firmware-path="/lib/firmware/updates:/lib/firmware"
327 )
328 fi
329
330 if ! multilib_is_native_abi; then
331 myeconfargs+=(
332 ac_cv_search_cap_init=
333 ac_cv_header_sys_capability_h=yes
334 DBUS_CFLAGS=' '
335 DBUS_LIBS=' '
336
337 --disable-acl
338 --disable-audit
339 --disable-gcrypt
340 --disable-gtk-doc
341 --disable-introspection
342 --disable-kmod
343 --disable-libcryptsetup
344 --disable-microhttpd
345 --disable-pam
346 --disable-polkit
347 --disable-qrencode
348 --disable-selinux
349 --disable-tcpwrap
350 --disable-tests
351 --disable-xattr
352 --disable-xz
353 --disable-python-devel
354 )
355 fi
356
357 # Work around bug 463846.
358 tc-export CC
359
360 autotools-utils_src_configure
361 }
362
363 multilib_src_compile() {
364 local mymakeopts=(
365 udevlibexecdir="${MY_UDEVDIR}"
366 )
367
368 if multilib_is_native_abi; then
369 emake "${mymakeopts[@]}"
370 else
371 # prerequisites for gudev
372 use gudev && emake src/gudev/gudev{enumtypes,marshal}.{c,h}
373
374 echo 'gentoo: $(lib_LTLIBRARIES) $(pkgconfiglib_DATA)' | \
375 emake "${mymakeopts[@]}" -f Makefile -f - gentoo
376 fi
377 }
378
379 multilib_src_test() {
380 multilib_is_native_abi || continue
381
382 default
383 }
384
385 multilib_src_install() {
386 local mymakeopts=(
387 # automake fails with parallel libtool relinking
388 # https://bugs.gentoo.org/show_bug.cgi?id=491398
389 -j1
390
391 udevlibexecdir="${MY_UDEVDIR}"
392 dist_udevhwdb_DATA=
393 DESTDIR="${D}"
394 )
395
396 if multilib_is_native_abi; then
397 emake "${mymakeopts[@]}" install
398 else
399 mymakeopts+=(
400 install-libLTLIBRARIES
401 install-pkgconfiglibDATA
402 install-includeHEADERS
403 # safe to call unconditionally, 'installs' empty list
404 install-libgudev_includeHEADERS
405 install-pkgincludeHEADERS
406 )
407
408 emake "${mymakeopts[@]}"
409 fi
410 }
411
412 multilib_src_install_all() {
413 prune_libtool_files --modules
414 einstalldocs
415
416 # we just keep sysvinit tools, so no need for the mans
417 rm "${D}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 \
418 || die
419 rm "${D}"/usr/share/man/man1/init.1 || die
420
421 # Disable storing coredumps in journald, bug #433457
422 mv "${D}"/usr/lib/sysctl.d/50-coredump.conf{,.disabled} || die
423
424 # Preserve empty dirs in /etc & /var, bug #437008
425 keepdir /etc/binfmt.d /etc/modules-load.d /etc/tmpfiles.d \
426 /etc/systemd/ntp-units.d /etc/systemd/user /var/lib/systemd
427
428 # Symlink /etc/sysctl.conf for easy migration.
429 dosym ../sysctl.conf /etc/sysctl.d/99-sysctl.conf
430 }
431
432 migrate_locale() {
433 local envd_locale_def="${EROOT%/}/etc/env.d/02locale"
434 local envd_locale=( "${EROOT%/}"/etc/env.d/??locale )
435 local locale_conf="${EROOT%/}/etc/locale.conf"
436
437 if [[ ! -L ${locale_conf} && ! -e ${locale_conf} ]]; then
438 # if locale.conf does not exist...
439 if [[ -e ${envd_locale} ]]; then
440 # ...either copy env.d/??locale if there's one
441 ebegin "Moving ${envd_locale} to ${locale_conf}"
442 mv "${envd_locale}" "${locale_conf}"
443 eend ${?} || FAIL=1
444 else
445 # ...or create a dummy default
446 ebegin "Creating ${locale_conf}"
447 cat > "${locale_conf}" <<-EOF
448 # This file has been created by the sys-apps/systemd ebuild.
449 # See locale.conf(5) and localectl(1).
450
451 # LANG=${LANG}
452 EOF
453 eend ${?} || FAIL=1
454 fi
455 fi
456
457 if [[ ! -L ${envd_locale} ]]; then
458 # now, if env.d/??locale is not a symlink (to locale.conf)...
459 if [[ -e ${envd_locale} ]]; then
460 # ...warn the user that he has duplicate locale settings
461 ewarn
462 ewarn "To ensure consistent behavior, you should replace ${envd_locale}"
463 ewarn "with a symlink to ${locale_conf}. Please migrate your settings"
464 ewarn "and create the symlink with the following command:"
465 ewarn "ln -s -n -f ../locale.conf ${envd_locale}"
466 ewarn
467 else
468 # ...or just create the symlink if there's nothing here
469 ebegin "Creating ${envd_locale_def} -> ../locale.conf symlink"
470 ln -n -s ../locale.conf "${envd_locale_def}"
471 eend ${?} || FAIL=1
472 fi
473 fi
474 }
475
476 pkg_postinst() {
477 enewgroup systemd-journal
478 if use http; then
479 enewgroup systemd-journal-gateway
480 enewuser systemd-journal-gateway -1 -1 -1 systemd-journal-gateway
481 fi
482 systemd_update_catalog
483
484 # Keep this here in case the database format changes so it gets updated
485 # when required. Despite that this file is owned by sys-apps/hwids.
486 if has_version "sys-apps/hwids[udev]"; then
487 udevadm hwdb --update --root="${ROOT%/}"
488 fi
489
490 udev_reload || FAIL=1
491
492 # Bug 468876
493 fcaps cap_dac_override,cap_sys_ptrace=ep usr/bin/systemd-detect-virt
494
495 # Bug 465468, make sure locales are respect, and ensure consistency
496 # between OpenRC & systemd
497 migrate_locale
498
499 if [[ ${FAIL} ]]; then
500 eerror "One of the postinst commands failed. Please check the postinst output"
501 eerror "for errors. You may need to clean up your system and/or try installing"
502 eerror "systemd again."
503 eerror
504 fi
505
506 if [[ ! -L "${ROOT}"/etc/mtab ]]; then
507 ewarn "Upstream mandates the /etc/mtab file should be a symlink to /proc/mounts."
508 ewarn "Not having it is not supported by upstream and will cause tools like 'df'"
509 ewarn "and 'mount' to not work properly. Please run:"
510 ewarn " # ln -sf '${ROOT}proc/self/mounts' '${ROOT}etc/mtab'"
511 ewarn
512 fi
513
514 if ! has_version sys-apps/systemd-ui; then
515 elog "To get additional features, a number of optional runtime dependencies may"
516 elog "be installed:"
517 elog "- sys-apps/systemd-ui: for GTK+ systemadm UI and gnome-ask-password-agent"
518 fi
519 }
520
521 pkg_prerm() {
522 # If removing systemd completely, remove the catalog database.
523 if [[ ! ${REPLACED_BY_VERSION} ]]; then
524 rm -f -v "${EROOT}"/var/lib/systemd/catalog/database
525 fi
526 }