Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
https://bugs.gentoo.org/905618
https://github.com/python/cpython/issues/104106
https://github.com/python/cpython/pull/104129

From 6fc35af351b61e795c8ef6e10ff0f22a71130542 Mon Sep 17 00:00:00 2001
From: Dong-hee Na <[email protected]>
Date: Wed, 3 May 2023 20:35:42 +0900
Subject: [PATCH 1/2] gh-104106: Add gcc fallback of mkfifoat/mknodat for macOS

---
Modules/posixmodule.c | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index dcb5e7a0e040..b395c265c72d 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -175,6 +175,14 @@
# define HAVE_PWRITEV_RUNTIME (pwritev != NULL)
# endif

+# ifdef HAVE_MKFIFOAT
+# define HAVE_MKFIFOAT_RUNTIME (mkfifoat != NULL)
+# endif
+
+# ifdef HAVE_MKNODAT
+# define HAVE_MKNODAT_RUNTIME (mknodat != NULL)
+# endif
+
#endif

#ifdef HAVE_FUTIMESAT
4 changes: 3 additions & 1 deletion dev-lang/python/python-3.11.3.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ RDEPEND="
>=dev-libs/expat-2.1:=
dev-libs/libffi:=
dev-python/gentoo-common
sys-apps/util-linux:=
kernel_linux? ( sys-apps/util-linux:= )
>=sys-libs/zlib-1.1.3:=
virtual/libcrypt:=
virtual/libintl
Expand Down Expand Up @@ -127,6 +127,8 @@ src_prepare() {
"${WORKDIR}/${PATCHSET}"
# Prefix' round of patches
"${WORKDIR}"/${PREFIX_PATCHSET}

"${FILESDIR}"/${PN}-3.11.3-gcc-fallbacks-for-mkfifo-mknod-checks.patch
)

default
Expand Down