forked from pool/graphviz
df7330352f
- survive new ruby without autoreconf OBS-URL: https://build.opensuse.org/request/show/124476 OBS-URL: https://build.opensuse.org/package/show/graphics/graphviz?expand=0&rev=44
27 lines
1.1 KiB
Diff
27 lines
1.1 KiB
Diff
Index: configure.ac
|
|
===================================================================
|
|
--- configure.ac.orig 2012-06-11 16:26:07.060351640 +0200
|
|
+++ configure.ac 2012-06-11 16:27:06.331573194 +0200
|
|
@@ -1098,7 +1098,7 @@ else
|
|
if test "x$PYTHON" = "x"; then
|
|
use_python="No (python not available)"
|
|
else
|
|
- PYTHON_VERSION=`$PYTHON -V 2>&1 | $GREP Python | cut -d ' ' -f 2`
|
|
+ PYTHON_VERSION=`python -c "import sys; print '%d.%d' % (sys.version_info[[0:2]])"`
|
|
if test "x$PYTHON_VERSION" = "x"; then
|
|
PYTHON=
|
|
else
|
|
Index: configure
|
|
===================================================================
|
|
--- configure.orig 2012-06-11 16:27:00.000000000 +0200
|
|
+++ configure 2012-06-11 16:27:26.152644075 +0200
|
|
@@ -21117,7 +21117,7 @@ fi
|
|
if test "x$PYTHON" = "x"; then
|
|
use_python="No (python not available)"
|
|
else
|
|
- PYTHON_VERSION=`$PYTHON -V 2>&1 | $GREP Python | cut -d ' ' -f 2`
|
|
+ PYTHON_VERSION=`python -c "import sys; print '%d.%d' % (sys.version_info[[0:2]])"`
|
|
if test "x$PYTHON_VERSION" = "x"; then
|
|
PYTHON=
|
|
else
|