[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Fedora 11 / EPEL 5 MD5 Issue



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/16/2009 10:32 AM, Rick L. Vinyard, Jr. wrote:
> I've built the following package on Fedora 10 and 11 in mock without any
> problems.
>      http://miskatonic.cs.nmsu.edu/pub/libMini-9.0.3-2.fc11.src.rpm
> 
> However, when I try and build for EPEL 5 using mock on a F11 machine I get
> the following in root.log:
> 
> DEBUG util.py:256:  error: unpacking of archive failed on file
> /builddir/build/SOURCES/MINI-9.0.3.zip;4a5f3532: cpio: MD5 sum mismatch
> 
> Any suggestions?
> 

To extract sources from an SRPM:
rpm2cpio <src.rpm> | cpio --extract
(Do this in its own directory)

To enable the old checksum (for building RHEL packages):
rpmbuild -bs --define _source_filedigest_algorithm=1 <spec>

This will recreate the SRPM using an MD5 sum instead of a SHA1 sum.

You can then use that in mock.

- -- 
Stephen Gallagher
RHCE 804006346421761

Looking to carve out IT costs?
www.redhat.com/carveoutcosts/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkpfOsUACgkQeiVVYja6o6OzogCghnA7UWmp04TNNf24xZ3W1c8e
6rgAn0eeVb8mvQwi5T9EYWycBuB/rn8a
=ftcD
-----END PGP SIGNATURE-----


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]