[OE-core] [PATCH 1/2][master-next] webkitgtk: fix reconfigure

Andreas Müller schnitzeltony at gmail.com
Thu Feb 20 23:48:28 UTC 2020


| ln: failed to create symbolic link '/home/superandy/tmp/oe-core-glibc/work/cortexa7t2hf-neon-vfpv4-mortsgna-linux-gnueabi/webkitgtk/2.26.4-r0/recipe-sysroot-native/usr/bin/python': File exists

Signed-off-by: Andreas Müller <schnitzeltony at gmail.com>
---
 meta/recipes-sato/webkit/webkitgtk_2.26.4.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-sato/webkit/webkitgtk_2.26.4.bb b/meta/recipes-sato/webkit/webkitgtk_2.26.4.bb
index 585723772e..fa109446d1 100644
--- a/meta/recipes-sato/webkit/webkitgtk_2.26.4.bb
+++ b/meta/recipes-sato/webkit/webkitgtk_2.26.4.bb
@@ -61,7 +61,9 @@ 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
+	if [ ! -e ${STAGING_BINDIR_NATIVE}/python ]; then
+		ln -s `which python3` ${STAGING_BINDIR_NATIVE}/python
+	fi
 }
 
 EXTRA_OECMAKE = " \
-- 
2.21.0



More information about the Openembedded-core mailing list