Mailinglist Archive: opensuse-buildservice (83 mails)

< Previous Next >
Re: [opensuse-buildservice] permission denied on SLES
On Wed, Apr 02, 2014 at 03:46:53PM -0400, Darin Perusich wrote:
Hello All,

I'm trying to fix a package build on SLES and I would have thought
adding norootforbuild would have fixed it but it's still happening.
When the build is Processing files it can't find file files and during
%doc execution I'm getting permission denied to create the %docdir.

I feel like this should be trivial and staring me right in the face.
Can someone talk a look at this?

https://build.opensuse.org/package/show/home:deadpoint:branches:Java:packages/jakarta-commons-dbcp-src

[ 3s] Processing files: jakarta-commons-dbcp-src-1.2.2-0
[ 3s] error: File not found: /usr/src/commons-dbcp
[ 3s] Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.68448
[ 3s] + umask 022
[ 3s] + cd /usr/src/packages/BUILD
[ 3s] + cd commons-dbcp-1.2.2-src
[ 3s] + DOCDIR=/usr/share/doc/packages/jakarta-commons-dbcp-src
[ 3s] + export DOCDIR
[ 3s] + rm -rf /usr/share/doc/packages/jakarta-commons-dbcp-src
[ 3s] + /bin/mkdir -p /usr/share/doc/packages/jakarta-commons-dbcp-src
[ 3s] /bin/mkdir: cannot create directory
`/usr/share/doc/packages/jakarta-commons-dbcp-src': Permission denied
[ 3s] error: Bad exit status from /var/tmp/rpm-tmp.68448 (%doc)
[ 3s] error: File not found:
/usr/share/doc/packages/jakarta-commons-dbcp-src

You need to specify the BUildroot.

e.g.
BuildRoot: %{_tmppath}/%{name}-%{version}-build

Ciao, Marcus
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References