Mailinglist Archive: opensuse-buildservice (366 mails)

< Previous Next >
[opensuse-buildservice] Borked defaults in OBS RPMs + osc patch for config file
  • From: Pascal Bleser <pascal.bleser@xxxxxxxxx>
  • Date: Wed, 22 Aug 2007 01:56:00 +0200
  • Message-id: <46CB7B90.9010605@xxxxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Just finished setting up a local OBS on my build box.
It works, but it was a little tedious.

Some of the defaults in the OBS RPMs prevent it from working
out-of-the-box (or rather, as explained on the wiki [1]).
[1]http://en.opensuse.org/Build_Service/Build_Service_Installation_Tutorial/openSUSE_10.2

1) /srv/www/obs/frontend/config/environments/development_base.rb
Defaults should be:
- ---8<-----------------------------------------------------------------
SOURCE_HOST = "localhost"
RPM_HOST = "localhost"
- ---8<-----------------------------------------------------------------
instead of buildservice.suse.de

2) /srv/www/obs/webclient/config/environments/development_base.rb
Defaults should be:
- ---8<-----------------------------------------------------------------
FRONTEND_HOST = "127.0.42.2"
FRONTEND_PORT = 80
- ---8<-----------------------------------------------------------------
instead of localhost:3001

Might also be a better option to use "obs/obs/obs" as the defaults for
database connection and update the wiki page accordingly:
- ---8<-----------------------------------------------------------------
mysqladmin create obs
echo "GRANT ALL ON obs.* TO obs@localhost IDENTIFIED BY 'obs'; FLUSH
PRIVILEGES;"|mysql
- ---8<-----------------------------------------------------------------

Those are just a few minor tweaks, but not exactly obvious to find.
Might also be a regression, because someone on IRC told me that he
didn't have to fiddle with those config settings with his local OBS, but
he pulled the packages a few months ago.

And as already reported, the missing Requires: on the proper rails version.

Last but not least, rails generates a lot of warnings (I'm running
rubygem-rails-1.2.3-2.6, rubygem-activerecord-1.15.3-2.5,
rubygem-actionpack-1.13.3-3.5, rubygem-activesupport-1.4.2-3.5,
rubygem-rake-0.7.3-4.4, ruby-1.8.5.pl12-12.2).. f34r ? ;)

OK, a last one ;)
In case Peter didn't read his away log on IRC, here's a patch to be able
to tell osc to use another config file using the environment variable
OSC_CONFIG:
http://linux01.gwdg.de/~pbleser/files/osc-config-env.patch

The idea is to be able to use both the OBS on build.opensuse.org and a
local OBS, using the following little trick:
- ---8<-----------------------------------------------------------------
cat<<'EOF' >>~/.profile
function lobs { OSC_CONFIG=~/.oscrc.local osc "$@"; }
EOF
- ---8<-----------------------------------------------------------------
(use "obs ..." for opensuse.org, and "lobs ..." for the local OBS)

cheers
- --
  -o) Pascal Bleser     http://linux01.gwdg.de/~pbleser/
  /\\ <pascal.bleser@xxxxxxxxx>       <guru@xxxxxxxxxxx>
 _\_v The more things change, the more they stay insane.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFGy3uQr3NMWliFcXcRAnuHAJ9TlS1DgLyn3IBZzc19nWtKim6D8ACguiFw
yJ+VlaTfGNqzO2PZ3fh3/8U=
=BKaK
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups