From Fedora Project Wiki
(→Possibly optional Gem dependencies: update rake version numbers) |
(→Possibly optional Gem dependencies: upstream uses a new version of redis) |
||
Line 172: | Line 172: | ||
| resque (for resque) || 1.9.8 || {{result|fail}} || {{result|fail}} | | resque (for resque) || 1.9.8 || {{result|fail}} || {{result|fail}} | ||
|- | |- | ||
| redis (for resque) || 2.2. | | redis (for resque) || 2.2.2 || {{result|fail}} || {{result|fail}} | ||
|- | |- | ||
| redis-namespace (for resque) || 0.7.0 || {{result|fail}} || {{result|fail}} | | redis-namespace (for resque) || 0.7.0 || {{result|fail}} || {{result|fail}} |
Revision as of 23:56, 24 January 2013
This document outlines the steps to get Gitorious into Fedora and EPEL.
High Level Steps and Issues
Fedora
- Get all Gitorious' dependencies into Fedora.
- Several Rubygems.
- Get Gitorious into Fedora.
- Bundled libraries: Gitorious bundles several things, including Rails. Upstream bug for Rails
- Bundler issues: If we use different Gem versions than upstream, Bundler wants to write to Gemfile and Gemfile.lock. We must patch upstream's Gemfile/Gemfile.lock to make this work.
- Init scripts: Create equivalent systemd unit files for Fedora & RHEL 7.
- Ruby version: Upstream master works with Ruby 1.8; verify Ruby 1.9.x compatability.
- Gem versions: Upstream uses different Gem versions than Fedora has. The biggest difference is Rails, but others are documented below. Plan of attack is to ensure that the test suite passes with both.
- Javascript libs: There are a couple Git submodules in upstream (buster-core, capillary-js, raphael, spin.js). We should find a way to unbundle these and package them separately.
- FHS considerations: for the Gitorious web application itself, we need to discover how to split up the package to fit the FHS conventions of /etc/, /usr/, and so on.
EPEL
- Get all Gitorious's dependencies into EPEL.
- Rails. I don't have experience packaging Rails, and there's been questions about which version to put into EPEL.
- Various Rubygems must be branched for EPEL.
- Get Gitorious into EPEL.
- Ruby 1.8 may make things easier, since this is what upstream currently uses (although this will change, eventually).
- EPEL has RSpec 1, but some gems (eg riddle) require RSpec 2.
Dependencies
- - The package is not in Fedora/EPEL
- Pass - The package is not in Fedora/EPEL, and I'm unsure how to proceed (lib might be deprecated, etc.)
- - The package spec is written, but not yet accepted into Fedora/EPEL
- - The package is present in Fedora/EPEL and versions differ from upstream
- - The package is present in Fedora/EPEL and versions match upstream
(FYI, the ordering in these tables matches upstream's Gemfile.)
Gitorious Web Application Gems
Gem | Upstream Gemfile | Fedora 17 | EPEL 6 |
---|---|---|---|
rails | 2.3.15 | ||
chronic | 0.3.0 | ||
geoip | 0.8.9[1] | ||
daemons | 1.1.0 | ||
hoe | 2.8.0 | ||
echoe | 4.3.1 | ||
ruby-yadis | 0.3.4 | ||
ruby-openid | 2.2.2 | ||
rdiscount | 1.3.1.1 | ||
mime-types | 1.16 | ||
diff-lcs | 1.1.2 | ||
oauth | 0.4.4 | ||
paperclip | 2.7.4 | ||
activesupport | Dep for paperclip (2.3.15) | ||
activerecord | Dep for paperclip (2.3.15) | ||
cocaine | Dep for paperclip | ||
bourne | Dep for cocaine | ||
state_machine | 0.9.4 | ||
rack | 1.0.1 | ||
riddle | Dep for thinking-sphinx (1.5.3) | ||
mysql2 | Dep for riddle | ||
yard | Dep for riddle | ||
rspec-core | Dep for yard | ||
rspec-expectations | Dep for rspec-core | ||
rspec-mocks | Dep for rspec-core | ||
builder | 3.0.0 | ||
mysql | 2.8.1 | ||
validates_url_format_of | 0.1.1 | ||
acts-as-taggable-on | 2.0.6 | ||
will_paginate | 2.3.15 | ||
hodel_3000_compliant_logger | 0.1.0 | ||
net-ldap | 0.3.1 | ||
capillary | 1.0.2 | ||
mini_shoulda | Dep for capillary (0.4.0) | ||
nokogiri | 1.5.0 | ||
exception_notification | 1.0.20090728 | ||
revo-ssl_requirement | 1.1.0 | ||
ruby-hmac | 0.4.0 | ||
json | 1.5.4 |
Test suite Gem dependencies
Gem | Upstream Gemfile | Fedora 17 | EPEL 6 |
---|---|---|---|
mocha | 0.9.10 | ||
factory_girl | 1.3.3 | ||
shoulda | 2.9.2 | ||
tuxml | 0.0.1 | ||
rots | git clone (!) | ||
capybara | 1.0.1 | ||
rack-test | Dep for capybara (0.6.1) | ||
selenium-webdriver | Dep for capybara (2.4.0) | ||
childprocess | Dep for selenium-webdriver (0.2.1) | ||
ffi | Dep for selenium-webdriver (1.0.9) | ||
multi_json | Dep for selenium-webdriver (1.0.4) | ||
rubyzip | Dep for selenium-webdriver (0.9.4) | ||
xpath | Dep for capybara (0.1.4) | ||
launchy | 2.0.5 | ||
addressable | Dep for launchy (2.2.8) | 2.3.2 in F19 |
Possibly optional Gem dependencies
Gem | Upstream Gemfile | Fedora 17 | EPEL 6 |
---|---|---|---|
foreman (for dev) | 0.60.2 | ||
thor (for dev) | Dep for foreman (0.14.6) | ||
stompserver | 0.9.9 | ||
thin (for dev) | 1.5.0 | ||
proxymachine (for dev, and git proxy) | 1.2.4 | ||
eventmachine | Dep for proxymachine (0.12.10) | ||
rake (for git proxy) | 0.8.7 | 10.0.3 in F19 |
|
resque (for resque) | 1.9.8 | ||
redis (for resque) | 2.2.2 | ||
redis-namespace (for resque) | 0.7.0 | ||
sinatra | 1.0 | ||
vegas (for resque) | 0.1.11 | ||
SystemTimer (for resque) | 1.2.3 | ||
stomp (for stomp) | 1.1 | ||
activemessaging (for active messaging) | 0.7.1 | (gone from rails?) |
Bundled (vendored) dependencies
These deps are bundled in /vendor:
Name | Bundled version | Fedora 17 | EPEL 6 |
---|---|---|---|
diff-display | ??? | ||
grit | ??? | ||
ruby-git | ??? | ||
plugins/localized_dates | ??? | ||
plugins/localized_dates | ??? | ||
plugins/open_id_authentication | ??? | ||
plugins/restful_authentication | ??? | ||
plugins/routing-filter | ??? | ||
plugins/ultrasphinx | ??? |
These deps are git submodules under public/javascripts/lib/:
Name | Bundled version | Fedora 17 | EPEL 6 |
---|---|---|---|
buster-core | ??? | ||
capillary-js | ??? | ||
raphael | ??? | ||
spin.js | ??? |
- ↑ Upstream ships data/GeoIP.dat, which Fedora already ships in GeoIP.
- ↑ SSL requirement is built into Rails 3
- ↑ https://groups.google.com/d/topic/gitorious/yNDA9ipKe8I/discussion
- ↑ tuxml is apparently only needed for automated builds inside Hudson. In F17, Gitorious tests crash with "uninitialized constant Test::Unit::AutoRunner::RUNNERS", which comes from tuxml. Remove it and the tests succeed.
- ↑ We just need a stomp-compatible server. ActiveMQ Messaging Server would work equally well. The stompserver gem needs this patch to not crash on Ruby 1.9. TBD: investigate the "stompserver_ng" fork.
- ↑ See https://bugzilla.redhat.com/837568. Emailed maintainer January 2013.
- ↑ does not build on Fedora 17
- ↑ Called "rubygem-git" in Fedora