summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics
diff options
context:
space:
mode:
authorAnuj Mittal <anuj.mittal@intel.com>2019-11-08 15:12:52 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-11-13 22:02:15 +0000
commit3f9476d8dde818ed11559c88183ad77910459345 (patch)
tree09673fce46063a9185ecd9e03dac1b333e21f2b7 /meta/recipes-graphics
parentf3ba167c21e018e854910aafd8a7c3f17bbefb4f (diff)
downloadpoky-3f9476d8dde818ed11559c88183ad77910459345.tar.gz
libsdl2: fix race when building in parallel
(From OE-Core rev: 4e3e8d8270f318e6384c3d9bb5f6c7503f41d736) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r--meta/recipes-graphics/libsdl2/libsdl2/0001-configure-check-for-build-dir-when-building-version-.patch45
-rw-r--r--meta/recipes-graphics/libsdl2/libsdl2_2.0.10.bb1
2 files changed, 46 insertions, 0 deletions
diff --git a/meta/recipes-graphics/libsdl2/libsdl2/0001-configure-check-for-build-dir-when-building-version-.patch b/meta/recipes-graphics/libsdl2/libsdl2/0001-configure-check-for-build-dir-when-building-version-.patch
new file mode 100644
index 0000000000..bba3a6d240
--- /dev/null
+++ b/meta/recipes-graphics/libsdl2/libsdl2/0001-configure-check-for-build-dir-when-building-version-.patch
@@ -0,0 +1,45 @@
1From 6a4cc6d0a53402f646045c2994844237d978f9b5 Mon Sep 17 00:00:00 2001
2From: Anuj Mittal <anuj.mittal@intel.com>
3Date: Fri, 8 Nov 2019 15:07:22 +0800
4Subject: [PATCH] configure: check for build dir when building version res
5
6Fixes a race where we try to build version res file in build directory
7before it has even been created. Prevents errors like:
8
9/bin/bash ../SDL2-2.0.10/build-scripts/updaterev.sh
10/bin/bash ../SDL2-2.0.10/build-scripts/mkinstalldirs build
11mkdir -p -- build
12x86_64-pokysdk-mingw32-windres --include-dir=/home/pokybuild/yocto-worker/meta-mingw/build/build/tmp/work/x86_64-nativesdk-mingw32-pokysdk-mingw32/nativesdk-libsdl2/2.0.10-r0/recipe-sysroot/opt/poky/3.0/sysroots/x86_64-pokysdk-mingw32/usr/include ../SDL2-2.0.10/src/main/windows/version.rc build/version.o
13x86_64-pokysdk-mingw32-windres: build/version.o: No such file or directory
14Makefile:692: recipe for target 'build/version.o' failed
15make: *** [build/version.o] Error 1
16make: *** Waiting for unfinished jobs....
17touch build/.created
18WARNING: exit code 1 from a shell command.
19
20Extension of upstream fix:
21https://hg.libsdl.org/SDL/rev/99d8b18acf8a
22
23Upstream-Status: Pending
24
25Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
26---
27 configure.ac | 2 +-
28 1 file changed, 1 insertion(+), 1 deletion(-)
29
30diff --git a/configure.ac b/configure.ac
31index 1aea11fbd..186229ab0 100644
32--- a/configure.ac
33+++ b/configure.ac
34@@ -4177,7 +4177,7 @@ VERSION_OBJECTS=`echo $VERSION_SOURCES`
35 VERSION_DEPENDS=`echo $VERSION_SOURCES`
36 VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.rc,$(objects)/\1.o,g'`
37 VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.rc,\\\\
38-\\$(objects)/\\2.o: \\1/\\2.rc\\\\
39+\\$(objects)/\\2.o: \\1/\\2.rc \\$(objects)/.created\\\\
40 \\$(WINDRES) \\$< \\$@,g"`
41
42 SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
43--
442.21.0
45
diff --git a/meta/recipes-graphics/libsdl2/libsdl2_2.0.10.bb b/meta/recipes-graphics/libsdl2/libsdl2_2.0.10.bb
index cdc8650e17..ab514f0533 100644
--- a/meta/recipes-graphics/libsdl2/libsdl2_2.0.10.bb
+++ b/meta/recipes-graphics/libsdl2/libsdl2_2.0.10.bb
@@ -15,6 +15,7 @@ PROVIDES = "virtual/libsdl2"
15SRC_URI = "http://www.libsdl.org/release/SDL2-${PV}.tar.gz \ 15SRC_URI = "http://www.libsdl.org/release/SDL2-${PV}.tar.gz \
16 file://more-gen-depends.patch \ 16 file://more-gen-depends.patch \
17 file://0001-Fixed-bug-4538-validate-image-size-when-loading-BMP-.patch \ 17 file://0001-Fixed-bug-4538-validate-image-size-when-loading-BMP-.patch \
18 file://0001-configure-check-for-build-dir-when-building-version-.patch \
18" 19"
19 20
20S = "${WORKDIR}/SDL2-${PV}" 21S = "${WORKDIR}/SDL2-${PV}"