summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2007-08-30 08:28:35 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2007-08-30 08:28:35 +0000
commitf320f776668715a8417341d0199a13c81f08af1d (patch)
tree4bb1f9c901fb3415a300bda814bb85d5ab8f4bcc /sys-fs/udev
parentVersion Bump, thanks to Ken Rushia (bug #188675). (diff)
downloadgentoo-2-f320f776668715a8417341d0199a13c81f08af1d.tar.gz
gentoo-2-f320f776668715a8417341d0199a13c81f08af1d.tar.bz2
gentoo-2-f320f776668715a8417341d0199a13c81f08af1d.zip
Backported fix to kernel version check by Polynomial-C <polynomial-C@gmx.de>, bug 190326.
(Portage version: 2.1.3.7)
Diffstat (limited to 'sys-fs/udev')
-rw-r--r--sys-fs/udev/ChangeLog6
-rw-r--r--sys-fs/udev/udev-114-r2.ebuild13
2 files changed, 11 insertions, 8 deletions
diff --git a/sys-fs/udev/ChangeLog b/sys-fs/udev/ChangeLog
index 8f336e3906cc..031674a2a527 100644
--- a/sys-fs/udev/ChangeLog
+++ b/sys-fs/udev/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-fs/udev
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.339 2007/08/26 21:06:11 zzam Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.340 2007/08/30 08:28:35 zzam Exp $
+
+ 30 Aug 2007; Matthias Schwarzott <zzam@gentoo.org> udev-114-r2.ebuild:
+ Backported fix to kernel version check by Polynomial-C
+ <polynomial-C@gmx.de>, bug 190326.
26 Aug 2007; Matthias Schwarzott <zzam@gentoo.org> udev-115.ebuild:
Change kernel-version parsing to be more robust, now using
diff --git a/sys-fs/udev/udev-114-r2.ebuild b/sys-fs/udev/udev-114-r2.ebuild
index 59f9c898ff69..581a12cefdc6 100644
--- a/sys-fs/udev/udev-114-r2.ebuild
+++ b/sys-fs/udev/udev-114-r2.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-114-r2.ebuild,v 1.2 2007/08/25 12:59:26 zzam Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/udev-114-r2.ebuild,v 1.3 2007/08/30 08:28:35 zzam Exp $
-inherit eutils flag-o-matic multilib toolchain-funcs
+inherit eutils flag-o-matic multilib toolchain-funcs versionator
DESCRIPTION="Linux dynamic and persistent device naming support (aka userspace devfs)"
HOMEPAGE="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html"
@@ -41,12 +41,11 @@ pkg_setup() {
# comparing kernel version without linux-info.eclass to not pull
# virtual/linux-sources
+
local KV=$(uname -r)
- local KV_MAJOR=${KV%%.*}
- local x=${KV#*.}
- local KV_MINOR=${x%%.*}
- x=${KV#*.*.}
- local KV_MICRO=${x%%-*}
+ local KV_MAJOR=$(get_major_version ${KV})
+ local KV_MINOR=$(get_version_component_range 2 ${KV})
+ local KV_MICRO=$(get_version_component_range 3 ${KV})
local ok=0
if [[ "${KV_MAJOR}" == 2 ]] && [[ "${KV_MINOR}" == 6 ]] && [[ "${KV_MICRO}" -ge 15 ]]; then