Skip to contentSkip to conversation

enca: fix S!=B failure

PATCH In review Tim Orling 2 participants 3 messages May 28, 2014 – May 29, 2014

lore
Share & tools
lore

Tim Orling

author
#0 lore raw

PATCH 1/1 enca: fix S!=B failure

From: Tim Orling <[email protected]>

This package does not like being built out-of-tree.

Fixes:
| sed: can't read configure.ac: No such file or directory

---
 meta-oe/recipes-support/enca/enca_1.9.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-support/enca/enca_1.9.bb +1 -1
index e65a143..452c01e 100644
@@ -14,7 +14,7 @@ SRC_URI = "http://www.sourcefiles.org/Networking/Tools/Miscellanenous/enca-${PV}
 SRC_URI[md5sum] = "b3581e28d68d452286fb0bfe58bed3b3"
 SRC_URI[sha256sum] = "02acfef2b24a9c842612da49338138311f909f1cd33933520c07b8b26c410f4d"
 
-inherit autotools
+inherit autotools-brokensep
 
 EXTRA_OECONF = "--with-libiconv-prefix=${STAGING_DIR_HOST}${layout_exec_prefix}"
 
Signature · 1 line
1.8.3.2
#1 lore raw
Quoted 7 lines · Tim Orling

From: Tim Orling <[email protected]>

This package does not like being built out-of-tree.

Fixes:
| sed: can't read configure.ac: No such file or directory

can't you sed it in ${S} ?

sed -i -e '/ye_FUNC_SCANF_MODIF_SIZE_T/d' ${S}/configure.ac

Quoted 26 lines
---
 meta-oe/recipes-support/enca/enca_1.9.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-support/enca/enca_1.9.bb +1 -2
index e65a143..452c01e 100644
@@ -14,7 +14,7 @@ SRC_URI = "http://www.sourcefiles.org/Networking/Tools/Miscellanenous/enca-${PV}
 SRC_URI[md5sum] = "b3581e28d68d452286fb0bfe58bed3b3"
 SRC_URI[sha256sum] = "02acfef2b24a9c842612da49338138311f909f1cd33933520c07b8b26c410f4d"
 
-inherit autotools
+inherit autotools-brokensep
 
 EXTRA_OECONF = "--with-libiconv-prefix=${STAGING_DIR_HOST}${layout_exec_prefix}"
 
--

1.8.3.2

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

author
#2 lore raw

PATCH v2 1/1 enca: fix S!=B failure

From: Tim Orling <[email protected]>

Point tools to the right paths:
* ${S}/configure.ac in do_configure_prepare()
* ${B}/Makefile in do_configure_append()
* cd ${B} in do_compile()

---
 meta-oe/recipes-support/enca/enca_1.9.bb | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
meta-oe/recipes-support/enca/enca_1.9.bb +4 -4
index e65a143..ea38946 100644
@@ -20,17 +20,17 @@ EXTRA_OECONF = "--with-libiconv-prefix=${STAGING_DIR_HOST}${layout_exec_prefix}"
 
 do_configure_prepend() {
     # remove failing test which checks for something that isn't even used
-    sed -i -e '/ye_FUNC_SCANF_MODIF_SIZE_T/d' configure.ac
+    sed -i -e '/ye_FUNC_SCANF_MODIF_SIZE_T/d' ${S}/configure.ac
 }
 
 do_configure_append() {
-    sed -i s:-I/usr/include::g Makefile
-    sed -i s:-I/usr/include::g */Makefile
+    sed -i s:-I/usr/include::g ${B}/Makefile
+    sed -i s:-I/usr/include::g ${B}/*/Makefile
 }
 
 do_compile() {
     cd ${S}/tools && ${BUILD_CC} -o make_hash make_hash.c
-    cd ..
+    cd ${B}
     oe_runmake
 }
 
Signature · 1 line
1.8.3.2