]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-98948: Remove obsolete readelf dependency (#98949)
authorserge-sans-paille <serge.guelton@telecom-bretagne.eu>
Thu, 3 Nov 2022 13:31:37 +0000 (13:31 +0000)
committerGitHub <noreply@github.com>
Thu, 3 Nov 2022 13:31:37 +0000 (14:31 +0100)
This got introduced in commit 5884449539510313c826d69835829c7957c7154a
to determine if readline is already linked against curses or tinfo in
the setup.py, which is no longer present.

Makefile.pre.in
Misc/NEWS.d/next/Build/2022-11-02-10-56-40.gh-issue-98949.3SRD8C.rst [new file with mode: 0644]
Tools/wasm/config.site-wasm32-emscripten
Tools/wasm/config.site-wasm32-wasi
configure
configure.ac

index 0ce1e9ef13fdbc1b44c0d3c29074db848603c45f..891104bc587850b36114f8d02fd7baba18ce95c2 100644 (file)
@@ -38,7 +38,6 @@ CC=           @CC@
 CXX=           @CXX@
 LINKCC=                @LINKCC@
 AR=            @AR@
-READELF=       @READELF@
 SOABI=         @SOABI@
 LDVERSION=     @LDVERSION@
 LIBPYTHON=     @LIBPYTHON@
diff --git a/Misc/NEWS.d/next/Build/2022-11-02-10-56-40.gh-issue-98949.3SRD8C.rst b/Misc/NEWS.d/next/Build/2022-11-02-10-56-40.gh-issue-98949.3SRD8C.rst
new file mode 100644 (file)
index 0000000..fdbc72d
--- /dev/null
@@ -0,0 +1 @@
+Drop unused build dependency on ``readelf``.
index b695a7bf8f04dad8f054195d565c0ef404121e7a..1471546a5eec1707aef0dff2bdb79bdff2d14bc3 100644 (file)
@@ -14,9 +14,6 @@ ac_cv_buggy_getaddrinfo=no
 ac_cv_file__dev_ptmx=no
 ac_cv_file__dev_ptc=no
 
-# dummy readelf, Emscripten build does not need readelf.
-ac_cv_prog_ac_ct_READELF=true
-
 # new undefined symbols / unsupported features
 ac_cv_func_posix_spawn=no
 ac_cv_func_posix_spawnp=no
index 893a0d132cda591069f3ee6bf2b22f2c93e23f9c..4b8df2229915cca2327cb63fc657567a811456e9 100644 (file)
@@ -9,9 +9,6 @@ ac_cv_buggy_getaddrinfo=no
 ac_cv_file__dev_ptmx=no
 ac_cv_file__dev_ptc=no
 
-# dummy readelf, WASI build does not need readelf.
-ac_cv_prog_ac_ct_READELF=true
-
 # get/setrlimit are not supported
 ac_cv_header_sys_resource_h=no
 
index 0c54ea63924ad071a9333115c769d2f44e6e4c50..edd3771784c76f3072c5d5ed86e7cf3b76a096a8 100755 (executable)
--- a/configure
+++ b/configure
@@ -904,8 +904,6 @@ MKDIR_P
 INSTALL_DATA
 INSTALL_SCRIPT
 INSTALL_PROGRAM
-ac_ct_READELF
-READELF
 ARFLAGS
 ac_ct_AR
 AR
@@ -7181,116 +7179,6 @@ then
         ARFLAGS="rcs"
 fi
 
-if test -n "$ac_tool_prefix"; then
-  for ac_prog in readelf
-  do
-    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
-set dummy $ac_tool_prefix$ac_prog; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_READELF+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$READELF"; then
-  ac_cv_prog_READELF="$READELF" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
-    ac_cv_prog_READELF="$ac_tool_prefix$ac_prog"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-READELF=$ac_cv_prog_READELF
-if test -n "$READELF"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
-$as_echo "$READELF" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-    test -n "$READELF" && break
-  done
-fi
-if test -z "$READELF"; then
-  ac_ct_READELF=$READELF
-  for ac_prog in readelf
-do
-  # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_prog_ac_ct_READELF+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if test -n "$ac_ct_READELF"; then
-  ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-    for ac_exec_ext in '' $ac_executable_extensions; do
-  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
-    ac_cv_prog_ac_ct_READELF="$ac_prog"
-    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-  done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
-if test -n "$ac_ct_READELF"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
-$as_echo "$ac_ct_READELF" >&6; }
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-
-
-  test -n "$ac_ct_READELF" && break
-done
-
-  if test "x$ac_ct_READELF" = x; then
-    READELF=":"
-  else
-    case $cross_compiling:$ac_tool_warned in
-yes:)
-{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
-$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
-ac_tool_warned=yes ;;
-esac
-    READELF=$ac_ct_READELF
-  fi
-fi
-
-if test "$cross_compiling" = yes; then
-    case "$READELF" in
-       readelf|:)
-       as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5
-       ;;
-    esac
-fi
-
-
-
 case $MACHDEP in
 hp*|HP*)
        # install -d does not work on HP-UX
index 4575a2458ba2f0ad6ed9af3d2de316ae764313da..0ca5e3fcbf5496c085a373e21a135f5faf60fdcd 100644 (file)
@@ -1617,17 +1617,6 @@ then
         ARFLAGS="rcs"
 fi
 
-AC_CHECK_TOOLS([READELF], [readelf], [:])
-if test "$cross_compiling" = yes; then
-    case "$READELF" in
-       readelf|:)
-       AC_MSG_ERROR([readelf for the host is required for cross builds])
-       ;;
-    esac
-fi
-AC_SUBST(READELF)
-
-
 case $MACHDEP in
 hp*|HP*)
        # install -d does not work on HP-UX