From 0e59321a3f00cdcf6e0f92e83b9ccce37a53d153 Mon Sep 17 00:00:00 2001 From: Stanislav Brabec Date: Sun, 29 Aug 2010 23:40:26 +0000 Subject: udev: udev-compat-wrapper-patch: Use KERNELMICROVER evaluation that does not fail on rc and four-part versions. --- recipes/udev/files/udev-compat-wrapper-patch | 2 +- recipes/udev/udev.inc | 2 +- recipes/udev/udev_151.bb | 2 +- recipes/udev/udev_154.bb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'recipes') diff --git a/recipes/udev/files/udev-compat-wrapper-patch b/recipes/udev/files/udev-compat-wrapper-patch index a3e312d6a6..c90d05aefa 100644 --- a/recipes/udev/files/udev-compat-wrapper-patch +++ b/recipes/udev/files/udev-compat-wrapper-patch @@ -16,7 +16,7 @@ WORKDIR and cannot be selectively applied on another source file. +UDEVADM="/sbin/udevadm" +# If we are running an old kernel and have a static udev present use that instead +if [ -e /sbin/udevd-compat ] ; then -+ KERNELMICROVER="$(uname -r | awk -F. '{print $3}')" ++ KERNELMICROVER="$(uname -r | sed 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*$/\1/')" + if [ $KERNELMICROVER -lt 27 ] ; then + UDEVD="/sbin/udevd-compat" + UDEVADM="/sbin/udevadm-compat" diff --git a/recipes/udev/udev.inc b/recipes/udev/udev.inc index e6aad4b96d..75020945ba 100644 --- a/recipes/udev/udev.inc +++ b/recipes/udev/udev.inc @@ -14,7 +14,7 @@ SRC_URI = "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \ file://init \ file://udev-compat-wrapper-patch" -INC_PR = "r28" +INC_PR = "r29" inherit update-rc.d autotools pkgconfig diff --git a/recipes/udev/udev_151.bb b/recipes/udev/udev_151.bb index 038fec7055..8423ff4f2b 100644 --- a/recipes/udev/udev_151.bb +++ b/recipes/udev/udev_151.bb @@ -3,7 +3,7 @@ DESCRIPTION = "udev is a daemon which dynamically creates and removes device nod the hotplug package and requires a kernel not older than 2.6.12." LICENSE = "GPLv2+" -PR = "r15" +PR = "r16" # Untested DEFAULT_PREFERENCE = "-1" diff --git a/recipes/udev/udev_154.bb b/recipes/udev/udev_154.bb index 6698566583..e4dc48b332 100644 --- a/recipes/udev/udev_154.bb +++ b/recipes/udev/udev_154.bb @@ -3,7 +3,7 @@ DESCRIPTION = "udev is a daemon which dynamically creates and removes device nod the hotplug package and requires a kernel not older than 2.6.12." LICENSE = "GPLv2+" -PR = "r2" +PR = "r3" # Untested DEFAULT_PREFERENCE = "-1" -- cgit v1.2.3