Building Freeradius RPM on Redhat ES 4.0

King, Michael MKing at bridgew.edu
Wed Aug 30 01:32:23 CEST 2006


We're trying to build FreeRADIUS 1.1.3 into a RPM to install on our
RedHat ES 4.0 servers.

Following the directions in the Wiki

http://wiki.freeradius.org/index.php/FreeRADIUS_Wiki:FAQ#How_do_I_build_
a_RPM_package_from_sources.3F

I get the following error(s) and I've attached the referenced file
below.  I'm unsure how to fix this... RedHat and RPM is a new
environment for me.  (I'm more accustomed to Debian)

Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.49148
+ umask 022
+ cd /home/mking/rpmbuild/BUILD
+ cd freeradius-1.1.3
+ DOCDIR=/var/tmp/freeradius-root/usr/share/doc/freeradius-1.1.3
+ export DOCDIR
+ rm -rf /var/tmp/freeradius-root/usr/share/doc/freeradius-1.1.3
+ /bin/mkdir -p /var/tmp/freeradius-root/usr/share/doc/freeradius-1.1.3
+ cp -pr suse/README.SuSE
/var/tmp/freeradius-root/usr/share/doc/freeradius-1.1.3
+ cp -pr doc/00-OLD doc/aaa.txt doc/Acct-Type doc/ascend doc/Autz-Type
doc/bay doc/bugs doc/ChangeLog doc/cisco doc/coding-methods.txt
doc/configurable_failover doc/CYGWIN doc/DIFFS doc/duplicate-users
doc/examples doc/ldap_howto.txt doc/load-balance.txt doc/MACOSX
doc/Makefile doc/misc-nas doc/module_interface doc/mssql doc/OS2
doc/performance-testing doc/Post-Auth-Type doc/processing_users_file
doc/proxy doc/RADIUS-LDAP-eDirectory doc/RADIUS-SQL.schema doc/radrelay
doc/README doc/release-method.txt doc/rfc doc/rlm_attr_filter
doc/rlm_dbm doc/rlm_digest doc/rlm_eap doc/rlm_fastusers doc/rlm_krb5
doc/rlm_ldap doc/rlm_pam doc/rlm_passwd doc/rlm_python
doc/rlm_sim_triplets doc/rlm_sql doc/rlm_sqlcounter doc/rlm_sqlippool
doc/Session-Type doc/Simultaneous-Use doc/supervise-radiusd.txt
doc/tuning_guide doc/variables.txt LICENSE COPYRIGHT CREDITS README
/var/tmp/freeradius-root/usr/share/doc/freeradius-1.1.3
cp: will not overwrite just-created
`/var/tmp/freeradius-root/usr/share/doc/freeradius-1.1.3/README' with
`README'
error: Bad exit status from /var/tmp/rpm-tmp.49148 (%doc)
Processing files: freeradius-debuginfo-1.1.3-0
Provides: libeap-1.1.3.so.debug libradius-1.1.3.so.debug
rlm_acct_unique-1.1.3.so.debug rlm_always-1.1.3.so.debug
rlm_attr_filter-1.1.3.so.debug rlm_attr_rewrite-1.1.3.so.debug
rlm_chap-1.1.3.so.debug rlm_checkval-1.1.3.so.debug
rlm_counter-1.1.3.so.debug rlm_dbm-1.1.3.so.debug
rlm_detail-1.1.3.so.debug rlm_digest-1.1.3.so.debug
rlm_eap-1.1.3.so.debug rlm_eap_gtc-1.1.3.so.debug
rlm_eap_leap-1.1.3.so.debug rlm_eap_md5-1.1.3.so.debug
rlm_eap_mschapv2-1.1.3.so.debug rlm_eap_peap-1.1.3.so.debug
rlm_eap_sim-1.1.3.so.debug rlm_eap_tls-1.1.3.so.debug
rlm_eap_ttls-1.1.3.so.debug rlm_exec-1.1.3.so.debug
rlm_expr-1.1.3.so.debug rlm_fastusers-1.1.3.so.debug
rlm_files-1.1.3.so.debug rlm_ippool-1.1.3.so.debug
rlm_krb5-1.1.3.so.debug rlm_ldap-1.1.3.so.debug
rlm_mschap-1.1.3.so.debug rlm_ns_mta_md5-1.1.3.so.debug
rlm_otp-1.1.3.so.debug rlm_pam-1.1.3.so.debug rlm_pap-1.1.3.so.debug
rlm_passwd-1.1.3.so.debug rlm_perl-1.1.3.so.debug
rlm_preprocess-1.1.3.so.debug rlm_radutmp-1.1.3.so.debug
rlm_realm-1.1.3.so.debug rlm_sql-1.1.3.so.debug
rlm_sql_log-1.1.3.so.debug rlm_sqlcounter-1.1.3.so.debug
rlm_unix-1.1.3.so.debug
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.49148 (%doc)

Here's the contents of that file.


[mking at radius2 SPECS]$ more /var/tmp/rpm-tmp.49148
#!/bin/sh

  RPM_SOURCE_DIR="/home/mking/rpmbuild/SOURCES"
  RPM_BUILD_DIR="/home/mking/rpmbuild/BUILD"
  RPM_OPT_FLAGS="-O2 -g -pipe -m32 -march=i386 -mtune=pentium4"
  RPM_ARCH="i386"
  RPM_OS="linux"
  export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS
  RPM_DOC_DIR="/usr/share/doc"
  export RPM_DOC_DIR
  RPM_PACKAGE_NAME="freeradius"
  RPM_PACKAGE_VERSION="1.1.3"
  RPM_PACKAGE_RELEASE="0"
  export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE
  RPM_BUILD_ROOT="/var/tmp/freeradius-root"
  export RPM_BUILD_ROOT


  set -x
  umask 022
  cd /home/mking/rpmbuild/BUILD
cd freeradius-1.1.3
DOCDIR=$RPM_BUILD_ROOT/usr/share/doc/freeradius-1.1.3
export DOCDIR
rm -rf $DOCDIR
/bin/mkdir -p $DOCDIR
cp -pr  suse/README.SuSE $DOCDIR
cp -pr  doc/* LICENSE COPYRIGHT CREDITS README $DOCDIR
cp -pr  doc/examples/* $DOCDIR
cp -pr  scripts/create-users.pl scripts/CA.* scripts/certs.sh $DOCDIR
cp -pr  scripts/users2mysql.pl scripts/xpextensions $DOCDIR
cp -pr  scripts/cryptpasswd scripts/exec-program-wait
scripts/radiusd2ldif.pl $DOCDIR
exit 0




More information about the Freeradius-Users mailing list