Menu

#512 Bug in configure script

next release
closed-fixed
None
5
5 days ago
6 days ago
No

From my sysadmin:

This is the patch for the configure file in the source distribution:

diff --git a/configure b/configure
index 347625c..52ed697 100755
--- a/configure
+++ b/configure
@@ -30806,7 +30806,7 @@ if test ${am_cv_python_version+y}
then :
printf %s "(cached) " >&6
else case e in #(

  • e) am_cv_python_version=$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])" ;;
  • e) am_cv_python_version=$PYTHON -c "import sys; vi=sys.version_info; sys.stdout.write(f'{vi.major}.{vi.minor}')" ;;
    esac
    fi
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5

The problem is with the detection of the python version. The current code works for python up to version 3.9. The fix should work for all versions.
The configure file is included in the source but it is in fact autogenerated. The real cause of the bug is in file aclocal.m4.

Discussion

  • Willem van Straten

    • status: open --> closed-fixed
    • assigned_to: Willem van Straten
     
  • Willem van Straten

    Fixed at https://gitlab.com/pulsar-astronomy/psrchive with

    commit ea9ecc5001508e59ad3f7eddfd19392d81100fe2
    Author: Willem van Straten <vanstraten.willem@gmail.com>
    Date:   Fri May 15 06:49:38 2026 +1200
    
        bugs/512 Disable 'make dist' if automake version is less than 1.17
        (older automakes do not handle Python versions above 3.9)
        Also, both bootstrap and configure scripts ensure that submodules
        are checked out before continuing.
    
     

Log in to post a comment.

MongoDB Logo MongoDB