Mailinglist Archive: opensuse-buildservice (295 mails)

< Previous Next >
[opensuse-buildservice] preferred rpms and ccache
  • From: Michael Wolf <maw@xxxxxxxxxx>
  • Date: Mon, 05 Mar 2007 11:42:30 -0600
  • Message-id: <1173116550.10391.18.camel@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>

In home:maw, I have two packages which may be of interest to other
people using the build service.

First is a patched version of osc. It has two patches.

One patch, pubkey-instructions.patch, is pretty straightforward, and I
think it should be committed to svn.

Another patch, preferred-rpms.patch, lets you run osc with the
environment variable OSC_PREFERRED_RPMS set. This allows you to run
builds with your own packages - it's useful when you update foo, and
then get to work on bar, upon which foo depends. Sure, foo will be
rebuilt automatically by the build service, but sometimes it takes a
while; this way you can keep on working. As is, it's pretty hacky and
kind of dumb (osc will download the packages needed to build your
package even if that package already exists in your preferred rpms
directory), but it might be useful to other people anyway. It's been
very useful for me, at any rate.

(Is there already a better way to do this? I couldn't find it...)

Second is a patched version of ccache. This links
/usr/local/bin/{gcc,cc,g++,c++} to /usr/bin/ccache. The result is that
ccache is transparently invoked when building, no need modify your .spec
or anything like that. Also, the default cache size is raised to 3G and
ccache's directory goes into /.ccache. To use, you currently need my
patched osc; put the ccache package into your preferred rpms directory
and build away.

At the risk of stating the obvious, I don't advise installing this
package outside of osc build roots.

Together, these make building large packages (such as firefox) and
groups of many packages with lots of interdependencies (such as gnome)
much faster.

To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups