mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-02 13:59:59 +00:00
googletest: fix build with newer oe-core without python in HOSTTOOLS
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -21,3 +21,11 @@ ALLOW_EMPTY_${PN}-dbg = "1"
|
|||||||
RDEPENDS_${PN}-dev += "${PN}-staticdev"
|
RDEPENDS_${PN}-dev += "${PN}-staticdev"
|
||||||
|
|
||||||
BBCLASSEXTEND = "native nativesdk"
|
BBCLASSEXTEND = "native nativesdk"
|
||||||
|
|
||||||
|
do_configure_prepend() {
|
||||||
|
# explicitly use python3
|
||||||
|
# the scripts are already python3 compatible since https://github.com/google/googletest/commit/d404af0d987a9c38cafce82a7e26ec8468c88361 and other fixes like this
|
||||||
|
# but since this oe-core change http://git.openembedded.org/openembedded-core/commit/?id=5f8f16b17f66966ae91aeabc23e97de5ecd17447
|
||||||
|
# there isn't python in HOSTTOOLS so "env python" fails
|
||||||
|
sed -i 's@^#!/usr/bin/env python$@#!/usr/bin/env python3@g' ${S}/googlemock/scripts/*py ${S}/googlemock/scripts/generator/*py ${S}/googlemock/scripts/generator/cpp/*py ${S}/googlemock/test/*py ${S}/googletest/scripts/*py ${S}/googletest/test/*py
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user