[opensuse-buildservice] Borked defaults in OBS RPMs + osc patch for config file
-----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/ope...
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/
/\\
On Wed, Aug 22, 2007 at 01:56:00AM +0200, Pascal Bleser wrote:
OK, a last one ;) In case Peter didn't read his away log on IRC, here's a patch to be able
I read it ;)
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)
To achieve that, you don't necessarily need a different config; there is -A URL, --apisrv=URL specify URL to access API server at Thus, you could use a shell alias like this: alias lobs='osc -A http://localhost:6362' (When osc has been used to check out sources with that, it memorizes the used api, so -A is not necessary later to work with the working copy. Also note, osc can do a "copypac" from one api to another.) The patch is a good idea nevertheless. I'd like to have a commandline option for that, too. It can be a little more obvious I think. Thanks for the patch! Peter -- "WARNING: This bug is visible to non-employees. Please be respectful!" SUSE LINUX Products GmbH Research & Development
On Wed, Aug 22, 2007 at 10:15:53AM +0200, Dr. Peter Poeml wrote:
On Wed, Aug 22, 2007 at 01:56:00AM +0200, Pascal Bleser wrote:
to tell osc to use another config file using the environment variable OSC_CONFIG: http://linux01.gwdg.de/~pbleser/files/osc-config-env.patch
I added a -c|--config commanline option now, too. It overrides OSC_CONFIG. Options like -A or -H always override values read from the config. Peter -- "WARNING: This bug is visible to non-employees. Please be respectful!" SUSE LINUX Products GmbH Research & Development
participants (2)
-
Dr. Peter Poeml
-
Pascal Bleser