python3-scons: fix regex replacing python by python3
PATCH 1/1 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 <[email protected]>
--- meta/recipes-devtools/python/python3-scons_3.0.5.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/python/python3-scons_3.0.5.bb +1 -1
@@ -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}/python3," ${S}/script/* } RDEPENDS_${PN} = "\
Signature · 1 line
2.20.1
PATCH v2 1/1 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 <[email protected]>
--- meta/recipes-devtools/python/python3-scons_3.0.5.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/python/python3-scons_3.0.5.bb +1 -1
@@ -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} = "\
Signature · 1 line
2.20.1