diff options
| author | Khem Raj <raj.khem@gmail.com> | 2019-11-04 16:43:51 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2019-11-06 06:32:14 -0800 |
| commit | a9ebc44571dcfaaddc6255b07ed0141ba40f6b69 (patch) | |
| tree | 020f4f8056c0f0951e9e3f1fbe67f31a2e341a32 /meta-oe | |
| parent | 3fc72e6efd71b414a833d4e7f4fb2c5e0b4f8189 (diff) | |
| download | meta-openembedded-a9ebc44571dcfaaddc6255b07ed0141ba40f6b69.tar.gz | |
iwd: Fix build race during documentation build
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe')
| -rw-r--r-- | meta-oe/recipes-connectivity/iwd/iwd/0001-Makefile.am-Avoid-redirection-of-input-and-output-fi.patch | 40 | ||||
| -rw-r--r-- | meta-oe/recipes-connectivity/iwd/iwd_1.0.bb | 4 |
2 files changed, 43 insertions, 1 deletions
diff --git a/meta-oe/recipes-connectivity/iwd/iwd/0001-Makefile.am-Avoid-redirection-of-input-and-output-fi.patch b/meta-oe/recipes-connectivity/iwd/iwd/0001-Makefile.am-Avoid-redirection-of-input-and-output-fi.patch new file mode 100644 index 0000000000..93ef007f86 --- /dev/null +++ b/meta-oe/recipes-connectivity/iwd/iwd/0001-Makefile.am-Avoid-redirection-of-input-and-output-fi.patch | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | From f2a2b9f445ab1e31fbb27a74744e9a2ededfce17 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Mon, 4 Nov 2019 16:38:04 -0800 | ||
| 4 | Subject: [PATCH] Makefile.am: Avoid redirection of input and output files | ||
| 5 | |||
| 6 | Ensure that directory is created before its written to | ||
| 7 | |||
| 8 | This can cause a build race in a highly parallelised build where a directory is not yet created but | ||
| 9 | output file is being written using redirection e.g. | ||
| 10 | |||
| 11 | rst2man.py --strict --no-raw --no-generator --no-datestamp < ../git/monitor/iwmon.rst > monitor/iwmon.1 | ||
| 12 | /bin/sh: monitor/iwmon.1: No such file or directory | ||
| 13 | make[1]: *** [Makefile:3544: monitor/iwmon.1] Error 1 | ||
| 14 | |||
| 15 | Upstream-Status: Pending | ||
| 16 | |||
| 17 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 18 | --- | ||
| 19 | Makefile.am | 5 +++-- | ||
| 20 | 1 file changed, 3 insertions(+), 2 deletions(-) | ||
| 21 | |||
| 22 | diff --git a/Makefile.am b/Makefile.am | ||
| 23 | index 823b7d02..1bd0005c 100644 | ||
| 24 | --- a/Makefile.am | ||
| 25 | +++ b/Makefile.am | ||
| 26 | @@ -626,8 +626,9 @@ SED_PROCESS = $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \ | ||
| 27 | < $< > $@ | ||
| 28 | |||
| 29 | if RUN_RST2MAN | ||
| 30 | -RST2MAN_PROCESS = $(AM_V_GEN)$(RST2MAN) --strict --no-raw --no-generator \ | ||
| 31 | - --no-datestamp < $< > $@ | ||
| 32 | +RST2MAN_PROCESS = $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ | ||
| 33 | + $(AM_V_GEN)$(RST2MAN) --strict --no-raw \ | ||
| 34 | + --no-generator --no-datestamp $< $@ | ||
| 35 | else | ||
| 36 | RST2MAN_PROCESS = $(AM_V_GEN)test -f $@ || \ | ||
| 37 | { echo "Generated manual page $@ does not exist"; false; } | ||
| 38 | -- | ||
| 39 | 2.24.0 | ||
| 40 | |||
diff --git a/meta-oe/recipes-connectivity/iwd/iwd_1.0.bb b/meta-oe/recipes-connectivity/iwd/iwd_1.0.bb index 81260cc020..d11e0d4ae3 100644 --- a/meta-oe/recipes-connectivity/iwd/iwd_1.0.bb +++ b/meta-oe/recipes-connectivity/iwd/iwd_1.0.bb | |||
| @@ -6,7 +6,9 @@ inherit autotools pkgconfig systemd python3native | |||
| 6 | 6 | ||
| 7 | DEPENDS = "ell readline dbus python3-docutils-native" | 7 | DEPENDS = "ell readline dbus python3-docutils-native" |
| 8 | 8 | ||
| 9 | SRC_URI = "git://git.kernel.org/pub/scm/network/wireless/iwd.git" | 9 | SRC_URI = "git://git.kernel.org/pub/scm/network/wireless/iwd.git \ |
| 10 | file://0001-Makefile.am-Avoid-redirection-of-input-and-output-fi.patch \ | ||
| 11 | " | ||
| 10 | SRCREV = "971e1d2038a203ad43bd2278a811a9e5ec8d52db" | 12 | SRCREV = "971e1d2038a203ad43bd2278a811a9e5ec8d52db" |
| 11 | S = "${WORKDIR}/git" | 13 | S = "${WORKDIR}/git" |
| 12 | 14 | ||
