Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f35c7c0

Browse files
gh-114875: Require getgrent for building the grp extension module (#114876)
Co-authored-by: Erlend E. Aasland <[email protected]>
1 parent 1183f1e commit f35c7c0

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add :c:func:`!getgrent` as a prerequisite for building the :mod:`grp` module.

configure

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4787,7 +4787,7 @@ AC_CHECK_FUNCS([ \
47874787
copy_file_range ctermid dup dup3 execv explicit_bzero explicit_memset \
47884788
faccessat fchmod fchmodat fchown fchownat fdopendir fdwalk fexecve \
47894789
fork fork1 fpathconf fstatat ftime ftruncate futimens futimes futimesat \
4790-
gai_strerror getegid getentropy geteuid getgid getgrgid getgrgid_r \
4790+
gai_strerror getegid getentropy geteuid getgid getgrent getgrgid getgrgid_r \
47914791
getgrnam_r getgrouplist getgroups gethostname getitimer getloadavg getlogin \
47924792
getpeername getpgid getpid getppid getpriority _getpty \
47934793
getpwent getpwnam_r getpwuid getpwuid_r getresgid getresuid getrusage getsid getspent \
@@ -7313,7 +7313,9 @@ PY_STDLIB_MOD([_socket],
73137313
-a "$ac_cv_header_netinet_in_h" = "yes"]))
73147314

73157315
dnl platform specific extensions
7316-
PY_STDLIB_MOD([grp], [], [test "$ac_cv_func_getgrgid" = yes -o "$ac_cv_func_getgrgid_r" = yes])
7316+
PY_STDLIB_MOD([grp], [],
7317+
[test "$ac_cv_func_getgrent" = "yes" &&
7318+
{ test "$ac_cv_func_getgrgid" = "yes" || test "$ac_cv_func_getgrgid_r" = "yes"; }])
73177319
PY_STDLIB_MOD([pwd], [], [test "$ac_cv_func_getpwuid" = yes -o "$ac_cv_func_getpwuid_r" = yes])
73187320
PY_STDLIB_MOD([resource], [], [test "$ac_cv_header_sys_resource_h" = yes])
73197321
PY_STDLIB_MOD([_scproxy],

pyconfig.h.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,9 @@
474474
/* Define to 1 if you have the `getgid' function. */
475475
#undef HAVE_GETGID
476476

477+
/* Define to 1 if you have the `getgrent' function. */
478+
#undef HAVE_GETGRENT
479+
477480
/* Define to 1 if you have the `getgrgid' function. */
478481
#undef HAVE_GETGRGID
479482

0 commit comments

Comments
 (0)