rpmbuld errors 2.0.1

Andrew Long fursink at gmail.com
Mon Jan 28 15:01:52 CET 2008


Hello:
I am trying to build the rpm for 2.0.1 on CentOS 5. The first oddity
is that the source now comes as freeradius-server-2.0.1.tar.gz;
starting the rpmbuild with $ rpmbuild -bb freeradius.spec yields an
error that SOURCES/freeradius-2.0.1.tar.gz does not exist. I tried
renaming freeradius-server-2.0.1.tar.gz to freeradius-2.0.1.tar.gz,
and now the build starts, but it always ends with the following error:

+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd freeradius-2.0.1
/var/tmp/rpm-tmp.71302: line 29: cd: freeradius-2.0.1: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.71302 (%prep)

Here is the block from the rpm-tmp file:
  set -x
  umask 022
  cd /home/along/rpmbuild/BUILD
cd /home/along/rpmbuild/BUILD
rm -rf freeradius-2.0.1
/bin/gzip -dc /home/along/rpmbuild/SOURCES/freeradius-2.0.1.tar.gz | tar -xvvf -
STATUS=$?
if [ $STATUS -ne 0 ]; then
  exit $STATUS
fi
cd freeradius-2.0.1 <----------------------------------------------LINE 29
[ `/usr/bin/id -u` = '0' ] && /bin/chown -Rhf root .
[ `/usr/bin/id -u` = '0' ] && /bin/chgrp -Rhf root .
/bin/chmod -Rf a+rX,u+w,g-w,o-w .

I am not an expert with rpmbuild, so I apologize if this is a bit
off-topic. I preceded the build with
$ rpmbuild --clean freeradius.spec as I had previously build 1.1.7 on
the same host.

- Andrew



More information about the Freeradius-Users mailing list