update libsigrok's autoconf script based on the Python version check
in newer aclocal/python.m4; the old one doesn't cope with 3.10
This commit is contained in:
parent
34a29e0b63
commit
827050064a
|
@ -3,7 +3,7 @@ COMMENT = sigrok hardware driver library
|
|||
SIGROK_PROJECT = libsigrok
|
||||
SIGROK_VERSION = 0.5.2
|
||||
MODPY_EGG_VERSION = ${SIGROK_VERSION}
|
||||
REVISION = 2
|
||||
REVISION = 3
|
||||
|
||||
SHARED_LIBS += sigrok 0.1 # 0.0
|
||||
SHARED_LIBS += sigrokcxx 0.1 # 4.0
|
||||
|
|
12
comms/sigrok/libsigrok/patches/patch-configure
Normal file
12
comms/sigrok/libsigrok/patches/patch-configure
Normal file
|
@ -0,0 +1,12 @@
|
|||
Index: configure
|
||||
--- configure.orig
|
||||
+++ configure
|
||||
@@ -22428,7 +22428,7 @@ $as_echo_n "checking for $am_display_PYTHON version...
|
||||
if ${am_cv_python_version+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
- am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
|
||||
+ am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[[:2]])"`
|
||||
fi
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
|
||||
$as_echo "$am_cv_python_version" >&6; }
|
Loading…
Reference in New Issue
Block a user