Skip to contentSkip to conversation

lcov: fix env command argument pass issue

PATCH In review [email protected] 2 participants 2 messages Jan 5, 2017 – Jan 9, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lcov: fix env command argument pass issue

From: chunguang yang <[email protected]>

when exec lcov in bash, the following error will appear:

/usr/bin/env: 'perl -w': No such file or directory

perl uses the -w option to enable many warnings. But the env command can't pass the argument to perl, instead it treate perl -w as a file. To fix this issue, just keep the origin perl path and not use env command.

---
 meta-oe/recipes-support/lcov/lcov_1.11.bb | 1 -
 1 file changed, 1 deletion(-)
meta-oe/recipes-support/lcov/lcov_1.11.bb +0 -1
index 114bd84cd..2f9ac336e 100644
@@ -23,6 +23,5 @@ SRC_URI[sha256sum] = "c282de8d678ecbfda32ce4b5c85fc02f77c2a39a062f068bd8e774d29d
 
 do_install() {
     oe_runmake install PREFIX=${D}
-    sed -i -e '1s,#!.*perl,#! ${USRBINPATH}/env perl,' ${D}${bindir}/*
 }
 
Signature · 1 line
2.11.0
#1 lore raw
Quoted 11 lines · On Thu, Jan 5, 2017 at 1:44 AM, <[email protected]> wrote:

From: chunguang yang <[email protected]>

when exec lcov in bash, the following error will appear:

/usr/bin/env: 'perl -w': No such file or directory

perl uses the -w option to enable many warnings. But the env command can't pass the argument to perl, instead it treate perl -w as a file. To fix this issue, just keep the origin perl path and not use env command.

I would suggest that we get rid of -w as well, since the fix to use perl via /usr/bin/env is to get rid of absolute paths.

Quoted 24 lines
---
 meta-oe/recipes-support/lcov/lcov_1.11.bb | 1 -
 1 file changed, 1 deletion(-)
meta-oe/recipes-support/lcov/lcov_1.11.bb +0 -2
index 114bd84cd..2f9ac336e 100644
@@ -23,6 +23,5 @@ SRC_URI[sha256sum] = "c282de8d678ecbfda32ce4b5c85fc02f77c2a39a062f068bd8e774d29d
 
 do_install() {
     oe_runmake install PREFIX=${D}
-    sed -i -e '1s,#!.*perl,#! ${USRBINPATH}/env perl,' ${D}${bindir}/*
 }
 
--

2.11.0

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