Mailinglist Archive: opensuse-buildservice (251 mails)

< Previous Next >
[opensuse-buildservice] [PATCH] distinguish between local and worker builds
  • From: Anas Nashif <nashif@xxxxxxxxxxxxxxx>
  • Date: Tue, 21 Sep 2010 14:27:47 +0100
  • Message-id: <569ABBEA-EB47-4D52-8E39-D57B7B0FB5C3@xxxxxxxxxxxxxxx>
Hi,

Here is a tiny patch that define a macro when packages are built inside OBS so
that special packages built locally can be treated differently.

Anas



diff --git a/src/backend/bs_worker b/src/backend/bs_worker
index 948dd0b..2bbc838 100755
--- a/src/backend/bs_worker
+++ b/src/backend/bs_worker
@@ -1431,6 +1431,7 @@ sub dobuild {
push @args, '--oldpackages', $oldpkgdir if $oldpkgdir && -d $oldpkgdir;
push @args, '--norootforbuild' unless $BSConfig::norootexceptions && grep
{"$projid/$packid" =~ /^$_$/} keys %$BSConfig::norootexceptions;
push @args, '--baselibs-internal';
+ push @args, '--define', "running_in_obs 1";
push @args, '--lint';
push @args, '--dist', "$buildroot/.build.config";
push @args, '--rpmlist', "$buildroot/.build.rpmlist";--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups