[Buildroot] [git commit master] libxcb: fix path to Python modules

Paulius Zaleckas paulius.zaleckas at gmail.com
Mon May 10 12:33:47 UTC 2010


On Sat, May 8, 2010 at 1:11 AM, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
>
> commit: http://git.buildroot.net/buildroot/commit/?id=4880edd506a2c629efa4ccf38f27f47d5d5d8804
> branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master
>
> 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.

Unfortunately this fails on my system:
$ python --version
Python 2.6
$ python --version | sed 's/Python \(2\.[0-9]\)\..*/\1/'
Python 2.6

> 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 <thomas.petazzoni at free-electrons.com>



More information about the buildroot mailing list