[OpenAFS] OpenAFS 1.6.2 .src.rpm on RHEL 5.9 Fails with cpio: MD5 sum mismatch

Stephen Quinney stephen@jadevine.org.uk
Wed, 6 Mar 2013 09:10:23 +0000


The fact that SRPMs generated on Fedora and RHEL6 don't install
cleanly on RHEL5 is a long-standing nuisance. There are two ways
around this.

The first is to use "rpm --nomd5  /tmp/openafs-1.6.2-1.src.rpm"

Which is fine as long as you trust the SRPM is correct.

The second is to use the signed SRPM which I use for building the
RHEL5 packages, it can be found in
/afs/inf.ed.ac.uk/group/afsbuild/1.6.2/rhel5/

Cheers,

Stephen


On 5 March 2013 18:33, Micheal Waltz <mwaltz@qualcomm.com> wrote:
> When trying to build OpenAFS 1.6.2 from openafs-1.6.2-1.src.rpm only a newly
> installed RHEL 5.9 installt, with the command:
>
> rpmbuild -vv --rebuild --define "fedorakmod 1" --define "build_userspace 1"
> --define "build_modules 1" --target=x86_64 --define "kvariants  "
> /tmp/openafs-1.6.2-1.src.rpm
>
> fails with,
>
> error: Macro %kvariants has empty body
> error: Macro %kvariants has empty body
> D: Expected size:     19196557 = lead(96)+sigs(356)+pad(4)+data(19196101)
> D:   Actual size:     19196557
> D: opening  db environment /var/lib/rpm/Packages joinenv
> D: opening  db index       /var/lib/rpm/Packages rdonly mode=0x0
> D: locked   db index       /var/lib/rpm/Packages
> D: opening  db index       /var/lib/rpm/Pubkeys rdonly mode=0x0
> warning: InstallSourcePackage: Header V4 DSA signature: NOKEY, key ID
> c19e4a0a
> D: ========== Directories not explicitly included in package:
> D:          0 /usr/src/redhat/SOURCES/
> D:          1 /usr/src/redhat/SPECS/
> D: ==========
> warning: user afsbuild does not exist - using root
> warning: group afsbuild does not exist - using root
> D: undo      100644  1 (   0,   0)     36787
> /usr/src/redhat/SOURCES/CellServDB.2013-01-28;51362f72
> GZDIO:       5 reads,    40960 total bytes in 0.000321 secs
> error: unpacking of archive failed on file
> /usr/src/redhat/SOURCES/CellServDB.2013-01-28;51362f72: cpio: MD5 sum
> mismatch
> error: /mnt/ucm-buildhost/workspace/autobuild/openafs/openafs-current cannot
> be installed
> D: closed   db index       /var/lib/rpm/Pubkeys
> D: closed   db index       /var/lib/rpm/Packages
> D: closed   db environment /var/lib/rpm/Packages
> D: May free Score board((nil))
>
> Same error is on 64-bit and 32-bit RHEL 5.9 and RHEL 5.8, but builds
> properly on RHEL 6.4. The error does not occur when using the previous 1.6.1
> src.rpm.
>
> A search yielded a similar error with 1.6.0pre In 7/2011 and it was due to "
> a newer hash scheme. will be fixed (by generating with an old rpmbuild) for
> -final."
>
> https://lists.openafs.org/pipermail/openafs-devel/2011-July/018529.html
>
> --
> Micheal Waltz
> Unix Configuration Management (go/ucm)
> Qualcomm Inc.