Mailinglist Archive: opensuse-packaging (129 mails)

< Previous Next >
[opensuse-packaging] /usr/bin/mkdir: cannot create directory : Permission denied on build service
Hello,

How do create a directory on build service to allow package to build.
- sequence of events: [1]

Thanks
--Glenn

[1]sequence of events:

#
Spec file contans:

%prep
%setup -q -n Apache-SizeLimit-%{version}

-log

[ 50s] + umask 022
[ 50s] + cd /home/abuild/rpmbuild/BUILD
[ 50s] + /usr/bin/rm -rf
/home/abuild/rpmbuild/BUILDROOT/perl-Apache-SizeLimit-0.97-9.1.x86_64
[ 50s] ++ dirname
/home/abuild/rpmbuild/BUILDROOT/perl-Apache-SizeLimit-0.97-9.1.x86_64
[ 50s] + /usr/bin/mkdir -p /home/abuild/rpmbuild/BUILDROOT
[ 50s] + /usr/bin/mkdir
/home/abuild/rpmbuild/BUILDROOT/perl-Apache-SizeLimit-0.97-9.1.x86_64
[ 50s] + cd Apache-SizeLimit-0.97
[ 50s] + /usr/bin/perl Makefile.PL INSTALLDIRS=vendor
[ 50s] Can't find the mod_perl include dir (reason: path
/usr/include/apache2 doesn't exist) at
/usr/lib/perl5/vendor_perl/5.20.1/x86_64-linux-thread-multi/Apache2/Build.pm
line 2099.
[ 50s] error: Bad exit status from /var/tmp/rpm-tmp.7qZPsl (%build)
[ 50s]
[ 50s]
[ 50s] RPM build errors:
[ 50s] Bad exit status from /var/tmp/rpm-tmp.7qZPsl (%build)


Next changed spec to contain:
#############################

%prep
%setup -q -n Apache-SizeLimit-%{version}
echo "create needed directories"
/usr/bin/mkdir $(buildroot)/usr/include/apache2

-log
[ 139s] Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Oo7Yir
[ 139s] + umask 022
[ 139s] + cd /home/abuild/rpmbuild/BUILD
[ 139s] + cd /home/abuild/rpmbuild/BUILD
[ 139s] + rm -rf Apache-SizeLimit-0.97
[ 139s] + /usr/bin/gzip -dc
/home/abuild/rpmbuild/SOURCES/Apache-SizeLimit-0.97.tar.gz
[ 139s] + /bin/tar -xf -
[ 139s] + STATUS=0
[ 139s] + '[' 0 -ne 0 ']'
[ 139s] + cd Apache-SizeLimit-0.97
[ 139s] + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
[ 139s] + echo 'create needed directories'
[ 139s] create needed directories
[ 139s] ++ buildroot
[ 139s] /var/tmp/rpm-tmp.Oo7Yir: line 39: buildroot: command not found
[ 139s] + /usr/bin/mkdir /usr/include/apache2
[ 139s] /usr/bin/mkdir: cannot create directory '/usr/include/apache2':
Permission denied
[ 139s] error: Bad exit status from /var/tmp/rpm-tmp.Oo7Yir (%prep)



#
package,spec file and build log:
https://build.opensuse.org/package/show/home:doiggl/perl-Apache-SizeLimit
https://build.opensuse.org/package/view_file/home:doiggl/perl-Apache-SizeLimit/perl-Apache-SizeLimit.spec?expand=1
https://build.opensuse.org/package/live_build_log/home:doiggl/perl-Apache-SizeLimit/openSUSE_13.2/x86_64
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >
This Thread
Follow Ups