[OpenAFS] srpm for 1.6.1 not building in mock

Darren Patterson darren.patterson@stanford.edu
Fri, 6 Apr 2012 09:43:19 -0700


On Apr 6, 2012, at 8:39 AM, Simon Wilkinson wrote:

>>=20
>> Sadly it isn't that easy (I tried before email the list initially), =
and kernel-devel-2.6.32-220.7.1.el6.x86_64.rpm isn't so easy to install =
when you're building a kmod for RHEL5 in chroot.
>=20
> What's the exact command that you are using to build the rpm, and =
which version of mock?
>=20


Mock version:
rhel-afs-test6x:/root# rpm -q mock
mock-1.1.11-1.el6.rf.noarch

Mock command:

mock@rhel-afs-test6x:~$ mock -r rhel-5-x86_64 --arch x86_64 -D =
'build_modules 1' -D 'fedorakmod 1' --rebuild =
/usr/src/afs/openafs-1.6.1-1.src.rpm
INFO: mock.py version 1.1.11 starting...
State Changed: init plugins
INFO: selinux disabled
State Changed: start
INFO: Start(/usr/src/afs/openafs-1.6.1-1.src.rpm)  Config(rhel-5-x86_64)
State Changed: lock buildroot
State Changed: clean
State Changed: unlock buildroot
State Changed: init
State Changed: lock buildroot
Mock Version: 1.1.11
INFO: Mock Version: 1.1.11
INFO: enabled root cache
State Changed: unpacking root cache
INFO: enabled yum cache
State Changed: cleaning yum metadata
INFO: enabled ccache
State Changed: running yum
State Changed: unlock buildroot
State Changed: setup
ERROR: Exception(/usr/src/afs/openafs-1.6.1-1.src.rpm) =
Config(rhel-5-x86_64) 0 minutes 20 seconds
INFO: Results and/or logs in: /var/lib/mock/rhel-5-x86_64/result
ERROR: Command failed:=20
 # ['/usr/bin/yum-builddep', '--installroot', =
'/var/lib/mock/rhel-5-x86_64/root/', =
'/var/lib/mock/rhel-5-x86_64/root///builddir/build/SRPMS/openafs-1.6.1-1.s=
rc.rpm']
Getting requirements for openafs-1.6.1-1.src
 --> pam-devel-0.99.6.2-6.el5_5.2.x86_64
 --> ncurses-devel-5.5-24.20060715.x86_64
 --> flex-2.5.4a-41.fc6.x86_64
 --> bison-2.3-2.1.x86_64=20
 --> Already installed : 4:perl-5.8.8-38.el5.x86_64
 --> krb5-devel-1.6.1-70.el5.x86_64
 --> kernel-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

mock@rhel-afs-test6x:~$ uname -a
Linux rhel-afs-test6x.stanford.edu 2.6.32-220.7.1.el6.x86_64 #1 SMP Fri =
Feb 10 15:22:22 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
mock@rhel-afs-test6x:~$  rpm -qp --requires =
/usr/src/afs/openafs-1.6.1-1.src.rpm
pam-devel =20
ncurses-devel =20
flex =20
bison =20
perl(ExtUtils::Embed) =20
krb5-devel =20
kernel-devel =20
kernel-devel-i686 =3D 2.6.18-128.1.10.el5
rpmlib(CompressedFileNames) <=3D 3.0.4-1
mock@rhel-afs-test6x:~$


Thanks,
-darren