Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/eudev/
Date: Thu, 19 Oct 2017 23:19:27
Message-Id: 1508455153.7f2d44ac532a174f729fbcc2a141cae071e40276.blueness@gentoo
1 commit: 7f2d44ac532a174f729fbcc2a141cae071e40276
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 19 23:03:20 2017 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 19 23:19:13 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f2d44ac
7
8 sys-fs/eudev: remove older stable versions
9
10 Package-Manager: Portage-2.3.8, Repoman-2.3.3
11
12 sys-fs/eudev/Manifest | 3 -
13 sys-fs/eudev/eudev-1.10-r2.ebuild | 298 -------------------------------------
14 sys-fs/eudev/eudev-1.9-r2.ebuild | 300 --------------------------------------
15 sys-fs/eudev/eudev-3.1.2.ebuild | 271 ----------------------------------
16 sys-fs/eudev/eudev-3.1.5.ebuild | 2 +-
17 sys-fs/eudev/metadata.xml | 4 -
18 6 files changed, 1 insertion(+), 877 deletions(-)
19
20 diff --git a/sys-fs/eudev/Manifest b/sys-fs/eudev/Manifest
21 index 590e948c017..514fd391781 100644
22 --- a/sys-fs/eudev/Manifest
23 +++ b/sys-fs/eudev/Manifest
24 @@ -1,5 +1,2 @@
25 -DIST eudev-1.10.tar.gz 1776717 SHA256 401eeb29147d3e24d87849a8006df62eadeb369d913484d59e9e35f3f73a20d1 SHA512 76ba9e3c732a6baad448500ef72368e985e0edf45b80d920e23432b5ee2da3e841c5faf2cc281af6432625758608c31eb441c6af9e2161d4e7264348e33e086f WHIRLPOOL d3251a1ef18e46e000a0941156ca4daa33b54a6147fece4cee6d863f86c98068e88bc11bc8a90f45c578ed62338218c5c8b4b06bb6132610e3d4a30bf79fe192
26 -DIST eudev-1.9.tar.gz 1762520 SHA256 8f17e92f1177ce9352bde00360e227a7cbb3b97ac8816174bee34be80e44cef0 SHA512 13bd7df42d686818f499856d260e5dfaf10425f06e05449bf4cc8318667b166e2ae9c5e8b519008285aeaab9284ec5fde1f9f19e536dd4bae09a5439c86336b3 WHIRLPOOL d0504f05e191e94229bf60a497cab82fe461f52072ba7ed2171654e684397e4ffa9ba47c8b18cd0cc6d0168701dcac3b7d4b6c73168382e2432c7c229b2d0293
27 -DIST eudev-3.1.2.tar.gz 1858004 SHA256 4393b69e93dd8117defde6519b199d479f9d051f52061157a1a7a41b8fe10273 SHA512 d9aeb37a163ce4a0c116f75a927b4b99f8445d06624fbb3c28ade18f3effd8c54af5a4a52477c31a0452822a3dc0901468263195256e9dbf79d2ef08cf46f2b6 WHIRLPOOL 2249128672d2adfa968c123a2538063331348bc8e8481ad9c25bf8d9fb4d2d3c8a05417439f155d9ababe657b19a595c18c6ba60ad0d5584a8ead86220b39577
28 DIST eudev-3.1.5.tar.gz 1745524 SHA256 f75885a430cd50fe4b31732f808ba7f9b2adf0f26b53b8ba2957b0c1d84b6f2a SHA512 c5192e085ca4230aaac918e701989b712e5bda1558db31eb6ba635c17c4bdff398458d51cefbc5fb77a7c775ec1e04b1dbe019b8314cac3f43a5c1ae61521b5e WHIRLPOOL bc845c474101635c039515489e1316053156d3dd5f9c915c312324b9a1a6168f831e7476eeff834487fc83289e5d5eea2ba764c10bb6628b7c18d188de5f3846
29 DIST eudev-3.2.4.tar.gz 1856432 SHA256 dddcf4c89b21f5f3210f7e4d3888c92cbfc657ff734ac21b6bdd3f5bcb146fed SHA512 1843a42d8c670379fec034e4401120202ae9383b74f81e52d93d83199a69016c27f7f7bf421e16abd3523dfa8158f9f28cd554f12f99a28e3004ece1c0342200 WHIRLPOOL 6856678fb37020f265f564fef31d2372655f8e7c7919f8124e1d50df41aae250a64f301ef200f8779b05c70c3b9b43b12ed464dc47a73b802e69f8e7720788c2
30
31 diff --git a/sys-fs/eudev/eudev-1.10-r2.ebuild b/sys-fs/eudev/eudev-1.10-r2.ebuild
32 deleted file mode 100644
33 index da554bc8b02..00000000000
34 --- a/sys-fs/eudev/eudev-1.10-r2.ebuild
35 +++ /dev/null
36 @@ -1,298 +0,0 @@
37 -# Copyright 1999-2017 Gentoo Foundation
38 -# Distributed under the terms of the GNU General Public License v2
39 -
40 -EAPI="5"
41 -
42 -KV_min=2.6.39
43 -
44 -inherit autotools eutils linux-info multilib multilib-minimal user
45 -
46 -if [[ ${PV} = 9999* ]]; then
47 - EGIT_REPO_URI="https://github.com/gentoo/eudev.git"
48 - inherit git-2
49 -else
50 - SRC_URI="https://dev.gentoo.org/~blueness/${PN}/${P}.tar.gz"
51 - KEYWORDS="amd64 arm hppa ~mips ppc ppc64 x86"
52 -fi
53 -
54 -DESCRIPTION="Linux dynamic and persistent device naming support (aka userspace devfs)"
55 -HOMEPAGE="https://github.com/gentoo/eudev"
56 -
57 -LICENSE="LGPL-2.1 MIT GPL-2"
58 -SLOT="0"
59 -IUSE="doc gudev +hwdb +kmod introspection +keymap +modutils +openrc +rule-generator selinux static-libs test"
60 -
61 -COMMON_DEPEND=">=sys-apps/util-linux-2.20
62 - gudev? ( >=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}] )
63 - introspection? ( >=dev-libs/gobject-introspection-1.38 )
64 - kmod? ( >=sys-apps/kmod-16 )
65 - selinux? ( >=sys-libs/libselinux-2.1.9 )
66 - !<sys-libs/glibc-2.11
67 - !sys-apps/gentoo-systemd-integration
68 - !sys-apps/systemd
69 - abi_x86_32? (
70 - !<=app-emulation/emul-linux-x86-baselibs-20130224-r7
71 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
72 - )"
73 -DEPEND="${COMMON_DEPEND}
74 - keymap? ( dev-util/gperf )
75 - virtual/os-headers
76 - virtual/pkgconfig
77 - >=sys-devel/make-3.82-r4
78 - >=sys-kernel/linux-headers-${KV_min}
79 - doc? ( >=dev-util/gtk-doc-1.18 )
80 - app-text/docbook-xml-dtd:4.2
81 - app-text/docbook-xml-dtd:4.5
82 - app-text/docbook-xsl-stylesheets
83 - dev-libs/libxslt
84 - >=dev-util/intltool-0.50
85 - test? ( app-text/tree dev-lang/perl )"
86 -
87 -RDEPEND="${COMMON_DEPEND}
88 - !<sys-fs/lvm2-2.02.103
89 - !<sec-policy/selinux-base-2.20120725-r10
90 - !sys-fs/udev
91 - !sys-apps/systemd
92 - gudev? ( !dev-libs/libgudev )"
93 -
94 -PDEPEND="hwdb? ( >=sys-apps/hwids-20140304[udev] )
95 - keymap? ( >=sys-apps/hwids-20140304[udev] )
96 - openrc? ( >=sys-fs/udev-init-scripts-26 )"
97 -
98 -REQUIRED_USE="keymap? ( hwdb )"
99 -
100 -# The multilib-build.eclass doesn't handle situation where the installed headers
101 -# are different in ABIs. In this case, we install libgudev headers in native
102 -# ABI but not for non-native ABI.
103 -multilib_check_headers() { :; }
104 -
105 -pkg_pretend() {
106 - if ! use rule-generator; then
107 - ewarn
108 - ewarn "As of 2013-01-29, ${P} provides the new interface renaming functionality,"
109 - ewarn "as described in the URL below:"
110 - ewarn "https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames"
111 - ewarn
112 - ewarn "This functionality is enabled BY DEFAULT because eudev has no means of synchronizing"
113 - ewarn "between the default or user-modified choice of sys-fs/udev. If you wish to disable"
114 - ewarn "this new iface naming, please be sure that /etc/udev/rules.d/80-net-name-slot.rules"
115 - ewarn "exists:"
116 - ewarn "\ttouch /etc/udev/rules.d/80-net-name-slot.rules"
117 - ewarn
118 - ewarn "We are working on a better solution for the next beta release."
119 - ewarn
120 - fi
121 -}
122 -
123 -pkg_setup() {
124 - CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~!IDE ~INOTIFY_USER ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2 ~SIGNALFD ~EPOLL ~FHANDLE ~NET ~UNIX"
125 - linux-info_pkg_setup
126 - get_running_version
127 -
128 - # These are required kernel options, but we don't error out on them
129 - # because you can build under one kernel and run under another.
130 - if kernel_is lt ${KV_min//./ }; then
131 - ewarn
132 - ewarn "Your current running kernel version ${KV_FULL} is too old to run ${P}."
133 - ewarn "Make sure to run udev under kernel version ${KV_min} or above."
134 - ewarn
135 - fi
136 -}
137 -
138 -src_prepare() {
139 - # change rules back to group uucp instead of dialout for now
140 - sed -e 's/GROUP="dialout"/GROUP="uucp"/' -i rules/*.rules \
141 - || die "failed to change group dialout to uucp"
142 -
143 - # Bug #520684
144 - epatch "${FILESDIR}"/${PN}-fix-selinux-headers.patch
145 - epatch "${FILESDIR}"/${PN}-fix-selinux-linking.patch
146 -
147 - epatch_user
148 -
149 - if use doc; then
150 - gtkdocize --docdir docs || die "gtkdocize failed"
151 - else
152 - echo 'EXTRA_DIST =' > docs/gtk-doc.make
153 - fi
154 - eautoreconf
155 -}
156 -
157 -multilib_src_configure() {
158 - tc-export CC #463846
159 - export cc_cv_CFLAGS__flto=no #502950
160 -
161 - # Keep sorted by ./configure --help and only pass --disable flags
162 - # when *required* to avoid external deps or unnecessary compile
163 - local econf_args
164 - econf_args=(
165 - ac_cv_search_cap_init=
166 - ac_cv_header_sys_capability_h=yes
167 - DBUS_CFLAGS=' '
168 - DBUS_LIBS=' '
169 - --with-rootprefix=
170 - --docdir=/usr/share/doc/${PF}
171 - --libdir=/usr/$(get_libdir)
172 - --with-rootlibexecdir=/lib/udev
173 - --with-firmware-path="${EPREFIX}usr/lib/firmware/updates:${EPREFIX}usr/lib/firmware:${EPREFIX}lib/firmware/updates:${EPREFIX}lib/firmware"
174 - --with-html-dir="/usr/share/doc/${PF}/html"
175 - --enable-split-usr
176 - --exec-prefix=/
177 -
178 - $(use_enable gudev)
179 - )
180 -
181 - # Only build libudev for non-native_abi, and only install it to libdir,
182 - # that means all options only apply to native_abi
183 - if multilib_is_native_abi; then
184 - econf_args+=(
185 - --with-rootlibdir=/$(get_libdir)
186 - $(use_enable doc gtk-doc)
187 - $(use_enable introspection)
188 - $(use_enable keymap)
189 - $(use_enable kmod libkmod)
190 - $(usex kmod --enable-modules $(use_enable modutils modules))
191 - $(use_enable static-libs static)
192 - $(use_enable selinux)
193 - $(use_enable rule-generator)
194 - )
195 - else
196 - econf_args+=(
197 - --disable-static
198 - --disable-gtk-doc
199 - --disable-introspection
200 - --disable-keymap
201 - --disable-libkmod
202 - --disable-modules
203 - --disable-selinux
204 - --disable-rule-generator
205 - )
206 - fi
207 - ECONF_SOURCE="${S}" econf "${econf_args[@]}"
208 -}
209 -
210 -multilib_src_compile() {
211 - if multilib_is_native_abi; then
212 - emake
213 - else
214 - emake -C src/shared
215 - emake -C src/libudev
216 - use gudev && emake -C src/gudev
217 - fi
218 -}
219 -
220 -multilib_src_install() {
221 - if multilib_is_native_abi; then
222 - emake DESTDIR="${D}" install
223 - else
224 - emake -C src/libudev DESTDIR="${D}" install
225 - use gudev && emake -C src/gudev DESTDIR="${D}" install
226 - fi
227 -}
228 -
229 -multilib_src_test() {
230 - # make sandbox get out of the way
231 - # these are safe because there is a fake root filesystem put in place,
232 - # but sandbox seems to evaluate the paths of the test i/o instead of the
233 - # paths of the actual i/o that results.
234 - # also only test for native abi
235 - if multilib_is_native_abi; then
236 - addread /sys
237 - addwrite /dev
238 - addwrite /run
239 - default_src_test
240 - fi
241 -}
242 -
243 -multilib_src_install_all() {
244 - prune_libtool_files --all
245 - rm -rf "${ED}"/usr/share/doc/${PF}/LICENSE.*
246 -
247 - use rule-generator && use openrc && doinitd "${FILESDIR}"/udev-postmount
248 -
249 - # drop distributed hwdb files, they override sys-apps/hwids
250 - rm -f "${ED}"/etc/udev/hwdb.d/*.hwdb
251 -
252 - insinto /lib/udev/rules.d
253 - doins "${FILESDIR}"/40-gentoo.rules
254 -
255 - insinto /usr/share/doc/${PF}/html/gudev
256 - doins "${S}"/docs/gudev/html/*
257 -
258 - insinto /usr/share/doc/${PF}/html/libudev
259 - doins "${S}"/docs/libudev/html/*
260 -}
261 -
262 -pkg_preinst() {
263 - local htmldir
264 - for htmldir in gudev libudev; do
265 - if [[ -d ${EROOT}usr/share/gtk-doc/html/${htmldir} ]]; then
266 - rm -rf "${EROOT}"usr/share/gtk-doc/html/${htmldir}
267 - fi
268 - if [[ -d ${ED}/usr/share/doc/${PF}/html/${htmldir} ]]; then
269 - dosym ../../doc/${PF}/html/${htmldir} \
270 - /usr/share/gtk-doc/html/${htmldir}
271 - fi
272 - done
273 -}
274 -
275 -pkg_postinst() {
276 - mkdir -p "${EROOT}"run
277 -
278 - # "losetup -f" is confused if there is an empty /dev/loop/, Bug #338766
279 - # So try to remove it here (will only work if empty).
280 - rmdir "${EROOT}"dev/loop 2>/dev/null
281 - if [[ -d ${EROOT}dev/loop ]]; then
282 - ewarn "Please make sure your remove /dev/loop,"
283 - ewarn "else losetup may be confused when looking for unused devices."
284 - fi
285 -
286 - # https://cgit.freedesktop.org/systemd/systemd/commit/rules/50-udev-default.rules?id=3dff3e00e044e2d53c76fa842b9a4759d4a50e69
287 - # https://bugs.gentoo.org/246847
288 - # https://bugs.gentoo.org/514174
289 - enewgroup input
290 -
291 - # REPLACING_VERSIONS should only ever have zero or 1 values but in case it doesn't,
292 - # process it as a list. We only care about the zero case (new install) or the case where
293 - # the same version is being re-emerged. If there is a second version, allow it to abort.
294 - local rv rvres=doitnew
295 - for rv in ${REPLACING_VERSIONS} ; do
296 - if [[ ${rvres} == doit* ]]; then
297 - if [[ ${rv%-r*} == ${PV} ]]; then
298 - rvres=doit
299 - else
300 - rvres=${rv}
301 - fi
302 - fi
303 - done
304 -
305 - if use hwdb && has_version 'sys-apps/hwids[udev]'; then
306 - udevadm hwdb --update --root="${ROOT%/}"
307 -
308 - # https://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda
309 - # reload database after it has be rebuilt, but only if we are not upgrading
310 - # also pass if we are -9999 since who knows what hwdb related changes there might be
311 - if [[ ${rvres} == doit* ]] && [[ ${ROOT%/} == "" ]] && [[ ${PV} != "9999" ]]; then
312 - udevadm control --reload
313 - fi
314 - fi
315 - if [[ ${rvres} != doitnew ]]; then
316 - ewarn
317 - ewarn "You need to restart eudev as soon as possible to make the"
318 - ewarn "upgrade go into effect:"
319 - ewarn "\t/etc/init.d/udev --nodeps restart"
320 - fi
321 -
322 - if use rule-generator && use openrc && \
323 - [[ -x $(type -P rc-update) ]] && rc-update show | grep udev-postmount | grep -qsv 'boot\|default\|sysinit'; then
324 - ewarn
325 - ewarn "Please add the udev-postmount init script to your default runlevel"
326 - ewarn "to ensure the legacy rule-generator functionality works as reliably"
327 - ewarn "as possible."
328 - ewarn "\trc-update add udev-postmount default"
329 - fi
330 -
331 - elog
332 - elog "For more information on eudev on Gentoo, writing udev rules, and"
333 - elog "fixing known issues visit: https://wiki.gentoo.org/wiki/Eudev"
334 -}
335
336 diff --git a/sys-fs/eudev/eudev-1.9-r2.ebuild b/sys-fs/eudev/eudev-1.9-r2.ebuild
337 deleted file mode 100644
338 index 3a6dfbe8e4b..00000000000
339 --- a/sys-fs/eudev/eudev-1.9-r2.ebuild
340 +++ /dev/null
341 @@ -1,300 +0,0 @@
342 -# Copyright 1999-2017 Gentoo Foundation
343 -# Distributed under the terms of the GNU General Public License v2
344 -
345 -EAPI="5"
346 -
347 -KV_min=2.6.39
348 -
349 -inherit autotools eutils linux-info multilib multilib-minimal user
350 -
351 -if [[ ${PV} = 9999* ]]; then
352 - EGIT_REPO_URI="https://github.com/gentoo/eudev.git"
353 - inherit git-2
354 -else
355 - SRC_URI="https://dev.gentoo.org/~blueness/${PN}/${P}.tar.gz"
356 - KEYWORDS="amd64 arm hppa ~mips ppc ppc64 x86"
357 -fi
358 -
359 -DESCRIPTION="Linux dynamic and persistent device naming support (aka userspace devfs)"
360 -HOMEPAGE="https://github.com/gentoo/eudev"
361 -
362 -LICENSE="LGPL-2.1 MIT GPL-2"
363 -SLOT="0"
364 -IUSE="doc gudev +hwdb +kmod introspection +keymap +modutils +openrc +rule-generator selinux static-libs test"
365 -
366 -COMMON_DEPEND=">=sys-apps/util-linux-2.20
367 - gudev? ( >=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}] )
368 - introspection? ( >=dev-libs/gobject-introspection-1.31.1 )
369 - kmod? ( >=sys-apps/kmod-16 )
370 - selinux? ( >=sys-libs/libselinux-2.1.9 )
371 - !<sys-libs/glibc-2.11
372 - !sys-apps/gentoo-systemd-integration
373 - !sys-apps/systemd
374 - abi_x86_32? (
375 - !<=app-emulation/emul-linux-x86-baselibs-20130224-r7
376 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
377 - )"
378 -DEPEND="${COMMON_DEPEND}
379 - keymap? ( dev-util/gperf )
380 - virtual/os-headers
381 - virtual/pkgconfig
382 - >=sys-devel/make-3.82-r4
383 - >=sys-kernel/linux-headers-${KV_min}
384 - doc? ( >=dev-util/gtk-doc-1.18 )
385 - app-text/docbook-xml-dtd:4.2
386 - app-text/docbook-xml-dtd:4.5
387 - app-text/docbook-xsl-stylesheets
388 - dev-libs/libxslt
389 - >=dev-util/intltool-0.50
390 - test? ( app-text/tree dev-lang/perl )"
391 -
392 -RDEPEND="${COMMON_DEPEND}
393 - !<sys-fs/lvm2-2.02.103
394 - !<sec-policy/selinux-base-2.20120725-r10
395 - !sys-fs/udev
396 - !sys-apps/systemd
397 - gudev? ( !dev-libs/libgudev )"
398 -
399 -PDEPEND="hwdb? ( >=sys-apps/hwids-20140304[udev] )
400 - keymap? ( >=sys-apps/hwids-20140304[udev] )
401 - openrc? ( >=sys-fs/udev-init-scripts-26 )"
402 -
403 -REQUIRED_USE="keymap? ( hwdb )"
404 -
405 -# The multilib-build.eclass doesn't handle situation where the installed headers
406 -# are different in ABIs. In this case, we install libgudev headers in native
407 -# ABI but not for non-native ABI.
408 -multilib_check_headers() { :; }
409 -
410 -pkg_pretend() {
411 - if ! use rule-generator; then
412 - ewarn
413 - ewarn "As of 2013-01-29, ${P} provides the new interface renaming functionality,"
414 - ewarn "as described in the URL below:"
415 - ewarn "https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames"
416 - ewarn
417 - ewarn "This functionality is enabled BY DEFAULT because eudev has no means of synchronizing"
418 - ewarn "between the default or user-modified choice of sys-fs/udev. If you wish to disable"
419 - ewarn "this new iface naming, please be sure that /etc/udev/rules.d/80-net-name-slot.rules"
420 - ewarn "exists:"
421 - ewarn "\ttouch /etc/udev/rules.d/80-net-name-slot.rules"
422 - ewarn
423 - ewarn "We are working on a better solution for the next beta release."
424 - ewarn
425 - fi
426 -}
427 -
428 -pkg_setup() {
429 - CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~!IDE ~INOTIFY_USER ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2 ~SIGNALFD ~EPOLL ~FHANDLE ~NET ~UNIX"
430 - linux-info_pkg_setup
431 - get_running_version
432 -
433 - # These are required kernel options, but we don't error out on them
434 - # because you can build under one kernel and run under another.
435 - if kernel_is lt ${KV_min//./ }; then
436 - ewarn
437 - ewarn "Your current running kernel version ${KV_FULL} is too old to run ${P}."
438 - ewarn "Make sure to run udev under kernel version ${KV_min} or above."
439 - ewarn
440 - fi
441 -}
442 -
443 -src_prepare() {
444 - # change rules back to group uucp instead of dialout for now
445 - sed -e 's/GROUP="dialout"/GROUP="uucp"/' -i rules/*.rules \
446 - || die "failed to change group dialout to uucp"
447 -
448 - # Exclude MD from block device ownership event locking, bug #517986
449 - epatch "${FILESDIR}"/${PN}-exclude-MD.patch
450 -
451 - epatch_user
452 -
453 - if [[ ! -e configure ]]; then
454 - if use doc; then
455 - gtkdocize --docdir docs || die "gtkdocize failed"
456 - else
457 - echo 'EXTRA_DIST =' > docs/gtk-doc.make
458 - fi
459 - eautoreconf
460 - else
461 - elibtoolize
462 - fi
463 -}
464 -
465 -multilib_src_configure() {
466 - tc-export CC #463846
467 - export cc_cv_CFLAGS__flto=no #502950
468 -
469 - # Keep sorted by ./configure --help and only pass --disable flags
470 - # when *required* to avoid external deps or unnecessary compile
471 - local econf_args
472 - econf_args=(
473 - ac_cv_search_cap_init=
474 - ac_cv_header_sys_capability_h=yes
475 - DBUS_CFLAGS=' '
476 - DBUS_LIBS=' '
477 - --with-rootprefix=
478 - --docdir=/usr/share/doc/${PF}
479 - --libdir=/usr/$(get_libdir)
480 - --with-rootlibexecdir=/lib/udev
481 - --with-firmware-path="${EPREFIX}usr/lib/firmware/updates:${EPREFIX}usr/lib/firmware:${EPREFIX}lib/firmware/updates:${EPREFIX}lib/firmware"
482 - --with-html-dir="/usr/share/doc/${PF}/html"
483 - --enable-split-usr
484 - --exec-prefix=/
485 -
486 - $(use_enable gudev)
487 - )
488 -
489 - # Only build libudev for non-native_abi, and only install it to libdir,
490 - # that means all options only apply to native_abi
491 - if multilib_is_native_abi; then
492 - econf_args+=(
493 - --with-rootlibdir=/$(get_libdir)
494 - $(use_enable doc gtk-doc)
495 - $(use_enable introspection)
496 - $(use_enable keymap)
497 - $(use_enable kmod libkmod)
498 - $(usex kmod --enable-modules $(use_enable modutils modules))
499 - $(use_enable static-libs static)
500 - $(use_enable selinux)
501 - $(use_enable rule-generator)
502 - )
503 - else
504 - econf_args+=(
505 - --disable-static
506 - --disable-gtk-doc
507 - --disable-introspection
508 - --disable-keymap
509 - --disable-libkmod
510 - --disable-modules
511 - --disable-selinux
512 - --disable-rule-generator
513 - )
514 - fi
515 - ECONF_SOURCE="${S}" econf "${econf_args[@]}"
516 -}
517 -
518 -multilib_src_compile() {
519 - if multilib_is_native_abi; then
520 - emake
521 - else
522 - emake -C src/libudev
523 - use gudev && emake -C src/gudev
524 - fi
525 -}
526 -
527 -multilib_src_install() {
528 - if multilib_is_native_abi; then
529 - emake DESTDIR="${D}" install
530 - else
531 - emake -C src/libudev DESTDIR="${D}" install
532 - use gudev && emake -C src/gudev DESTDIR="${D}" install
533 - fi
534 -}
535 -
536 -multilib_src_test() {
537 - # make sandbox get out of the way
538 - # these are safe because there is a fake root filesystem put in place,
539 - # but sandbox seems to evaluate the paths of the test i/o instead of the
540 - # paths of the actual i/o that results.
541 - # also only test for native abi
542 - if multilib_is_native_abi; then
543 - addread /sys
544 - addwrite /dev
545 - addwrite /run
546 - default_src_test
547 - fi
548 -}
549 -
550 -multilib_src_install_all() {
551 - prune_libtool_files --all
552 - rm -rf "${ED}"/usr/share/doc/${PF}/LICENSE.*
553 -
554 - use rule-generator && use openrc && doinitd "${FILESDIR}"/udev-postmount
555 -
556 - # drop distributed hwdb files, they override sys-apps/hwids
557 - rm -f "${ED}"/etc/udev/hwdb.d/*.hwdb
558 -
559 - insinto /lib/udev/rules.d
560 - doins "${FILESDIR}"/40-gentoo.rules
561 -
562 - insinto /usr/share/doc/${PF}/html/gudev
563 - doins "${S}"/docs/gudev/html/*
564 -
565 - insinto /usr/share/doc/${PF}/html/libudev
566 - doins "${S}"/docs/libudev/html/*
567 -}
568 -
569 -pkg_preinst() {
570 - local htmldir
571 - for htmldir in gudev libudev; do
572 - if [[ -d ${EROOT}usr/share/gtk-doc/html/${htmldir} ]]; then
573 - rm -rf "${EROOT}"usr/share/gtk-doc/html/${htmldir}
574 - fi
575 - if [[ -d ${ED}/usr/share/doc/${PF}/html/${htmldir} ]]; then
576 - dosym ../../doc/${PF}/html/${htmldir} \
577 - /usr/share/gtk-doc/html/${htmldir}
578 - fi
579 - done
580 -}
581 -
582 -pkg_postinst() {
583 - mkdir -p "${EROOT}"run
584 -
585 - # "losetup -f" is confused if there is an empty /dev/loop/, Bug #338766
586 - # So try to remove it here (will only work if empty).
587 - rmdir "${EROOT}"dev/loop 2>/dev/null
588 - if [[ -d ${EROOT}dev/loop ]]; then
589 - ewarn "Please make sure your remove /dev/loop,"
590 - ewarn "else losetup may be confused when looking for unused devices."
591 - fi
592 -
593 - # https://cgit.freedesktop.org/systemd/systemd/commit/rules/50-udev-default.rules?id=3dff3e00e044e2d53c76fa842b9a4759d4a50e69
594 - # https://bugs.gentoo.org/246847
595 - # https://bugs.gentoo.org/514174
596 - enewgroup input
597 -
598 - # REPLACING_VERSIONS should only ever have zero or 1 values but in case it doesn't,
599 - # process it as a list. We only care about the zero case (new install) or the case where
600 - # the same version is being re-emerged. If there is a second version, allow it to abort.
601 - local rv rvres=doitnew
602 - for rv in ${REPLACING_VERSIONS} ; do
603 - if [[ ${rvres} == doit* ]]; then
604 - if [[ ${rv%-r*} == ${PV} ]]; then
605 - rvres=doit
606 - else
607 - rvres=${rv}
608 - fi
609 - fi
610 - done
611 -
612 - if use hwdb && has_version 'sys-apps/hwids[udev]'; then
613 - udevadm hwdb --update --root="${ROOT%/}"
614 -
615 - # https://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda
616 - # reload database after it has be rebuilt, but only if we are not upgrading
617 - # also pass if we are -9999 since who knows what hwdb related changes there might be
618 - if [[ ${rvres} == doit* ]] && [[ ${ROOT%/} == "" ]] && [[ ${PV} != "9999" ]]; then
619 - udevadm control --reload
620 - fi
621 - fi
622 - if [[ ${rvres} != doitnew ]]; then
623 - ewarn
624 - ewarn "You need to restart eudev as soon as possible to make the"
625 - ewarn "upgrade go into effect:"
626 - ewarn "\t/etc/init.d/udev --nodeps restart"
627 - fi
628 -
629 - if use rule-generator && use openrc && \
630 - [[ -x $(type -P rc-update) ]] && rc-update show | grep udev-postmount | grep -qsv 'boot\|default\|sysinit'; then
631 - ewarn
632 - ewarn "Please add the udev-postmount init script to your default runlevel"
633 - ewarn "to ensure the legacy rule-generator functionality works as reliably"
634 - ewarn "as possible."
635 - ewarn "\trc-update add udev-postmount default"
636 - fi
637 -
638 - elog
639 - elog "For more information on eudev on Gentoo, writing udev rules, and"
640 - elog "fixing known issues visit: https://wiki.gentoo.org/wiki/Eudev"
641 -}
642
643 diff --git a/sys-fs/eudev/eudev-3.1.2.ebuild b/sys-fs/eudev/eudev-3.1.2.ebuild
644 deleted file mode 100644
645 index b80fcbbe4aa..00000000000
646 --- a/sys-fs/eudev/eudev-3.1.2.ebuild
647 +++ /dev/null
648 @@ -1,271 +0,0 @@
649 -# Copyright 1999-2017 Gentoo Foundation
650 -# Distributed under the terms of the GNU General Public License v2
651 -
652 -EAPI="5"
653 -
654 -KV_min=2.6.39
655 -
656 -inherit autotools eutils linux-info multilib multilib-minimal user
657 -
658 -if [[ ${PV} = 9999* ]]; then
659 - EGIT_REPO_URI="https://github.com/gentoo/eudev.git"
660 - inherit git-2
661 -else
662 - SRC_URI="https://dev.gentoo.org/~blueness/${PN}/${P}.tar.gz"
663 - KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86"
664 -fi
665 -
666 -DESCRIPTION="Linux dynamic and persistent device naming support (aka userspace devfs)"
667 -HOMEPAGE="https://github.com/gentoo/eudev"
668 -
669 -LICENSE="LGPL-2.1 MIT GPL-2"
670 -SLOT="0"
671 -IUSE="doc gudev +hwdb +kmod introspection selinux static-libs test"
672 -
673 -COMMON_DEPEND=">=sys-apps/util-linux-2.20
674 - gudev? ( >=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}] )
675 - introspection? ( >=dev-libs/gobject-introspection-1.38 )
676 - kmod? ( >=sys-apps/kmod-16 )
677 - selinux? ( >=sys-libs/libselinux-2.1.9 )
678 - !<sys-libs/glibc-2.11
679 - !sys-apps/gentoo-systemd-integration
680 - !sys-apps/systemd
681 - abi_x86_32? (
682 - !<=app-emulation/emul-linux-x86-baselibs-20130224-r7
683 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
684 - )"
685 -DEPEND="${COMMON_DEPEND}
686 - dev-util/gperf
687 - virtual/os-headers
688 - virtual/pkgconfig
689 - >=sys-devel/make-3.82-r4
690 - >=sys-kernel/linux-headers-${KV_min}
691 - doc? ( >=dev-util/gtk-doc-1.18
692 - app-text/docbook-xml-dtd:4.2
693 - app-text/docbook-xml-dtd:4.5
694 - app-text/docbook-xsl-stylesheets
695 - dev-libs/libxslt
696 - )
697 - >=dev-util/intltool-0.50
698 - test? ( app-text/tree dev-lang/perl )"
699 -
700 -RDEPEND="${COMMON_DEPEND}
701 - !<sys-fs/lvm2-2.02.103
702 - !<sec-policy/selinux-base-2.20120725-r10
703 - !sys-fs/udev
704 - !sys-apps/systemd
705 - gudev? ( !dev-libs/libgudev )"
706 -
707 -PDEPEND=">=sys-fs/udev-init-scripts-26
708 - hwdb? ( >=sys-apps/hwids-20140304[udev] )"
709 -
710 -# The multilib-build.eclass doesn't handle situation where the installed headers
711 -# are different in ABIs. In this case, we install libgudev headers in native
712 -# ABI but not for non-native ABI.
713 -multilib_check_headers() { :; }
714 -
715 -pkg_pretend() {
716 - ewarn
717 - ewarn "As of 2013-01-29, ${P} provides the new interface renaming functionality,"
718 - ewarn "as described in the URL below:"
719 - ewarn "https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames"
720 - ewarn
721 - ewarn "This functionality is enabled BY DEFAULT because eudev has no means of synchronizing"
722 - ewarn "between the default or user-modified choice of sys-fs/udev. If you wish to disable"
723 - ewarn "this new iface naming, please be sure that /etc/udev/rules.d/80-net-name-slot.rules"
724 - ewarn "exists: touch /etc/udev/rules.d/80-net-name-slot.rules"
725 - ewarn
726 -}
727 -
728 -pkg_setup() {
729 - CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~!IDE ~INOTIFY_USER ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2 ~SIGNALFD ~EPOLL ~FHANDLE ~NET ~UNIX"
730 - linux-info_pkg_setup
731 - get_running_version
732 -
733 - # These are required kernel options, but we don't error out on them
734 - # because you can build under one kernel and run under another.
735 - if kernel_is lt ${KV_min//./ }; then
736 - ewarn
737 - ewarn "Your current running kernel version ${KV_FULL} is too old to run ${P}."
738 - ewarn "Make sure to run udev under kernel version ${KV_min} or above."
739 - ewarn
740 - fi
741 -}
742 -
743 -src_prepare() {
744 - # change rules back to group uucp instead of dialout for now
745 - sed -e 's/GROUP="dialout"/GROUP="uucp"/' -i rules/*.rules \
746 - || die "failed to change group dialout to uucp"
747 -
748 - epatch_user
749 -
750 - if use doc; then
751 - gtkdocize --docdir docs || die "gtkdocize failed"
752 - else
753 - echo 'EXTRA_DIST =' > docs/gtk-doc.make
754 - fi
755 - eautoreconf
756 -}
757 -
758 -multilib_src_configure() {
759 - tc-export CC #463846
760 - export cc_cv_CFLAGS__flto=no #502950
761 -
762 - # Keep sorted by ./configure --help and only pass --disable flags
763 - # when *required* to avoid external deps or unnecessary compile
764 - local econf_args
765 - econf_args=(
766 - ac_cv_search_cap_init=
767 - ac_cv_header_sys_capability_h=yes
768 - DBUS_CFLAGS=' '
769 - DBUS_LIBS=' '
770 - --with-rootprefix=
771 - --with-rootrundir=/run
772 - --docdir=/usr/share/doc/${PF}
773 - --libdir=/usr/$(get_libdir)
774 - --with-rootlibexecdir=/lib/udev
775 - --with-html-dir="/usr/share/doc/${PF}/html"
776 - --enable-split-usr
777 - --enable-manpages
778 - --disable-hwdb
779 - --exec-prefix=/
780 -
781 - $(use_enable gudev)
782 - )
783 -
784 - # Only build libudev for non-native_abi, and only install it to libdir,
785 - # that means all options only apply to native_abi
786 - if multilib_is_native_abi; then
787 - econf_args+=(
788 - --with-rootlibdir=/$(get_libdir)
789 - $(use_enable doc gtk-doc)
790 - $(use_enable introspection)
791 - $(use_enable kmod)
792 - $(use_enable static-libs static)
793 - $(use_enable selinux)
794 - )
795 - else
796 - econf_args+=(
797 - --disable-static
798 - --disable-gtk-doc
799 - --disable-introspection
800 - --disable-kmod
801 - --disable-selinux
802 - )
803 - fi
804 - ECONF_SOURCE="${S}" econf "${econf_args[@]}"
805 -}
806 -
807 -multilib_src_compile() {
808 - if multilib_is_native_abi; then
809 - emake
810 - else
811 - emake -C src/shared
812 - emake -C src/libudev
813 - use gudev && emake -C src/gudev
814 - fi
815 -}
816 -
817 -multilib_src_install() {
818 - if multilib_is_native_abi; then
819 - emake DESTDIR="${D}" install
820 - else
821 - emake -C src/libudev DESTDIR="${D}" install
822 - use gudev && emake -C src/gudev DESTDIR="${D}" install
823 - fi
824 -}
825 -
826 -multilib_src_test() {
827 - # make sandbox get out of the way
828 - # these are safe because there is a fake root filesystem put in place,
829 - # but sandbox seems to evaluate the paths of the test i/o instead of the
830 - # paths of the actual i/o that results.
831 - # also only test for native abi
832 - if multilib_is_native_abi; then
833 - addread /sys
834 - addwrite /dev
835 - addwrite /run
836 - default_src_test
837 - fi
838 -}
839 -
840 -multilib_src_install_all() {
841 - prune_libtool_files --all
842 - rm -rf "${ED}"/usr/share/doc/${PF}/LICENSE.*
843 -
844 - insinto /lib/udev/rules.d
845 - doins "${FILESDIR}"/40-gentoo.rules
846 -
847 - if ! [[ ${PV} = 9999* ]]; then
848 - insinto /usr/share/doc/${PF}/html/gudev
849 - doins "${S}"/docs/gudev/html/*
850 -
851 - insinto /usr/share/doc/${PF}/html/libudev
852 - doins "${S}"/docs/libudev/html/*
853 - fi
854 -}
855 -
856 -pkg_preinst() {
857 - local htmldir
858 - for htmldir in gudev libudev; do
859 - if [[ -d ${EROOT}usr/share/gtk-doc/html/${htmldir} ]]; then
860 - rm -rf "${EROOT}"usr/share/gtk-doc/html/${htmldir}
861 - fi
862 - if [[ -d ${ED}/usr/share/doc/${PF}/html/${htmldir} ]]; then
863 - dosym ../../doc/${PF}/html/${htmldir} \
864 - /usr/share/gtk-doc/html/${htmldir}
865 - fi
866 - done
867 -}
868 -
869 -pkg_postinst() {
870 - mkdir -p "${EROOT}"run
871 -
872 - # "losetup -f" is confused if there is an empty /dev/loop/, Bug #338766
873 - # So try to remove it here (will only work if empty).
874 - rmdir "${EROOT}"dev/loop 2>/dev/null
875 - if [[ -d ${EROOT}dev/loop ]]; then
876 - ewarn "Please make sure your remove /dev/loop,"
877 - ewarn "else losetup may be confused when looking for unused devices."
878 - fi
879 -
880 - # https://cgit.freedesktop.org/systemd/systemd/commit/rules/50-udev-default.rules?id=3dff3e00e044e2d53c76fa842b9a4759d4a50e69
881 - # https://bugs.gentoo.org/246847
882 - # https://bugs.gentoo.org/514174
883 - enewgroup input
884 -
885 - # REPLACING_VERSIONS should only ever have zero or 1 values but in case it doesn't,
886 - # process it as a list. We only care about the zero case (new install) or the case where
887 - # the same version is being re-emerged. If there is a second version, allow it to abort.
888 - local rv rvres=doitnew
889 - for rv in ${REPLACING_VERSIONS} ; do
890 - if [[ ${rvres} == doit* ]]; then
891 - if [[ ${rv%-r*} == ${PV} ]]; then
892 - rvres=doit
893 - else
894 - rvres=${rv}
895 - fi
896 - fi
897 - done
898 -
899 - if use hwdb && has_version 'sys-apps/hwids[udev]'; then
900 - udevadm hwdb --update --root="${ROOT%/}"
901 -
902 - # https://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda
903 - # reload database after it has be rebuilt, but only if we are not upgrading
904 - # also pass if we are -9999 since who knows what hwdb related changes there might be
905 - if [[ ${rvres} == doit* ]] && [[ ${ROOT%/} == "" ]] && [[ ${PV} != "9999" ]]; then
906 - udevadm control --reload
907 - fi
908 - fi
909 - if [[ ${rvres} != doitnew ]]; then
910 - ewarn
911 - ewarn "You need to restart eudev as soon as possible to make the"
912 - ewarn "upgrade go into effect:"
913 - ewarn "\t/etc/init.d/udev --nodeps restart"
914 - fi
915 -
916 - elog
917 - elog "For more information on eudev on Gentoo, writing udev rules, and"
918 - elog "fixing known issues visit: https://wiki.gentoo.org/wiki/Eudev"
919 -}
920
921 diff --git a/sys-fs/eudev/eudev-3.1.5.ebuild b/sys-fs/eudev/eudev-3.1.5.ebuild
922 index c02a8b50c5e..792ebe01221 100644
923 --- a/sys-fs/eudev/eudev-3.1.5.ebuild
924 +++ b/sys-fs/eudev/eudev-3.1.5.ebuild
925 @@ -9,7 +9,7 @@ inherit autotools eutils linux-info multilib multilib-minimal user
926
927 if [[ ${PV} = 9999* ]]; then
928 EGIT_REPO_URI="https://github.com/gentoo/eudev.git"
929 - inherit git-2
930 + inherit git-r3
931 else
932 SRC_URI="https://dev.gentoo.org/~blueness/${PN}/${P}.tar.gz"
933 KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 sparc x86"
934
935 diff --git a/sys-fs/eudev/metadata.xml b/sys-fs/eudev/metadata.xml
936 index 39ad39998e6..ccfc4177974 100644
937 --- a/sys-fs/eudev/metadata.xml
938 +++ b/sys-fs/eudev/metadata.xml
939 @@ -7,12 +7,8 @@
940 <use>
941 <flag name="blkid">enable blkid support</flag>
942 <flag name="efi">enable EFI support</flag>
943 - <flag name="gudev">enable libudev gobject interface</flag>
944 <flag name="hwdb">read vendor/device string database and add it to udev database</flag>
945 - <flag name="keymap">map custom hardware's multimedia keys</flag>
946 <flag name="kmod">enable module loading through libkmod</flag>
947 - <flag name="modutils">enable module loading support - use modutils calls if kmod not enabled</flag>
948 - <flag name="openrc">install the OpenRC init scripts</flag>
949 <flag name="smack">enable SMACK security model</flag>
950 <flag name="rule-generator">install legacy rule generator rules and support scripts - note
951 that the functionality within was dropped from sys-fs/udev as it is not stable in