diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2013-03-24 17:04:13 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2013-03-24 17:04:13 +0000 |
commit | a8b22d5e25d707dea7d5ae87d7520c3742873473 (patch) | |
tree | 051bcd8e11500610903f35d32a960915841a66be /sys-fs | |
parent | Install udev along with systemd again. Using a separate provider has proven t... (diff) | |
download | historical-a8b22d5e25d707dea7d5ae87d7520c3742873473.tar.gz historical-a8b22d5e25d707dea7d5ae87d7520c3742873473.tar.bz2 historical-a8b22d5e25d707dea7d5ae87d7520c3742873473.zip |
old
Package-Manager: portage-2.2.0_alpha168/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 | 17 | ||||
-rw-r--r-- | sys-fs/udev/udev-198-r5.ebuild | 482 |
3 files changed, 12 insertions, 492 deletions
diff --git a/sys-fs/udev/ChangeLog b/sys-fs/udev/ChangeLog index 3717fb73b89c..ccf6717d7448 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.875 2013/03/24 10:45:41 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.876 2013/03/24 17:04:06 ssuominen Exp $ + + 24 Mar 2013; Samuli Suominen <ssuominen@gentoo.org> -udev-198-r5.ebuild: + old *udev-198-r6 (24 Mar 2013) diff --git a/sys-fs/udev/Manifest b/sys-fs/udev/Manifest index 4afeb9de6e42..4827baf44f33 100644 --- a/sys-fs/udev/Manifest +++ b/sys-fs/udev/Manifest @@ -13,10 +13,9 @@ DIST udev-gentoo-legacy-patchset-2.tar.bz2 14282 SHA256 bb2aefa50c3cc6df8cc88903 DIST udev-gentoo-scripts-7.1.tar.bz2 16257 SHA256 1923768a98b7f00ffdc9bdf5a2c9982c494b978903ec891184d6fa0d10090fb4 SHA512 663fdd750b3f1e52a4c7639d0692290cdda9d202d4408e8aba9bfd38aaccfaa0acb79e303e98872b721cf109c62ac46921785cb5a373cc6ad8b428d0f5192836 WHIRLPOOL 49b600b034f8a6ad5e0ae6ca769971f1bb517fa0b9e31a0a7d0430ae67cf21bf4ab1db981d3eaaf78819d1e75a24a1f101eeb737448763b2990e38da912636be EBUILD udev-171-r10.ebuild 16093 SHA256 37ef3115e14d68f23cfb7cf620423b72b460dba04b36f20f6646607381e2fb40 SHA512 3b392d78a30e1a7cb6c085aae7b876c107a920b777194e475b6e10f9f09231dd3cd69b76b501d2354b7a032582ccefee861d4fbbe2bce5aa7a65fd3310b87d84 WHIRLPOOL f2a7b62bdf984121bd9cc8127ec3e912792a3affe1c097bc7c765a4822720a574412c4d18895e4c705b9bf6fbd8dcc3c554516bf2a8cae28018e39dad8601959 EBUILD udev-197-r8.ebuild 15057 SHA256 854d75fdb78b73399cb6f096c26cfbc640d8ca077fc62b1c63f5e9f6de62f36c SHA512 9e4da40b18bc6da38ccedc6675558672c1d7d73144fde6204fbaeea5f5080fd985429da0f54429613c98e8e9802505f9ce456874c143e5017e191a3df6875964 WHIRLPOOL 4485b8c1096f016f3bbcc96aa7ad119b3ca44604827afd9f1aa6c23172a66705f67522662539b9626b138a79833082d5979fa795777de25e128b7fd125e5e1e4 -EBUILD udev-198-r5.ebuild 14097 SHA256 b3368cc7f2331acc568ca9f487f4b3a56de3024c17b57f906a080b189ac0b1e3 SHA512 41ebabeebe998e931df4ac3c9c057a993881fdac5c70c6b43eb031fc009c5af8205f7b1dddc29ec542307e3020eaaef822f8b26fa2d02f6494597a62ed9f44fc WHIRLPOOL 76a9f20cb68761ae8c94c58aaaf0c41b729f146a226904afa148d5955f756d3be7d75420626cfcb12228a9d928baa78bbcdb1775da40e63582f614cb4da66fa4 EBUILD udev-198-r6.ebuild 14100 SHA256 2be2c5d05bd7b545dd441da4c362150cbd8ccff5b189568944a8f9295d7c5573 SHA512 0fcd54ad6cc43d78d319f2af1e18f5204c1ec1f2160ba42c6a3ca14473b8efa0910a5aa2c05d11e3e9cec0bfc25feba6ee069937a9b2d3711b66f20cb0164862 WHIRLPOOL 239ea3da7440e364e38cf727665db1b3905abfe22f661fab02c6ca62af668a623b9823d03b4f698fb0360f712a4f2415f98519414b6bf1120c2ceff2c042084a EBUILD udev-9999.ebuild 14238 SHA256 5562f5575ebf84a0c1be9c4c2bf957ac2a09cf491d93e57bd34c25c91d10dbfe SHA512 68f67e2225a2f0de199ba1eb498198d399163f3cc274b2cffbb938a05eb9a5ca318d4ec52ec3532fd1f2a1e1e3cd4f73220fe1f6273a717748260e5d108d63c3 WHIRLPOOL 29c04140ad5b71d7fad30aa1ee82c3d8008c6f2bdb3993c6d8e81e04f3fb624d1b88082dc62bb9dc23f3b3d8b002c2c144e49eca18238e7e637acd0da7e8edb7 -MISC ChangeLog 20466 SHA256 4fe37da3c9843319277c1c00c003838804cc7160c515e14ca9521b8b9bea895e SHA512 fa7c149820d8aef21216fff11b902b38183cf823f0402bfcf2f30b22c18cf418908c79edcaa5f531827b2aff38bdb80e59f8f6a73cc132f2dd14761e2a009ee0 WHIRLPOOL 06191f15db0259c6dd23d50d4c0cbdb7496ae3b035c464a569bb3db0561f3b50e00479b1650e51ffd63d27efac1238e73ffb614d44e623462e7792100a8ffb25 +MISC ChangeLog 20548 SHA256 767a529245405677fa4f7be1807a91fb9bbddf4eea9d7d4b0f004d59b7d99e73 SHA512 d80d73d9c7de657263e7ad38a145e6b273260024465345a55858a83f2a44fd460f94a732c875307442e8df9f1f8c158b9e98e9f077043ed08b5ed9484ae9852f WHIRLPOOL 3b87abccd062bf91ccf5221b5a40b0c13a5ab06384270a076bba6ab82b7cb771ad4f3675f9dddaacf08ebd5f4fddb4d6fbc7993356aa1e3f4f78dba65add2317 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 @@ -25,11 +24,11 @@ MISC metadata.xml 1197 SHA256 84a4ca987d2d7a71c7a65f47a73304feb63929ee1fdebdfca2 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iQEcBAEBCAAGBQJRTtkdAAoJEEdUh39IaPFNHEMH/3tFA4g7utapXww3g1htbPsw -9oadlW7RIxyXNOt6R1JHlbG4p4mbMiyy8MjB3sgXvjDRfkyIYGD2LmlsgkfjWQQp -IfW+1mopAB7O5LaUCRhd5T5FXwGA5L3TM42JmFv/eBgK/y81BEpRl40r8oDO4uAf -4XRMH/surzZpYGUBrWPBNPpuHQyPDjfGCvfY85JljXeyzttuxLJfq4HepuGmb9kO -/GKko7oTQiIUgyGx7ufW5F5ZF+Ba3CD5c9jgCnDM8ztKCXgR/K5SYuJN+bGefgES -eU42nNWcH9XhbTqlZXKWe1BeESZHMpyCHsJx0MsX3k4d1/23FNCcy0/TCexU5gY= -=KEYb +iQEcBAEBCAAGBQJRTzHNAAoJEEdUh39IaPFNTVIIAIq9waqY6NXqZxx6Iar7ajoo +gAFaqO1oEFBqkUH86di2QETzzoSmBELkLyK06xv/8mF0IOUFaB0R+kYtCVFyclG1 +49Yf4z82FO4KNQ/nBmFTalG8gQxjvXk95xs6/D5dF4SrleBhfyFL2HKnS1NP+A5M +FIe2r6XKsi2tDc+BdemjaOCBcx08W3fYY0DQD4/52aIhg3cHuFDyXT5UjALNDAJc +eYfRYNnACJJfpoAn6OX5ckMhCYGdwXYE66xvbm2SVcbaIRahzRsJ2OBBt7FJEWC2 +QTMXL72EJVSS+YjtKDKUN+7gakAToqMTlvfsbNVsnIoi7Ve+233OOwWFQi7VKis= +=9THc -----END PGP SIGNATURE----- diff --git a/sys-fs/udev/udev-198-r5.ebuild b/sys-fs/udev/udev-198-r5.ebuild deleted file mode 100644 index 33616f113ca7..000000000000 --- a/sys-fs/udev/udev-198-r5.ebuild +++ /dev/null @@ -1,482 +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-198-r5.ebuild,v 1.6 2013/03/24 10:27:46 mgorny Exp $ - -EAPI=5 - -# accept4() patch is only in non-live version -if [[ ${PV} = 9999* ]]; then - KV_min=2.6.39 -else - KV_min=2.6.32 -fi - -inherit autotools eutils linux-info multilib toolchain-funcs versionator - -if [[ ${PV} = 9999* ]]; then - EGIT_REPO_URI="git://anongit.freedesktop.org/systemd/systemd" - inherit git-2 -else - patchset=4 - 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 gudev hwdb introspection keymap +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-12 ) - selinux? ( >=sys-libs/libselinux-2.1.9 ) - !<sys-libs/glibc-2.11 - !sys-apps/systemd" - -DEPEND="${COMMON_DEPEND} - virtual/os-headers - virtual/pkgconfig - !<sys-kernel/linux-headers-${KV_min} - doc? ( >=dev-util/gtk-doc-1.18 ) - keymap? ( dev-util/gperf )" - -if [[ ${PV} = 9999* ]]; then - DEPEND="${DEPEND} - app-text/docbook-xsl-stylesheets - dev-libs/libxslt - dev-util/gperf - >=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-197-r1 - hwdb? ( >=sys-apps/hwids-20130309-r1[udev] ) - openrc? ( >=sys-fs/udev-init-scripts-23 )" - -S=${WORKDIR}/systemd-${PV} - -#QA_MULTILIB_PATHS="lib/systemd/systemd-udevd" - -udev_check_KV() { - if kernel_is lt ${KV_min//./ }; then - return 1 - fi - return 0 -} - -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=e602584bcabf09cde0f7f9a3c1adda28 - 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 - - if ! udev_check_KV; then - eerror "Your kernel version (${KV_FULL}) is too old to run ${P}" - eerror "It must be at least ${KV_min}!" - fi - - KV_FULL_SRC=${KV_FULL} - get_running_version - if ! udev_check_KV; then - eerror - eerror "Your running kernel version (${KV_FULL}) is too old" - eerror "for this version of udev." - eerror "You must upgrade your kernel or downgrade udev." - 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 16 ]]; then - eerror "The line count for secure_getenv() failed, see bug #443030" - die - fi - - # gperf disable if keymaps are not requested wrt bug #452760 - if ! [[ $(grep -i gperf Makefile.am | wc -l) -eq 27 ]]; then - eerror "The line count for gperf references failed, see bug 452760" - 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 - - # 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 -e 's/GROUP="dialout"/GROUP="uucp"/' \ - -i rules/*.rules \ - || die "failed to change group dialout to uucp" - - 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 - - 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 - - # link udevd(8) to systemd-udevd.service(8) manpage - echo '.so systemd-udevd.service.8' > "${T}"/udevd.8 -} - -src_configure() { - use keymap || export ac_cv_path_GPERF=true #452760 - - local econf_args - - econf_args=( - ac_cv_search_cap_init= - ac_cv_header_sys_capability_h=yes - DBUS_CFLAGS=' ' - DBUS_LIBS=' ' - --bindir=/bin - --docdir=/usr/share/doc/${PF} - --libdir=/usr/$(get_libdir) - --with-html-dir=/usr/share/doc/${PF}/html - --with-rootprefix= - --with-rootlibdir=/$(get_libdir) - --with-bashcompletiondir=/usr/share/bash-completion - --without-python - --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 - $(use_enable acl) - $(use_enable doc gtk-doc) - $(use_enable gudev) - $(use_enable keymap) - $(use_enable kmod) - $(use_enable selinux) - $(use_enable static-libs static) - ) - if use introspection; then - econf_args+=( - --enable-introspection=$(usex introspection) - ) - fi - econf "${econf_args[@]}" -} - -src_compile() { - echo 'BUILT_SOURCES: $(BUILT_SOURCES)' > "${T}"/Makefile.extra - emake -f Makefile -f "${T}"/Makefile.extra BUILT_SOURCES - local targets=( - systemd-udevd - udevadm - libudev.la - ata_id - cdrom_id - collect - scsi_id - v4l_id - accelerometer - mtd_probe - man/udev.7 - man/udevadm.8 - man/systemd-udevd.8 - man/systemd-udevd.service.8 - ) - use keymap && targets+=( keymap ) - use gudev && targets+=( libgudev-1.0.la ) - - emake "${targets[@]}" - if use doc; then - emake -C docs/libudev - use gudev && emake -C docs/gudev - fi -} - -src_install() { - local lib_LTLIBRARIES="libudev.la" \ - pkgconfiglib_DATA="src/libudev/libudev.pc" - - local targets=( - install-libLTLIBRARIES - install-includeHEADERS - install-libgudev_includeHEADERS - install-binPROGRAMS - install-rootlibexecPROGRAMS - install-udevlibexecPROGRAMS - install-dist_udevconfDATA - install-dist_udevhomeSCRIPTS - install-dist_udevkeymapDATA - install-dist_udevkeymapforcerelDATA - install-dist_udevrulesDATA - install-girDATA - install-man3 - install-man7 - install-man8 - 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 - bin_PROGRAMS=udevadm - lib_LTLIBRARIES="${lib_LTLIBRARIES}" - MANPAGES="man/udev.7 man/udevadm.8 \ - man/systemd-udevd.service.8" - MANPAGES_ALIAS="man/systemd-udevd.8" - 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 - 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}"/udevd.8 - - # 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 -} - -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 - preserve_old_lib /{,usr/}$(get_libdir)/libudev$(get_libname 0) -} - -# This function determines if a directory is a mount point. -# It was lifted from dracut. -ismounted() { - while read a m a; do - [[ $m = $1 ]] && return 0 - done < "${ROOT}"/proc/mounts - return 1 -} - -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 - - # people want reminders, I'll give them reminders. Odds are they will - # just ignore them anyway... - - # 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 - - if ismounted /usr; then - ewarn - ewarn "Your system has /usr on a separate partition. This means" - ewarn "you will need to use an initramfs to pre-mount /usr before" - ewarn "udev runs." - ewarn - ewarn "If this is not set up before your next reboot, udev may work;" - ewarn "However, you also may experience failures which are very" - ewarn "difficult to troubleshoot." - ewarn - ewarn "For a more detailed explanation, see the following URL:" - ewarn "http://www.freedesktop.org/wiki/Software/systemd/separate-usr-is-broken" - ewarn - ewarn "For more information on setting up an initramfs, see the" - ewarn "following URL:" - ewarn "http://www.gentoo.org/doc/en/initramfs-guide.xml" - 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 - - if has_version sys-apps/biosdevname; then - ewarn - ewarn "You have sys-apps/biosdevname installed which has been deprecated" - ewarn "in favor of the predictable network interface names." - fi - - ewarn - ewarn "The new predictable network interface names are used by default, see:" - ewarn "http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames" - ewarn - ewarn "Example command to get the information for the new interface name before booting" - ewarn "(replace ifname with, for example, eth0):" - ewarn "# udevadm test-builtin net_id /sys/class/net/<ifname> 2> /dev/null" - - 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." - - preserve_old_lib_notify /{,usr/}$(get_libdir)/libudev$(get_libname 0) - - elog - elog "For more information on udev on Gentoo, writing udev rules, and" - elog " fixing known issues visit:" - elog " http://www.gentoo.org/doc/en/udev-guide.xml" - - # Keep this here in case the database format changes so it gets updated - # when required. Despite that this file is owned by sys-apps/hwids. - if use hwdb && has_version sys-apps/hwids; then - udevadm hwdb --update --root="${ROOT%/}" - fi -} |