* [meta-networking][PATCH] netcat-openbsd: fixup patching
@ 2014-05-12 16:30 Dan McGregor
2014-06-04 1:43 ` Joe MacDonald
0 siblings, 1 reply; 2+ messages in thread
From: Dan McGregor @ 2014-05-12 16:30 UTC (permalink / raw)
To: openembedded-devel
From: Dan McGregor <dan.mcgregor@usask.ca>
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.
Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
---
.../recipes-support/netcat/netcat-openbsd_1.105.bb | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/meta-networking/recipes-support/netcat/netcat-openbsd_1.105.bb
b/meta-networking/recipes-support/netcat/netcat-openbsd_1.105.bb
index 4474e1d..4489656 100644
--- a/meta-networking/recipes-support/netcat/netcat-openbsd_1.105.bb
+++ b/meta-networking/recipes-support/netcat/netcat-openbsd_1.105.bb
@@ -15,11 +15,20 @@ SRC_URI[netcat-patch.sha256sum] =
"eee759327ffea293e81d0dde67921b7fcfcad279ffd7a
S = "${WORKDIR}/${BPN}-${PV}"
+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_configure[noexec] = "1"
do_compile() {
cd ${S}
- while read line; do patch -p1 < ${WORKDIR}/debian/patches/$line;
done < ${WORKDIR}/debian/patches/series
pkgrel=4
oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""
}
--
1.9.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [meta-networking][PATCH] netcat-openbsd: fixup patching
2014-05-12 16:30 [meta-networking][PATCH] netcat-openbsd: fixup patching Dan McGregor
@ 2014-06-04 1:43 ` Joe MacDonald
0 siblings, 0 replies; 2+ messages in thread
From: Joe MacDonald @ 2014-06-04 1:43 UTC (permalink / raw)
To: openembedded-devel
Merged, sorry for the excessive delay on this.
-J.
On Mon, May 12, 2014 at 12:30 PM, Dan McGregor
<danismostlikely@gmail.com> wrote:
> From: Dan McGregor <dan.mcgregor@usask.ca>
>
> 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.
>
> Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
> ---
> .../recipes-support/netcat/netcat-openbsd_1.105.bb | 11 ++++++++++-
> 1 file changed, 10 insertions(+), 1 deletion(-)
>
> diff --git a/meta-networking/recipes-support/netcat/netcat-openbsd_1.105.bb
> b/meta-networking/recipes-support/netcat/netcat-openbsd_1.105.bb
> index 4474e1d..4489656 100644
> --- a/meta-networking/recipes-support/netcat/netcat-openbsd_1.105.bb
> +++ b/meta-networking/recipes-support/netcat/netcat-openbsd_1.105.bb
> @@ -15,11 +15,20 @@ SRC_URI[netcat-patch.sha256sum] =
> "eee759327ffea293e81d0dde67921b7fcfcad279ffd7a
>
> S = "${WORKDIR}/${BPN}-${PV}"
>
> +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_configure[noexec] = "1"
>
> do_compile() {
> cd ${S}
> - while read line; do patch -p1 < ${WORKDIR}/debian/patches/$line;
> done < ${WORKDIR}/debian/patches/series
> pkgrel=4
> oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""
> }
> --
> 1.9.0
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
Joe MacDonald
:wq
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-04 1:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-12 16:30 [meta-networking][PATCH] netcat-openbsd: fixup patching Dan McGregor
2014-06-04 1:43 ` Joe MacDonald
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.