Mailinglist Archive: opensuse-buildservice (158 mails)

< Previous Next >
Re: [opensuse-buildservice] %buildroot not expanded in SLES11 and older
  • From: Marcus Meissner <meissner@xxxxxxx>
  • Date: Sun, 26 Dec 2010 18:55:16 +0100
  • Message-id: <20101226175516.GA2557@xxxxxxx>
On Sun, Dec 26, 2010 at 06:42:31PM +0100, Olaf Hering wrote:

Since there is appearently no example about how a single specfile could
look like that builds across all supported distros I created
home:olh:hello_world a few months ago. For some reason RPM_BUILD_ROOT
does not exist in SLES* and 11.1. It turned out that %buildroot is not
expanded for some reason.

Any ideas whats missing in home:olh?

Hi Olaf,

I think you need to add:

BuildRoot: %{_tmppath}/%{name}-%{version}-build

to the package header in the .spec file.

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

< Previous Next >
Follow Ups
References