mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-09 04:11:16 +00:00
iwd: Fix build race during documentation build
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
+40
@@ -0,0 +1,40 @@
|
|||||||
|
From f2a2b9f445ab1e31fbb27a74744e9a2ededfce17 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Khem Raj <raj.khem@gmail.com>
|
||||||
|
Date: Mon, 4 Nov 2019 16:38:04 -0800
|
||||||
|
Subject: [PATCH] Makefile.am: Avoid redirection of input and output files
|
||||||
|
|
||||||
|
Ensure that directory is created before its written to
|
||||||
|
|
||||||
|
This can cause a build race in a highly parallelised build where a directory is not yet created but
|
||||||
|
output file is being written using redirection e.g.
|
||||||
|
|
||||||
|
rst2man.py --strict --no-raw --no-generator --no-datestamp < ../git/monitor/iwmon.rst > monitor/iwmon.1
|
||||||
|
/bin/sh: monitor/iwmon.1: No such file or directory
|
||||||
|
make[1]: *** [Makefile:3544: monitor/iwmon.1] Error 1
|
||||||
|
|
||||||
|
Upstream-Status: Pending
|
||||||
|
|
||||||
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||||
|
---
|
||||||
|
Makefile.am | 5 +++--
|
||||||
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/Makefile.am b/Makefile.am
|
||||||
|
index 823b7d02..1bd0005c 100644
|
||||||
|
--- a/Makefile.am
|
||||||
|
+++ b/Makefile.am
|
||||||
|
@@ -626,8 +626,9 @@ SED_PROCESS = $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \
|
||||||
|
< $< > $@
|
||||||
|
|
||||||
|
if RUN_RST2MAN
|
||||||
|
-RST2MAN_PROCESS = $(AM_V_GEN)$(RST2MAN) --strict --no-raw --no-generator \
|
||||||
|
- --no-datestamp < $< > $@
|
||||||
|
+RST2MAN_PROCESS = $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
|
||||||
|
+ $(AM_V_GEN)$(RST2MAN) --strict --no-raw \
|
||||||
|
+ --no-generator --no-datestamp $< $@
|
||||||
|
else
|
||||||
|
RST2MAN_PROCESS = $(AM_V_GEN)test -f $@ || \
|
||||||
|
{ echo "Generated manual page $@ does not exist"; false; }
|
||||||
|
--
|
||||||
|
2.24.0
|
||||||
|
|
||||||
@@ -6,7 +6,9 @@ inherit autotools pkgconfig systemd python3native
|
|||||||
|
|
||||||
DEPENDS = "ell readline dbus python3-docutils-native"
|
DEPENDS = "ell readline dbus python3-docutils-native"
|
||||||
|
|
||||||
SRC_URI = "git://git.kernel.org/pub/scm/network/wireless/iwd.git"
|
SRC_URI = "git://git.kernel.org/pub/scm/network/wireless/iwd.git \
|
||||||
|
file://0001-Makefile.am-Avoid-redirection-of-input-and-output-fi.patch \
|
||||||
|
"
|
||||||
SRCREV = "971e1d2038a203ad43bd2278a811a9e5ec8d52db"
|
SRCREV = "971e1d2038a203ad43bd2278a811a9e5ec8d52db"
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user