From afd2f2e3637ab0a44784d7509cf2259793701d32 Mon Sep 17 00:00:00 2001 From: George Williams Date: Fri, 18 Feb 2011 11:27:59 -0800 Subject: Typo in configure script (in sed command) caused it to miscalcute Python subversion number. --- configure | 2 +- configure.dynamic | 2 +- configure.dynamic.in | 2 +- configure.in | 2 +- configure.static | 2 +- configure.static.in | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/configure b/configure index a24a7251..0468f6d2 100755 --- a/configure +++ b/configure @@ -19983,7 +19983,7 @@ fi if $python_prog -c "import distutils.sysconfig ; print(distutils.sysconfig.get_config_var('VERSION'))" ; then PyVersion=`$python_prog -c "import distutils.sysconfig ; print(distutils.sysconfig.get_config_var('VERSION'))"` PyMajorVersion=`echo $PyVersion |sed -e 's/\..*//'` - PySubVersion=`echo $PyVersion |sed -e 's/\(2\|3\)\.//'` + PySubVersion=`echo $PyVersion |sed -e 's/2\.//' -e 's/3\.//'` PyName="python$PyVersion" if test "$PySubVersion" = "" ; then python="no" diff --git a/configure.dynamic b/configure.dynamic index a24a7251..0468f6d2 100755 --- a/configure.dynamic +++ b/configure.dynamic @@ -19983,7 +19983,7 @@ fi if $python_prog -c "import distutils.sysconfig ; print(distutils.sysconfig.get_config_var('VERSION'))" ; then PyVersion=`$python_prog -c "import distutils.sysconfig ; print(distutils.sysconfig.get_config_var('VERSION'))"` PyMajorVersion=`echo $PyVersion |sed -e 's/\..*//'` - PySubVersion=`echo $PyVersion |sed -e 's/\(2\|3\)\.//'` + PySubVersion=`echo $PyVersion |sed -e 's/2\.//' -e 's/3\.//'` PyName="python$PyVersion" if test "$PySubVersion" = "" ; then python="no" diff --git a/configure.dynamic.in b/configure.dynamic.in index 561b7520..330169cb 100644 --- a/configure.dynamic.in +++ b/configure.dynamic.in @@ -263,7 +263,7 @@ if test "$python" = "yes" ; then if $python_prog -c "import distutils.sysconfig ; print(distutils.sysconfig.get_config_var('VERSION'))" ; then PyVersion=`$python_prog -c "import distutils.sysconfig ; print(distutils.sysconfig.get_config_var('VERSION'))"` PyMajorVersion=`echo $PyVersion |sed -e 's/\..*//'` - PySubVersion=`echo $PyVersion |sed -e 's/\(2\|3\)\.//'` + PySubVersion=`echo $PyVersion |sed -e 's/2\.//' -e 's/3\.//'` PyName="python$PyVersion" if test "$PySubVersion" = "" ; then python="no" diff --git a/configure.in b/configure.in index 561b7520..330169cb 100644 --- a/configure.in +++ b/configure.in @@ -263,7 +263,7 @@ if test "$python" = "yes" ; then if $python_prog -c "import distutils.sysconfig ; print(distutils.sysconfig.get_config_var('VERSION'))" ; then PyVersion=`$python_prog -c "import distutils.sysconfig ; print(distutils.sysconfig.get_config_var('VERSION'))"` PyMajorVersion=`echo $PyVersion |sed -e 's/\..*//'` - PySubVersion=`echo $PyVersion |sed -e 's/\(2\|3\)\.//'` + PySubVersion=`echo $PyVersion |sed -e 's/2\.//' -e 's/3\.//'` PyName="python$PyVersion" if test "$PySubVersion" = "" ; then python="no" diff --git a/configure.static b/configure.static index 04033438..b465c69f 100755 --- a/configure.static +++ b/configure.static @@ -5064,7 +5064,7 @@ if test "$python" = "yes" ; then if python -c "import distutils.sysconfig ; print '-I%s' % distutils.sysconfig.get_config_var('INCLUDEPY')" >/dev/null 2>&1 ; then if python -c "import distutils.sysconfig ; print '%s/%s %s' % (distutils.sysconfig.get_config_var('LIBPL'),distutils.sysconfig.get_config_var('LDLIBRARY'),distutils.sysconfig.get_config_var('LIBS'))" >/dev/null 2>&1 ; then PyVersion=`python -c "import distutils.sysconfig ; print '%s' % distutils.sysconfig.get_config_var('VERSION')"` - PySubVersion=`echo $PyVersion |sed -e 's/2.//'` + PySubVersion=`echo $PyVersion |sed -e 's/2\.//' -e 's/3\.//'` PyInc=`python -c "import distutils.sysconfig ; print '%s' % distutils.sysconfig.get_config_var('INCLUDEPY')"` PyLib=`python -c "import distutils.sysconfig ; print '%s/%s' % (distutils.sysconfig.get_config_var('LIBPL'),distutils.sysconfig.get_config_var('LDLIBRARY'))"` if test "$PySubVersion" \!= "" -a "$PySubVersion" -le 2 ; then diff --git a/configure.static.in b/configure.static.in index 3583fed3..ffcdf61e 100644 --- a/configure.static.in +++ b/configure.static.in @@ -151,7 +151,7 @@ if test "$python" = "yes" ; then if python -c "import distutils.sysconfig ; print '-I%s' % distutils.sysconfig.get_config_var('INCLUDEPY')" >/dev/null 2>&1 ; then if python -c "import distutils.sysconfig ; print '%s/%s %s' % (distutils.sysconfig.get_config_var('LIBPL'),distutils.sysconfig.get_config_var('LDLIBRARY'),distutils.sysconfig.get_config_var('LIBS'))" >/dev/null 2>&1 ; then PyVersion=`python -c "import distutils.sysconfig ; print '%s' % distutils.sysconfig.get_config_var('VERSION')"` - PySubVersion=`echo $PyVersion |sed -e 's/2.//'` + PySubVersion=`echo $PyVersion |sed -e 's/2\.//' -e 's/3\.//'` PyInc=`python -c "import distutils.sysconfig ; print '%s' % distutils.sysconfig.get_config_var('INCLUDEPY')"` PyLib=`python -c "import distutils.sysconfig ; print '%s/%s' % (distutils.sysconfig.get_config_var('LIBPL'),distutils.sysconfig.get_config_var('LDLIBRARY'))"` if test "$PySubVersion" \!= "" -a "$PySubVersion" -le 2 ; then -- cgit v1.2.3