Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-lang/python-3.11.3: fix build on macOS.
Currently, dev-lang/python-3.11.3 is unbuildable on macOS due to GCC incompatibility. There exists two "#ifdef" checks for the system calls mkfifoat() and mknodat(), which are not compatible with GCC. Because they're defined using the __builtin_available() function - specific to clang without a fallback for GCC, they're never defined, thus creating the following errors: ./Modules/posixmodule.c:15647:23: error: 'HAVE_MKFIFOAT_RUNTIME' undeclared (first use in this function); did you mean 'HAVE_MKDIRAT_RUNTIME'? ./Modules/posixmodule.c:15651:22: error: 'HAVE_MKNODAT_RUNTIME' undeclared (first use in this function); did you mean 'HAVE_MKDIRAT_RUNTIME'? This bug [1] has already been reported to upstream with a patch [2] waiting to be merged. This commit applies the upstream patch to add the missing GCC fallbacks. [1] python/cpython#104106 [2] python/cpython#104129 Closes: https://bugs.gentoo.org/905618 Signed-off-by: Yifeng Li <tomli@tomli.me>
- Loading branch information