Mailinglist Archive: opensuse-gnome (65 mails)

< Previous Next >
[opensuse-gnome] New osc gnome features
  • From: Vincent Untz <vuntz@xxxxxxxxxxxx>
  • Date: Tue, 21 Oct 2008 18:37:55 +0200
  • Message-id: <20081021163755.GI8582@xxxxxxxxx>
Hi,

Just to let everyone know about the latest cool new stuff in osc gnome:


Support for multiple projects
=============================

osc gnome was initially created to handle the packages in GNOME:Factory.
However, it quickly appeared that people wanted to hack on other
projects, like X11:Compiz or X11:common:Factory.

There's now a --project option to specify which project you want to use.
You can alternatively specify the project in ~/.oscrc with the
gnome_projects setting. But the magic is that you can specify multiple
projects. Eg, I have this line in my ~/.oscrc:
gnome_projects = GNOME:Factory;X11:common:Factory;

osc gnome will use the most appropriate project when required, or use
all projects in "osc gnome todo", eg.

Only GNOME:Factory, X11:Compiz and X11:common:Factory are supported
right now. If you need an additional repository, just mail me -- it's
just a small configuration change in the database creation.


Forwarding packages to oS:F
===========================

This is for lazy project admins. When you review a package submitted to
G:F (or another project), sometimes you want to accept it and forward it
to oS:F. So you end up with the following:

osc sr accept $id
osc sr create [-m message] $project $package openSUSE:Factory

Now, you can just do : osc gnome forward $id

Note: it will take the message from the submitted request and use it as
the message for the request to oS:F.


Fire and forget: buildsubmit
============================

Probably the best thing since sliced bread. Before submitting a new
package to G:F (or another project), it's important to be sure that it
builds fine. This implies either building locally, waiting, committing,
and submitting, or committing, waiting for the build on the build
service and submitting. The thing is that you have to not forget about
the package during the "wait" step.

Here comes "osc gnome buildsubmit". This command commits things that
need to be committed, waits for the build to happen on the build
service, and if the build is successful on i586 and x86_64, it will
create a submit request to G:F (or the right project).

A typical workflow is:

osc gnome setup libwnck
# or: osc gnome update libwnck
cd libwnck
# Do all the changes you want to do. With "osc gnome update", this
# might just be updating the libwnck.changes file based on the
# osc-gnome.NEWS file.
osc buildsubmit -m 'Fix stuff'
# You can press enter to see the status of the build.
# If everything builds, you're done!
# If there's an error, you get a message explaining what's wrong.

Note that the message given with -m will be used as the commit message
and the submitreq message.

So, yeah. Fire and forget.

Note: if you have disabled the build of packages in your branches on the
build service (good thing to do, to help save the world), buildsubmit
will automatically enable the build for this specific package, wait for
the build to finish (succeed or fail) and disable the build again.


I'd love to see someone step up and update the wiki page with some
documentation [1] about all this :-) Else, I'll try to find some time to
do it.

Vincent

[1] http://en.opensuse.org/GNOME/OscGnome

--
Les gens heureux ne sont pas pressés.
--
To unsubscribe, e-mail: opensuse-gnome+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-gnome+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages