[oe] [PATCH] udev-141: avoid using full path when linking udev rules.d

Ricardo Salveti de Araujo ricardo.salveti at openbossa.org
Mon Nov 23 19:01:13 UTC 2009


When it's directly linked to ${sysconfdir}/udev/rules.d dpkg will fail when
unpacking Network Manager, as it'll try to extract files over this directory
and the link will be pointing to the main host files.

Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti at openbossa.org>
---
 recipes/udev/udev_141.bb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/recipes/udev/udev_141.bb b/recipes/udev/udev_141.bb
index b54b059..1ebfccb 100644
--- a/recipes/udev/udev_141.bb
+++ b/recipes/udev/udev_141.bb
@@ -6,7 +6,7 @@ LICENSE = "GPL"
 # Untested
 DEFAULT_PREFERENCE = "-1"
 
-PR = "r15"
+PR = "r16"
 
 # needed for init.d script
 RDEPENDS_${PN} += "udev-utils"
@@ -70,7 +70,7 @@ do_install () {
 	# This is hardcoded to $(udev_prefix)/lib/udev/rules.d in the
 	# Makefile, even if libdir is lib64.
 	mv ${D}/lib/udev/rules.d ${D}${sysconfdir}/udev/
-	ln -sf ${sysconfdir}/udev/rules.d ${D}/lib/udev/
+	ln -sf ../../${sysconfdir}/udev/rules.d ${D}/lib/udev/
 
  	cp ${S}/rules/rules.d/* ${D}${sysconfdir}/udev/rules.d/
 	cp ${S}/rules/packages/* ${D}${sysconfdir}/udev/rules.d/
-- 
1.6.5





More information about the Openembedded-devel mailing list