From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 14 Jun 2025 16:49:13 +0000 (+0200) Subject: [3.13] gh-135497: fix `MAXLOGNAME` detection in `configure.ac` (GH-135508) (#135517) X-Git-Tag: v3.13.6~208 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=15340775f8ded517e98604fb416e6f758d21f635;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-135497: fix `MAXLOGNAME` detection in `configure.ac` (GH-135508) (#135517) gh-135497: fix `MAXLOGNAME` detection in `configure.ac` (GH-135508) (cherry picked from commit 2e15a50851da66eb8227ec6ea07a9cc7ed08fbf3) Co-authored-by: Caleb Xu --- diff --git a/Misc/NEWS.d/next/Build/2025-06-14-10-32-11.gh-issue-135497.ajlV4F.rst b/Misc/NEWS.d/next/Build/2025-06-14-10-32-11.gh-issue-135497.ajlV4F.rst new file mode 100644 index 000000000000..c84663b14668 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2025-06-14-10-32-11.gh-issue-135497.ajlV4F.rst @@ -0,0 +1 @@ +Fix the detection of ``MAXLOGNAME`` in the ``configure.ac`` script. diff --git a/Misc/NEWS.d/next/Library/2025-06-14-14-19-13.gh-issue-135497.1pzwdA.rst b/Misc/NEWS.d/next/Library/2025-06-14-14-19-13.gh-issue-135497.1pzwdA.rst new file mode 100644 index 000000000000..d3e81de9dbfd --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-06-14-14-19-13.gh-issue-135497.1pzwdA.rst @@ -0,0 +1 @@ +Fix :func:`os.getlogin` failing for longer usernames on BSD-based platforms. diff --git a/configure b/configure index 519caa8ca741..a0da75f9bec6 100755 --- a/configure +++ b/configure @@ -21893,7 +21893,7 @@ fi -ac_fn_check_decl "$LINENO" "MAXLOGNAME" "ac_cv_have_decl_MAXLOGNAME" "#include +ac_fn_check_decl "$LINENO" "MAXLOGNAME" "ac_cv_have_decl_MAXLOGNAME" "#include " "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_MAXLOGNAME" = xyes then : diff --git a/configure.ac b/configure.ac index 2a037569e492..9c67dab2b46e 100644 --- a/configure.ac +++ b/configure.ac @@ -5404,7 +5404,7 @@ AC_CHECK_DECL([MAXLOGNAME], [AC_DEFINE([HAVE_MAXLOGNAME], [1], [Define if you have the 'MAXLOGNAME' constant.])], [], - [@%:@include ]) + [@%:@include ]) AC_CHECK_DECLS([UT_NAMESIZE], [AC_DEFINE([HAVE_UT_NAMESIZE], [1],