diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2013-10-03 07:12:47 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2013-10-03 07:12:47 +0000 |
commit | 5b5c96c01b5b4ceb901ce4714a18fac1746658a4 (patch) | |
tree | 22f08619360c22d2d0fd6459c34a1062bfa00863 /sys-fs | |
parent | Fix bug 466874, thanks to jamesjames for reporting (diff) | |
download | historical-5b5c96c01b5b4ceb901ce4714a18fac1746658a4.tar.gz historical-5b5c96c01b5b4ceb901ce4714a18fac1746658a4.tar.bz2 historical-5b5c96c01b5b4ceb901ce4714a18fac1746658a4.zip |
old
Package-Manager: portage-2.2.6/cvs/Linux x86_64
Manifest-Sign-Key: 0x4868F14D
Diffstat (limited to 'sys-fs')
-rw-r--r-- | sys-fs/udev/ChangeLog | 5 | ||||
-rw-r--r-- | sys-fs/udev/Manifest | 19 | ||||
-rw-r--r-- | sys-fs/udev/udev-207.ebuild | 517 |
3 files changed, 12 insertions, 529 deletions
diff --git a/sys-fs/udev/ChangeLog b/sys-fs/udev/ChangeLog index b09c24e925c8..4d931975c000 100644 --- a/sys-fs/udev/ChangeLog +++ b/sys-fs/udev/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for sys-fs/udev # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.966 2013/10/02 12:49:31 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.967 2013/10/03 07:12:41 ssuominen Exp $ + + 03 Oct 2013; Samuli Suominen <ssuominen@gentoo.org> -udev-207.ebuild: + old 02 Oct 2013; Samuli Suominen <ssuominen@gentoo.org> udev-208.ebuild: Upstream retagged 208. Use -r1 in the tarball name to avoid Manifest diff --git a/sys-fs/udev/Manifest b/sys-fs/udev/Manifest index 66941d745d9f..2538a716abde 100644 --- a/sys-fs/udev/Manifest +++ b/sys-fs/udev/Manifest @@ -2,15 +2,12 @@ Hash: SHA256 DIST systemd-204.tar.xz 2186264 SHA256 072c393503c7c1e55ca7acf3db659cbd28c7fe5fa94fab3db95360bafd96731b SHA512 a2fe02f8ab4197bb4ff40c1c3e145370ebc5f3edfe97e6eb179086c42270523f76b49b5dd7dae0c52742a71bfb6a4217ecfa27cc6032faf5d4fe10b1264ed110 WHIRLPOOL 13baafbab202d2b1aa538281261a2bd70faa8634d4dc61f3ade6780f2e27b3e35919b7eb8a9258b66150924c8f2e82aa310a9a952f1f4e8128038b544a5c09df -DIST systemd-207.tar.xz 2363804 SHA256 ac1f8120315e7969063bbb0c181c8dc59509aeaf10c4266077c257a182ad5942 SHA512 566c6126fea038cb182608f7b9c3bb4410d0622cb637f30c60fba73c9052f7a36d2b0f790e3d94bb751080448ba14cee600481da378f5e97b0f5becfc849be54 WHIRLPOOL 823c3064e1e961599011d4cd027f5e2d0ba3b434c67b880d1a541720220f40c7cc82211f3f086042dbb440b2c7e11e1379aa0d656e33a2a7ba5b1d7e45b904f7 DIST systemd-208-r1.tar.xz 2382904 SHA256 aa64fa864466fd5727005c55d61c092828b94b4f857272c0b503695022146390 SHA512 c21989b747f5e73ba2311919e1ae558132e4ab2e0d8715c25f51e5e90069e147a52e04280c736ecca6b675af7d79def576171a9b08aaeda45fcd52bcdca011cb WHIRLPOOL e86fdbf96c75c4c94c9507900a5696ff811f5439e0cb45bdc765dc42c62a855c9d2e7d3414df7ec7e18013d937c9148e42c861d0e28e8b4c2fabebd234fbee03 DIST udev-204-patches-2.tar.xz 1824 SHA256 d693c79b93865dd4f3092f5f9e69221a494d286f15dcc5418de1e09120289404 SHA512 e5004a8bdaca6ead9bd5f345ff86c94b05579cb3aaa032782dc13e1a1d574ef65e294c01b44143f78517db6f64fb630470c082f43b6989134a8e68f48d444e6a WHIRLPOOL ba21f3d8f4964da79476102eb82c1b5ffd7e91b5d60be705cb9784fc2150dba3faf4afe7718e2f9dfc5cc7e79644bf21b8312fec328a733e056eb60dc0269222 -DIST udev-207-patches-1.tar.xz 1816 SHA256 45fd3aa513d092d58b367590d3685bc07b228b700b51962d4f00d56e51d8a730 SHA512 742feea8ba284e03a8a52fd86001ba832e1b8f8def276e9c9f3830319f20b3e8ef47c543284c1914eff26398c7b10ae8c2a5f9e7dc01b90f56c419acaa4d3e79 WHIRLPOOL d9b6ba3a62a066dc59db6ba4dc902269b64326b3a7d7c0474891493a636ce842e617cb22024141e547a149702133520ed4e020b5f7d7f1fe4b608255ba4c822e EBUILD udev-204.ebuild 13475 SHA256 5604664100abcd19d5e849e4b2ea4501706b38fa8da18389a6f147c419593661 SHA512 dc53345e87d722594a3182b2dc991938f03d89d8ab703134334a36f53340dba2112536153cd9c5ffc56ba7d57dc0e11e0afaab40c97d48700186cf5748ef635a WHIRLPOOL 0e50da3273399f8d8e5b6ddab71eca233d0993dcfa7928c90aba2644c96340a1045bfa8208f4006965c1dc466316eb90a946bd4157e71eaadc6c032180771d25 -EBUILD udev-207.ebuild 15575 SHA256 c40f1c99d25f03de7a7adfff5f6a3dd15f6f4ba3f0e45e3a3ab339c53dd806ca SHA512 3d6835be7b26c24eddbe78b9e23c73f363a6314bdcd06dcda6d4372a0c8d2f3234eb0379f485259440449aa58224b4fe3438903c2c604d9251e69736315135eb WHIRLPOOL a464536dfa86c14c7d267b377f097fd0a9f4ce6c728067232a464ae926933c1f1770354fe6211ccd8bd121d71ab1cca110823401f130a669b2d85a3690ab6b9d EBUILD udev-208.ebuild 15601 SHA256 0fafa0bb43896dc87d070621ee9e55235b72e57ebd193037c0fc911fb7214192 SHA512 0f5719f9027b61934cb0a1a5c4da64a79d74f78c81b77331145fc8d02e2b77abe94409dfbc4714664b48fc2c2711ec5097b2c066f8c8d77d5762feb89ea0cc6a WHIRLPOOL 06ee85d730fd3d52ab442c1cf944af1d4ace4d15ed7f3c59f17791a9d3b030a63ce7915a56797b7a488b4f8bec18c2aefddbf16171fc2087955629326ac2e35e EBUILD udev-9999.ebuild 15577 SHA256 4bd8d18b4d4b56300d4f33d322b14a01ffe44b5b11ec4ee438f5185482cef981 SHA512 7302e4f4d60686e8c84ae9d7e26b48b4c470c76b97aec482313f347beffc1df174c43cf93569e8c177398682b6b26f9ee9f1b4abb179e56058f808594cac9e10 WHIRLPOOL 44d516b7c43e0508aa04444637b3e8a7c64d2702c39d1d081b9a0dd849504f9baaf7a3a78366ef86782fa862b2cc7af08612961a039e07b91568831189c330f9 -MISC ChangeLog 35690 SHA256 0c0d5ef60f4fb7a2ab0c82af278acd9af11b854d1d0c5153dc7f4c4f80586443 SHA512 58e85b50758b8dde6aec3cf86f6469da80a28e629e4e6b57c865d97cabb1b7f641bf92b0ad64b02280968a951339343de2ccfa8dd56985f2db5c1b3753790d3e WHIRLPOOL 5a5df7c55fd4973c5cbe4b5588f5c708de223df39cd519856416e17c7a5cfba248b226159e5feb486ff408641b19adbec9b9667bbbae922b0902da09530882d8 +MISC ChangeLog 35769 SHA256 1f10025b065691f60c4c8d5c764be28ee0045551312adfa5fcb507b63066376a SHA512 2eedac3291a450b56ba68af3a0d61885328e294fde26790d72962bb956f12600bb64d2bc800fc10a0dba0eba14f6c61e3f2f9fa6ef774a9a66423050a3635e13 WHIRLPOOL f82acf23d93c5146b9ccc943f30cdcb225d9bfdfc9ebd53d1184824dcfff8c3542cd06fe2399ab4dbbe08295103965421f7c4389e9e68aaa60473adfbf477de5 MISC ChangeLog-2009 105929 SHA256 94137298457e8d6361cf25e664279d2f9b424f6758814e7ba90e9e2cbf1ea7e5 SHA512 f110e1aa70b11c28263ec5e88973c99426717bce62400c8e9ad860b9e7b67d4aadc053596a9e54faa9435a774c1e8aa0954ae8541760cf061beef26867871548 WHIRLPOOL 215252c0a5c249241813d1bb208da62e68c858e07d1df327cf9175ac739f214813a33c09a64afb4821445e93394dd6d6d500b33e35ed912c1eeccff3365cb7fb MISC ChangeLog-2010 10729 SHA256 44fe328d57b1ba342b328c7a256632e7960976a12e8e9c9791a5fc8ce52c67ca SHA512 a8c371aafe757923e24c023cbf55f3ad084f15f0f038eceaee0dffe58919a17b17bc16cb4b7b1d3f65a19c82b20330a854ec2c801f6d7c7799723ab92d255b49 WHIRLPOOL 3d34e758def921d3d2ed7369392ba5f833fc3a899181c2895fd3da6c9846cf41c9eddbf56de60a52fadd76ffd4c66d92b660b0bc6ca4dddbb2fa49fe0f93cb0b MISC ChangeLog-2011 11721 SHA256 363429a267f251b1ac1c34479e7afa5d7ea13811aa1ba46d7c5489860e542276 SHA512 be7bbaa68602c30ba9cb3e5037ee91ff94c35a0c2ff0b96c5eee14c0e81f8e52232bae44f1d01ff23acedabdb03fdc78f3d11a40cfed2cfef1c45fe2492f7bf4 WHIRLPOOL 3e85eb967f26a8224fd0ed5824009c62271fa5269a6a207da8c8abd7b09cc4308ff847021afcae5a86cedd723a5aeca1ce2f6712a187dfbd36118e097d74510f @@ -19,11 +16,11 @@ MISC metadata.xml 804 SHA256 2489d91db9d09f0d411b17dff6c8a595fb48ca65e8b6abcbdf9 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (GNU/Linux) -iQEcBAEBCAAGBQJSTBXtAAoJEEdUh39IaPFNovMH/1A2Q5XEgxHA7dSsoSVUrXoA -PTvJT5WGeDCnaGEIp7Imr8Xdw05LiRDxCOalhQ2CbLIu5Gp8EvLmHWaEz+Vci+OW -Pdst0zQhOyH7W1WhT1OtsBy6gow1HfUsc7EuXbOX/Ibc4gD9gT4lqcu3r25ffAXF -TaUpTAZxbldv2qm4kr1bZ96ST6uvw2LXcbOs/6nCDIdy8aUTUkwvZuayz13la0g2 -xYwpcAmRyiuF8VQpLmwGDCbhD7WhdD33PU6APr+wyQlKeS98eEWqSsQOSLAhvu2n -jB3RNH4mY2mfSb+aUCgll69KtVfAid/7vpzaB00VW0DTo1CZzdIrq2SSwZPf9hw= -=MIoM +iQEcBAEBCAAGBQJSTRh3AAoJEEdUh39IaPFNhY8H/RROSMGxOOYp4nJLx68Yx/hp +7cH69iuI6gSNuE1rUpE3e5f76aSlQT606m0YE0ZM+1y2ajB8QZGzsOYO3djpqKQK +YbY85iWHdAEiww+x9uv6elsXbBzJZdPDTPncuTIUoPW4Ny3IsMrZrpK9c7Cw8Z9U +IIHIn9ZlQoC8AIVwD/Hx6ACJc3JGSc+9SZqo5HBSURGvmfE56J9znKN7N4lZz3vx +4mg/+YVmWGnTziVypN7rtWX41UF9vfCFVk21sVXd/FQ5GlzmU5P5wPCM/cZFTMLT +XkYmZaW5X7R9Z6PDwrJc5gwQtB5V3GFyosdCWDV4pjm2fOhBRVQ/yjRCNjf5h9A= +=rtM4 -----END PGP SIGNATURE----- diff --git a/sys-fs/udev/udev-207.ebuild b/sys-fs/udev/udev-207.ebuild deleted file mode 100644 index 4e300a68d460..000000000000 --- a/sys-fs/udev/udev-207.ebuild +++ /dev/null @@ -1,517 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-207.ebuild,v 1.3 2013/09/19 13:40:45 ssuominen Exp $ - -EAPI=5 - -inherit autotools eutils linux-info multilib toolchain-funcs versionator multilib-minimal - -if [[ ${PV} = 9999* ]]; then - EGIT_REPO_URI="git://anongit.freedesktop.org/systemd/systemd" - inherit git-2 -else - patchset=1 - SRC_URI="http://www.freedesktop.org/software/systemd/systemd-${PV}.tar.xz" - if [[ -n "${patchset}" ]]; then - SRC_URI="${SRC_URI} - http://dev.gentoo.org/~ssuominen/${P}-patches-${patchset}.tar.xz - http://dev.gentoo.org/~williamh/dist/${P}-patches-${patchset}.tar.xz" - fi - KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" -fi - -DESCRIPTION="Linux dynamic and persistent device naming support (aka userspace devfs)" -HOMEPAGE="http://www.freedesktop.org/wiki/Software/systemd" - -LICENSE="LGPL-2.1 MIT GPL-2" -SLOT="0" -IUSE="acl doc +firmware-loader gudev introspection +kmod +openrc selinux static-libs" - -RESTRICT="test" - -COMMON_DEPEND=">=sys-apps/util-linux-2.20 - acl? ( sys-apps/acl ) - gudev? ( >=dev-libs/glib-2 ) - introspection? ( >=dev-libs/gobject-introspection-1.31.1 ) - kmod? ( >=sys-apps/kmod-14 ) - selinux? ( >=sys-libs/libselinux-2.1.9 ) - !<sys-libs/glibc-2.11 - !sys-apps/systemd - abi_x86_32? ( - !<=app-emulation/emul-linux-x86-baselibs-20130224-r7 - !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] - )" -DEPEND="${COMMON_DEPEND} - dev-util/gperf - >=sys-devel/make-3.82-r4 - virtual/os-headers - virtual/pkgconfig - !<sys-kernel/linux-headers-2.6.32 - doc? ( >=dev-util/gtk-doc-1.18 )" -if [[ ${PV} = 9999* ]]; then - DEPEND="${DEPEND} - app-text/docbook-xml-dtd:4.2 - app-text/docbook-xsl-stylesheets - dev-libs/libxslt - >=dev-util/intltool-0.50" -fi -RDEPEND="${COMMON_DEPEND} - openrc? ( !<sys-apps/openrc-0.9.9 ) - !sys-apps/coldplug - !<sys-fs/lvm2-2.02.97-r1 - !sys-fs/device-mapper - !<sys-fs/udev-init-scripts-22 - !<sys-kernel/dracut-017-r1 - !<sys-kernel/genkernel-3.4.25 - !<sec-policy/selinux-base-2.20120725-r10" -PDEPEND=">=virtual/udev-206-r2 - >=sys-apps/hwids-20130717-r1[udev] - openrc? ( >=sys-fs/udev-init-scripts-25 )" - -S=${WORKDIR}/systemd-${PV} - -# The multilib-build.eclass doesn't handle situation where the installed headers -# are different in ABIs. In this case, we install libgudev headers in native -# ABI but not for non-native ABI. -multilib_check_headers() { :; } - -check_default_rules() { - # Make sure there are no sudden changes to upstream rules file - # (more for my own needs than anything else ...) - local udev_rules_md5=7d3733faee4203fd7c75c3f3c0d55741 - MD5=$(md5sum < "${S}"/rules/50-udev-default.rules) - MD5=${MD5/ -/} - if [[ ${MD5} != ${udev_rules_md5} ]]; then - eerror "50-udev-default.rules has been updated, please validate!" - eerror "md5sum: ${MD5}" - die "50-udev-default.rules has been updated, please validate!" - fi -} - -pkg_setup() { - CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~!IDE ~INOTIFY_USER ~!SYSFS_DEPRECATED ~!SYSFS_DEPRECATED_V2 ~SIGNALFD ~EPOLL" - linux-info_pkg_setup - - # Based on README from tarball: - local MINKV=3.0 - # These arch's have the mandatory accept4() function support in Linux 2.6.32.61, see: - # $ grep -r define.*accept4 linux-2.6.32.61/* - if use amd64 || use ia64 || use mips || use sparc || use x86; then - MINKV=2.6.32 - fi - - if kernel_is -lt ${MINKV//./ }; then - eerror "Your running kernel is too old to run this version of ${P}" - eerror "You need to upgrade kernel at least to ${MINKV}" - fi -} - -src_prepare() { - if ! [[ ${PV} = 9999* ]]; then - # secure_getenv() disable for non-glibc systems wrt bug #443030 - if ! [[ $(grep -r secure_getenv * | wc -l) -eq 20 ]]; then - eerror "The line count for secure_getenv() failed, see bug #443030" - die - fi - fi - - # backport some patches - if [[ -n "${patchset}" ]]; then - EPATCH_SUFFIX=patch EPATCH_FORCE=yes epatch - fi - - # These are missing from upstream 50-udev-default.rules - cat <<-EOF > "${T}"/40-gentoo.rules - # Gentoo specific usb group - SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="usb" - # Keep this for Linux 2.6.32 kernels with accept4() support like .60 wrt #457868 - SUBSYSTEM=="mem", KERNEL=="null|zero|full|random|urandom", MODE="0666" - EOF - - # Create link to systemd-udevd.8 here to avoid parallel build problem and - # while at it, create convinience link to `man 8 udevd` even if upstream - # doesn't do that anymore - local man - for man in udevd systemd-udevd; do - echo '.so systemd-udevd.service.8' > "${T}"/${man}.8 - done - - # Remove requirements for gettext and intltool wrt bug #443028 - if ! has_version dev-util/intltool && ! [[ ${PV} = 9999* ]]; then - sed -i \ - -e '/INTLTOOL_APPLIED_VERSION=/s:=.*:=0.40.0:' \ - -e '/XML::Parser perl module is required for intltool/s|^|:|' \ - configure || die - eval export INTLTOOL_{EXTRACT,MERGE,UPDATE}=/bin/true - eval export {MSG{FMT,MERGE},XGETTEXT}=/bin/true - fi - - # apply user patches - epatch_user - - # compile with older versions of gcc #451110 - version_is_at_least 4.6 $(gcc-version) || \ - sed -i 's:static_assert:alsdjflkasjdfa:' src/shared/macro.h - - # change rules back to group uucp instead of dialout for now wrt #454556 - sed -i -e 's/GROUP="dialout"/GROUP="uucp"/' rules/*.rules || die - - if [[ ! -e configure ]]; then - if use doc; then - gtkdocize --docdir docs || die "gtkdocize failed" - else - echo 'EXTRA_DIST =' > docs/gtk-doc.make - fi - eautoreconf - else - check_default_rules - elibtoolize - fi - - # Restore possibility of running --enable-static wrt #472608 - sed -i \ - -e '/--enable-static is not supported by systemd/s:as_fn_error:echo:' \ - configure || die - - if ! use elibc_glibc; then #443030 - echo '#define secure_getenv(x) NULL' >> config.h.in - sed -i -e '/error.*secure_getenv/s:.*:#define secure_getenv(x) NULL:' src/shared/missing.h || die - fi -} - -multilib_src_configure() { - tc-export CC #463846 - - local econf_args - econf_args=( - ac_cv_search_cap_init= - ac_cv_header_sys_capability_h=yes - DBUS_CFLAGS=' ' - DBUS_LIBS=' ' - --docdir=/usr/share/doc/${PF} - --libdir=/usr/$(get_libdir) - --with-html-dir=/usr/share/doc/${PF}/html - --with-rootprefix= - --without-python - --disable-python-devel - --disable-audit - --disable-coredump - --disable-hostnamed - --disable-ima - --disable-libcryptsetup - --disable-localed - --disable-logind - --disable-myhostname - --disable-nls - --disable-pam - --disable-quotacheck - --disable-readahead - --enable-split-usr - --disable-tcpwrap - --disable-timedated - --disable-xz - --disable-polkit - --disable-tmpfiles - --disable-machined - --disable-xattr - ) - # Use pregenerated copies when possible wrt #480924 - if ! [[ ${PV} = 9999* ]]; then - econf_args+=( - --disable-manpages - ) - fi - if multilib_is_native_abi; then - econf_args+=( - --with-rootlibdir=/$(get_libdir) - $(use_enable acl) - $(use_enable doc gtk-doc) - $(use_enable gudev) - $(use_enable kmod) - $(use_enable selinux) - $(use_enable static-libs static) - --enable-introspection=$(usex introspection) - ) - else - econf_args+=( - --with-rootlibdir=/usr/$(get_libdir) - --disable-acl - --disable-gtk-doc - --disable-gudev - --disable-kmod - --disable-selinux - --disable-static - --disable-manpages - --enable-introspection=no - ) - fi - use firmware-loader && econf_args+=( --with-firmware-path="/lib/firmware/updates:/lib/firmware" ) - - ECONF_SOURCE=${S} econf "${econf_args[@]}" -} - -multilib_src_compile() { - echo 'BUILT_SOURCES: $(BUILT_SOURCES)' > "${T}"/Makefile.extra - emake -f Makefile -f "${T}"/Makefile.extra BUILT_SOURCES - - # Most of the parallel build problems were solved by >=sys-devel/make-3.82-r4, - # but not everything -- separate building of the binaries as a workaround, - # which will force internal libraries required for the helpers to be built - # early enough, like eg. libsystemd-shared.la - if multilib_is_native_abi; then - local lib_targets=( libudev.la ) - use gudev && lib_targets+=( libgudev-1.0.la ) - emake "${lib_targets[@]}" - - local exec_targets=( - systemd-udevd - udevadm - ) - emake "${exec_targets[@]}" - - local helper_targets=( - ata_id - cdrom_id - collect - scsi_id - v4l_id - accelerometer - mtd_probe - ) - emake "${helper_targets[@]}" - - if [[ ${PV} = 9999* ]]; then - local man_targets=( - man/udev.7 - man/udevadm.8 - man/systemd-udevd.service.8 - ) - emake "${man_targets[@]}" - fi - - if use doc; then - emake -C docs/libudev - use gudev && emake -C docs/gudev - fi - else - local lib_targets=( libudev.la ) - emake "${lib_targets[@]}" - fi -} - -multilib_src_install() { - if multilib_is_native_abi; then - local lib_LTLIBRARIES="libudev.la" \ - pkgconfiglib_DATA="src/libudev/libudev.pc" - - local targets=( - install-libLTLIBRARIES - install-includeHEADERS - install-libgudev_includeHEADERS - install-rootbinPROGRAMS - install-rootlibexecPROGRAMS - install-udevlibexecPROGRAMS - install-dist_udevconfDATA - install-dist_udevrulesDATA - install-girDATA - install-pkgconfiglibDATA - install-sharepkgconfigDATA - install-typelibsDATA - install-dist_docDATA - libudev-install-hook - install-directories-hook - install-dist_bashcompletionDATA - ) - - if use gudev; then - lib_LTLIBRARIES+=" libgudev-1.0.la" - pkgconfiglib_DATA+=" src/gudev/gudev-1.0.pc" - fi - - # add final values of variables: - targets+=( - rootlibexec_PROGRAMS=systemd-udevd - rootbin_PROGRAMS=udevadm - lib_LTLIBRARIES="${lib_LTLIBRARIES}" - pkgconfiglib_DATA="${pkgconfiglib_DATA}" - INSTALL_DIRS='$(sysconfdir)/udev/rules.d \ - $(sysconfdir)/udev/hwdb.d' - dist_bashcompletion_DATA="shell-completion/bash/udevadm" - ) - emake -j1 DESTDIR="${D}" "${targets[@]}" - - if use doc; then - emake -C docs/libudev DESTDIR="${D}" install - use gudev && emake -C docs/gudev DESTDIR="${D}" install - fi - - # install udevadm compatibility symlink - dosym {../bin,sbin}/udevadm - - # install udevd to /sbin and remove empty and redudant directory - # /lib/systemd because systemd is installed to /usr wrt #462750 - mv "${D}"/{lib/systemd/systemd-,sbin/}udevd || die - rm -r "${D}"/lib/systemd - - if [[ ${PV} = 9999* ]]; then - doman man/{udev.7,udevadm.8,systemd-udevd.service.8} - else - doman "${S}"/man/{udev.7,udevadm.8,systemd-udevd.service.8} - fi - else - local lib_LTLIBRARIES="libudev.la" \ - pkgconfiglib_DATA="src/libudev/libudev.pc" \ - include_HEADERS="src/libudev/libudev.h" - - local targets=( - install-libLTLIBRARIES - install-includeHEADERS - install-pkgconfiglibDATA - ) - - targets+=( - lib_LTLIBRARIES="${lib_LTLIBRARIES}" - pkgconfiglib_DATA="${pkgconfiglib_DATA}" - include_HEADERS="${include_HEADERS}" - ) - emake -j1 DESTDIR="${D}" "${targets[@]}" - fi -} - -multilib_src_install_all() { - dodoc TODO - - prune_libtool_files --all - rm -f \ - "${D}"/lib/udev/rules.d/99-systemd.rules \ - "${D}"/usr/share/doc/${PF}/LICENSE.* - - # see src_prepare() for content of these files - insinto /lib/udev/rules.d - doins "${T}"/40-gentoo.rules - doman "${T}"/{systemd-,}udevd.8 -} - -pkg_preinst() { - local htmldir - for htmldir in gudev libudev; do - if [[ -d ${ROOT}usr/share/gtk-doc/html/${htmldir} ]]; then - rm -rf "${ROOT}"usr/share/gtk-doc/html/${htmldir} - fi - if [[ -d ${D}/usr/share/doc/${PF}/html/${htmldir} ]]; then - dosym ../../doc/${PF}/html/${htmldir} \ - /usr/share/gtk-doc/html/${htmldir} - fi - done -} - -pkg_postinst() { - mkdir -p "${ROOT}"run - - # "losetup -f" is confused if there is an empty /dev/loop/, Bug #338766 - # So try to remove it here (will only work if empty). - rmdir "${ROOT}"dev/loop 2>/dev/null - if [[ -d ${ROOT}dev/loop ]]; then - ewarn "Please make sure your remove /dev/loop," - ewarn "else losetup may be confused when looking for unused devices." - fi - - # 64-device-mapper.rules is related to sys-fs/device-mapper which we block - # in favor of sys-fs/lvm2 - old_dm_rules=${ROOT}etc/udev/rules.d/64-device-mapper.rules - if [[ -f ${old_dm_rules} ]]; then - rm -f "${old_dm_rules}" - einfo "Removed unneeded file ${old_dm_rules}" - fi - - local fstab="${ROOT}"etc/fstab dev path fstype rest - while read -r dev path fstype rest; do - if [[ ${path} == /dev && ${fstype} != devtmpfs ]]; then - ewarn "You need to edit your /dev line in ${fstab} to have devtmpfs" - ewarn "filesystem. Otherwise udev won't be able to boot." - ewarn "See, http://bugs.gentoo.org/453186" - fi - done < "${fstab}" - - if [[ -d ${ROOT}usr/lib/udev ]]; then - ewarn - ewarn "Please re-emerge all packages on your system which install" - ewarn "rules and helpers in /usr/lib/udev. They should now be in" - ewarn "/lib/udev." - ewarn - ewarn "One way to do this is to run the following command:" - ewarn "emerge -av1 \$(qfile -q -S -C /usr/lib/udev)" - ewarn "Note that qfile can be found in app-portage/portage-utils" - fi - - local old_net_name="${ROOT}"etc/udev/rules.d/80-net-name-slot.rules - if [[ -f ${old_net_name} ]]; then - local old_net_sum=bebf4bd1b6b668e9ff34a3999aa6ff32 - MD5=$(md5sum < "${old_net_name}") - MD5=${MD5/ -/} - if [[ ${MD5} == ${old_net_sum} ]]; then - ewarn "Removing unmodified file ${old_net_name} from old udev installation to enable" - ewarn "the new predictable network interface naming." - rm -f "${old_net_name}" - fi - fi - - local old_cd_rules="${ROOT}"etc/udev/rules.d/70-persistent-cd.rules - local old_net_rules="${ROOT}"etc/udev/rules.d/70-persistent-net.rules - for old_rules in "${old_cd_rules}" "${old_net_rules}"; do - if [[ -f ${old_rules} ]]; then - ewarn - ewarn "File ${old_rules} is from old udev installation but if you still use it," - ewarn "rename it to something else starting with 70- to silence this deprecation" - ewarn "warning." - fi - done - - elog - elog "Starting from version >= 200 the new predictable network interface names are" - elog "used by default, see:" - elog "http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames" - elog "http://cgit.freedesktop.org/systemd/systemd/tree/src/udev/udev-builtin-net_id.c" - elog - elog "Example command to get the information for the new interface name before booting" - elog "(replace <ifname> with, for example, eth0):" - elog "# udevadm test-builtin net_id /sys/class/net/<ifname> 2> /dev/null" - elog - elog "You can use either kernel parameter \"net.ifnames=0\", create empty" - elog "file /etc/udev/rules.d/80-net-name-slot.rules, or symlink it to /dev/null" - elog "to disable the feature." - - if has_version sys-apps/biosdevname; then - ewarn - ewarn "You can replace the functionality of sys-apps/biosdevname which has been" - ewarn "detected to be installed with the new predictable network interface names." - fi - - ewarn - ewarn "You need to restart udev as soon as possible to make the upgrade go" - ewarn "into effect." - ewarn "The method you use to do this depends on your init system." - if has_version 'sys-apps/openrc'; then - ewarn "For sys-apps/openrc users it is:" - ewarn "# /etc/init.d/udev --nodeps restart" - fi - - elog - elog "For more information on udev on Gentoo, upgrading, writing udev rules, and" - elog "fixing known issues visit:" - elog "http://wiki.gentoo.org/wiki/Udev" - elog "http://wiki.gentoo.org/wiki/Udev/upgrade" - - # Update hwdb database in case the format is changed by udev version. - if has_version 'sys-apps/hwids[udev]'; then - udevadm hwdb --update --root="${ROOT%/}" - # Only reload when we are not upgrading to avoid potential race w/ incompatible hwdb.bin and the running udevd - if [[ -z ${REPLACING_VERSIONS} ]]; then - # http://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda - if [[ ${ROOT} != "" ]] && [[ ${ROOT} != "/" ]]; then - return 0 - fi - udevadm control --reload - fi - fi -} |