[packages/ruby/DEVEL-3.4] drop abi related logic

atler atler at pld-linux.org
Sun Nov 1 00:18:23 CET 2026


commit 2e570c7a6bd3fccd49b664198c017540c278b734
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Nov 1 00:14:48 2026 +0100

    drop abi related logic
    
    %configure no longer uses %{{_target_platform} for --host and therefore
    no longer includes abi (although it was perfectly valid invocation).

 ruby.spec | 10 ----------
 1 file changed, 10 deletions(-)
---
diff --git a/ruby.spec b/ruby.spec
index 3f71196..e5ab521 100644
--- a/ruby.spec
+++ b/ruby.spec
@@ -913,16 +913,6 @@ ln -s %{gem_dir}/gems/bundler-%{bundler_ver}/lib/bundler.rb $RPM_BUILD_ROOT%{rub
 # Move the binary extensions into proper place (if no gem has binary extension,
 # the extensions directory might be empty).
 
-# if abi contains number ruby strips it in convoluted logic (said
-# logic is already cleaned up in 4.0 so x32 will need to be included
-# too)
-# https://github.com/ruby/ruby/blob/5483bfc/lib/rubygems/platform.rb#L75
-%ifnarch x32
-# https://github.com/ruby/ruby/blob/5483bfc/configure.ac#L280
-if [ -n "%{?_gnu}" ] && [ "%{?_gnu}" != "-gnu" ] && [[ "%{_target_platform}" = *%{?_gnu} ]]; then
-	abi=$(echo "%{?_gnu}" | sed 's/^-gnu/-/')
-fi
-%endif
 find $RPM_BUILD_ROOT${gem_dir}/extensions/*-%{_target_os}$abi/%{ruby_version}.*/* -maxdepth 0 \
   -exec mv '{}' $RPM_BUILD_ROOT%{_libdir}/gems/%{name}/ \; \
   || echo "No gem binary extensions to move."
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list