srpm build error

Athiqur Rahman subs at arahmantech.com
Tue May 4 17:01:14 CEST 2010


Jos Vos wrote:
> On Tue, May 04, 2010 at 02:46:04PM +0100, Athiqur Rahman wrote:
>
>   
>> I am trying to build freeradius rpm by following the instructions at 
>> http://wiki.freeradius.org/Red_Hat_FAQ#How_to_build_an_SRPM
>>
>> I however get the follwing errors at the fist step
>>
>> # rpm -ivh freeradius-2.1.7-7.fc12.src.rpm
>>  1:freeradius             warning: user mockbuild does not exist - 
>> using root
>> warning: group mockbuild does not exist - using root
>> ########################################### [100%]
>> error: unpacking of archive failed on file 
>> /usr/src/redhat/SOURCES/freeradius-logrotate;4be01a23: cpio: MD5 sum 
>> mismatch
>>
>> I did a rpm -K which shows
>>
>> # rpm -K freeradius-2.1.7-7.fc12.src.rpm
>> freeradius-2.1.7-7.fc12.src.rpm: sha1 md5 OK
>>
>> I installed all the rpm-build packages before hand so do not know why 
>> this is happening. I am using Centos 5.4
>>     
>
> I think this is related to the changes for RPM since F11.  You can not
> unpack F11/F12 RPMs on F < 11 and RHEL/CentOS < 6.
>
> If this is the case, unpack the src.rpm with "rpm2cpio" on a F11+ system
> and copy the files to the appropriates places (SOURCES and SPECS) on
> your CentOS system.
>
>   
Thanks. You are right about about using old versions of  Fedora. I 
didn't have old fedora machine so used the the following command

rpm --nomd5 -ivh  freeradius-2.1.7-7.fc12.src.rpm

After that I followed the instructions as normal and ended up with the 
required RPMs. All except for

freeradius-libs
freeradius-devel

Are these 2 RPMs essential to the core running of freeradius?





More information about the Freeradius-Users mailing list