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

>> 
>> 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.
> 
> What's the exact command that you are using to build the rpm, and which 
> version of mock?
> 


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: 
 # ['/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.src.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 
 --> 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 = 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  
ncurses-devel  
flex  
bison  
perl(ExtUtils::Embed)  
krb5-devel  
kernel-devel  
kernel-devel-i686 = 2.6.18-128.1.10.el5
rpmlib(CompressedFileNames) <= 3.0.4-1
mock@rhel-afs-test6x:~$


Thanks,
-darren

_______________________________________________
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info

Reply via email to