Skip to contentSkip to conversation

mesa: fix build race on src/intel/vulkan

PATCH In review Ross Burton 3 participants 4 messages Jul 12, 2017 – Jul 14, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mesa: fix build race on src/intel/vulkan

It's possible that src/intel/vulkcan can be written into by sed before it has been created, so add the required mkdir calls.

---
 .../recipes-graphics/mesa/files/vulkan-mkdir.patch | 37 ++++++++++++++++++++++
 meta/recipes-graphics/mesa/mesa_17.1.4.bb          |  1 +
 2 files changed, 38 insertions(+)
 create mode 100644 meta/recipes-graphics/mesa/files/vulkan-mkdir.patch
meta/recipes-graphics/mesa/files/vulkan-mkdir.patch new file +37 -0
new file mode 100644
index 00000000000..15ee5eeb14c
@@ -0,0 +1,37 @@
+Upstream-Status: Submitted
+Signed-off-by: Ross Burton <[email protected]>
+
+From c78979fd95a1c4f732f7e6edf0f32c524e5955b8 Mon Sep 17 00:00:00 2001
+From: Ross Burton <[email protected]>
+Date: Wed, 12 Jul 2017 17:10:07 +0100
+Subject: [PATCH] src/intel/Makefile.vulkan.am: create target directories when
+ required
+
+In out-of-tree builds src/intel/vulkan won't exist, so always create it before
+writing into it.
+
+Signed-off-by: Ross Burton <[email protected]>
+---
+ src/intel/Makefile.vulkan.am | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/intel/Makefile.vulkan.am b/src/intel/Makefile.vulkan.am
+index 3857a5dc62..26e9cd410c 100644
+--- a/src/intel/Makefile.vulkan.am
++++ b/src/intel/Makefile.vulkan.am
+@@ -44,11 +44,13 @@ EXTRA_DIST += \
+ 	vulkan/TODO
+ 
+ vulkan/dev_icd.json : vulkan/dev_icd.json.in
++	$(MKDIR_GEN)
+ 	$(AM_V_GEN) $(SED) \
+ 		-e "s#@build_libdir@#${abs_top_builddir}/${LIB_DIR}#" \
+ 		< $(srcdir)/vulkan/dev_icd.json.in > $@
+ 
+ vulkan/intel_icd.@[email protected] : vulkan/intel_icd.json.in
++	$(MKDIR_GEN)
+ 	$(AM_V_GEN) $(SED) \
+ 		-e "s#@install_libdir@#${libdir}#" \
+ 		< $(srcdir)/vulkan/intel_icd.json.in > $@
+-- 
+2.11.0
meta/recipes-graphics/mesa/mesa_17.1.4.bb +1 -0
index 2257045c42c..f0b634a045b 100644
@@ -7,6 +7,7 @@ SRC_URI = "https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \
            file://0001-Use-wayland-scanner-in-the-path.patch \
            file://0002-hardware-gloat.patch \
            file://0001-mapi-Only-install-khrplatform.h-with-EGL-or-GLES.patch \
+           file://vulkan-mkdir.patch \
 "
 
 SRC_URI[md5sum] = "be2ef7c9edec23b07f74f6512a6a6fa5"
Signature · 1 line
2.11.0
#1 lore raw

✗ patchtest: failure for mesa: fix build race on src/intel/vulkan

== Series Details ==

Series: mesa: fix build race on src/intel/vulkan
Revision: 1
URL : https://patchwork.openembedded.org/series/7715/
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 b1c4661742)

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
#2 lore raw
In reply to Ross Burton
Quoted 4 lines · Ross Burton

It's possible that src/intel/vulkcan can be written into by sed before it has been created, so add the required mkdir calls.

Has this been send to upstream? Upstream-Status?

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#3 lore raw

The second sob is from the patch I sent upstream. The first two lines of the patch header are the OE ones:

+++ b/meta/recipes-graphics/mesa/files/vulkan-mkdir.patch @@ -0,0 +1,37 @@
+Upstream-Status: Submitted
+Signed-off-by: Ross Burton <[email protected]>

Ross

Quoted 16 lines · Otavio Salvador
Quoted 1 line · Ross Burton

It's possible that src/intel/vulkcan can be written into by sed before

it has

Quoted 3 lines

been created, so add the required mkdir calls.

Has this been send to upstream? Upstream-Status?

--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750