[oe-commits] [openembedded-core] 13/14: python3-scons: fix regex replacing python by python3

git at git.openembedded.org git at git.openembedded.org
Fri Jun 14 21:48:58 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 144c6c7183dd2b32c65edf325038eb84683a28f8
Author: Anuj Mittal <anuj.mittal at intel.com>
AuthorDate: Thu Jun 13 08:28:48 2019 +0800

    python3-scons: fix regex replacing python by python3
    
    Match only the first line and match even if the line says python3.
    Otherwise we end up with multiple 3s at the end after multiple
    invocations of do_install on same source.
    
    Signed-off-by: Anuj Mittal <anuj.mittal at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-devtools/python/python3-scons_3.0.5.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/python/python3-scons_3.0.5.bb b/meta/recipes-devtools/python/python3-scons_3.0.5.bb
index 91e4a94..7fb75a6 100644
--- a/meta/recipes-devtools/python/python3-scons_3.0.5.bb
+++ b/meta/recipes-devtools/python/python3-scons_3.0.5.bb
@@ -15,7 +15,7 @@ UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)\.tar"
 inherit setuptools3
 
 do_install_prepend() {
-    sed -i -e "s:/usr/bin/env python:/usr/bin/env python3:g" ${S}/script/*
+    sed -i -e "1s,#!.*python.*,#!${USRBINPATH}/env python3," ${S}/script/*
 }
 
 RDEPENDS_${PN} = "\

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list