Skip to contentSkip to conversation

fix for mesa-* build failures

PATCH In review Saul Wold 1 participant 3 messages Sep 8, 2011

lore
Share & tools
lore

Saul Wold

author
#0 lore raw

cover fix for mesa-* build failures

Fixes mesa configure scripts finding host (not native) python2 executable

The following changes since commit fa8dad209247b780590bc8476b5b16e6608d7907:

avahi: only use gtk if DISTRO_FEATURES includes x11 (2011-09-07 23:44:07 +0100)

are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib sgw/fix
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=sgw/fix

Saul Wold (1):
python-native: add link for python2

 .../recipes-devtools/python/python-native_2.6.6.bb |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
Signature · 1 line
1.7.6
author
#1 lore raw

PATCH 1/1 python-native: add link for python2

Add link for python2 as some configuration tools search from a python2 and could find the host python instead of the python-native.

---
 .../recipes-devtools/python/python-native_2.6.6.bb |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
meta/recipes-devtools/python/python-native_2.6.6.bb +3 -0
index 2b00d32..503bd96 100644
@@ -42,4 +42,7 @@ do_install() {
 	for PYTHSCRIPT in `grep -rIl ${bindir}/python ${D}${bindir}`; do
 		sed -i -e '1s|^#!.*|#!/usr/bin/env python|' $PYTHSCRIPT
 	done
+
+	ln -sf ${D}${bindir}/python ${D}${bindir}/python2
+
 }
Signature · 1 line
1.7.6
author
#2 lore raw

Re: [PATCH 1/1] python-native: add link for python2

Quoted 13 lines · Saul Wold

Add link for python2 as some configuration tools search from a python2 and could find the host python instead of the python-native.

---
  .../recipes-devtools/python/python-native_2.6.6.bb |    3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)
meta/recipes-devtools/python/python-native_2.6.6.bb +0 -0
index 2b00d32..503bd96 100644

meta/recipes-devtools/python/python-native_2.6.6.bb do_install() { · line 47

Quoted 6 lines
meta/recipes-devtools/python/python-native_2.6.6.bb +3 -0
@@ -42,4 +42,7 @@ do_install() {
  	for PYTHSCRIPT in `grep -rIl ${bindir}/python ${D}${bindir}`; do
  		sed -i -e '1s|^#!.*|#!/usr/bin/env python|' $PYTHSCRIPT
  	done
+
+	ln -sf ${D}${bindir}/python ${D}${bindir}/python2
+

This is the right idea, but clearly this is the wrong execution for shared state, I tried a ${STAING_DIR...} variant but that also failed, what am I doing wrong?

I see this type of ln usage in other recipes.

Sau!

Quoted 1 line
meta/recipes-devtools/python/python-native_2.6.6.bb +0 -0
  }