Module Name: src Committed By: rin Date: Sun Aug 20 02:02:40 UTC 2023
Modified Files: src/external/gpl3/gdb/dist/gnulib: configure src/external/gpl3/gdb/dist/gnulib/import/m4: rename.m4 Log Message: gdb/gnulib: ``guess yes'' to rename(2) checks for NetBSD Otherwise, rename(2) gets replaced by gnulib version for mknative (i.e., cross compile), which results build failure for clang. Confirmed that all rename(2) tests successfully passed at least on amd64. Even if they will fail, it is our responsibility to fix them, not gdb, anyway. XXX Edit configure by hand, rather than regen it, in order to avoid subtle huge diffs from upstream, which come from autoconf version mismatch. XXX XXX For gcc, replacement for rename(2) lost by cstdio, which forcibly undefs all stdio functions. This should be an unintended behavior. One of cstdio comes from our local change for c++locale.h, but even if it is dropped, cstdio is included from elsewhere. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gdb/dist/gnulib/configure cvs rdiff -u -r1.3 -r1.4 \ src/external/gpl3/gdb/dist/gnulib/import/m4/rename.m4 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/gpl3/gdb/dist/gnulib/configure diff -u src/external/gpl3/gdb/dist/gnulib/configure:1.3 src/external/gpl3/gdb/dist/gnulib/configure:1.4 --- src/external/gpl3/gdb/dist/gnulib/configure:1.3 Mon Jul 31 17:00:53 2023 +++ src/external/gpl3/gdb/dist/gnulib/configure Sun Aug 20 02:02:40 2023 @@ -31797,6 +31797,8 @@ else *-gnu*) gl_cv_func_rename_slash_dst_works="guessing yes" ;; # Guess no on native Windows. mingw*) gl_cv_func_rename_slash_dst_works="guessing no" ;; + # Guess yes on NetBSD systems. + netbsd*) gl_cv_func_rename_slash_dst_works="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_rename_slash_dst_works="$gl_cross_guess_normal" ;; esac @@ -31870,6 +31872,8 @@ else *-gnu*) gl_cv_func_rename_slash_src_works="guessing yes" ;; # Guess yes on native Windows. mingw*) gl_cv_func_rename_slash_src_works="guessing yes" ;; + # Guess yes on NetBSD systems. + netbsd*) gl_cv_func_rename_slash_src_works="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_rename_slash_src_works="$gl_cross_guess_normal" ;; esac @@ -31996,6 +32000,8 @@ fi *-gnu*) gl_cv_func_rename_link_works="guessing yes" ;; # Guess yes on native Windows. mingw*) gl_cv_func_rename_link_works="guessing yes" ;; + # Guess yes on NetBSD systems. + netbsd*) gl_cv_func_rename_link_works="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_rename_link_works="$gl_cross_guess_normal" ;; esac @@ -32033,6 +32039,8 @@ else *-gnu*) gl_cv_func_rename_dest_works="guessing yes" ;; # Guess no on native Windows. mingw*) gl_cv_func_rename_dest_works="guessing no" ;; + # Guess yes on NetBSD systems. + netbsd*) gl_cv_func_rename_dest_works="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_rename_dest_works="$gl_cross_guess_normal" ;; esac Index: src/external/gpl3/gdb/dist/gnulib/import/m4/rename.m4 diff -u src/external/gpl3/gdb/dist/gnulib/import/m4/rename.m4:1.3 src/external/gpl3/gdb/dist/gnulib/import/m4/rename.m4:1.4 --- src/external/gpl3/gdb/dist/gnulib/import/m4/rename.m4:1.3 Mon Jul 31 17:00:53 2023 +++ src/external/gpl3/gdb/dist/gnulib/import/m4/rename.m4 Sun Aug 20 02:02:40 2023 @@ -61,6 +61,8 @@ AC_DEFUN([gl_FUNC_RENAME], *-gnu*) gl_cv_func_rename_slash_dst_works="guessing yes" ;; # Guess no on native Windows. mingw*) gl_cv_func_rename_slash_dst_works="guessing no" ;; + # Guess yes on NetBSD systems. + netbsd*) gl_cv_func_rename_slash_dst_works="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_rename_slash_dst_works="$gl_cross_guess_normal" ;; esac @@ -117,6 +119,8 @@ AC_DEFUN([gl_FUNC_RENAME], *-gnu*) gl_cv_func_rename_slash_src_works="guessing yes" ;; # Guess yes on native Windows. mingw*) gl_cv_func_rename_slash_src_works="guessing yes" ;; + # Guess yes on NetBSD systems. + netbsd*) gl_cv_func_rename_slash_src_works="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_rename_slash_src_works="$gl_cross_guess_normal" ;; esac @@ -188,6 +192,8 @@ AC_DEFUN([gl_FUNC_RENAME], *-gnu*) gl_cv_func_rename_link_works="guessing yes" ;; # Guess yes on native Windows. mingw*) gl_cv_func_rename_link_works="guessing yes" ;; + # Guess yes on NetBSD systems. + netbsd*) gl_cv_func_rename_link_works="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_rename_link_works="$gl_cross_guess_normal" ;; esac @@ -237,6 +243,8 @@ AC_DEFUN([gl_FUNC_RENAME], *-gnu*) gl_cv_func_rename_dest_works="guessing yes" ;; # Guess no on native Windows. mingw*) gl_cv_func_rename_dest_works="guessing no" ;; + # Guess yes on NetBSD systems. + netbsd*) gl_cv_func_rename_dest_works="guessing yes" ;; # If we don't know, obey --enable-cross-guesses. *) gl_cv_func_rename_dest_works="$gl_cross_guess_normal" ;; esac