Build Service/Build Service Installation Tutorial/obs-svn-trunk

From openSUSE

Currently, there are two ways to use svn trunk code in your local OBS:

  • use the packages in openSUSE:Tools:Devel (or openSUSE:Tools:Unstable) to install OBS instead of openSUSE:Tools. This is at least tested to some extent.
  • CAUTION: proceed like described below and generate from src directly. But svn trunk might be not tested or usable as you grab it.
  • be aware the description below has to be repeated for the programs "osc" and "build" in order to use svn trunk also there. "build" is used for local build, so there are two different copies of "build" beeing used by OBS: one used by the OBS Worker, and the "official" "build" program used by "osc build". Using a different "build" inside "osc" and OBS Worker might confuse you (and provide completely different results).

--dl9pf 14:05, 11 December 2008 (UTC)

At the moment it works this way:

  • Install the rubygem-rails-2.1 dependencies from openSUSE:/Tools/
  • cd to buildservice/dist/
  • edit the .spec-file and change the ruby/rails version from 1.2.3 to 2.0.2
  • and change the version to e.g. 0.5.2
  • run ./distribute (need osc and build for this)
  • Now you have obs-rpms in /var/tmp/buildroot/usr/src/packages/RPMS/noarch/ to install.
  • Go to /srv/www/obs/frontend/config/environment.rb and change RAILS_GEM_VERSION to 2.0.2
  • setup the database as normal and change values in database.yml (as during 'normal' setup)
  • adapt /srv/www/obs/webclient/config/environments/frontend_production.rb to your local setup (if ip's changed away from 10.0.42.x)
  • cd /srv/www/obs/frontend
  • rake db:migrate

have phun ...