Hi everybody,
Since Ruby 2.2 is going to be released during Christmas and -preview1
release is imminent (this Wednesday?), it is probably time to start
looking into its packaging. So here is the updated .spec file [1] and
scratch build [2], which can be finally build on all platforms. Sorry,
no Copr for you, since Ruby's build fails there due to old RHEL kernel :/.
What has changed from packaging point of view? Luckily, not much, but
here are a few bullets which comes to my mind:
* RPM 4.12 introduces new %load function, which is used to load RPM
macros during RPM build. This allowed to drop my custom RPM macro [3].
On the other hand, you'll be able to build the Ruby only on F21+
(luckily, you should be able to build SRPM everywhere).
* The RubyGems filesystem was not explicit enough, so there might be
something accidentally packages. This is now more explicit, so we should
be safer.
* Ruby now ships with MiniTest and Test::Unit. The very good news is
that they are installed so far as a regular gems. This means that you
have to always specify them in your Gemfile, if you are using Bundler,
but this is generally step in good direction. I hope that upstream will
not change their mind :) Due to this change, we have new subpackages
rubygem-test-unit (and rubygem-power_assert, which is now Test::Unit's
dependency). No more %{_bindir}/testrb (but nobody is using it these
days anyway, right? ;)
* Some prevailing test failures were resolved, some others introduced,
but hopefully they'll get resolved prior stable release.
Generally, I'd say that not much has changed since 2.1, which is good news.
Please test the packaging if you can and let me know about any issues
you encountered.
Also, if you have any other suggestions about Ruby packaging in general,
what we could improve etc, this is probably good time to share. It seems
that OpenSUSE guys are improving their packaging, so you might want to
get some inspiration there [4, 5, 6] ;)
Vít
[1] http://pkgs.fedoraproject.org/cgit/ruby.git/log/?h=private-ruby-2.2
[2] http://koji.fedoraproject.org/koji/taskinfo?taskID=7578843
[3]
http://pkgs.fedoraproject.org/cgit/ruby.git/commit/?h=private-ruby-2.2&id=8…
[4] https://build.opensuse.org/package/show/home:darix:ruby/ruby-common
[5] https://build.opensuse.org/package/show/home:darix:ruby/ruby2.2
[6] https://github.com/openSUSE/gem2rpm/commits/master
Hi guys,
Anybody have any experience with some scripts for bash completion? Have
you tried any? Should we integrate any? Just a quick googling gave me
two results:
https://github.com/mernen/completion-rubyhttps://github.com/pdkl95/rubygems-completion
And there are probably others. I did not tried them yet. Have you? Do
you have other/better tips?
Thank you
Vit
I've got a gem (rubygem-virtus) that uses rspec/its in its test suite.
Is it worth packaging rubygem-rspec-its? Or is there a replacement
that virtus upstream ought to be using?
- Ken
Hi,
I tried installing ruby2.2.0preview1 on fedora21 using a repo I found
on this list [1] but ran into some errors. I was able to install ruby
2.2.0preview1 on centos7 using this repo [2]
Error: Package: rubygem-io-console-0.4.2-23.fc21.x86_64 (fedora)
Requires: libruby.so.2.1()(64bit)
Available: ruby-libs-2.1.2-23.fc21.x86_64 (fedora)
libruby.so.2.1()(64bit)
Installing: ruby-libs-2.2.0-0.25.preview1.fc21.x86_64 (ruby22)
~libruby.so.2.2()(64bit)
Here's the full error [3].
What I'm really trying to do is build the spec file [4]. I've read the
wiki page [5] but need some help. I thought I'll start by getting the
SRPM and try rebuilding the spec first. I was able to get the SRPM for
centos from [2] but that didn't work because of the load function (I
think). There is no SRPM from [1] and I can't even install it to begin
with as mentioned above.
I am using rpmbuild. I've also read about mock, which I can use
locally, and koji, which I can't (I think). Before I spend more time,
I would appreciate any pointers on how to build the spec file. Should
I be using rpmbuild, mock, or koji?
My goal is to help test newer ruby versions by packaging it or just by
using it. I'm in the process of setting up a staging server of my
Rails app using ruby 2.2.0preview1.
I'm new to this list so let me know if I should be asking this somewhere else.
-Christopher
[1] http://scientific.zcu.cz/repos/ruby22-fedora21.repo
[2] http://scientific.zcu.cz/repos/ruby22-epel7.repo
[3] https://gist.github.com/crigor/2c19947c7691bb55efa5
[4] http://pkgs.fedoraproject.org/cgit/ruby.git/log/?h=private-ruby-2.2
[5] https://fedoraproject.org/wiki/How_to_create_an_RPM_package