pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/ruby31-base ruby31-base: Fix install on macOS arm64.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/68cd842d8c4b
branches:  trunk
changeset: 378745:68cd842d8c4b
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu May 05 10:25:05 2022 +0000

description:
ruby31-base: Fix install on macOS arm64.

diffstat:

 lang/ruby31-base/distinfo                      |   3 ++-
 lang/ruby31-base/patches/patch-tool_runruby.rb |  15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r 8e88af321233 -r 68cd842d8c4b lang/ruby31-base/distinfo
--- a/lang/ruby31-base/distinfo Thu May 05 10:15:17 2022 +0000
+++ b/lang/ruby31-base/distinfo Thu May 05 10:25:05 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2022/05/04 16:44:53 taca Exp $
+$NetBSD: distinfo,v 1.6 2022/05/05 10:25:05 jperkin Exp $
 
 BLAKE2s (ruby-3.1.2.tar.xz) = 5384cfebbd466de36f68f554be2c045363e6c074d90a94a4c035ecaadf3c878b
 SHA512 (ruby-3.1.2.tar.xz) = 4a74e9efc6ea4b3eff4fec7534eb1fff4794d021531defc2e9937e53c6668db8ecdc0fff2bc23d5e6602d0df344a2caa85b31c5414309541e3d5313ec82b6e21
@@ -19,3 +19,4 @@
 SHA1 (patch-test_rubygems_test__gem.rb) = e624da5b9c49f9409160a7b0fdd2efad17986cab
 SHA1 (patch-thread__pthread.c) = 7c1231933a2d6ce9d56891ab512371841697fbca
 SHA1 (patch-tool_ifchange) = 1814cd41f0b0a93b181799cb117bd1f57068cf33
+SHA1 (patch-tool_runruby.rb) = 5dd8a3bea5e9776f7521f85955dddd2127e4c4d0
diff -r 8e88af321233 -r 68cd842d8c4b lang/ruby31-base/patches/patch-tool_runruby.rb
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby31-base/patches/patch-tool_runruby.rb    Thu May 05 10:25:05 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-tool_runruby.rb,v 1.1 2022/05/05 10:25:05 jperkin Exp $
+
+Do not LD_PRELOAD on macOS, breaks chroots.
+
+--- tool/runruby.rb.orig       2022-04-12 11:11:15.000000000 +0000
++++ tool/runruby.rb
+@@ -132,7 +132,7 @@ if File.file?(libruby_so)
+       e = nil if e.empty?
+       e ||= "LD_PRELOAD" if /linux/ =~ RUBY_PLATFORM
+     end
+-    if e
++    unless /darwin/ =~ RUBY_PLATFORM
+       env[e] = [libruby_so, ENV[e]].compact.join(File::PATH_SEPARATOR)
+     end
+   end



Home | Main Index | Thread Index | Old Index