Mailinglist Archive: yast-devel (233 mails)

< Previous Next >
[yast-devel] Re: [yast-commit] <rest-service> master : disable mail packages test
  • From: Klaus Kaempf <kkaempf@xxxxxxx>
  • Date: Fri, 16 Oct 2009 10:32:42 +0200
  • Message-id: <20091016083242.GA31436@xxxxxxxxxxxxx>
* Ladislav Slezak <lslezak@xxxxxxxxxx> [Oct 16. 2009 10:27]:
ref: refs/heads/master
commit e8fd639b667f64026d47ed3594f197add378322b
Author: Ladislav Slezak <lslezak@xxxxxxxxxx>
Date: Fri Oct 16 10:26:20 2009 +0200

disable mail packages test

the packages are missing in hudson build chroot

Ah, thanks for spotting this.

A better fix for such cases is the following:

- add a "BuildRequires" to the .spec file
- surround this BuildRequires with a %if 0 ... %endif
- re-enable the test

Background:

The chroot environment on Hudson is set by 'grep'ping for
BuildRequires. So adding appropriate BuildRequires ensures that
the packages are available in chroot on Hudson.

As we don't want to bloat normal package builds with testing, the "%if 0"
will disable the BuildRequires for normal builds.


Hth,

Klaus
---
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG N├╝rnberg)

--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups