commit ruby-common for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ruby-common for openSUSE:Factory checked in at 2024-06-09 20:19:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ruby-common (Old) and /work/SRC/openSUSE:Factory/.ruby-common.new.19518 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "ruby-common" Sun Jun 9 20:19:02 2024 rev:28 rq:1179322 version:3.2.1 Changes: -------- --- /work/SRC/openSUSE:Factory/ruby-common/ruby-common.changes 2023-11-23 21:38:44.135264468 +0100 +++ /work/SRC/openSUSE:Factory/.ruby-common.new.19518/ruby-common.changes 2024-06-09 20:19:20.687666994 +0200 @@ -1,0 +2,7 @@ +Fri Jun 7 13:52:41 UTC 2024 - Marcus Rueckert <mrueckert@suse.de> + +- refactor the jemalloc requires code so that it can accomodate + more feature flags +- add requires for yjit enabled ruby + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gem_packages.spec.erb ++++++ --- /var/tmp/diff_new_pack.PsJBwX/_old 2024-06-09 20:19:21.371690856 +0200 +++ /var/tmp/diff_new_pack.PsJBwX/_new 2024-06-09 20:19:21.375690995 +0200 @@ -13,28 +13,29 @@ path end - def self.rpm_jemalloc_prefix - jemalloc_prefix = nil + + def self.rpm_suffix_for_feature(feature) + rpm_prefix = nil package_name = RbConfig::CONFIG['RUBY_SO_NAME'] IO.popen("rpm -q --provides #{package_name}") {|rpm_io| rpm_provides = rpm_io.read - mo = /(?<jemalloc_prefix>with(out)?-jemalloc)/.match(rpm_provides) + mo = /(?<rpm_prefix>with(out)?-#{feature})/.match(rpm_provides) if mo - jemalloc_prefix = mo[:jemalloc_prefix] + rpm_prefix = mo[:rpm_prefix] end } - jemalloc_prefix + rpm_prefix end - def self.jemalloc_requires - jemalloc_prefix = rpm_jemalloc_prefix + def self.requires_for_feature(feature) + found_rpm_prefix = rpm_suffix_for_feature(feature) - if jemalloc_prefix - return "Requires: #{RbConfig::CONFIG['RUBY_SO_NAME']}-#{jemalloc_prefix} >= #{RbConfig::CONFIG['RUBY_PROGRAM_VERSION']}" + if found_rpm_prefix + return "Requires: #{RbConfig::CONFIG['RUBY_SO_NAME']}-#{found_rpm_prefix} >= #{RbConfig::CONFIG['RUBY_PROGRAM_VERSION']}" end # return "" @@ -149,7 +150,8 @@ <% end -%> # /MANUAL <% unless spec.extensions.empty? -%> -<%= jemalloc_requires %> +<%= requires_for_feature('jemalloc') %> +<%= requires_for_feature('yjit') %> <% end -%> Summary: <%= config[:summary] or spec.summary %> Group: Development/Languages/Ruby
participants (1)
-
Source-Sync