that's why i sent my second email telling you to make sure $_incdir is defined in your .rpmmacros file. =) Joe Vieira UNIX Systems Administrator Clark University - ITS Andrew Long wrote:
Well, not so lucky after all. Looks like the build get 99% completed and we get an error:
+ RADDB=/var/tmp/freeradius-root/etc/raddb + perl -i -pe 's/^#user =.*$/user = radiusd/' /var/tmp/freeradius-root/etc/raddb/radiusd.conf + perl -i -pe 's/^#group =.*$/group = radiusd/' /var/tmp/freeradius-root/etc/raddb/radiusd.conf + perl -i -pe 's/# shadow =/shadow =/' /var/tmp/freeradius-root/etc/raddb/radiusd.conf + rm -f /var/tmp/freeradius-root/usr/share/man/man8/builddbm.8 + rm -f /var/tmp/freeradius-root/usr/sbin/rc.radiusd + install -m 0644 CREDITS /var/tmp/freeradius-root/usr/share/doc/freeradius-2.0.1 + install -m 0644 COPYRIGHT /var/tmp/freeradius-root/usr/share/doc/freeradius-2.0.1 + install -m 0644 LICENSE /var/tmp/freeradius-root/usr/share/doc/freeradius-2.0.1 + cd redhat + install -m 755 rc.radiusd-redhat /var/tmp/freeradius-root/etc/rc.d/init.d/radiusd + install -m 644 radiusd-logrotate /var/tmp/freeradius-root/etc/logrotate.d/radiusd + install -m 644 radiusd-pam /var/tmp/freeradius-root/etc/pam.d/radius + cd .. + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip + /usr/lib/rpm/brp-strip-static-archive strip: Unable to recognise the format of the input file `/var/tmp/freeradius-root/usr/lib/rlm_perl.a(DynaLoader.a)' strip: Unable to recognise the format of the input file `/var/tmp/freeradius-root/usr/lib/rlm_perl.a(DynaLoader.a)' + /usr/lib/rpm/brp-strip-comment-note Processing files: freeradius-2.0.1-0 error: File must begin with "/": %{_incdir}/freeradius/*
RPM build errors: File must begin with "/": %{_incdir}/freeradius/*
Any hints?
- Andrew
On Jan 28, 2008 8:55 AM, Joe Vieira <jvieira@clarku.edu> wrote:
you'll need to either rename everything in the spec file to be "freeradius-server" or just open the tar.gz rename the directory INSIDE IT (which is also freeradius-server) to freeradius-2.0.1... then zip it all back up and run your spec again and it will work.
Joe Vieira UNIX Systems Administrator Clark University - ITS
Andrew Long wrote:
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 - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html