diff options
author | Zhenbo Gao <zhenbo.gao@windriver.com> | 2016-07-05 16:25:15 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-08 09:57:24 +0100 |
commit | 74c5cd0c2c98c0fb80c834b514afacb598ad7073 (patch) | |
tree | e96a49f6fe2b7af16042bb3863e176548af40ca0 /meta/recipes-devtools | |
parent | e4224fb50dbc68f22dc044c6c185e3fe25060046 (diff) | |
download | poky-74c5cd0c2c98c0fb80c834b514afacb598ad7073.tar.gz |
autogen-native: fix script error when processing libguile
do_configure for autogen-native would fail if build directory path
contains '-I' characters, which is caused by the unsuitable sed script
when processing libguile.
Error log:
[snip]
checking for GUILE... yes
awk: fatal: cannot open file `/buildarea1/poky/build /libguile/version.h' for reading (No such file or directory)
configure: error: in `/buildarea1/poky/build-Ice/tmp/work/x86_64-linux/autogen-native/5.18.10-r0/build':
configure: error: cannot determine Guile version
[snip]
(From OE-Core rev: 2004307044e958cdf508b72f180e238a3e297179)
Signed-off-by: Zhenbo Gao <zhenbo.gao@windriver.com>
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/autogen/autogen-native_5.18.10.bb | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/autogen/autogen/fix-script-err-when-processing-libguile.patch | 37 |
2 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-devtools/autogen/autogen-native_5.18.10.bb b/meta/recipes-devtools/autogen/autogen-native_5.18.10.bb index fd52c83bd0..274427c7e9 100644 --- a/meta/recipes-devtools/autogen/autogen-native_5.18.10.bb +++ b/meta/recipes-devtools/autogen/autogen-native_5.18.10.bb | |||
@@ -11,6 +11,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | |||
11 | SRC_URI = "${GNU_MIRROR}/autogen/rel${PV}/autogen-${PV}.tar.gz \ | 11 | SRC_URI = "${GNU_MIRROR}/autogen/rel${PV}/autogen-${PV}.tar.gz \ |
12 | file://increase-timeout-limit.patch \ | 12 | file://increase-timeout-limit.patch \ |
13 | file://mk-tpl-config.sh-force-exit-value-to-be-0-in-subproc.patch \ | 13 | file://mk-tpl-config.sh-force-exit-value-to-be-0-in-subproc.patch \ |
14 | file://fix-script-err-when-processing-libguile.patch \ | ||
14 | " | 15 | " |
15 | 16 | ||
16 | SRC_URI[md5sum] = "2d1b5226e1929d0680011df631289571" | 17 | SRC_URI[md5sum] = "2d1b5226e1929d0680011df631289571" |
diff --git a/meta/recipes-devtools/autogen/autogen/fix-script-err-when-processing-libguile.patch b/meta/recipes-devtools/autogen/autogen/fix-script-err-when-processing-libguile.patch new file mode 100644 index 0000000000..694a3953ea --- /dev/null +++ b/meta/recipes-devtools/autogen/autogen/fix-script-err-when-processing-libguile.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | autogen-native: fix script err when processing libguile | ||
2 | |||
3 | do_configure for autogen will fail if project directory path | ||
4 | contains '-I' character, which is caused by the unsuitable sed | ||
5 | script when processing libguile. | ||
6 | |||
7 | Upstream-Status: Pending | ||
8 | |||
9 | Signed-off-by: Zhenbo Gao <zhenbo.gao@windriver.com> | ||
10 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
11 | |||
12 | diff --git a/config/ag_macros.m4 b/config/ag_macros.m4 | ||
13 | index 58186b6..58ed2ad 100644 | ||
14 | --- a/config/ag_macros.m4 | ||
15 | +++ b/config/ag_macros.m4 | ||
16 | @@ -32,7 +32,7 @@ AC_DEFUN([INVOKE_AG_MACROS_LAST],[ | ||
17 | GUILE_FLAGS | ||
18 | [ag_gv=`gdir=\`pkg-config --cflags-only-I \ | ||
19 | guile-${GUILE_EFFECTIVE_VERSION} | \ | ||
20 | - sed 's/-I *//;s/ *-I.*/ /g'\` | ||
21 | + sed 's/ *-I *\// \//g'\` | ||
22 | for d in $gdir | ||
23 | do test -f "$d/libguile/version.h" && gdir=$d && break | ||
24 | done | ||
25 | diff --git a/config/misc.def b/config/misc.def | ||
26 | index 490d361..6e183ef 100644 | ||
27 | --- a/config/misc.def | ||
28 | +++ b/config/misc.def | ||
29 | @@ -342,7 +342,7 @@ do-always = <<- _END_ALWAYS_ | ||
30 | GUILE_FLAGS | ||
31 | [ag_gv=`gdir=\`pkg-config --cflags-only-I \ | ||
32 | guile-${GUILE_EFFECTIVE_VERSION} | \ | ||
33 | - sed 's/-I *//;s/ *-I.*/ /g'\` | ||
34 | + sed 's/ *-I *\// \//g'\` | ||
35 | test -z "$gdir" && gdir=/usr/include | ||
36 | for d in $gdir | ||
37 | do test -f "$d/libguile/version.h" && gdir=$d && break | ||