SHA256
8
0
forked from pool/newt
Files
newt/newt-0.52.13-python_version.patch

14 lines
630 B
Diff
Raw Normal View History

Index: newt-0.52.13/configure
===================================================================
--- newt-0.52.13.orig/configure
+++ newt-0.52.13/configure
@@ -3455,7 +3455,7 @@ if test "x$with_python" = "xno"; then
$as_echo "skipped" >&6; }
PYTHONVERS=
else
- PYTHONVERS=$(ls /usr/include/python*/Python.h 2> /dev/null | sed "s|/usr/include/||g"| sed "s|/Python.h||g" 2> /dev/null)
+ PYTHONVERS=$(ls /usr/include/python*/Python.h 2> /dev/null | sed "s|/usr/include/||g"| sed "s|/Python.h||g" | head -n1 2> /dev/null)
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHONVERS" >&5
$as_echo "$PYTHONVERS" >&6; }
fi