Up to [cvs.NetBSD.org] / pkgsrc / lang / ruby34
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Pullup ticket #7265 - requested by rin
lang/ruby34: Bug fix
lang/ruby33: Bug fix
lang/ruby40: Bug fix
Revisions pulled up:
- lang/ruby33/hacks.mk 1.2
- lang/ruby34/hacks.mk 1.2
- lang/ruby40/hacks.mk 1.2
---
Module Name: pkgsrc
Committed By: rin
Date: Sat Oct 3 11:12:34 UTC 2026
Modified Files:
pkgsrc/lang/ruby33: hacks.mk
pkgsrc/lang/ruby34: hacks.mk
pkgsrc/lang/ruby40: hacks.mk
Log Message:
ruby*: Works around GCC 14 bug on alpha
s/-O2/-O1/ for GCC >= 14 on alpha. Otherwise, for ruby34, e.g.,
```
gcc -mieee -O2 -mieee -pthread -I/usr/include -I/usr/pkg/include -fPIC
-pipe -fno-strict-overflow -fvisibility=hidden
-fexcess-precision=standard -DRUBY_EXPORT -I.
-I.ext/include/alpha-netbsd -I.ext/include -I./include -I. -I./prism
-I./enc/unicode/15.0.0 -Dmodular_gc_dir="" -I/usr/include
-I/usr/pkg/include -o ractor.o -c ractor.c
during RTL pass: sched2
ractor.c: In function 'ractor_channel_func':
ractor.c:4010:1: internal compiler error: in move_insn, at
haifa-sched.cc:5477
4010 | }
| ^
0x1215184ff diagnostic_impl(rich_location*, diagnostic_metadata const*,
int, char const*, __va_list_tag*, diagnostic_t)
???:0
0x121518beb internal_error(char const*, ...)
???:0
0x121640d9b fancy_abort(char const*, int, char const*)
???:0
0x120569693 move_insn(rtx_insn*, rtx_insn*, rtx_def*)
???:0
0x12057ef93 schedule_block(basic_block_def**, void*)
???:0
0x1212bc327 schedule_insns() [clone .part.0]
???:0
0x1212bc907 (anonymous namespace)::pass_sched2::execute(function*)
???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <http://www.NetBSD.org/support/send-pr.html> for instructions.
```
cf. PR toolchain/60843 GCC/alpha 14 miscompiles GCC backend
ruby*: Works around GCC 14 bug on alpha
s/-O2/-O1/ for GCC >= 14 on alpha. Otherwise, for ruby34, e.g.,
```
gcc -mieee -O2 -mieee -pthread -I/usr/include -I/usr/pkg/include -fPIC -pipe -fno-strict-overflow -fvisibility=hidden -fexcess-precision=standard -DRUBY_EXPORT -I. -I.ext/include/alpha-netbsd -I.ext/include -I./include -I. -I./prism -I./enc/unicode/15.0.0 -Dmodular_gc_dir="" -I/usr/include -I/usr/pkg/include -o ractor.o -c ractor.c
during RTL pass: sched2
ractor.c: In function 'ractor_channel_func':
ractor.c:4010:1: internal compiler error: in move_insn, at haifa-sched.cc:5477
4010 | }
| ^
0x1215184ff diagnostic_impl(rich_location*, diagnostic_metadata const*, int, char const*, __va_list_tag*, diagnostic_t)
???:0
0x121518beb internal_error(char const*, ...)
???:0
0x121640d9b fancy_abort(char const*, int, char const*)
???:0
0x120569693 move_insn(rtx_insn*, rtx_insn*, rtx_def*)
???:0
0x12057ef93 schedule_block(basic_block_def**, void*)
???:0
0x1212bc327 schedule_insns() [clone .part.0]
???:0
0x1212bc907 (anonymous namespace)::pass_sched2::execute(function*)
???:0
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <http://www.NetBSD.org/support/send-pr.html> for instructions.
```
cf. PR toolchain/60843 GCC/alpha 14 miscompiles GCC backend
lang/ruby34: add package version 3.4.1. Add latest release of Ruby Programming Language version 3.4.1. Ruby is an interpreted object-oriented programming language often used for web development. It also offers many scripting features to process plain text and serialized files, or manage system tasks. It is simple, straightforward, and extensible. Features of Ruby are shown below. + Simple Syntax + *Normal* Object-Oriented features (ex. class, method calls) + *Advanced* Object-Oriented features (ex. Mix-in, Singleton-method) + Operator Overloading + Exception Handling + Iterators and Closures + Garbage Collection + Dynamic Loading of Object files (on some architecture) + Highly Portable (works on many UNIX machines, and on Windows, Mac, etc.) Ruby 3.4 introduces a number of new features and performance improvements, here are some of them: * Prsim parser (as a default gem). * Performance: YJIT: Verious improvements including performance. * Performance: RJIT: Experital pure-Ruby JIT compiler replace MJIT. * M:N thread scheduler. * Retirement of ext/readline.