[packages/ruby/DEVEL-3.4] rust required only for yjit

atler atler at pld-linux.org
Tue Apr 28 01:29:56 CEST 2026


commit c426027e645dca718d44f5fab298ce1159822f40
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Apr 27 13:05:49 2026 +0200

    rust required only for yjit

 ruby.spec | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/ruby.spec b/ruby.spec
index 929150e..fd3cc5a 100644
--- a/ruby.spec
+++ b/ruby.spec
@@ -9,6 +9,10 @@
 %bcond_with	bootstrap	# build bootstrap version
 %bcond_with	tests		# build without tests
 
+%ifarch %{x8664} aarch64
+%define		with_yjit	1
+%endif
+
 %define		rel		8
 %define		ruby_version	3.4
 %define		patchlevel	9
@@ -54,12 +58,12 @@ BuildRequires:	ncurses-devel
 BuildRequires:	openssl-devel >= 0.9.6
 BuildRequires:	pkgconfig
 BuildRequires:	rpm-build >= 5.4.10-49
-BuildRequires:	rpmbuild(macros) >= 1.527
+BuildRequires:	rpmbuild(macros) >= 2.050
 # which version is minimum now? 1.8.7 is not enough, fails with:
 # ./tool/generic_erb.rb:31: syntax error, unexpected ':', expecting ')'
 # ...O.popen("tput smso", "r", err: IO::NULL, &:read) rescue nil)
 BuildRequires:	ruby >= 1:3.0
-BuildRequires:	rust
+%{?with_yjit:BuildRequires:	rust >= 1.58}
 BuildRequires:	sed >= 4.0
 %{?with_dtrace:BuildRequires:	systemtap-sdt-devel}
 BuildRequires:	tar >= 1:1.22
@@ -72,6 +76,7 @@ BuildRequires:	rpm-rubyprov
 BuildRequires:	ruby-modules
 %endif
 Requires(post,postun):	/sbin/ldconfig
+%{?with_yjit:%{?rust_req}}
 Obsoletes:	ruby-REXML <= 2.4.0-2
 Obsoletes:	ruby-doc < 1.8.4
 Obsoletes:	ruby-fastthread <= 0.6.3
@@ -740,11 +745,8 @@ cp -f /usr/share/automake/config.sub .
 	--with-vendorarchhdrdir='$(vendorhdrdir)/$(arch)' \
 	--without-compress-debug-sections \
         --enable-mkmf-verbose \
-%ifarch %{x8664} aarch64
-        --enable-yjit \
-%endif
+        %{__enable_disable yjit} \
 %ifarch x32
-	--disable-yjit \
 	--with-coroutine=ucontext \
 %endif
 	--enable-multiarch \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby.git/commitdiff/c517eb1751f0de33b54767d7a241a9d6e3dc1687



More information about the pld-cvs-commit mailing list