Commit 4ae38222 authored by Dan McGregor's avatar Dan McGregor Committed by Joe MacDonald

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.
Signed-off-by: default avatarDan McGregor <>
Signed-off-by: default avatarJoe MacDonald <>
parent 7734132d
......@@ -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() {'netcat_do_patch', d)'patch_do_patch', d)
do_compile() {
cd ${S}
oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment