pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/ruby lang/ruby: fix build problem of Ruby 3.1 on ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ca63aea34cb3
branches:  trunk
changeset: 378550:ca63aea34cb3
user:      taca <taca%pkgsrc.org@localhost>
date:      Wed May 04 16:16:49 2022 +0000

description:
lang/ruby: fix build problem of Ruby 3.1 on NetBSD 8

Fix build problem of Ruby 3.1 on NetBSD 8 by disabling dtrace.

Ruby 3.1 dtrace(1) to modify compiled object files during build process.
But something wrong on NetBSD 8, includeing 8.2_STABLE.

For example, vm.o contains these symbols on NetBSD 9:

0000000000000000 A __dtrace_ruby___array__create
0000000000000000 A __dtrace_ruby___cmethod__entry
0000000000000000 A __dtrace_ruby___cmethod__return
0000000000000000 A __dtrace_ruby___hash__create
0000000000000000 A __dtrace_ruby___method__entry
0000000000000000 A __dtrace_ruby___method__return
0000000000000000 A __dtraceenabled_ruby___array__create
0000000000000000 A __dtraceenabled_ruby___cmethod__entry
0000000000000000 A __dtraceenabled_ruby___cmethod__return
0000000000000000 A __dtraceenabled_ruby___hash__create
0000000000000000 A __dtraceenabled_ruby___method__entry
0000000000000000 A __dtraceenabled_ruby___method__return

But on NetBSD 8:

0000000000000000 A __dtrace_ruby___array-create
0000000000000000 A __dtrace_ruby___cmethod-entry
0000000000000000 A __dtrace_ruby___cmethod-return
0000000000000000 A __dtrace_ruby___hash-create
0000000000000000 A __dtrace_ruby___method-entry
0000000000000000 A __dtrace_ruby___method-return
0000000000000000 A __dtraceenabled_ruby___array-create
0000000000000000 A __dtraceenabled_ruby___cmethod-entry
0000000000000000 A __dtraceenabled_ruby___cmethod-return
0000000000000000 A __dtraceenabled_ruby___hash-create
0000000000000000 A __dtraceenabled_ruby___method-entry
0000000000000000 A __dtraceenabled_ruby___method-return

diffstat:

 lang/ruby/platform.mk |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 8063e2b06a71 -r ca63aea34cb3 lang/ruby/platform.mk
--- a/lang/ruby/platform.mk     Wed May 04 16:14:30 2022 +0000
+++ b/lang/ruby/platform.mk     Wed May 04 16:16:49 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: platform.mk,v 1.9 2022/01/14 15:42:08 taca Exp $
+# $NetBSD: platform.mk,v 1.10 2022/05/04 16:16:49 taca Exp $
 #
 
 #
@@ -115,6 +115,15 @@
 .endif
 
 #
+# NetBSD
+#
+# Ruby 3.1 seems to have problem "dtrace -G" on NetBSD 8.
+#
+.if ${RUBY_VER} == 31 && ${OPSYS} == "NetBSD" && !empty(OS_VERSION:M8*)
+CONFIGURE_ARGS+=       --disable-dtrace
+.endif
+
+#
 # Solaris
 #
 # fix build with sunpro.



Home | Main Index | Thread Index | Old Index