quilt: move empty quiltrc to native sysconfdir
authorSaul Wold <sgw@linux.intel.com>
Thu, 19 Apr 2012 22:11:01 +0000 (15:11 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Apr 2012 09:05:11 +0000 (10:05 +0100)
patch.bbclass orignally pointed at /usr/bin/quiltrc for an empty
version to ensure that no user setting were picked up, change this
to /etc/quiltrc in the Native sysroot since we now have a native
sysconfdir.

Make sure that the quiltrc is actually installed in the Native
sysconfdir, not the target, so fix this after the recipe split.

(From OE-Core rev: 1af73900cea82e63fb0f94e6f057144f723146ec)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/patch.bbclass
meta/recipes-devtools/quilt/quilt-0.51.inc
meta/recipes-devtools/quilt/quilt-native.inc
meta/recipes-devtools/quilt/quilt-native_0.51.bb
meta/recipes-devtools/quilt/quilt_0.51.bb

index 31db9e3..3c4d997 100644 (file)
@@ -1,7 +1,7 @@
 # Copyright (C) 2006  OpenedHand LTD
 
 # Point to an empty file so any user's custom settings don't break things
-QUILTRCFILE ?= "${STAGING_BINDIR_NATIVE}/quiltrc"
+QUILTRCFILE ?= "${STAGING_ETCDIR_NATIVE}/quiltrc"
 
 PATCHDEPENDENCY = "${PATCHTOOL}-native:do_populate_sysroot"
 
index e89013a..824e624 100644 (file)
@@ -24,11 +24,6 @@ RDEPENDS_${PN} = "bash"
 # quilt ignores DESTDIR
 do_install () {
        oe_runmake 'BUILD_ROOT=${D}' install
-       if [ "${BUILD_ARCH}" == "${HOST_ARCH}" ]; then
-               # Dummy quiltrc file for patch.bbclass
-               install -d ${D}${bindir}/
-               touch ${D}${bindir}/quiltrc
-       fi
        # cleanup unpackaged files
        rm -rf ${D}/${datadir}/emacs
 }
index 7efea02..9345d88 100644 (file)
@@ -11,3 +11,9 @@ EXTRA_OECONF = "--disable-nls"
 do_configure () {
        oe_runconf
 }
+
+do_install_append () {
+       # Dummy quiltrc file for patch.bbclass
+       install -d ${D}${sysconfdir}/
+       touch ${D}${sysconfdir}/quiltrc
+}
index bc62161..6865cd8 100644 (file)
@@ -4,4 +4,4 @@ RDEPENDS_${PN} += "patch diffstat bzip2 util-linux"
 SRC_URI += "file://aclocal.patch \
             file://gnu_patch_test_fix_target.patch \
            "
-PR = "r2"
+PR = "r3"