----- Original Message -----
Sent: Friday, November 20, 2020 10:51:46 AM Subject: Re: Ruby 3.0
What if we provided `%{ruby_vendorlibdir}/rbconfig.rb`, which would fix the `CXX` as well as the rhbz#1284684? WDYT?
I'm not entirely sure how that'd work TBH.
Would it override the original `rbconfig.rb`? Would it just override some entries? Or completely replace it?
What's the advantage compared to modifying `rbconfig.rb`?
Anyway, if unsure, is there something (prefered solution) I could test at least? (I'm not sure what's the best way to address that issue- more bellow.)
I don't feel like just simply overriding `rbconfig.rb` file in `%install` for ruby. Also I'm not sure what would be the implications? (Apart from those test packages building again.)
Vít
Dne 20. 11. 20 v 1:59 Pavel Valena napsal(a):
----- Original Message -----
From: "Vít Ondruch" vondruch@redhat.com To: ruby-sig@lists.fedoraproject.org Sent: Thursday, November 19, 2020 6:12:01 PM Subject: Re: Ruby 3.0
@Pavel, could you please try to add `%{set_build_flags}` call prior calling the `%gem_install`? That sets the `CXX` env variable. Does it help?
Sure, -
https://copr.fedorainfracloud.org/coprs/build/1775666 https://copr.fedorainfracloud.org/coprs/build/1775665
I'm afraid it didn't help. I've also tried setting CXX explicitly, and/or adding this:
+sed -i "1i RbConfig::MAKEFILE_CONFIG['CXX'] = 'g++'" \
- ext/extconf.rb
But it fails all the same. Here's another try, using CONFIG['CXX'] = 'g++':
This one has failed as well. Any ideas on what I can modify in the gem package build to make it work? (Without recreating whole `rbconfig.rb`.)
Regards, Pavel
Pavel
Vít
So CONFIG["CXX"] is not yet set ( in /usr/lib64/ruby/rbconfig.rb on x86_64) (see: https://lists.fedoraproject.org/archives/list/ruby-sig@lists.fedoraproject.o...
) and still rubygem-eventmachine fails to find CXX compiler, while rawhide ruby-libs rpm has CONFIG["CXX"] value.
Regards, Mamoru