ports/lang/ruby/3.1/patches/patch-configure

40 lines
878 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Support arm64 coroutines.
Set correct shared library name.
Override the arch setting to remove OpenBSD version from it,
so ports don't have to be bumped when OpenBSD version changes.
Index: configure
--- configure.orig
+++ configure
2023-08-18 18:38:43 +00:00
@@ -29567,6 +29567,10 @@ esac
2023-08-16 22:26:55 +00:00
coroutine_type=x86
;; #(
+ aarch64-openbsd*) :
+
+ coroutine_type=arm64
+ ;; #(
*-openbsd*) :
coroutine_type=pthread
2023-08-18 18:38:43 +00:00
@@ -31827,7 +31831,7 @@ fi
2023-08-16 22:26:55 +00:00
;; #(
openbsd*|mirbsd*) :
- LIBRUBY_SO='lib$(RUBY_SO_NAME).$(SOEXT).$(MAJOR).'`expr ${MINOR} \* 10 + ${TEENY}`
+ LIBRUBY_SO='lib$(RUBY_SO_NAME).so.'${LIBruby31_VERSION}
;; #(
solaris*) :
2023-08-18 18:38:43 +00:00
@@ -33529,7 +33533,7 @@ then :
2023-08-16 22:26:55 +00:00
else $as_nop
- arch="${target_cpu}-${target_os}"
+ arch="${target_cpu}-openbsd"
fi
printf "%s\n" "#define RUBY_PLATFORM \"$arch\"" >>confdefs.h