Patchwork [meta-oe,11/12] libetpan: fix build with B!=S

login
register
mail settings
Submitter Martin Jansa
Date June 21, 2014, 9:19 a.m.
Message ID <1403342349-11180-11-git-send-email-Martin.Jansa@gmail.com>
Download mbox | patch
Permalink /patch/74199/
State Accepted, archived
Headers show

Comments

Martin Jansa - June 21, 2014, 9:19 a.m.
From: Richard Purdie <richard.purdie@linuxfoundation.org>

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 .../libetpan/libetpan-0.57/sepbuild.patch                | 16 ++++++++++++++++
 meta-oe/recipes-support/libetpan/libetpan_0.57.bb        |  3 ++-
 2 files changed, 18 insertions(+), 1 deletion(-)
 create mode 100644 meta-oe/recipes-support/libetpan/libetpan-0.57/sepbuild.patch

Patch

diff --git a/meta-oe/recipes-support/libetpan/libetpan-0.57/sepbuild.patch b/meta-oe/recipes-support/libetpan/libetpan-0.57/sepbuild.patch
new file mode 100644
index 0000000..4f01617
--- /dev/null
+++ b/meta-oe/recipes-support/libetpan/libetpan-0.57/sepbuild.patch
@@ -0,0 +1,16 @@ 
+Index: libetpan-0.57/rules.mk
+===================================================================
+--- libetpan-0.57.orig/rules.mk
++++ libetpan-0.57/rules.mk
+@@ -134,9 +134,9 @@ prepare-am: prepare-local
+ 	         if test -e ../../$(subdir)/$${hdr}; then \
+ 	           echo "$(LN_S) -f ../../$(subdir)/$${hdr} ."; \
+ 	           $(LN_S) -f ../../$(subdir)/$${hdr} .; \
+              else \
+-	           echo "$(LN_S) -f ../../$(subdir)/$(srcdir)/$${hdr} ."; \
+-	           $(LN_S) -f ../../$(subdir)/$(srcdir)/$${hdr} .; \
++	           echo "$(LN_S) -f $(srcdir)/$${hdr} ."; \
++	           $(LN_S) -f $(srcdir)/$${hdr} .; \
+              fi; \
+            fi; \
+ 	     done; \
diff --git a/meta-oe/recipes-support/libetpan/libetpan_0.57.bb b/meta-oe/recipes-support/libetpan/libetpan_0.57.bb
index 0dbd782..6be0694 100644
--- a/meta-oe/recipes-support/libetpan/libetpan_0.57.bb
+++ b/meta-oe/recipes-support/libetpan/libetpan_0.57.bb
@@ -10,7 +10,8 @@  PR = "r1"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/libetpan/libetpan-${PV}.tar.gz \
            file://libetpan-autoreconf.patch \
-           file://libetpan-ldflags.patch"
+           file://libetpan-ldflags.patch \
+           file://sepbuild.patch"
 
 inherit autotools pkgconfig gettext binconfig