build rpm packages on centOS
hey @all, trying to build freeradius-1.1.3 rpms for centOS with the description from http://wiki.freeradius.org/Build#Building_RedHat_packages ends with the following error: Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.73012 + umask 022 + cd /root/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.73012 (%doc) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.73012 (%doc) any ideas? ca mIke
Michael Messner wrote:
hey @all,
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.73012 (%doc)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.73012 (%doc)
any ideas?
Have you tried compiling the source? What you will probably find is that make will fail, and will give you a more detailed description on where the compile is _actually_ failing. My suggestion is to try compile from source. I had a similar problem trying to build a php-java-bridge rpm on CentOS a while back. Turns out the gcc compiler was getting itself in a knot, and incorrectly reporting duplicate methods. My solution was to use make with the "-i" switch - ignore errors. If your problem is similar you can get around rpmbuild failing by editing the spec file and changing the "make" statement to "make -i" HTH Patric
Patric sagte:
Michael Messner wrote:
hey @all,
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.73012 (%doc)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.73012 (%doc)
any ideas?
Have you tried compiling the source?
that works!
What you will probably find is that make will fail, and will give you a more detailed description on where the compile is _actually_ failing.
My suggestion is to try compile from source. I had a similar problem trying to build a php-java-bridge rpm on CentOS a while back. Turns out the gcc compiler was getting itself in a knot, and incorrectly reporting duplicate methods. My solution was to use make with the "-i" switch - ignore errors.
if I add the -i in the spec file there is no change ... same error! thanks mIke
Patric sagte:
Michael Messner wrote:
Patric sagte:
Have you tried compiling the source?
that works!
if I add the -i in the spec file there is no change ... same error!
thanks mIke
So it compiles from source? Ok, what is your rpmbuild command?
jep from source it compiles, 16:05:16 Xradius ~/rpmbuild/SPECS [root]rpmbuild -ba freeradius.spec ca mIke
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Patric schrieb:
Michael Messner wrote:
Patric sagte:
Have you tried compiling the source?
that works!
if I add the -i in the spec file there is no change ... same error!
thanks mIke
So it compiles from source? Ok, what is your rpmbuild command?
jep from source it compiles, 16:05:16 Xradius ~/rpmbuild/SPECS [root]rpmbuild -ba freeradius.spec ca mIke -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFWf9OyUY4xkIcFVQRAhcqAJ0XV6gi2ada9H/bJ0EVtN2TXQtIWwCfWc5F W6pZEmCtTHMtUnafFcu3gXg= =nmPH -----END PGP SIGNATURE-----
participants (2)
-
Michael Messner -
Patric