On Wed, Apr 2, 2014 at 4:44 PM, Marcus Meissner <meissner@suse.de> wrote:
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:package...
[ 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
Like I said, staring me right in the face...thanks! -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org