pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/ruby40



Module Name:    pkgsrc
Committed By:   wiz
Date:           Thu Feb  5 10:07:45 UTC 2026

Modified Files:
        pkgsrc/lang/ruby40: distinfo
Added Files:
        pkgsrc/lang/ruby40/patches: patch-template_Makefile.in

Log Message:
ruby40: fix build with CPPFLAGS=-g

CPPFLAGS got passed unmodified to dtrace, but that does not support
all compiler flags that can be passed this way.

Add link to upstream bug report.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/lang/ruby40/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/ruby40/patches/patch-template_Makefile.in

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/ruby40/distinfo
diff -u pkgsrc/lang/ruby40/distinfo:1.1 pkgsrc/lang/ruby40/distinfo:1.2
--- pkgsrc/lang/ruby40/distinfo:1.1     Tue Feb  3 16:00:33 2026
+++ pkgsrc/lang/ruby40/distinfo Thu Feb  5 10:07:44 2026
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1 2026/02/03 16:00:33 taca Exp $
+$NetBSD: distinfo,v 1.2 2026/02/05 10:07:44 wiz Exp $
 
 BLAKE2s (ruby-4.0.1.tar.xz) = 241246857c0f5543a6ca7a9c332440cdc00b68ba3a89f9b6f3174e4b1518a9be
 SHA512 (ruby-4.0.1.tar.xz) = b67d9d1f97ba30200d103f8454e39dc2d0450819d51d91eb5451d44b0bafc56d2fa48bb1be6c5081babe5828f679984bad02b9bcee7441f6bd34c0a95b8f200b
@@ -17,6 +17,7 @@ SHA1 (patch-lib_rubygems_install__update
 SHA1 (patch-lib_rubygems_installer.rb) = 68a43121b4faab060afa4e352e1603f9d6630a47
 SHA1 (patch-lib_rubygems_platform.rb) = 6bd2e1c5c3064f9d694508169a5bf0a594d7bbef
 SHA1 (patch-lib_rubygems_specification.rb) = f543cab6b56fec0f7195d4eabddedc080c18688c
+SHA1 (patch-template_Makefile.in) = db46fd6681186446f64ce1462058bc8233eebe94
 SHA1 (patch-test_rubygems_test__gem.rb) = 32f7c7d7f8a024c045d78c2bce93944fc3113d04
 SHA1 (patch-thread__pthread.c) = 7c1231933a2d6ce9d56891ab512371841697fbca
 SHA1 (patch-tool_ifchange) = 1803bb6a1836e232dcabcf38f11c9881dbf726ea

Added files:

Index: pkgsrc/lang/ruby40/patches/patch-template_Makefile.in
diff -u /dev/null pkgsrc/lang/ruby40/patches/patch-template_Makefile.in:1.1
--- /dev/null   Thu Feb  5 10:07:45 2026
+++ pkgsrc/lang/ruby40/patches/patch-template_Makefile.in       Thu Feb  5 10:07:44 2026
@@ -0,0 +1,16 @@
+$NetBSD: patch-template_Makefile.in,v 1.1 2026/02/05 10:07:44 wiz Exp $
+
+Fix build with CPPFLAGS=-g.
+https://bugs.ruby-lang.org/issues/21862
+
+--- template/Makefile.in.orig  2026-02-05 10:01:49.788461433 +0000
++++ template/Makefile.in
+@@ -513,7 +513,7 @@ _PREFIXED_SYMBOL = TOKEN_PASTE($(SYMBOL_PREFIX),name)
+ 
+ .d.h:
+       @$(ECHO) translating probes $<
+-      $(Q) $(DTRACE) -o $@.tmp -h -C $(INCFLAGS) $(CPPFLAGS) -s $<
++      $(Q) $(DTRACE) -o $@.tmp -h -C $(INCFLAGS) -s $<
+       $(Q) sed -e 's/RUBY_/RUBY_DTRACE_/g' -e 's/PROBES_H_TMP/RUBY_PROBES_H/' -e 's/(char \*/(const char */g' -e 's/, char \*/, const char */g' $@.tmp > $@
+       $(Q) $(RM) $@.tmp
+ 



Home | Main Index | Thread Index | Old Index