]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-135497: fix `MAXLOGNAME` detection in `configure.ac` (GH-135508) (#135516)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 14 Jun 2025 16:50:48 +0000 (18:50 +0200)
committerGitHub <noreply@github.com>
Sat, 14 Jun 2025 16:50:48 +0000 (16:50 +0000)
gh-135497: fix `MAXLOGNAME` detection in `configure.ac` (GH-135508)
(cherry picked from commit 2e15a50851da66eb8227ec6ea07a9cc7ed08fbf3)

Co-authored-by: Caleb Xu <calebcenter@live.com>
Misc/NEWS.d/next/Build/2025-06-14-10-32-11.gh-issue-135497.ajlV4F.rst [new file with mode: 0644]
Misc/NEWS.d/next/Library/2025-06-14-14-19-13.gh-issue-135497.1pzwdA.rst [new file with mode: 0644]
configure
configure.ac

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 (file)
index 0000000..c84663b
--- /dev/null
@@ -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 (file)
index 0000000..d3e81de
--- /dev/null
@@ -0,0 +1 @@
+Fix :func:`os.getlogin` failing for longer usernames on BSD-based platforms.
index 1fe72c1934f42e39053da216d0ba2aa77b44f15d..015f2e7cac10bce4ccdd3e36df3898ae2ba64773 100755 (executable)
--- a/configure
+++ b/configure
@@ -23849,7 +23849,7 @@ fi
 
 
 
-ac_fn_check_decl "$LINENO" "MAXLOGNAME" "ac_cv_have_decl_MAXLOGNAME" "#include <sys/params.h>
+ac_fn_check_decl "$LINENO" "MAXLOGNAME" "ac_cv_have_decl_MAXLOGNAME" "#include <sys/param.h>
 " "$ac_c_undeclared_builtin_options" "CFLAGS"
 if test "x$ac_cv_have_decl_MAXLOGNAME" = xyes
 then :
index d10a0368286c3f9baf56fd5b25fc31cd5a4e29f0..fb48f39d336013ae41ad7faa0409c798fa2d42be 100644 (file)
@@ -5542,7 +5542,7 @@ AC_CHECK_DECL([MAXLOGNAME],
               [AC_DEFINE([HAVE_MAXLOGNAME], [1],
                          [Define if you have the 'MAXLOGNAME' constant.])],
               [],
-              [@%:@include <sys/params.h>])
+              [@%:@include <sys/param.h>])
 
 AC_CHECK_DECLS([UT_NAMESIZE],
               [AC_DEFINE([HAVE_UT_NAMESIZE], [1],