[opensuse-buildservice] Problems trying to install a newly created package.
Hi,
In home:gerberb I am trying to get FAQ-O-Matic working before I move it to
the perl directory. Everything seems to be working till I get this error.
+ mkdir -p /srv/www/cgi-bin/fom-meta
mkdir: cannot create directory `/srv/www/cgi-bin/fom-meta': Permission
denied
error: Bad exit status from /var/tmp/rpm-tmp.39732 (%install)
What do I need to do to allow this to happen?
Thanks,
--
Boyd Gerber
On Sat, 5 Apr 2008, Boyd Lynn Gerber wrote:
In home:gerberb I am trying to get FAQ-O-Matic working before I move it to the perl directory. Everything seems to be working till I get this error.
+ mkdir -p /srv/www/cgi-bin/fom-meta mkdir: cannot create directory `/srv/www/cgi-bin/fom-meta': Permission denied error: Bad exit status from /var/tmp/rpm-tmp.39732 (%install)
What do I need to do to allow this to happen?
You need to fix your build. It should not access /srv/... but instead %{buildroot}/srv/... Ciao -- http://www.dstoecker.eu/ (PGP key available) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Sun, 6 Apr 2008, Dirk Stoecker wrote:
On Sat, 5 Apr 2008, Boyd Lynn Gerber wrote:
In home:gerberb I am trying to get FAQ-O-Matic working before I move it to the perl directory. Everything seems to be working till I get this error.
+ mkdir -p /srv/www/cgi-bin/fom-meta mkdir: cannot create directory `/srv/www/cgi-bin/fom-meta': Permission denied error: Bad exit status from /var/tmp/rpm-tmp.39732 (%install)
What do I need to do to allow this to happen?
You need to fix your build. It should not access /srv/... but instead %{buildroot}/srv/...
Thanks, I forgot that. I really feel stupid I missed such a simple thing.
Thanks,
--
Boyd Gerber
On Sat, 5 Apr 2008, Boyd Lynn Gerber wrote:
On Sun, 6 Apr 2008, Dirk Stoecker wrote:
On Sat, 5 Apr 2008, Boyd Lynn Gerber wrote:
In home:gerberb I am trying to get FAQ-O-Matic working before I move it to the perl directory. Everything seems to be working till I get this error.
+ mkdir -p /srv/www/cgi-bin/fom-meta mkdir: cannot create directory `/srv/www/cgi-bin/fom-meta': Permission denied error: Bad exit status from /var/tmp/rpm-tmp.39732 (%install)
What do I need to do to allow this to happen?
You need to fix your build. It should not access /srv/... but instead %{buildroot}/srv/...
Thanks, I forgot that. I really feel stupid I missed such a simple thing.
What I had was
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{appdir}/fom-meta
install -d $RPM_BUILD_ROOT%{appdir}/fom-meta
So I really did not forget. This is turning into
/srv/www/cgi-bin/fom-meta with the error. So that was not the problem.
It does not like the above.
--
Boyd Gerber
On Sat, 5 Apr 2008, Boyd Lynn Gerber wrote:
What I had was
rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{appdir}/fom-meta install -d $RPM_BUILD_ROOT%{appdir}/fom-meta
So I really did not forget. This is turning into
/srv/www/cgi-bin/fom-meta with the error. So that was not the problem. It does not like the above.
Some lines above in the error log you see, that $RPM_BUILD_ROOT is empty (which BTW is not good for "rm -rf"). Add a line like "BuildRoot: %{_tmppath}/%{name}-%{version}-build" in your SPEC file. Ciao -- http://www.dstoecker.eu/ (PGP key available) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (2)
-
Boyd Lynn Gerber
-
Dirk Stoecker