https://github.com/python/cpython/commit/2e15a50851da66eb8227ec6ea07a9cc7ed08fbf3
commit: 2e15a50851da66eb8227ec6ea07a9cc7ed08fbf3
branch: main
author: Caleb Xu <[email protected]>
committer: picnixz <[email protected]>
date: 2025-06-14T16:04:16Z
summary:
gh-135497: fix `MAXLOGNAME` detection in `configure.ac` (#135508)
files:
A Misc/NEWS.d/next/Build/2025-06-14-10-32-11.gh-issue-135497.ajlV4F.rst
A Misc/NEWS.d/next/Library/2025-06-14-14-19-13.gh-issue-135497.1pzwdA.rst
M configure
M 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
index 00000000000000..c84663b14668d6
--- /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 00000000000000..d3e81de9dbfd34
--- /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 fef9f2d7da935c..6c4923e82a886d 100755
--- 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 :
diff --git a/configure.ac b/configure.ac
index cc37a636c522ba..4f935aacef1665 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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],
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]