⌨ Labor omnia vincit ☮

OBS: adding the new distribution as a build target.

Posted in openSUSE by anaumov on 18.11.2011

Some of us build packages not for fun only, but also because it is a part of daily work. If you are and for any reasons you can’t build packages on http://build.opensuse.org (for example, due the license), you install your own OBS. In this case you will be responsible for all support and configuration stuff. Sounds difficult? I will say there is just one thing where I have a problem: addition of the new distribution as the necessary purpose for building. For example, if I installed my OBS a few months ago I can’t build packages for openSUSE 12.1, which was released a few days ago. Installing a new OBS is not the best solution in this case: you need some time for installation/configuration process and you have to move all projects there. If you need some packages for a new distribution(s) as a build target, just edit the file /srv/www/obs/api/files/distributions.xml:

<distribution vendor="openSUSE" version="12.1" id="opensuse-12.1">
 <name>openSUSE 12.1</name>
 <icon width="8" height="8" url="https://static.opensuse.org/distributions/logos/opensuse-12.1-8.png"/>
 <icon width="16" height="16" url="https://static.opensuse.org/distributions/logos/opensuse-12.1-16.png"/>

and reboot OBS/MySQL/WebServer:

rclighttpd stop
rcobspublisher stop
rcobsdispatcher stop
rcobsworker stop
rcobsscheduler stop
rcobssrcserver stop
rcobsrepserver stop
rcmysql stop

rcmysql start
rcobsrepserver start
rcobssrcserver start
rcobsscheduler start
rcobsworker start
rcobsdispatcher start
rcobspublisher  start
rclighttpd start

So you can teach your OBS build packages for new distribution.

Of course a new OBS 2.2.96 (from Tools:/Unstable/openSUSE_11.4) has many sweet and interesting things which I also want to have at home. But at work, where stability is most important, I “update” OBS also like this.
Good luck and happy packaging 😉

One Response

Subscribe to comments with RSS.

  1. […] is some packaging news [1, 2, 3, 4, 5, 6, 7, 8] and few reviews of the distribution. There are far fewer reviews than articles that […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: