Patchwork [13/16] directfb: Fix case where ${B} != ${S}

login
register
mail settings
Submitter Richard Purdie
Date March 21, 2013, 3:55 p.m.
Message ID <1363881315-24352-13-git-send-email-richard.purdie@linuxfoundation.org>
Download mbox | patch
Permalink /patch/46637/
State Accepted
Commit 15d7fe81bf3c52a14bfdd6a8a854836c8571e14f
Headers show

Comments

Richard Purdie - March 21, 2013, 3:55 p.m.
Add patch to allow out of tree builds to work.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 .../directfb/directfb/fixsepbuild.patch             |   19 +++++++++++++++++++
 meta/recipes-graphics/directfb/directfb_1.6.1.bb    |    3 ++-
 2 files changed, 21 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-graphics/directfb/directfb/fixsepbuild.patch

Patch

diff --git a/meta/recipes-graphics/directfb/directfb/fixsepbuild.patch b/meta/recipes-graphics/directfb/directfb/fixsepbuild.patch
new file mode 100644
index 0000000..94a9ba5
--- /dev/null
+++ b/meta/recipes-graphics/directfb/directfb/fixsepbuild.patch
@@ -0,0 +1,19 @@ 
+Fix out of tree builds
+
+Upstream-Status: Pending
+
+RP 2013/03/21
+
+Index: DirectFB-1.6.1/configure.in
+===================================================================
+--- DirectFB-1.6.1.orig/configure.in	2013-03-19 01:38:28.174004720 +0000
++++ DirectFB-1.6.1/configure.in	2013-03-21 12:18:10.253113675 +0000
+@@ -111,7 +111,7 @@
+ AC_PATH_TOOL(FLUXCOMP, fluxcomp)
+ AC_SUBST(FLUXCOMP)
+ if test -z "$FLUXCOMP"; then
+-  if ! test -e src/core/CoreDFB.cpp; then
++  if ! test -e $srcdir/src/core/CoreDFB.cpp; then
+     AC_MSG_ERROR([
+ *** DirectFB compilation requires fluxcomp ***
+ 
diff --git a/meta/recipes-graphics/directfb/directfb_1.6.1.bb b/meta/recipes-graphics/directfb/directfb_1.6.1.bb
index 6c48a86..1230d12 100644
--- a/meta/recipes-graphics/directfb/directfb_1.6.1.bb
+++ b/meta/recipes-graphics/directfb/directfb_1.6.1.bb
@@ -6,7 +6,8 @@  PR = "${INC_PR}.2"
 DEPENDS += "sysfsutils"
 
 SRC_URI += "file://fix-compilation-with-zlib.patch \
-            file://rename-no-instrument-function-macro.patch"
+            file://rename-no-instrument-function-macro.patch \
+            file://fixsepbuild.patch"
 
 EXTRA_OECONF = "\
   --enable-freetype=yes \