srpm build error
Jos Vos
jos at xos.nl
Tue May 4 16:08:25 CEST 2010
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.
--
-- Jos Vos <jos at xos.nl>
-- X/OS Experts in Open Systems BV | Phone: +31 20 6938364
-- Amsterdam, The Netherlands | Fax: +31 20 6948204
More information about the Freeradius-Users
mailing list