-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python311: bring back builds for ARMv5_ARCHS and OLD_PPC_ARCHS
- enable build of python311 for ARMv5 and OLD_PPC - enable build of cross/cryptography for ARMv5 - bring back python311 customization for OLD_PPC_ARCHS - adjust patches for python311 and older toolchains
- Loading branch information
Showing
7 changed files
with
68 additions
and
38 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
5 changes: 3 additions & 2 deletions
5
cross/python311/patches/88f6281/005-configure.ac-remove-unknown-flags.patch
This file contains 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
39 changes: 39 additions & 0 deletions
39
cross/python311/patches/ppc853x-5.2/001-revert-static_assert_undefined-fix-GH-94766.patch
This file contains 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,39 @@ | ||
--- Include/pymacro.h-orig 2023-06-06 22:00:27.000000000 +0000 | ||
+++ Include/pymacro.h 2023-07-03 19:36:57.974496974 +0000 | ||
@@ -3,23 +3,20 @@ | ||
|
||
// gh-91782: On FreeBSD 12, if the _POSIX_C_SOURCE and _XOPEN_SOURCE macros are | ||
// defined, <sys/cdefs.h> disables C11 support and <assert.h> does not define | ||
-// the static_assert() macro. | ||
+// the static_assert() macro. Define the static_assert() macro in Python until | ||
+// <sys/cdefs.h> suports C11: | ||
// https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255290 | ||
-// | ||
-// macOS <= 10.10 doesn't define static_assert in assert.h at all despite | ||
-// having C11 compiler support. | ||
-// | ||
-// static_assert is defined in glibc from version 2.16. Compiler support for | ||
-// the C11 _Static_assert keyword is in gcc >= 4.6. | ||
-// | ||
-// MSVC makes static_assert a keyword in C11-17, contrary to the standards. | ||
-// | ||
-// In C++11 and C2x, static_assert is a keyword, redefining is undefined | ||
-// behaviour. So only define if building as C (if __STDC_VERSION__ is defined), | ||
-// not C++, and only for C11-17. | ||
-#if !defined(static_assert) && (defined(__GNUC__) || defined(__clang__)) \ | ||
- && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L \ | ||
- && __STDC_VERSION__ <= 201710L | ||
+#if defined(__FreeBSD__) && !defined(static_assert) | ||
+# define static_assert _Static_assert | ||
+#endif | ||
+ | ||
+// static_assert is defined in glibc from version 2.16. Before it requires | ||
+// compiler support (gcc >= 4.6) and is called _Static_assert. | ||
+// In C++ 11 static_assert is a keyword, redefining is undefined behaviour. | ||
+#if (defined(__GLIBC__) \ | ||
+ && (__GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ <= 16)) \ | ||
+ && !(defined(__cplusplus) && __cplusplus >= 201103L) \ | ||
+ && !defined(static_assert)) | ||
# define static_assert _Static_assert | ||
#endif | ||
|
This file contains 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
2 changes: 1 addition & 1 deletion
2
cross/python311/patches/x86-5.2/005-configure.ac-remove-unknown-flags.patch
This file contains 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
This file contains 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