Skip to contentSkip to conversation

mesa: Define PYTHON2

PATCH In review Khem Raj 2 participants 2 messages May 3, 2018

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 mesa: Define PYTHON2

Ensure that python2 is not assumed to be python which can point to python3 in some cases, when building gallium-llvm there are scripts which are requiring python2 and wont work with python3

---
 meta/recipes-graphics/mesa/mesa.inc | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-graphics/mesa/mesa.inc +1 -0
index 0a4cfc25a5..9bddb7acef 100644
@@ -35,6 +35,7 @@ export LLVM_CONFIG = "${STAGING_BINDIR_NATIVE}/llvm-config${MESA_LLVM_RELEASE}"
 export YOCTO_ALTERNATE_EXE_PATH = "${STAGING_LIBDIR}/llvm${MESA_LLVM_RELEASE}/llvm-config"
 EXTRA_OECONF = "--enable-shared-glapi \
                 --disable-opencl \
+                PYTHON2=python2 \
                 --with-llvm-prefix=${STAGING_LIBDIR}/llvm${MESA_LLVM_RELEASE} \
                 --with-platforms='${PLATFORMS}'"
 
Signature · 1 line
2.17.0
#1 lore raw

Do you know what scripts those are? It would be good to get them to have a python2 hashbang upstream, I've a sideline in quietly migrating upstreams to python3 so this is an important first step.

Ross

Quoted 35 lines · Khem Raj

Ensure that python2 is not assumed to be python which can point to python3 in some cases, when building gallium-llvm there are scripts which are requiring python2 and wont work with python3

---
 meta/recipes-graphics/mesa/mesa.inc | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-graphics/mesa/mesa.inc +0 -0
index 0a4cfc25a5..9bddb7acef 100644
@@ -35,6 +35,7 @@ export LLVM_CONFIG = "${STAGING_BINDIR_NATIVE}/

llvm-config${MESA_LLVM_RELEASE}"
export YOCTO_ALTERNATE_EXE_PATH = "${STAGING_LIBDIR}/llvm${MESA_
LLVM_RELEASE}/llvm-config"

 EXTRA_OECONF = "--enable-shared-glapi \
                 --disable-opencl \
+                PYTHON2=python2 \
                 --with-llvm-prefix=${STAGING_LIBDIR}/llvm${MESA_LLVM_RELEASE}
\
                 --with-platforms='${PLATFORMS}'"

--
2.17.0

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core