]> pilppa.com Git - familiar-h63xx-build.git/commitdiff
ipkg-utils-native: allow dangling symlinks as conffile (/etc/resolv.conf)
authorRene Wagner <rw@handhelds.org>
Wed, 16 Aug 2006 12:51:09 +0000 (14:51 +0200)
committerRene Wagner <rw@handhelds.org>
Wed, 16 Aug 2006 12:51:09 +0000 (14:51 +0200)
Signed-off-by: Rene Wagner <rw@handhelds.org>
org.handhelds.familiar/packages/ipkg-utils/files/dangling-symlinks.patch [new file with mode: 0644]
org.handhelds.familiar/packages/ipkg-utils/ipkg-utils-native_1.6cvs.bb

diff --git a/org.handhelds.familiar/packages/ipkg-utils/files/dangling-symlinks.patch b/org.handhelds.familiar/packages/ipkg-utils/files/dangling-symlinks.patch
new file mode 100644 (file)
index 0000000..a73c6ea
--- /dev/null
@@ -0,0 +1,11 @@
+--- bin/ipkg-build.orig        2006-08-16 13:08:22.000000000 +0200
++++ bin/ipkg-build     2006-08-16 13:08:25.000000000 +0200
+@@ -141,7 +141,7 @@
+       if [ -f $CONTROL/conffiles ]; then
+               for cf in `cat $CONTROL/conffiles`; do
+-                      if [ ! -f ./$cf ]; then
++                      if [ ! -L ./$cf -a ! -f ./$cf ]; then
+                               echo "*** Error: $CONTROL/conffiles mentions conffile $cf which does not exist" >&2
+                               PKG_ERROR=1
+                       fi
index 2506dbab6209fa24a1123fc09b56cfeee39dd628..42857db909835cca84d22c5e2b72a908dbce556a 100644 (file)
@@ -1,9 +1,11 @@
 SECTION = "base"
 include ipkg-utils_${PV}.bb
-PR = "r4"
+PR = "r5"
 inherit native
 DEPENDS = ""
 
+SRC_URI += "file://dangling-symlinks.patch;patch=1"
+
 do_stage() {
         for i in ${INSTALL}; do
                 install -m 0755 $i ${STAGING_BINDIR}