From 4880edd506a2c629efa4ccf38f27f47d5d5d8804 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Tue, 4 May 2010 21:52:04 +0200 Subject: libxcb: fix path to Python modules When building libxcb, the variable XCBPROTO_XCBPYTHONDIR must point to the location where the Python modules needed to run the c_client.py program are installed. The path $(STAGING_DIR)/usr/lib/python2.6/site-packages was hardcoded. However, it doesn't work when the version of Python installed on the host is Python 2.5. Therefore, add a little bit of magic to compute the host Python version. We also verify that Python is available on the host, as we don't build it in Buildroot. Fixes bug #1531. Signed-off-by: Thomas Petazzoni --- toolchain/dependencies/dependencies.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toolchain/dependencies/dependencies.sh') diff --git a/toolchain/dependencies/dependencies.sh b/toolchain/dependencies/dependencies.sh index 013c1d57d..923c76bcd 100755 --- a/toolchain/dependencies/dependencies.sh +++ b/toolchain/dependencies/dependencies.sh @@ -122,7 +122,7 @@ if ! $SHELL --version 2>&1 | grep -q '^GNU bash'; then fi; # Check that a few mandatory programs are installed -for prog in awk bison flex msgfmt makeinfo patch gzip bzip2 perl tar wget cpio ; do +for prog in awk bison flex msgfmt makeinfo patch gzip bzip2 perl tar wget cpio python ; do if ! which $prog > /dev/null ; then /bin/echo -e "\nYou must install '$prog' on your build machine"; if test $prog = "makeinfo" ; then -- cgit v1.2.3