[opensuse-buildservice] permission denied on SLES
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 -- Later, Darin -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Darin Perusich <darin@darins.net> Wed, 02 Apr 2014 22:46:53 +0300:
[ 3s] error: File not found: /usr/share/doc/packages/jakarta-commons-dbcp-src
Hello! Imho it is a real issue. Please check if so. -- Best regards, Dmitriy DA(P).DarkneSS Perlow @ Linux x64 -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
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 Ciao, Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
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
On Mittwoch, 2. April 2014, 15:46:53 wrote Darin Perusich:
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.
No, that is not enough, the OBS admin has to allow building as root. We do so to avoid dangerous src.rpms, which do affect user systems when they build it with plain rpm. We could add a permission for this package if there is a good reason. So what is the reason that you avoid a clean BuildRoot here?
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
-- Later, Darin
-- Adrian Schroeter email: adrian@suse.de SUSE LINUX GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 21284 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Darin Perusich <darin@darins.net> writes:
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.
norootforbuild has been the default already since a long time.
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.
You need to add BuildRoot (it's not added by default in older rpm versions). Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (5)
-
Adrian Schröter
-
Andreas Schwab
-
Darin Perusich
-
Dmitriy Perlow
-
Marcus Meissner