Mailinglist Archive: opensuse-buildservice (219 mails)

< Previous Next >
Re: [opensuse-buildservice] osc build
  • From: Michal Marek <mmarek@xxxxxxx>
  • Date: Mon, 04 Feb 2008 13:55:03 +0100
  • Message-id: <47A70B27.1050602@xxxxxxx>
Dirk Stoecker wrote:

osc build openSUSE_10.2 i586 whatever.spec

Now do a

osc build openSUSE_10.3 i586 whatever.spec

osc will not recognice, that the build environment is totally different
and mixes the requirements, which will usually fail totally. But what if
it does not fail? Then the result will be very confusing.

Sure "--clean" in the call fixes this. But a better solution would be to
have a file e.g. ".environment-type" somewhere (e.g. in build path) and
this contains "openSUSE_10.2 i586". Now when the environment is different,
it should be cleared. Pretty straightforward I think :-)

Well, in case the repositories are very similar, you don't want to
rebuild the whole chroot from scratch. E.g. in server:php, we have:


which only differ in the apache and mysql version, means you can switch
just fine. But I agree that the current way it works isn't exactly what
users would expect.

What about making the automatic clean configurable?

build-root-clean: never # never clean automatically
build-root-clean: arch-change # clean when architecture changes
build-root-clean: repo-change # clean when repo/arch changes (default)
build-root-clean: always # always clean

plus a --no-clean option to override the logic.


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

< Previous Next >
Follow Ups