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

Avinesh Kumar avinesh@gmail.com
Wed, 6 Mar 2013 17:32:17 +0530


--047d7b66fc19d1e44904d7405dd5
Content-Type: text/plain; charset=ISO-8859-1

Try using following definitions in the SPEC file, I hope SRPMs would build
fine both on RHEL5
as well as on RHEL6

%define _source_filedigest_algorithm md5
%define _binary_filedigest_algorithm md5
%define _source_payload nil
%define _binary_payload nil


On Wed, Mar 6, 2013 at 2:40 PM, Stephen Quinney <stephen@jadevine.org.uk>wrote:

> 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.
> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-info
>

--047d7b66fc19d1e44904d7405dd5
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Try using following definitions in the SPEC file, I hope SRPMs would build =
fine both on RHEL5 <br>as well as on RHEL6<br><br>%define _source_filediges=
t_algorithm md5<br>%define _binary_filedigest_algorithm md5<br>%define _sou=
rce_payload nil<br>

%define _binary_payload nil<br><br><br><div class=3D"gmail_quote">On Wed, M=
ar 6, 2013 at 2:40 PM, Stephen Quinney <span dir=3D"ltr">&lt;<a href=3D"mai=
lto:stephen@jadevine.org.uk" target=3D"_blank">stephen@jadevine.org.uk</a>&=
gt;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">The fact that SRPMs generated on Fedora and =
RHEL6 don&#39;t install<br>
cleanly on RHEL5 is a long-standing nuisance. There are two ways<br>
around this.<br>
<br>
The first is to use &quot;rpm --nomd5 =A0/tmp/openafs-1.6.2-1.src.rpm&quot;=
<br>
<br>
Which is fine as long as you trust the SRPM is correct.<br>
<br>
The second is to use the signed SRPM which I use for building the<br>
RHEL5 packages, it can be found in<br>
/afs/<a href=3D"http://inf.ed.ac.uk/group/afsbuild/1.6.2/rhel5/" target=3D"=
_blank">inf.ed.ac.uk/group/afsbuild/1.6.2/rhel5/</a><br>
<br>
Cheers,<br>
<br>
Stephen<br>
<div class=3D"HOEnZb"><div class=3D"h5"><br>
<br>
On 5 March 2013 18:33, Micheal Waltz &lt;<a href=3D"mailto:mwaltz@qualcomm.=
com">mwaltz@qualcomm.com</a>&gt; wrote:<br>
&gt; When trying to build OpenAFS 1.6.2 from openafs-1.6.2-1.src.rpm only a=
 newly<br>
&gt; installed RHEL 5.9 installt, with the command:<br>
&gt;<br>
&gt; rpmbuild -vv --rebuild --define &quot;fedorakmod 1&quot; --define &quo=
t;build_userspace 1&quot;<br>
&gt; --define &quot;build_modules 1&quot; --target=3Dx86_64 --define &quot;=
kvariants =A0&quot;<br>
&gt; /tmp/openafs-1.6.2-1.src.rpm<br>
&gt;<br>
&gt; fails with,<br>
&gt;<br>
&gt; error: Macro %kvariants has empty body<br>
&gt; error: Macro %kvariants has empty body<br>
&gt; D: Expected size: =A0 =A0 19196557 =3D lead(96)+sigs(356)+pad(4)+data(=
19196101)<br>
&gt; D: =A0 Actual size: =A0 =A0 19196557<br>
&gt; D: opening =A0db environment /var/lib/rpm/Packages joinenv<br>
&gt; D: opening =A0db index =A0 =A0 =A0 /var/lib/rpm/Packages rdonly mode=
=3D0x0<br>
&gt; D: locked =A0 db index =A0 =A0 =A0 /var/lib/rpm/Packages<br>
&gt; D: opening =A0db index =A0 =A0 =A0 /var/lib/rpm/Pubkeys rdonly mode=3D=
0x0<br>
&gt; warning: InstallSourcePackage: Header V4 DSA signature: NOKEY, key ID<=
br>
&gt; c19e4a0a<br>
&gt; D: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Directories not explicitly included =
in package:<br>
&gt; D: =A0 =A0 =A0 =A0 =A00 /usr/src/redhat/SOURCES/<br>
&gt; D: =A0 =A0 =A0 =A0 =A01 /usr/src/redhat/SPECS/<br>
&gt; D: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>
&gt; warning: user afsbuild does not exist - using root<br>
&gt; warning: group afsbuild does not exist - using root<br>
&gt; D: undo =A0 =A0 =A0100644 =A01 ( =A0 0, =A0 0) =A0 =A0 36787<br>
&gt; /usr/src/redhat/SOURCES/CellServDB.2013-01-28;51362f72<br>
&gt; GZDIO: =A0 =A0 =A0 5 reads, =A0 =A040960 total bytes in 0.000321 secs<=
br>
&gt; error: unpacking of archive failed on file<br>
&gt; /usr/src/redhat/SOURCES/CellServDB.2013-01-28;51362f72: cpio: MD5 sum<=
br>
&gt; mismatch<br>
&gt; error: /mnt/ucm-buildhost/workspace/autobuild/openafs/openafs-current =
cannot<br>
&gt; be installed<br>
&gt; D: closed =A0 db index =A0 =A0 =A0 /var/lib/rpm/Pubkeys<br>
&gt; D: closed =A0 db index =A0 =A0 =A0 /var/lib/rpm/Packages<br>
&gt; D: closed =A0 db environment /var/lib/rpm/Packages<br>
&gt; D: May free Score board((nil))<br>
&gt;<br>
&gt; Same error is on 64-bit and 32-bit RHEL 5.9 and RHEL 5.8, but builds<b=
r>
&gt; properly on RHEL 6.4. The error does not occur when using the previous=
 1.6.1<br>
&gt; src.rpm.<br>
&gt;<br>
&gt; A search yielded a similar error with 1.6.0pre In 7/2011 and it was du=
e to &quot;<br>
&gt; a newer hash scheme. will be fixed (by generating with an old rpmbuild=
) for<br>
&gt; -final.&quot;<br>
&gt;<br>
&gt; <a href=3D"https://lists.openafs.org/pipermail/openafs-devel/2011-July=
/018529.html" target=3D"_blank">https://lists.openafs.org/pipermail/openafs=
-devel/2011-July/018529.html</a><br>
&gt;<br>
&gt; --<br>
&gt; Micheal Waltz<br>
&gt; Unix Configuration Management (go/ucm)<br>
&gt; Qualcomm Inc.<br>
</div></div><div class=3D"HOEnZb"><div class=3D"h5">_______________________=
________________________<br>
OpenAFS-info mailing list<br>
<a href=3D"mailto:OpenAFS-info@openafs.org">OpenAFS-info@openafs.org</a><br=
>
<a href=3D"https://lists.openafs.org/mailman/listinfo/openafs-info" target=
=3D"_blank">https://lists.openafs.org/mailman/listinfo/openafs-info</a><br>
</div></div></blockquote></div><br>

--047d7b66fc19d1e44904d7405dd5--