Commit Graph

548 Commits

Author SHA1 Message Date
jeremy a17526d443 Send Ruby 3.2 to the Attic 2025-11-04 01:08:50 +00:00
jeremy 570c9924f5 Unhook Ruby 3.2 2025-11-04 01:08:34 +00:00
jeremy 084ebbaaf9 Remove support for building ruby32-* packages for Ruby ports 2025-11-04 01:08:13 +00:00
jeremy 4f4fc72e4e Update to Ruby 3.3.10
Fixes CVE-2025-61594: URI Credential Leakage Bypass

OK rsadowski@
2025-10-24 13:26:13 +00:00
jeremy 6db83d6b2d Update to Ruby 3.4.7
Fixes CVE-2025-61594 URI Credential Leakage Bypass
2025-10-21 00:16:35 +00:00
jeremy ba8b2efffa Update to Ruby 3.4.6
OK rsadowski@
2025-09-17 00:20:33 +00:00
jeremy 0222b1234c Update to Ruby 3.2.9
Delete a file in post-extract to fix a net-imap build issue.
2025-07-27 06:34:46 +00:00
jeremy ff1e130a6e Update to Ruby 3.3.9 2025-07-27 06:29:40 +00:00
jeremy 2fec945427 Update to Ruby 3.4.5 2025-07-18 00:38:13 +00:00
jeremy 6bb58e3ae7 Switch the default ruby version in ports to Ruby 3.4
Fix from phessler@
OK phessler@ sthen@ rsadowski@
2025-06-28 00:36:08 +00:00
jeremy e2bc08c101 Fix RbConfig::CONFIG['STRIP']
The ports infrastructure places a strip executable in the path while building
that always returns true.  This negatively affects Ruby's detection of valid
strip options.  Patch configure to not accept -A -n flags to strip, so Ruby
will pick up -S -x flags instead.

OK rsadowski@
"probably the simplest way to fix it" sthen@
2025-06-22 19:30:02 +00:00
jeremy d0c834a993 Update to Ruby 3.4.4 2025-05-17 00:40:35 +00:00
jca fc4b8f5013 Fix ruby-3.2 coroutines on BT-capable arm64 hardware
Uncovered while building graphics/ruby-rmagick,ruby32
ok jeremy@ (maintainer)
2025-05-07 16:08:52 +00:00
jeremy 2942f77cd9 Update to Ruby 3.4.3 2025-04-26 00:36:52 +00:00
jeremy 5082b41fa6 Update to Ruby 3.3.8 2025-04-26 00:36:10 +00:00
jeremy f98ce2a451 Update to Ruby 3.2.8
Fixes:

* CVE-2025-27219: Denial of Service in CGI::Cookie.parse
* CVE-2025-27220: ReDoS in CGI::Util#escapeElement
* CVE-2025-27221: userinfo leakage in URI#join, URI#merge and URI#+

OK sthen@
2025-03-27 15:57:35 +00:00
jeremy 5cfbf78028 Update to Ruby 3.4.2 2025-02-17 21:20:47 +00:00
jeremy 8f9875d1c9 Update to Ruby 3.2.7 2025-02-07 07:03:29 +00:00
jeremy d32a14e148 Update to Ruby 3.3.7 2025-01-18 02:11:07 +00:00
tb 40d79f6e81 lang/ruby/3.4: align with 3.3 to build with BTI support
ok jeremy
2025-01-11 10:44:38 +00:00
tb f007bd982a lang/ruby/3.4: disable yjit on aarch64
Like in 3.3 this doesn't work and leads to build failures on modern apple
hardeware.

ok jeremy
2025-01-11 10:37:37 +00:00
jeremy e16981b2a9 Support ruby34 FLAVOR when building ruby gem ports
OK jca@
2025-01-10 03:38:07 +00:00
jeremy 34d7c0c8d0 Hook up Ruby 3.4 2025-01-10 03:37:40 +00:00
jeremy 12db6c0d6f Import Ruby 3.4.1
riscv64 and arm64 help from jca@
OK jca@
2025-01-10 03:36:59 +00:00
jca 1f56ca0253 Move ruby-3.3 to an assembly coroutine implementation on riscv64
The pthread based implementation breaks way too often with (likely) GC memory
corruptions:

[BUG] object allocation during garbage collection phase

when building graphics/rmagick,ruby33.
2025-01-08 18:45:42 +00:00
jeremy 4fbddcf961 Send Ruby 3.1 to the Attic 2024-11-21 05:54:41 +00:00
jeremy 1d287589a2 Unhook Ruby 3.1 2024-11-21 05:53:59 +00:00
jeremy de39f09296 Remove support for building ruby31-* packages for Ruby ports
Remove guard for COMPILER for building gem ext ports, now that all versions
need to use base-clang and ports-gcc.
2024-11-21 05:53:26 +00:00
jeremy 20c672611a Update to Ruby 3.3.6 2024-11-07 04:45:18 +00:00
jeremy f5e52d8329 Update to Ruby 3.2.6 2024-11-02 04:22:40 +00:00
jeremy ea30f3c42a Update to Ruby 3.3.5
Fixes the following CVEs for DoS vulnerabilities in REXML:

* CVE-2024-43398
* CVE-2024-41946
* CVE-2024-41123

Add post-install hook to remove bin/*.lock files, as they
shouldn't be in the package (not sure why this version
started to add them).
2024-09-05 16:37:20 +00:00
jeremy 776d4c0900 Update to Ruby 3.2.5
Fixes CVE-2024-39908
2024-07-28 14:46:59 +00:00
jeremy 7e92cc68d1 Update to Ruby 3.3.4
Remove source files for the included debug and rbs extensions,
similar to how gem ext ports are handled.
2024-07-11 15:54:34 +00:00
kettenis e5c88669e2 The configure script adds -mbranch-protection=pac-ret which *disables* BTI
on OpenBSD.  Change this to -mbranch-protection=standard such that both
BTI and PAC support are enabled.  This makes BTI work so drop the
USE_NOBTCFI-aarch64=Yes bit from the Makefile.

ok jeremy@
2024-06-23 12:39:35 +00:00
sthen 84dfe76f6e set USE_NOBTCFI-aarch64; Ruby 3.3 has some code for this but seems not
to be enough yet; just running ruby33 is enough to trigger SIGILL.

ok jeremy@
2024-06-21 16:01:52 +00:00
jeremy f567da67da Switch the default ruby version in ports to Ruby 3.3
OK tb@
2024-06-20 22:40:55 +00:00
jeremy 45f1012c04 Update to Ruby 3.3.3
* Regen patches
* Drop a distpatch added upstream
* Add a distpatch to fix an openssl extension test error
* Add a patch to fix a bunch of drb ssl test errors
* Add a patch to fix a rubygems test error due to changes in our port
* Add a patch to the leaked symbols test (not yet enabled in the port)
2024-06-14 19:41:34 +00:00
jeremy 1e3ba5d075 Update to Ruby 3.3.2 2024-06-04 17:41:18 +00:00
jeremy 4e93d1de6e Update to Ruby 3.1.6
Remove a distpatch and a couple patches merged upstream.
2024-05-31 17:22:48 +00:00
jeremy ecca1f3805 Update to Ruby 3.1.5
Fix a bad backport in the fiddle extension that breaks compilation.

OK tb@
2024-04-25 22:09:25 +00:00
jeremy 7e15fae0df Update to Ruby 3.2.4
OK tb@
2024-04-25 22:05:25 +00:00
jeremy fd5118c6a8 Update to Ruby 3.3.1
Backport an upstream fix for ILP32 architectures.

Switch check to test-all as the test target, as the previous check
target fails before the main test suite runs due to a symbol
visibility that doesn't handle retguard.

Upstream fix identified by tb@
i386 testing by tb@
OK tb@
2024-04-25 22:04:30 +00:00
jeremy d39e51bcab Add _CET_ENDBR to amd64 coroutine code
This fixes SIGILL/ILL_BTCFI that started occurring after
recent changes (post 7.5), for the following example code:

  mutex = Mutex.new
  mutex.synchronize { Fiber.new { mutex.owned? }.resume

Issue reported by jcs@

Tested by jcs@

OK jcs@
2024-04-09 04:17:52 +00:00
kmos 118f904e86 ruby 3.3 ports of type "gem ext" need "base-clang ports-gcc" just like
ruby 3.2 ports.

Fixes the build of many many ruby33 ports on sparc64

Suggested by jeremy@
2024-02-18 05:03:49 +00:00
sthen 6552ad88b3 rename/regen distinfo for more github autogenerated patches which have changed 2024-02-05 20:51:40 +00:00
jeremy d658d08e45 Update to Ruby 3.2.3
Fixes CVE-2023-36617: ReDoS vulnerability in URI
2024-01-20 20:20:50 +00:00
jeremy 99605d494c Disable YJIT on arm64
This allows Ruby 3.3 to work on arm64.  No bump as it did not build before
on arm64, and the change only affects arm64.

OK tb@, phessler@
2024-01-16 19:28:47 +00:00
jeremy f7981774a6 Do not change directory in EXTRACT_CASES
Fixes interaction with devel/cargo module.

From semarie@
2024-01-10 00:21:36 +00:00
semarie 6d4efb7915 lang/ruby/3.2 and 3.3: uses lang/rust module
It switches ruby to use MODULES+=lang/rust instead of BUILD_DEPENDS+=lang/rust.

It makes the ports to use _SYSTEM_VERSION-rust and be bumped automatically when
rust (compiler or stdlib) changes, and so get the package updated.

ok tb@ jeremy@
2024-01-01 17:03:48 +00:00
jeremy 6b8035f398 Hookup Ruby 3.3 to the build 2023-12-27 20:08:05 +00:00