samba: Switch to patchdir rather than applying in do_configure
authorTom Rini <tom_rini@mentor.com>
Thu, 31 Mar 2011 17:20:42 +0000 (10:20 -0700)
committerTom Rini <tom_rini@mentor.com>
Thu, 31 Mar 2011 17:22:44 +0000 (10:22 -0700)
Signed-off-by: Tom Rini <tom_rini@mentor.com>
recipes/samba/samba_3.5.6.bb

index 72bada9..7b82849 100644 (file)
@@ -10,7 +10,7 @@ S = "${WORKDIR}/samba-${PV}/source3"
 DEFAULT_PREFERENCE = "-1"
 
 SRC_URI += "file://config-h.patch \
-            file://tdbheaderfix.patch;apply=no"
+            file://tdbheaderfix.patch;patchdir=.."
 
 PR = "r0"
 
@@ -27,11 +27,6 @@ EXTRA_OECONF += "\
        "
 
 do_configure() {
-       # Patches we must apply by hand due to layout.
-       cd ..
-       patch -p1 -i ${WORKDIR}/tdbheaderfix.patch
-       cd source3
-
        oe_runconf
 }