Skip to contentSkip to conversation

kconfig-frontends: fix build race

PATCH In review Ross Burton 2 participants 2 messages May 9, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kconfig-frontends: fix build race

In parallel builds utils/kconfig-tweak may be written to before utils/ exists, so add a mkdir.

Also mark the pkgconfig patch as Submitted as I sent that upstream at the same time.

---
 .../files/0001-Fix-installation-of-.pc-files.patch |  3 +-
 .../kconfig-frontends/files/missing-mkdir.patch    | 33 ++++++++++++++++++++++
 .../kconfig-frontends_4.10.0.1.bb                  |  3 +-
 3 files changed, 36 insertions(+), 3 deletions(-)
 create mode 100644 meta/recipes-devtools/kconfig-frontends/files/missing-mkdir.patch
meta/recipes-devtools/kconfig-frontends/files/0001-Fix-installation-of-.pc-files.patch +1 -2
index e9195a0..57ea42e 100644
@@ -5,7 +5,7 @@ Subject: [PATCH] Fix installation of .pc files
 
 They go to prefix/pkgconfig/, not prefix/pkg-config.
 
-Upstream-Status: Pending
+Upstream-Status: Submitted
 Signed-off-by: Alexander Kanavin <[email protected]>
 ---
  Makefile.am | 2 +-
@@ -26,4 +26,3 @@ index 058690a..f9e9b7b 100644
  EXTRA_DIST += libs/parser/kconfig-parser.pc.in
 -- 
 2.11.0
-
meta/recipes-devtools/kconfig-frontends/files/missing-mkdir.patch new file +33 -0
new file mode 100644
index 0000000..a06a547
@@ -0,0 +1,33 @@
+Upstream-Status: Submitted
+Signed-off-by: Ross Burton <[email protected]>
+
+From ca05ee2fb6db5b3b1edc16dba6150a2c6078a6cf Mon Sep 17 00:00:00 2001
+From: Ross Burton <[email protected]>
+Date: Tue, 9 May 2017 15:30:00 +0100
+Subject: [PATCH] Makefile: ensure utils/ exists before writing to it
+
+Since utils/ was changed to not build recursively it's possible that in
+out-of-tree builds the utils/ directory hasn't been created when Make runs the
+utils/kconfig-tweak target which tries to write to file inside utils/.
+
+To ensure this can work, mkdir the directory.
+
+Signed-off-by: Ross Burton <[email protected]>
+---
+ Makefile.am | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/Makefile.am b/Makefile.am
+index c8e96ef..1baa110 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -348,6 +348,7 @@ EXTRA_DIST += \
+ 	utils/kconfig-tweak.in.patch
+ 
+ utils/kconfig-tweak: utils/kconfig-tweak.in
++	$(MKDIR_P) $(@D)
+ 	$(AM_V_GEN)$(SED) -e "s/@CONFIG_@/$(config_prefix)/g" \
+ 		$< >$@
+ 	@chmod +x $@
+-- 
+2.8.1
meta/recipes-devtools/kconfig-frontends/kconfig-frontends_4.10.0.1.bb +2 -1
index be90d6b..d427e98 100644
@@ -15,7 +15,8 @@ DEPENDS += "ncurses flex bison gperf-native"
 RDEPENDS_${PN} += "python3 bash"
 SRC_URI = "git://ymorin.is-a-geek.org/kconfig-frontends;branch=4.10.x \
            file://0001-Fix-installation-of-.pc-files.patch \
-           file://0001-Switch-utils-kconfig-diff-to-use-Python-3.patch"
+           file://0001-Switch-utils-kconfig-diff-to-use-Python-3.patch \
+           file://missing-mkdir.patch"
 
 SRCREV = "f8ffe5e1c6f183cb7d5d515aa9381b7557de654e"
 
Signature · 1 line
2.8.1
#1 lore raw

✗ patchtest: failure for kconfig-frontends: fix build race

== Series Details ==

Series: kconfig-frontends: fix build race
Revision: 1
URL : https://patchwork.openembedded.org/series/6651/
State : failure

== Summary ==

Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been executed on the proposed series by patchtest resulting in the following failures:

* Issue Series does not apply on top of target branch [test_series_merge_on_head]
Suggested fix Rebase your series on top of targeted branch
Targeted branch master (currently at 1239620182)

If you believe any of these test results are incorrect, please reply to the mailing list ([email protected]) raising your concerns. Otherwise we would appreciate you correcting the issues and submitting a new version of the patchset if applicable. Please ensure you add/increment the version number when sending the new version (i.e. [PATCH] -> [PATCH v2] -> [PATCH v3] -> ...).

---

Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite:     http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe