Skip to contentSkip to conversation

Fix Python version detection for libxcb

PATCH New Paulius Zaleckas 3 participants 4 messages May 10, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix Python version detection for libxcb

---

 package/x11r7/libxcb/libxcb.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
package/x11r7/libxcb/libxcb.mk +1 -1
index c8b70ea..bd2c69d 100644
@@ -13,7 +13,7 @@ LIBXCB_AUTORECONF = NO
 LIBXCB_LIBTOOL_PATCH = NO
 LIBXCB_DEPENDENCIES = host-libxslt pthread-stubs xcb-proto xlib_libXdmcp xlib_libXau
 LIBXCB_CONF_ENV = STAGING_DIR="$(STAGING_DIR)"
-HOST_PYTHON_VERSION=$(shell python --version 2>&1 | sed 's/Python \(2\.[0-9]\)\..*/\1/')
+HOST_PYTHON_VERSION=$(shell python --version 2>&1 | sed 's/Python \(2\.[0-9]\).*/\1/')
 LIBXCB_MAKE_OPT = XCBPROTO_XCBINCLUDEDIR=$(STAGING_DIR)/usr/share/xcb XCBPROTO_XCBPYTHONDIR=$(STAGING_DIR)/usr/lib/python$(HOST_PYTHON_VERSION)/site-packages
 
 $(eval $(call AUTOTARGETS,package/x11r7,libxcb))
#1 lore raw

PATCH 1/1 Fix Python version detection for libxcb

Quoted 1 line · On Mon, 10 May 2010 16:38:53 +0300 Paulius Zaleckas…

On my system, the Python version was 2.6.4, not just 2.6, so my regexp was working. But obviously, yours is better, so:

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#3 lore raw

PATCH 1/1 Fix Python version detection for libxcb

Quoted 6 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Paulius" == Paulius Zaleckas<[email protected]> writes:

Paulius> Signed-off-by: Paulius Zaleckas<[email protected]>

Sorry, didn't see your patch before implementing it myself.

No problem. I believe your version is even better :)