]> code.ossystems Code Review - meta-freescale.git/commitdiff
directfb: Correct bashism
authorOtavio Salvador <otavio@ossystems.com.br>
Thu, 11 Jun 2015 16:57:02 +0000 (13:57 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Thu, 11 Jun 2015 17:01:27 +0000 (14:01 -0300)
Fix builds of directfb on systems with dash as /bin/sh

Change-Id: Idf5e208c8ac75f4c6251f9f5b0db317f91c42de5
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
meta-fsl-arm/recipes-graphics/directfb/directfb/bashism.patch [new file with mode: 0644]

diff --git a/meta-fsl-arm/recipes-graphics/directfb/directfb/bashism.patch b/meta-fsl-arm/recipes-graphics/directfb/directfb/bashism.patch
new file mode 100644 (file)
index 0000000..2ef4e93
--- /dev/null
@@ -0,0 +1,18 @@
+${x//y/} is a bash syntax. Replace with something dash compatible
+
+RP 2015/5/3
+Upstream-Status: Pending
+
+Index: DirectFB-1.7.7/configure.in
+===================================================================
+--- DirectFB-1.7.7.orig/configure.in
++++ DirectFB-1.7.7/configure.in
+@@ -2696,7 +2696,7 @@ AM_CONDITIONAL(BUILD_TOOLS, test "$with_
+ AM_CONDITIONAL(CROSS_COMPILING, test "$cross_compiling" = "yes")
+ CFLAGS="$CFLAGS $DFB_INTERNAL_CFLAGS"
+-CXXFLAGS="$CXXFLAGS ${CFLAGS//-Werror-implicit-function-declaration/}"
++CXXFLAGS="$CXXFLAGS $(printf '%s\n' "$CFLAGS" | sed 's/-Werror-implicit-function-declaration//g')"
+ DFB_LDFLAGS="$LDFLAGS $ZLIB_LIBS"
+ CFLAGS="$CFLAGS $CFLAGS_STD"