webkitgtk: Fix errors when api-documentation is enabled

This recipe hasn't built correctly since we removed "python" from HOSTTOOLS
when api-documentation is enabled.

Add in an extra symlink to "python" rather than trying to fix the multiple
scripts in webkit to refer to python3.

The autobuilder didn't detect this as wekbkit was excluded from the API docs
world build but that is changed now so this fixes build failures.

(From OE-Core rev: c9e520e0996ab524e38de19a22b64395d14c635a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2020-02-18 13:27:48 +00:00
parent b3702d5aeb
commit feaf175b6c

View File

@@ -58,6 +58,12 @@ PACKAGECONFIG[libhyphen] = "-DUSE_LIBHYPHEN=ON,-DUSE_LIBHYPHEN=OFF,libhyphen"
PACKAGECONFIG[woff2] = "-DUSE_WOFF2=ON,-DUSE_WOFF2=OFF,woff2"
PACKAGECONFIG[openjpeg] = "-DUSE_OPENJPEG=ON,-DUSE_OPENJPEG=OFF,openjpeg"
# webkitgtk is full of /usr/bin/env python, particular for generating docs
do_configure[postfuncs] += "setup_python_link"
setup_python_link() {
ln -s `which python3` ${STAGING_BINDIR_NATIVE}/python
}
EXTRA_OECMAKE = " \
-DPORT=GTK \
-DCMAKE_BUILD_TYPE=Release \