XulChris mentioned on IRC that Fedora user was having trouble building
pypoker-eval due to lack of support for python2.6 in the configuration.
The build log is here:
http://koji.fedoraproject.org/koji/getfile?taskID=959913&name=build.log
I am guessing (it's indeed a guess, but an educated one :) that
python2.6 is close enough to python2.5 that it's merely a config-search
issue. The patch below is living in the quick-patch-devel branch at
r5092.
This patch is copyrighted by me and is licensed GPLv3-or-later.
diff --git a/poker-network/ChangeLog b/poker-network/ChangeLog
index 359743a..78669e4 100644
--- a/poker-network/ChangeLog
+++ b/poker-network/ChangeLog
@@ -1,5 +1,9 @@
2008-11-30 Bradley M. Kuhn <[EMAIL PROTECTED]>
+ * config/python.m4 (AM_PATH_PYTHON): Added python2.6 support.
+
+ * config/ccpython.m4 (ALL_CC_PYTHON): Added python2.6 support.
+
* database/1.6.0-1.7.0.sql: en_US.UTF-8 is no longer default locale,
en_US by itself is.
diff --git a/poker-network/config/ccpython.m4 b/poker-network/config/ccpython.m4
index b5d2255..5b94d64 100644
--- a/poker-network/config/ccpython.m4
+++ b/poker-network/config/ccpython.m4
@@ -111,7 +111,7 @@ AM_CONDITIONAL([PYTHON_]$2, [test "$have_python" != "no"])
AC_DEFUN([ALL_CC_PYTHON],
[
-m4_define([_AM_PYTHON_INTERPRETER_LIST], [python2.5 python2.4 python2.3])
+m4_define([_AM_PYTHON_INTERPRETER_LIST], [python2.6 python2.5 python2.4 python2.3])
PYTHONS=''
found_one=''
_ONE_CC_PYTHON([=2.3], [2_3])
@@ -122,6 +122,9 @@ if test -f "$PYTHON" ; then found_one=$PYTHON ; PYTHONS="$PYTHON $PYTHONS" ; fi
unset PYTHON
_ONE_CC_PYTHON([=2.5], [2_5])
if test -f "$PYTHON" ; then found_one=$PYTHON ; PYTHONS="$PYTHON $PYTHONS" ; fi
+unset PYTHON
+_ONE_CC_PYTHON([=2.6], [2_6])
+if test -f "$PYTHON" ; then found_one=$PYTHON ; PYTHONS="$PYTHON $PYTHONS" ; fi
PYTHON=$found_one
if ! test "$found_one" ; then
AC_MSG_ERROR([No python development environments found])
diff --git a/poker-network/config/python.m4 b/poker-network/config/python.m4
index e11f501..fe8b022 100644
--- a/poker-network/config/python.m4
+++ b/poker-network/config/python.m4
@@ -42,7 +42,7 @@ AC_DEFUN([AM_PATH_PYTHON],
dnl $prefix/lib/site-python in 1.4 to $prefix/lib/python1.5/site-packages
dnl in 1.5.
m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
- [python python2 python2.5 python2.4 python2.3 python2.2 dnl
+ [python python2 python2.6 python2.5 python2.4 python2.3 python2.2 dnl
python2.1 python2.0 python1.6 python1.5])
m4_if([$1],[],[
diff --git a/pypoker-eval/ChangeLog b/pypoker-eval/ChangeLog
index 5f924e0..be70540 100644
--- a/pypoker-eval/ChangeLog
+++ b/pypoker-eval/ChangeLog
@@ -1,3 +1,9 @@
+2008-11-30 Bradley M. Kuhn <[EMAIL PROTECTED]>
+
+ * config/python.m4 (AM_PATH_PYTHON): Added python2.6 support.
+
+ * config/ccpython.m4 (ALL_CC_PYTHON): Added python2.6 support.
+
2008-03-01 Loic Dachary <[EMAIL PROTECTED]>
* Release 135.0
diff --git a/pypoker-eval/config/ccpython.m4 b/pypoker-eval/config/ccpython.m4
index b7f305c..a4eae54 100644
--- a/pypoker-eval/config/ccpython.m4
+++ b/pypoker-eval/config/ccpython.m4
@@ -110,7 +110,7 @@ AM_CONDITIONAL([PYTHON_]$2, [test "$have_python" != "no"])
AC_DEFUN([ALL_CC_PYTHON],
[
-m4_define([_AM_PYTHON_INTERPRETER_LIST], [python2.5 python2.4 python2.3])
+m4_define([_AM_PYTHON_INTERPRETER_LIST], [python2.6 python2.5 python2.4 python2.3])
PYTHONS=''
found_one=''
_ONE_CC_PYTHON([=2.3], [2_3])
@@ -121,6 +121,9 @@ if test -f "$PYTHON" ; then found_one=$PYTHON ; PYTHONS="$PYTHON $PYTHONS" ; fi
unset PYTHON
_ONE_CC_PYTHON([=2.5], [2_5])
if test -f "$PYTHON" ; then found_one=$PYTHON ; PYTHONS="$PYTHON $PYTHONS" ; fi
+unset PYTHON
+_ONE_CC_PYTHON([=2.6], [2_6])
+if test -f "$PYTHON" ; then found_one=$PYTHON ; PYTHONS="$PYTHON $PYTHONS" ; fi
PYTHON=$found_one
if ! test "$found_one" ; then
AC_MSG_ERROR([No python development environments found])
diff --git a/pypoker-eval/config/python.m4 b/pypoker-eval/config/python.m4
index e11f501..c8c5e30 100644
--- a/pypoker-eval/config/python.m4
+++ b/pypoker-eval/config/python.m4
@@ -42,7 +42,7 @@ AC_DEFUN([AM_PATH_PYTHON],
dnl $prefix/lib/site-python in 1.4 to $prefix/lib/python1.5/site-packages
dnl in 1.5.
m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
- [python python2 python2.5 python2.4 python2.3 python2.2 dnl
+ [python python2 python2.5 python2.6 python2.4 python2.3 python2.2 dnl
python2.1 python2.0 python1.6 python1.5])
m4_if([$1],[],[
--
-- bkuhn
_______________________________________________
Pokersource-users mailing list
[email protected]
https://mail.gna.org/listinfo/pokersource-users