Hi, > Should I be using rpmbuild, mock, or koji?
Actually this shouldn't matter. Mock uses rpmbuild and Koji uses mock so there shouldn't be a big difference (apart from the kernel on your machine and on the Koji worker). I prefer using mock for local builds than plain rpmbuild, it's really more convenient: mock -r fedora-21-x86_64 SRPM (Configs are in /etc/mock/*.cfg files) I also sometimes do a Koji scratch-builds through fedpkg (you can use koji-cli directly, but fedpkg is really nice to use): fedpkg --dist f21 scratch-build --srpm SRPM Local builds using mock allows you to investigate the build failures better as you can chroot in the buildroot: mock -r fedora-21-x86_64 shell Regards Josef ----- Original Message ----- From: "Christopher Rigor" <[email protected]> To: [email protected] Sent: Saturday, October 18, 2014 7:50:50 AM Subject: Building Ruby 2.2 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 _______________________________________________ ruby-sig mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/ruby-sig _______________________________________________ ruby-sig mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/ruby-sig
