Mamoru TASAKA wrote on 2023/09/14 21:13:
Hello, Vít:
Thank you for initial work for ruby 3.3 .
Vít Ondruch wrote on 2023/09/12 17:08:
* `%gem_spec` macro with options:
https://src.fedoraproject.org/fork/vondruch/rpms/ruby/blob/77c580dfa85f921d969a8da68eaf6e88987aab8a/f/macros.rubygems#_10
This is my initial version, just to enable to use this macro in ruby.spec. I
think I'll similarly modify all the related macros. While they'll be more
complex, their use in ruby.spec will outweigh that. And I should add some
documentation ...
BTW there are several possibilities in choosing how complex/flexible this macro
will be and I think this is one of the changes which could be backported to
Ruby 3.2. So feedback is appreciated. Looking at the macro, this bit
`%{?1:%{expand:%{%{1}_version}}}%{!?1:%{version}}` is probably not very good
idea for possible use in rubygem-*.gemspec.
I think this should be :
%gem_spec(d)
%{gem_dir}/specifications%{?-d:/default}/%{?1}%{!?1:%{gem_name}}-%{?1:%{expand:%{%{1}_version}}}%{!?1:%{version}}%{?prerelease}.gemspec
(instead of %gem_spec(d) %{gem_dir}/specifications%{?-d:/default}/%{1}..... )
Otherwise, for example trying to build rubygem-json fails like:
-------------------------------------------
Processing files: rubygem-json-2.6.3-204.fc40.x86_64
error: File not found:
/builddir/build/BUILDROOT/rubygem-json-2.6.3-204.fc40.101.x86_64/usr/share/gems/specifications/%{1}json-2.6.3.gemspec
File not found:
/builddir/build/BUILDROOT/rubygem-json-2.6.3-204.fc40.101.x86_64/usr/share/gems/specifications/%{1}json-2.6.3.gemspec
-------------------------------------------
Now I am trying to rebuild gem related pkgs depending on libruby.3.2 (with
using %{?1} for %gem_spec macro)
Okay, so with my initial builds for rubygem-XXXX packages, among 456 packages,
50 packages failed to build (1 just fixed one of them, so currently 49).
https://copr.fedorainfracloud.org/coprs/mtasaka/rubygem-newruby-test-3-2/packages/
Some types of errors (I noticed) which is affecting several packages are:
* minitest 5.19 side change: MiniTest class support deprecated:
example:
test/test_async.rb:28:in `<main>': uninitialized constant MiniTest (NameError)
https://github.com/minitest/minitest/commit/a2c6c18570f6f0a1bf6af70fe3b6d9599a13fdd6
* ruby logger change.
example:
NoMethodError: undefined method `[]' for nil
https://github.com/ruby/logger/pull/85
-> affects like https://github.com/resque/resque/issues/1856
* Regexp.new now rejects 3rd argument:
example:
wrong number of arguments (given 3, expected 1..2)
https://github.com/ruby/ruby/pull/7039
* mocha being updated from 1.15.0 to 2.1 - perhaps some adjustment is needed
example:
`require': cannot load such file -- mocha/setup (LoadError)
* Some packages expect that there are no warnings, but now with ruby3.3
when trying to load default gems which are going to be gemified,
warnings are generated like:
$ ruby -e "require 'csv'"
-e:1: warning: csv which will be not part of the default gems since Ruby 3.4.0
https://github.com/ruby/ruby/pull/8126 , and the above warnings cause
some tests fail.
So this may mean that we have to package those default gems into separated
rubygem-XXX srpm , at least before ruby 3.4 lands.
* And, currently some tests segfault.
* (Just note that there are some other reasons which cause test failure:
I have not investigated them yet.)
Some topics:
* rubygem-nifti sees test failure on s390x, this is perhaps big endian issue.
* rubygem-byebug fails to build (on test suite), however it seems this needs
the undestanding of ruby internal change, and seems very difficult for me....
I may post some detailed results (if I have time), however as I wrote above
the results can be shown on:
https://copr.fedorainfracloud.org/coprs/mtasaka/rubygem-newruby-test-3-2/packages/
Regards,
Mamoru
_______________________________________________
ruby-sig mailing list -- ruby-sig@lists.fedoraproject.org
To unsubscribe send an email to ruby-sig-le...@lists.fedoraproject.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/ruby-sig@lists.fedoraproject.org
Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue