Mailinglist Archive: opensuse-buildservice (89 mails)

< Previous Next >
Re: [opensuse-buildservice] questions re: creating & building minimal project/spec file
  • From: "Dmitriy Perlow" <dap@xxxxxxx>
  • Date: Fri, 24 Apr 2015 20:43:49 +0300
  • Message-id: <op.xxlx7bxdodbuyo@old.tower>
PGNd <dev@xxxxxxx> Fri, 24 Apr 2015 20:24:51 +0300:

Couple of questions,

(1) The osc build cmd line specifies build target & arch,

osc build --noinit openSUSE_13.2 x86_64 openssl.spec

The build, however appears to use multiple arches

[ 0s] Using BUILD_ARCH=x86_64:i686:i586:i486:i386

Why?

Please just don't mention it, you'll get x86_64 packages only via this command line.

(2) The spec file defines build root,

BuildRoot: /tmp/%{basepkgname}-%{version}-build

but, the build uses, instead,

[ 0s] Using
BUILD_ROOT=/var/tmp/build-root/openSUSE_13.2-x86_64

Why?

OBS overwrites this variable, please don't use it and setup osc to another local directory or make links, loops mounts etc.

(3) The build fails @ %prep

[ 2s] /var/tmp/rpm-tmp.ZLrbSJ: line 34: cd: openssl-local-1.0.2a: No such file or directory
[ 2s] error: Bad exit status from /var/tmp/rpm-tmp.ZLrbSJ
(%prep)

Is

%setup -q

not appropriate? Or is the .tar.gz not properly handled?

The final command of `%setup -q` is `cd %name-%version`, please add a top level directory or modify %setup: http://www.rpm.org/max-rpm/s1-rpm-inside-macros.html

--
Best regards,
Dmitriy DA(P).DarkneSS Perlow @ Linux x64
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >
References