diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-05-03 11:28:22 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-05-05 22:14:08 +0100 |
commit | 8848517fb4c81b9e9cfc985dd20b9baf374764c0 (patch) | |
tree | 2f4c12e419b8c32359ecc72abe95324d6d4235cb /meta/recipes-graphics/directfb | |
parent | 9484fb04c0ed8b3e08c6773662dc7a0f01cb39a8 (diff) | |
download | openembedded-core-8848517fb4c81b9e9cfc985dd20b9baf374764c0.tar.gz openembedded-core-8848517fb4c81b9e9cfc985dd20b9baf374764c0.tar.bz2 openembedded-core-8848517fb4c81b9e9cfc985dd20b9baf374764c0.zip |
directfb: Correct bashism
Fix builds of directfb on systems with dash as /bin/sh
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/directfb')
-rw-r--r-- | meta/recipes-graphics/directfb/directfb.inc | 3 | ||||
-rw-r--r-- | meta/recipes-graphics/directfb/directfb/bashism.patch | 18 |
2 files changed, 20 insertions, 1 deletions
diff --git a/meta/recipes-graphics/directfb/directfb.inc b/meta/recipes-graphics/directfb/directfb.inc index e863b12094..4fbca878ef 100644 --- a/meta/recipes-graphics/directfb/directfb.inc +++ b/meta/recipes-graphics/directfb/directfb.inc @@ -13,7 +13,8 @@ DEPENDS = "jpeg libpng freetype zlib tslib sysfsutils" SRC_URI = "http://www.directfb.org/downloads/Core/DirectFB-1.7/DirectFB-${PV}.tar.gz \ file://configurefix.patch \ - file://fusion.patch" + file://fusion.patch \ + file://bashism.patch" S = "${WORKDIR}/DirectFB-${PV}" diff --git a/meta/recipes-graphics/directfb/directfb/bashism.patch b/meta/recipes-graphics/directfb/directfb/bashism.patch new file mode 100644 index 0000000000..2ef4e93853 --- /dev/null +++ b/meta/recipes-graphics/directfb/directfb/bashism.patch @@ -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" |