From: Dan McGregor Date: Mon, 12 May 2014 16:30:46 +0000 (-0600) Subject: netcat-openbsd: fixup patching X-Git-Tag: rev_ivi_2015_02_04~1991 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9baf7addc35891d5aa8ef51310bfe37517c137fc;p=scm%2Fbb%2Ftizen-distro.git netcat-openbsd: fixup patching Do the patching in the do_patch phase instead of the compile phase. That way if the compile phase needs to be rerun patching isn't attempted a second time. (From meta-openembedded rev: 4ae3822224cd78c73c3af25a137e0672278d276f) Signed-off-by: Dan McGregor Signed-off-by: Joe MacDonald Signed-off-by: Patrick Ohly --- diff --git a/meta-openembedded/meta-networking/recipes-support/netcat/netcat-openbsd_1.105.bb b/meta-openembedded/meta-networking/recipes-support/netcat/netcat-openbsd_1.105.bb index 4474e1d..4237dc4 100644 --- a/meta-openembedded/meta-networking/recipes-support/netcat/netcat-openbsd_1.105.bb +++ b/meta-openembedded/meta-networking/recipes-support/netcat/netcat-openbsd_1.105.bb @@ -17,9 +17,18 @@ S = "${WORKDIR}/${BPN}-${PV}" do_configure[noexec] = "1" -do_compile() { +netcat_do_patch() { cd ${S} while read line; do patch -p1 < ${WORKDIR}/debian/patches/$line; done < ${WORKDIR}/debian/patches/series +} + +python do_patch() { + bb.build.exec_func('netcat_do_patch', d) + bb.build.exec_func('patch_do_patch', d) +} + +do_compile() { + cd ${S} pkgrel=4 oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\"" }