Files
macports-ports/lang/ruby30/files/patch-generated.diff
Fred WrightandRenee Otten 66ccc5251f ruby30: Fix build with Xcode 16.
This backports an upstream fix that was already included in ruby3.1+.
Although it's unlikely that this changes the content of successful
builds, we revbump anyway out of conservatism.

TESTED:
Built successfully with default variants on OSX 10.4-10.5 ppc,
10.4-10.6 i386, 10.5-12.x x86_64, and 11.x-15.x arm64.  Also built
successfully with all -universal-jemalloc variants on 10.4-10.5.  Also
built successfully with all variants on all 10.6+ cases.
Tests not run due to test framework issues.
2024-09-24 23:11:11 -04:00

40 lines
992 B
Diff

--- configure.orig 2024-04-23 03:23:28.000000000 -0700
+++ configure 2024-09-23 19:38:03.000000000 -0700
@@ -9272,6 +9272,8 @@ case "$target_archs" in #(
ARCH_FLAG=-m64 ;; #(
i[3-6]86) :
ARCH_FLAG=-m32 ;; #(
+ ppc) :
+ ARCH_FLAG=-m32 ;; #(
*) :
as_fn_error $? "unknown target architecture: $target_archs" "$LINENO" 5
;;
@@ -9370,6 +9372,8 @@ case "$target_cpu" in #(
ARCH_FLAG=-m64 ;; #(
i[3-6]86) :
ARCH_FLAG=-m32 ;; #(
+ ppc) :
+ ARCH_FLAG=-m32 ;; #(
*) :
as_fn_error $? "unknown target architecture: $target_archs" "$LINENO" 5
;;
@@ -28747,6 +28751,18 @@ printf %s "checking native coroutine imp
rb_cv_coroutine=arm64
;; #(
+ *86-darwin*) :
+
+ rb_cv_coroutine=x86
+ ;; #(
+ ppc*-darwin8*) :
+
+ rb_cv_coroutine=copy
+ ;; #(
+ universal-darwin8*) :
+
+ rb_cv_coroutine=copy
+ ;; #(
x*64-linux*) :
case "$ac_cv_sizeof_voidp" in #(