Gentoo Archives: gentoo-commits

From: "Michal Gorny (mgorny)" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/systemd: systemd-206-r1.ebuild systemd-9999-r1.ebuild ChangeLog systemd-205.ebuild systemd-206.ebuild
Date: Wed, 31 Jul 2013 22:23:57
Message-Id: 20130731222350.F14D72171D@flycatcher.gentoo.org
1 mgorny 13/07/31 22:23:50
2
3 Modified: systemd-9999-r1.ebuild ChangeLog
4 Added: systemd-206-r1.ebuild
5 Removed: systemd-205.ebuild systemd-206.ebuild
6 Log:
7 Fix gnome-shell<->logind race condition, bug #477954. Fix missing keymap location, bug #474946. Fix broken device permissions due to static-nodes, bug #478198. Check for CONFIG_AUDITSYSCALL, bug #478032. Add >=binutils-2.32.1 dep, bug #479038.
8
9 (Portage version: 2.2.0_alpha191/cvs/Linux x86_64, signed Manifest commit with key 9627F456F9DA7643!)
10
11 Revision Changes Path
12 1.4 sys-apps/systemd/systemd-9999-r1.ebuild
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-9999-r1.ebuild?rev=1.4&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-9999-r1.ebuild?rev=1.4&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-9999-r1.ebuild?r1=1.3&r2=1.4
17
18 Index: systemd-9999-r1.ebuild
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-9999-r1.ebuild,v
21 retrieving revision 1.3
22 retrieving revision 1.4
23 diff -u -r1.3 -r1.4
24 --- systemd-9999-r1.ebuild 31 Jul 2013 07:09:02 -0000 1.3
25 +++ systemd-9999-r1.ebuild 31 Jul 2013 22:23:50 -0000 1.4
26 @@ -1,6 +1,6 @@
27 # Copyright 1999-2013 Gentoo Foundation
28 # Distributed under the terms of the GNU General Public License v2
29 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-9999-r1.ebuild,v 1.3 2013/07/31 07:09:02 mgorny Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-9999-r1.ebuild,v 1.4 2013/07/31 22:23:50 mgorny Exp $
31
32 EAPI=5
33
34 @@ -72,6 +72,7 @@
35 dev-libs/libxslt
36 dev-util/gperf
37 >=dev-util/intltool-0.50
38 + >=sys-devel/binutils-2.23.1
39 >=sys-devel/gcc-4.6
40 >=sys-kernel/linux-headers-${MINKV}
41 virtual/pkgconfig
42 @@ -99,6 +100,8 @@
43 ~SYSFS ~!IDE ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2"
44 # ~!FW_LOADER_USER_HELPER"
45
46 + use pam && CONFIG_CHECK+=" ~AUDITSYSCALL"
47 +
48 if [[ ${MERGE_TYPE} != binary ]]; then
49 if [[ $(gcc-major-version) -lt 4
50 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ) ]]
51
52
53
54 1.154 sys-apps/systemd/ChangeLog
55
56 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/ChangeLog?rev=1.154&view=markup
57 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/ChangeLog?rev=1.154&content-type=text/plain
58 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/ChangeLog?r1=1.153&r2=1.154
59
60 Index: ChangeLog
61 ===================================================================
62 RCS file: /var/cvsroot/gentoo-x86/sys-apps/systemd/ChangeLog,v
63 retrieving revision 1.153
64 retrieving revision 1.154
65 diff -u -r1.153 -r1.154
66 --- ChangeLog 31 Jul 2013 07:09:02 -0000 1.153
67 +++ ChangeLog 31 Jul 2013 22:23:50 -0000 1.154
68 @@ -1,6 +1,21 @@
69 # ChangeLog for sys-apps/systemd
70 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
71 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/ChangeLog,v 1.153 2013/07/31 07:09:02 mgorny Exp $
72 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/ChangeLog,v 1.154 2013/07/31 22:23:50 mgorny Exp $
73 +
74 +*systemd-206-r1 (31 Jul 2013)
75 +
76 + 31 Jul 2013; Michał Górny <mgorny@g.o>
77 + +files/206-0001-logind-update-state-file-after-generating-the-sessio.patch,
78 + +files/206-0002-Add-usr-share-keymaps-to-localectl-supported-locatio.patch,
79 + +files/206-0003-tmpfiles-support-passing-prefix-multiple-times.patch,
80 + +files/206-0004-tmpfiles-introduce-exclude-prefix.patch,
81 + +files/206-0005-tmpfiles-setup-exclude-dev-prefixes-files.patch,
82 + +systemd-206-r1.ebuild, -systemd-205.ebuild, -systemd-206.ebuild,
83 + systemd-9999-r1.ebuild:
84 + Fix gnome-shell<->logind race condition, bug #477954. Fix missing keymap
85 + location, bug #474946. Fix broken device permissions due to static-nodes, bug
86 + #478198. Check for CONFIG_AUDITSYSCALL, bug #478032. Add >=binutils-2.32.1
87 + dep, bug #479038.
88
89 31 Jul 2013; Michał Górny <mgorny@g.o> systemd-9999-r1.ebuild:
90 Finally drop compatibility symlinks. This time for real.
91
92
93
94 1.1 sys-apps/systemd/systemd-206-r1.ebuild
95
96 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-206-r1.ebuild?rev=1.1&view=markup
97 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/systemd/systemd-206-r1.ebuild?rev=1.1&content-type=text/plain
98
99 Index: systemd-206-r1.ebuild
100 ===================================================================
101 # Copyright 1999-2013 Gentoo Foundation
102 # Distributed under the terms of the GNU General Public License v2
103 # $Header: /var/cvsroot/gentoo-x86/sys-apps/systemd/systemd-206-r1.ebuild,v 1.1 2013/07/31 22:23:50 mgorny Exp $
104
105 EAPI=5
106
107 AUTOTOOLS_PRUNE_LIBTOOL_FILES=all
108 PYTHON_COMPAT=( python2_7 )
109 inherit autotools-utils bash-completion-r1 fcaps linux-info multilib \
110 pam python-single-r1 systemd toolchain-funcs udev user
111
112 DESCRIPTION="System and service manager for Linux"
113 HOMEPAGE="http://www.freedesktop.org/wiki/Software/systemd"
114 SRC_URI="http://www.freedesktop.org/software/systemd/${P}.tar.xz"
115
116 LICENSE="GPL-2 LGPL-2.1 MIT"
117 SLOT="0"
118 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
119 IUSE="acl audit cryptsetup doc +firmware-loader gcrypt gudev http introspection
120 +kmod lzma openrc pam policykit python qrcode selinux tcpd test
121 vanilla xattr"
122
123 MINKV="3.0"
124
125 COMMON_DEPEND=">=sys-apps/dbus-1.6.8-r1
126 >=sys-apps/util-linux-2.20
127 sys-libs/libcap
128 acl? ( sys-apps/acl )
129 audit? ( >=sys-process/audit-2 )
130 cryptsetup? ( >=sys-fs/cryptsetup-1.6 )
131 gcrypt? ( >=dev-libs/libgcrypt-1.4.5 )
132 gudev? ( >=dev-libs/glib-2 )
133 http? ( net-libs/libmicrohttpd )
134 introspection? ( >=dev-libs/gobject-introspection-1.31.1 )
135 kmod? ( >=sys-apps/kmod-14-r1 )
136 lzma? ( app-arch/xz-utils )
137 pam? ( virtual/pam )
138 python? ( ${PYTHON_DEPS} )
139 qrcode? ( media-gfx/qrencode )
140 selinux? ( sys-libs/libselinux )
141 tcpd? ( sys-apps/tcp-wrappers )
142 xattr? ( sys-apps/attr )"
143
144 # baselayout-2.2 has /run
145 RDEPEND="${COMMON_DEPEND}
146 >=sys-apps/baselayout-2.2
147 openrc? ( >=sys-fs/udev-init-scripts-25 )
148 policykit? ( sys-auth/polkit )
149 || (
150 >=sys-apps/util-linux-2.22
151 <sys-apps/sysvinit-2.88-r4
152 )
153 !sys-apps/gentoo-systemd-integration
154 !sys-auth/nss-myhostname
155 !<sys-libs/glibc-2.10
156 !sys-fs/udev"
157
158 PDEPEND=">=sys-apps/hwids-20130717-r1[udev]"
159
160 DEPEND="${COMMON_DEPEND}
161 app-arch/xz-utils
162 app-text/docbook-xml-dtd:4.2
163 app-text/docbook-xsl-stylesheets
164 dev-libs/libxslt
165 dev-util/gperf
166 >=dev-util/intltool-0.50
167 >=sys-devel/binutils-2.23.1
168 >=sys-devel/gcc-4.6
169 >=sys-kernel/linux-headers-${MINKV}
170 virtual/pkgconfig
171 doc? ( >=dev-util/gtk-doc-1.18 )"
172
173 pkg_pretend() {
174 local CONFIG_CHECK="~AUTOFS4_FS ~BLK_DEV_BSG ~CGROUPS ~DEVTMPFS
175 ~FANOTIFY ~HOTPLUG ~INOTIFY_USER ~IPV6 ~NET ~PROC_FS ~SIGNALFD
176 ~SYSFS ~!IDE ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2"
177 # ~!FW_LOADER_USER_HELPER"
178
179 use pam && CONFIG_CHECK+=" ~AUDITSYSCALL"
180
181 # read null-terminated argv[0] from PID 1
182 # and see which path to systemd was used (if any)
183 local init_path
184 IFS= read -r -d '' init_path < /proc/1/cmdline
185 if [[ ${init_path} == */bin/systemd ]]; then
186 eerror "You are using a compatibility symlink to run systemd. The symlink"
187 eerror "has been removed. Please update your bootloader to use:"
188 eerror
189 eerror " init=/usr/lib/systemd/systemd"
190 eerror
191 eerror "and reboot your system. We are sorry for the inconvenience."
192 if [[ ${MERGE_TYPE} != buildonly ]]; then
193 die "Compatibility symlink used to boot systemd."
194 fi
195 fi
196
197 if [[ ${MERGE_TYPE} != binary ]]; then
198 if [[ $(gcc-major-version) -lt 4
199 || ( $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ) ]]
200 then
201 eerror "systemd requires at least gcc 4.6 to build. Please switch the active"
202 eerror "gcc version using gcc-config."
203 die "systemd requires at least gcc 4.6"
204 fi
205 fi
206
207 if [[ ${MERGE_TYPE} != buildonly ]]; then
208 if kernel_is -lt ${MINKV//./ }; then
209 ewarn "Kernel version at least ${MINKV} required"
210 fi
211
212 if ! use firmware-loader && kernel_is -lt 3 8; then
213 ewarn "You seem to be using kernel older than 3.8. Those kernel versions"
214 ewarn "require systemd with USE=firmware-loader to support loading"
215 ewarn "firmware. Missing this flag may cause some hardware not to work."
216 fi
217
218 check_extra_config
219 fi
220 }
221
222 pkg_setup() {
223 use python && python-single-r1_pkg_setup
224 }
225
226 src_prepare() {
227 local PATCHES=(
228 #477954 - gnome-shell-3.8* session unlock broken
229 "${FILESDIR}"/206-0001-logind-update-state-file-after-generating-the-sessio.patch
230 #474946 - localectl does not find keymaps
231 "${FILESDIR}"/206-0002-Add-usr-share-keymaps-to-localectl-supported-locatio.patch
232 #478198 - wrong permission for static-nodes
233 "${FILESDIR}"/206-0003-tmpfiles-support-passing-prefix-multiple-times.patch
234 "${FILESDIR}"/206-0004-tmpfiles-introduce-exclude-prefix.patch
235 "${FILESDIR}"/206-0005-tmpfiles-setup-exclude-dev-prefixes-files.patch
236 )
237
238 autotools-utils_src_prepare
239 }
240
241 src_configure() {
242 local myeconfargs=(
243 --localstatedir=/var
244 --with-pamlibdir=$(getpam_mod_dir)
245 # avoid bash-completion dep
246 --with-bashcompletiondir="$(get_bashcompdir)"
247 # make sure we get /bin:/sbin in $PATH
248 --enable-split-usr
249 # disable sysv compatibility
250 --with-sysvinit-path=
251 --with-sysvrcnd-path=
252 # no deps
253 --enable-efi
254 --enable-ima
255 # optional components/dependencies
256 $(use_enable acl)
257 $(use_enable audit)
258 $(use_enable cryptsetup libcryptsetup)
259 $(use_enable doc gtk-doc)
260 $(use_enable gcrypt)
261 $(use_enable gudev)
262 $(use_enable http microhttpd)
263 $(use_enable introspection)
264 $(use_enable kmod)
265 $(use_enable lzma xz)
266 $(use_enable pam)
267 $(use_enable policykit polkit)
268 $(use_with python)
269 $(use python && echo PYTHON_CONFIG=/usr/bin/python-config-${EPYTHON#python})
270 $(use_enable qrcode qrencode)
271 $(use_enable selinux)
272 $(use_enable tcpd tcpwrap)
273 $(use_enable test tests)
274 $(use_enable xattr)
275
276 # not supported (avoid automagic deps in the future)
277 --disable-chkconfig
278
279 # hardcode a few paths to spare some deps
280 QUOTAON=/usr/sbin/quotaon
281 QUOTACHECK=/usr/sbin/quotacheck
282 )
283
284 # Keep using the one where the rules were installed.
285 MY_UDEVDIR=$(get_udevdir)
286
287 if use firmware-loader; then
288 myeconfargs+=(
289 --with-firmware-path="/lib/firmware/updates:/lib/firmware"
290 )
291 fi
292
293 # Work around bug 463846.
294 tc-export CC
295
296 autotools-utils_src_configure
297 }
298
299 src_compile() {
300 autotools-utils_src_compile \
301 udevlibexecdir="${MY_UDEVDIR}"
302 }
303
304 src_install() {
305 autotools-utils_src_install -j1 \
306 udevlibexecdir="${MY_UDEVDIR}" \
307 dist_udevhwdb_DATA=
308
309 # keep udev working without initramfs, for openrc compat
310 dodir /bin /sbin
311 mv "${D}"/usr/lib/systemd/systemd-udevd "${D}"/sbin/udevd || die
312 mv "${D}"/usr/bin/udevadm "${D}"/bin/udevadm || die
313 dosym ../../../sbin/udevd /usr/lib/systemd/systemd-udevd
314 dosym ../../bin/udevadm /usr/bin/udevadm
315
316 # zsh completion
317 insinto /usr/share/zsh/site-functions
318 newins shell-completion/systemd-zsh-completion.zsh "_${PN}"
319
320 # compat for init= use
321 dosym ../usr/lib/systemd/systemd /bin/systemd
322 dosym ../lib/systemd/systemd /usr/bin/systemd
323 # rsyslog.service depends on it...
324 dosym ../usr/bin/systemctl /bin/systemctl
325
326 # we just keep sysvinit tools, so no need for the mans
327 rm "${D}"/usr/share/man/man8/{halt,poweroff,reboot,runlevel,shutdown,telinit}.8 \
328 || die
329 rm "${D}"/usr/share/man/man1/init.1 || die
330
331 if ! use vanilla; then
332 # Create /run/lock as required by new baselay/OpenRC compat.
333 systemd_dotmpfilesd "${FILESDIR}"/gentoo-run.conf
334
335 # Add mount-rules for /var/lock and /var/run, bug #433607
336 systemd_dounit "${FILESDIR}"/var-{lock,run}.mount
337 systemd_enable_service sysinit.target var-lock.mount
338 systemd_enable_service sysinit.target var-run.mount
339 fi
340
341 # Disable storing coredumps in journald, bug #433457
342 mv "${D}"/usr/lib/sysctl.d/50-coredump.conf{,.disabled} || die
343
344 # Preserve empty dirs in /etc & /var, bug #437008
345 keepdir /etc/binfmt.d /etc/modules-load.d /etc/tmpfiles.d \
346 /etc/systemd/ntp-units.d /etc/systemd/user /var/lib/systemd
347
348 # Check whether we won't break user's system.
349 local x
350 for x in /bin/systemd /usr/bin/systemd \
351 /usr/bin/udevadm /usr/lib/systemd/systemd-udevd
352 do
353 [[ -x ${D}${x} ]] || die "${x} symlink broken, aborting."
354 done
355 }
356
357 optfeature() {
358 local i desc=${1} text
359 shift
360
361 text=" [\e[1m$(has_version ${1} && echo I || echo ' ')\e[0m] ${1}"
362 shift
363
364 for i; do
365 elog "${text}"
366 text="& [\e[1m$(has_version ${1} && echo I || echo ' ')\e[0m] ${1}"
367 done
368 elog "${text} (${desc})"
369 }
370
371 pkg_postinst() {
372 # for udev rules
373 enewgroup dialout
374
375 enewgroup systemd-journal
376 if use http; then
377 enewgroup systemd-journal-gateway
378 enewuser systemd-journal-gateway -1 -1 -1 systemd-journal-gateway
379 fi
380 systemd_update_catalog
381
382 # Keep this here in case the database format changes so it gets updated
383 # when required. Despite that this file is owned by sys-apps/hwids.
384 if has_version "sys-apps/hwids[udev]"; then
385 udevadm hwdb --update --root="${ROOT%/}"
386 fi
387
388 # Bug 468876
389 fcaps cap_dac_override,cap_sys_ptrace=ep usr/bin/systemd-detect-virt
390
391 if [[ ! -L "${ROOT}"/etc/mtab ]]; then
392 ewarn "Upstream suggests that the /etc/mtab file should be a symlink to /proc/mounts."
393 ewarn "It is known to cause users being unable to unmount user mounts. If you don't"
394 ewarn "require that specific feature, please call:"
395 ewarn " $ ln -sf '${ROOT}proc/self/mounts' '${ROOT}etc/mtab'"
396 ewarn
397 fi
398
399 elog "To get additional features, a number of optional runtime dependencies may"
400 elog "be installed:"
401 optfeature 'for GTK+ systemadm UI and gnome-ask-password-agent' \
402 'sys-apps/systemd-ui'
403 }
404
405 pkg_prerm() {
406 # If removing systemd completely, remove the catalog database.
407 if [[ ! ${REPLACED_BY_VERSION} ]]; then
408 rm -f -v "${EROOT}"/var/lib/systemd/catalog/database
409 fi
410 }