solved: (was: Re: build rpm packages on centOS)

2006-11-16 Thread Michael Messner
hey freeradius users,

Michael Messner sagte:
 ... the original spec file wont work on centOS ...

it breaks with errors of overwriting a README file which was created
allready:

...
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)


so I've changed the following line in the spec-file from:

%doc doc/* LICENSE COPYRIGHT CREDITS README

to:

%doc doc/* LICENSE COPYRIGHT CREDITS

now it works on my centOS machine: :-)

11:13:15 Xradius ~ [root]cat /etc/redhat-release
CentOS release 4.3 (Final)

thanks for all the help
ca mIke


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: build rpm packages on centOS

2006-11-15 Thread Michael Messner
Patric sagte:
 Michael Messner wrote:

 jep from source it compiles,

 16:05:16 Xradius ~/rpmbuild/SPECS [root]rpmbuild -ba freeradius.spec

 ca mIke

 Sorry man, in that case Im not sure what the problem is...
 You might get more help from the guys on GLUG Tech if you post there -
 www.glug.org.za

 Let me know if you resolve it, Id be interested to know what the problem
  was!

I've found out that the problem is in the line with %pre

freeradius.spec:
...
cd ..
echo test1
%pre
echo test2
/usr/sbin/useradd -c radiusd user -r -s /bin/false -u 95 -d / radiusd
2/dev/null || :
...

before the test2 it breaks!

ideas?

ca mIke




- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


build rpm packages on centOS

2006-11-14 Thread Michael Messner
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


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: build rpm packages on centOS

2006-11-14 Thread Patric

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
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: build rpm packages on centOS

2006-11-14 Thread Michael Messner
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


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: build rpm packages on centOS

2006-11-14 Thread Patric

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?

Patric
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: build rpm packages on centOS

2006-11-14 Thread Michael Messner
-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-
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: build rpm packages on centOS

2006-11-14 Thread Michael Messner
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


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html