FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.14] gh-153711: Avoid use of dup3 and pipe2 calls introduced in macOS 27 by ned-deily · Pull Request #155206 · python/cpython · GitHub

Repository navigation

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .ac  (1) .rst  (1) No extension  (1) All 3 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
On macOS, do not attempt to use the :manpage:`dup3(2)` and
:manpage:`pipe2(2)` system calls introduced in
macOS 27 to prevent problems when running on older systems.
32 changes: 19 additions & 13 deletions configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion configure.ac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -5361,7 +5361,13 @@ fi
# header definition prevents usage - autoconf doesn't use the headers), or
# raise an error if used at runtime. Force these symbols off.
if test "$ac_sys_system" != "iOS" ; then
AC_CHECK_FUNCS([dup3 getentropy getgroups pipe2 system])
AC_CHECK_FUNCS([getentropy getgroups system])
fi
# In addition, macOS introduced dup3 and pipe2 in macOS 27, late in the
# lifetime of this version of Python. Rather than adding weaklinking
# support for them, just continue to ignore them.
if test "$ac_sys_system" != "iOS" -a "$ac_sys_system" != "Darwin"; then
AC_CHECK_FUNCS([dup3 pipe2])
fi

AC_CHECK_DECL([dirfd],
Expand Down
Loading

Back | FazBrowse Home | New Git URL