summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/autogen/autogen/mk-tpl-config.sh-force-exit-value-to-be-0-in-subproc.patch
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2015-10-09 22:59:03 +0200
committerTudor Florea <tudor.florea@enea.com>2015-10-09 22:59:03 +0200
commit972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch)
tree97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-devtools/autogen/autogen/mk-tpl-config.sh-force-exit-value-to-be-0-in-subproc.patch
downloadpoky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-devtools/autogen/autogen/mk-tpl-config.sh-force-exit-value-to-be-0-in-subproc.patch')
-rw-r--r--meta/recipes-devtools/autogen/autogen/mk-tpl-config.sh-force-exit-value-to-be-0-in-subproc.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-devtools/autogen/autogen/mk-tpl-config.sh-force-exit-value-to-be-0-in-subproc.patch b/meta/recipes-devtools/autogen/autogen/mk-tpl-config.sh-force-exit-value-to-be-0-in-subproc.patch
new file mode 100644
index 0000000000..e56da7b1da
--- /dev/null
+++ b/meta/recipes-devtools/autogen/autogen/mk-tpl-config.sh-force-exit-value-to-be-0-in-subproc.patch
@@ -0,0 +1,30 @@
1Upstream-Status: Pending
2
3mk-tpl-config.sh: force exit value to be 0 in subprocess
4
5The return value of statement list=`<subcommands>` is the exit value of the
6subcommands. So if the subcommands fails, the compilation fails. This is obviously
7not intended. In the normal case, we expect the grep command to fail as there should
8be no 'noreturn' word in the libguile files.
9
10Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
11---
12 autoopts/mk-tpl-config.sh | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/autoopts/mk-tpl-config.sh b/autoopts/mk-tpl-config.sh
16index 926f5ab..6b4a0fb 100755
17--- a/autoopts/mk-tpl-config.sh
18+++ b/autoopts/mk-tpl-config.sh
19@@ -202,7 +202,7 @@ fix_guile() {
20
21 list=`set +e ; exec 2>/dev/null
22 find ${libguiledir}/libguile* -type f | \
23- xargs grep -l -E '\<noreturn\>'`
24+ xargs grep -l -E '\<noreturn\>' ; exit 0`
25
26 test -z "$list" && exit 0
27
28--
291.7.9.5
30