[OpenAFS] srpm for 1.6.1 not building in mock

Simon Wilkinson simonxwilkinson@gmail.com
Wed, 4 Apr 2012 22:16:39 -0400


--Apple-Mail-6ED52396-18D1-4FEE-808C-479D4FE995F8
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

There was a change made to the spec file at the last minute in the 1.6.1 rel=
ease process after problems were encountered with the mock builders. Unfortu=
nately this change includes an unnecessary kernel-devel dependency. Sadly, w=
hilst the problem was pointed out during the review, an unmodified patch was=
 pushed.=20

I can't verify at the moment that this is definitely your problem, but I sus=
pect that reverting the kernel-devel portion of the last change to src/packa=
ging/openafs.spec.in will fix the issue.

Cheers,

Simon

On 4 Apr 2012, at 18:35, David Botsch <botsch@cnf.cornell.edu> wrote:

> I did not have any issues with pre 1.6.1 on red hat 6, or Fedora 15. Have n=
ot yet tried a mock build with the final.
>=20
> On Apr 4, 2012 6:32 PM, "Darren Patterson" <darren.patterson@stanford.edu>=
 wrote:
> All,
> Has anyone else encountered issues when trying to build kmods for RHEL5/6 u=
sing the new openafs-1.6.1-1.src.rpm in mock?  The 1.6.0 RPMs worked fine (w=
ith a work-around to install required packages prior to rebuilding the sourc=
e rpm), but the 1.6.1 RPMs throw this error in mock:
>=20
> ERROR: Command failed:
>  # ['/usr/bin/yum-builddep', '--installroot', '/var/lib/mock/rhel-5-x86_64=
-mock/
> root/', '/var/lib/mock/rhel-5-x86_64-mock/root///builddir/build/SRPMS/open=
afs-1.
> 6.1-1.src.rpm']
> Getting requirements for openafs-1.6.1-1.src
>  --> Already installed : pam-devel-0.99.6.2-6.el5_5.2.x86_64
>  --> Already installed : ncurses-devel-5.5-24.20060715.x86_64
>  --> Already installed : flex-2.5.4a-41.fc6.x86_64
>  --> Already installed : bison-2.3-2.1.x86_64
>  --> Already installed : 4:perl-5.8.8-38.el5.x86_64
>  --> Already installed : krb5-devel-1.6.1-70.el5.x86_64
>  --> Already installed : kernel-xen-devel-2.6.18-308.1.1.el5.x86_64
> Error: No Package found for kernel-devel-x86_64 =3D 2.6.32-220.7.1.el6
>=20
> Looking through a diff of the spec and the Requires from the src.rpms for 1=
.6.0 and 1.6.1 it isn't quickly obvious why this is happening.  The kernel-d=
evel version it is trying to get (2.6.32-220.7.1.el6) is for the kernel I'm c=
urrently running, not the kernel that is installed in the chroot which it sh=
ould be picking up from the spec.
>=20
> -darren
>=20
>=20
> mock@rhel-afs-test6x:~/rpmbuild/SOURCES$ rpm -qp --requires /usr/src/afs/o=
penafs-1.6.0-1.src.rpm
> pam-devel
> ncurses-devel
> flex
> bison
> krb5-devel
> kernel-devel-x86_64 =3D 2.6.18-238.1.1.el5.inf.1
> rpmlib(CompressedFileNames) <=3D 3.0.4-1
>=20
> mock@rhel-afs-test6x:~/rpmbuild/SOURCES$ rpm -qp --requires /usr/src/afs/o=
penafs-1.6.1-1.src.rpm
> pam-devel
> ncurses-devel
> flex
> bison
> perl(ExtUtils::Embed)
> krb5-devel
> kernel-devel
> kernel-devel-i686 =3D 2.6.18-128.1.10.el5
> rpmlib(CompressedFileNames) <=3D 3.0.4-1
>=20
>=20
>=20
>=20
>=20
>=20
> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-info
>=20

--Apple-Mail-6ED52396-18D1-4FEE-808C-479D4FE995F8
Content-Transfer-Encoding: 7bit
Content-Type: text/html;
	charset=utf-8

<html><head></head><body bgcolor="#FFFFFF"><div>There was a change made to the spec file at the last minute in the 1.6.1 release process after problems were encountered with the mock builders. Unfortunately this change includes an unnecessary kernel-devel dependency. Sadly, whilst the problem was pointed out during the review, an unmodified patch was pushed.&nbsp;</div><div><br></div><div>I can't verify at the moment that this is definitely your problem, but I suspect that reverting the kernel-devel portion of the last change to src/packaging/openafs.spec.in will fix the issue.</div><div><br></div><div>Cheers,</div><div><br></div><div>Simon<br></div><div><br>On 4 Apr 2012, at 18:35, David Botsch &lt;<a href="mailto:botsch@cnf.cornell.edu">botsch@cnf.cornell.edu</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div><p>I did not have any issues with pre 1.6.1 on red hat 6, or Fedora 15. Have not yet tried a mock build with the final.</p>
<div class="gmail_quote">On Apr 4, 2012 6:32 PM, "Darren Patterson" &lt;<a href="mailto:darren.patterson@stanford.edu">darren.patterson@stanford.edu</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
All,<br>
Has anyone else encountered issues when trying to build kmods for RHEL5/6 using the new openafs-1.6.1-1.src.rpm in mock? &nbsp;The 1.6.0 RPMs worked fine (with a work-around to install required packages prior to rebuilding the source rpm), but the 1.6.1 RPMs throw this error in mock:<br>

<br>
ERROR: Command failed:<br>
&nbsp;# ['/usr/bin/yum-builddep', '--installroot', '/var/lib/mock/rhel-5-x86_64-mock/<br>
root/', '/var/lib/mock/rhel-5-x86_64-mock/root///builddir/build/SRPMS/openafs-1.<br>
6.1-1.src.rpm']<br>
Getting requirements for openafs-1.6.1-1.src<br>
&nbsp;--&gt; Already installed : pam-devel-0.99.6.2-6.el5_5.2.x86_64<br>
&nbsp;--&gt; Already installed : ncurses-devel-5.5-24.20060715.x86_64<br>
&nbsp;--&gt; Already installed : flex-2.5.4a-41.fc6.x86_64<br>
&nbsp;--&gt; Already installed : bison-2.3-2.1.x86_64<br>
&nbsp;--&gt; Already installed : 4:perl-5.8.8-38.el5.x86_64<br>
&nbsp;--&gt; Already installed : krb5-devel-1.6.1-70.el5.x86_64<br>
&nbsp;--&gt; Already installed : kernel-xen-devel-2.6.18-308.1.1.el5.x86_64<br>
Error: No Package found for kernel-devel-x86_64 = 2.6.32-220.7.1.el6<br>
<br>
Looking through a diff of the spec and the Requires from the src.rpms for 1.6.0 and 1.6.1 it isn't quickly obvious why this is happening. &nbsp;The kernel-devel version it is trying to get (2.6.32-220.7.1.el6) is for the kernel I'm currently running, not the kernel that is installed in the chroot which it should be picking up from the spec.<br>

<br>
-darren<br>
<br>
<br>
mock@rhel-afs-test6x:~/rpmbuild/SOURCES$ rpm -qp --requires /usr/src/afs/openafs-1.6.0-1.src.rpm<br>
pam-devel<br>
ncurses-devel<br>
flex<br>
bison<br>
krb5-devel<br>
kernel-devel-x86_64 = 2.6.18-238.1.1.el5.inf.1<br>
rpmlib(CompressedFileNames) &lt;= 3.0.4-1<br>
<br>
mock@rhel-afs-test6x:~/rpmbuild/SOURCES$ rpm -qp --requires /usr/src/afs/openafs-1.6.1-1.src.rpm<br>
pam-devel<br>
ncurses-devel<br>
flex<br>
bison<br>
perl(ExtUtils::Embed)<br>
krb5-devel<br>
kernel-devel<br>
kernel-devel-i686 = 2.6.18-128.1.10.el5<br>
rpmlib(CompressedFileNames) &lt;= 3.0.4-1<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
OpenAFS-info mailing list<br>
<a href="mailto:OpenAFS-info@openafs.org">OpenAFS-info@openafs.org</a><br>
<a href="https://lists.openafs.org/mailman/listinfo/openafs-info" target="_blank">https://lists.openafs.org/mailman/listinfo/openafs-info</a><br>
<br>
</blockquote></div>
</div></blockquote></body></html>
--Apple-Mail-6ED52396-18D1-4FEE-808C-479D4FE995F8--