[lug] rpm and temp files
D. Stimits
stimits at idcomm.com
Tue Dec 12 12:00:01 MST 2000
John Karns wrote:
>
> On Mon, 11 Dec 2000, D. Stimits uttered:
>
> > <=== [config]
> > make[2]: Leaving directory `/usr/src/redhat/BUILD/apache_1.3.12'
> > make[1]: Leaving directory `/usr/src/redhat/BUILD/apache_1.3.12'
> > + rm /var/tmp/apache-ssl/home/httpsd/sbin/httpsdctl
> > rm: cannot remove `/var/tmp/apache-ssl/home/httpsd/sbin/httpsdctl': No
> > such file or directory
> > Bad exit status from /var/tmp/rpm-tmp.90381 (%install)
> >
> >
> >
> > Basically it is trying to work with a temp directory that doesn't exist
> > (it was run as root so I know it had permission to create). Earlier on I
>
> How about creating the temp dir before installing?
>
I found out that the directory itself was there, but not the file
httpdsdctl. Looking in the spec file, the following is a clue (I think
the rpm was spec'd or designed wrong):
# remove httpsdctl; we have our own SYSV init stuff
rm $RPM_BUILD_ROOT/home/httpsd/sbin/httpsdctl
...
%attr(755,root,root) /home/httpsd/sbin/ab
#%attr(755,root,root) /home/httpsd/sbin/httpsdctl
%attr(755,root,root) /home/httpsd/sbin/apxs
...
# remove httpsdctl; we have our own SYSV init stuff
rm $RPM_BUILD_ROOT/home/httpsd/sbin/httpsdctl
...
It appears that part of the script decided it did not need httpsdctl, so
it removed part of the steps. It left the rm stage in without using the
-f option. It should have either used -f or commented out the rm stage
too. I'm wondering if there is a simple way in "rpm --rebuild" to tell
it to use rm -f instead of just rm?
D. Stimits, stimits at idcomm.com
More information about the LUG
mailing list