[opensuse-buildservice] Force specific ruby version?

Hi all, I'm trying to get a rubygem to build against a specific ruby version (ruby20) - even if the native ruby version of the distribution is different: https://build.opensuse.org/package/show/home:tdoerges:ruby20/rubygem-wxruby A package with ruby20 is present in the project and builds fine for all distributions (https://build.opensuse.org/package/show/home:tdoerges:ruby20/ruby20). However, when trying to build the rubygem for openSUSE 13.2, ruby 2.1 (native to 13.2) is always preferred over ruby20. ruby20 will be installed but ignored otherwise. I've tried Requires/BuildRequires and Conflicts/BuildConflicts in the spec: https://build.opensuse.org/package/view_file/home:tdoerges:ruby20/rubygem-wx... BuildConflicts doesn't seem to work (something for Redhat only?) and the other options didn't get the trick done. Then I tried adjusting the project configuration: https://build.opensuse.org/project/prjconf/home:tdoerges:ruby20 But that didn't work either. Any hints what I have to do? TIA -- Till -- Dipl.-Inform. Till Dörges doerges@pre-sense.de Tel. +49 - 40 - 244 2407 - 14 Fax +49 - 40 - 244 2407 - 24 PRESENSE Technologies GmbH Sachsenstr. 5, D-20097 HH Geschäftsführer/Managing Directors AG Hamburg, HRB 107844 Till Dörges, Jürgen Sander USt-IdNr.: DE263765024 Wir sind auf der it-sa: 18.-20.10.2016 http://www.it-sa.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

On Sep 13 2016, Till Dörges <doerges@pre-sense.de> wrote:
Hi all,
I'm trying to get a rubygem to build against a specific ruby version (ruby20) - even if the native ruby version of the distribution is different:
https://build.opensuse.org/package/show/home:tdoerges:ruby20/rubygem-wxruby
A package with ruby20 is present in the project and builds fine for all distributions (https://build.opensuse.org/package/show/home:tdoerges:ruby20/ruby20).
However, when trying to build the rubygem for openSUSE 13.2, ruby 2.1 (native to 13.2) is always preferred over ruby20. ruby20 will be installed but ignored otherwise.
I think you need to call the version specific ruby programs, like rake.ruby2.0. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

Am 14.09.2016 um 09:21 schrieb Andreas Schwab:
On Sep 13 2016, Till Dörges <doerges@pre-sense.de> wrote:
I'm trying to get a rubygem to build against a specific ruby version (ruby20) - even if the native ruby version of the distribution is different:
https://build.opensuse.org/package/show/home:tdoerges:ruby20/rubygem-wxruby
A package with ruby20 is present in the project and builds fine for all distributions (https://build.opensuse.org/package/show/home:tdoerges:ruby20/ruby20).
However, when trying to build the rubygem for openSUSE 13.2, ruby 2.1 (native to 13.2) is always preferred over ruby20. ruby20 will be installed but ignored otherwise.
I think you need to call the version specific ruby programs, like rake.ruby2.0.
Is there any way to ban ruby 2.1 from being installed for the build? Regards -- Till -- Dipl.-Inform. Till Dörges doerges@pre-sense.de Tel. +49 - 40 - 244 2407 - 14 Fax +49 - 40 - 244 2407 - 24 PRESENSE Technologies GmbH Sachsenstr. 5, D-20097 HH Geschäftsführer/Managing Directors AG Hamburg, HRB 107844 Till Dörges, Jürgen Sander USt-IdNr.: DE263765024 Wir sind auf der it-sa: 18.-20.10.2016 http://www.it-sa.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

On Sep 14 2016, Till Dörges <doerges@pre-sense.de> wrote:
Is there any way to ban ruby 2.1 from being installed for the build?
You need to build your own rubygem-gem2rpm, see osc buildinfo for details. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

Am 14.09.2016 um 10:30 schrieb Andreas Schwab:
On Sep 14 2016, Till Dörges <doerges@pre-sense.de> wrote:
Is there any way to ban ruby 2.1 from being installed for the build?
You need to build your own rubygem-gem2rpm, see osc buildinfo for details.
I think I'm getting there... I now have ruby20, ruby-common and rubygem-gem2rpm building okay. These seem to be the minimum base. For all three I had to make some minor adjustments (mostly inside the spec files). Any other attempt with 'Prefer', 'Ignore' or 'Substitute' inside the project configuration did not work for me. The only thing I found to be mandatory inside the project configuration was this macro: %rb_ver 2.0.0 Or is there a better place to put it? Regards -- Till -- Dipl.-Inform. Till Dörges doerges@pre-sense.de Tel. +49 - 40 - 244 2407 - 14 Fax +49 - 40 - 244 2407 - 24 PRESENSE Technologies GmbH Sachsenstr. 5, D-20097 HH Geschäftsführer/Managing Directors AG Hamburg, HRB 107844 Till Dörges, Jürgen Sander USt-IdNr.: DE263765024 Wir sind auf der it-sa: 18.-20.10.2016 http://www.it-sa.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (2)
-
Andreas Schwab
-
Till Dörges