On Dec 11, 2007, at 6:12 PM, Paul Johnson wrote:
I've been building rpms a long time,but never bothered with using Mock. Now I need to because some i386 rpms won't build on x86_64 systems and I'm told in the Fedora list that mock is really the only good way to isolate the problems. I was hoping that somebody here with some experience building RPMs in mock could give me a config file for SL 5. As far as I understand it, this is necessary because mock will download RPMS and install them in an isolated environment. This would save me some trial and error. In the mock for Fedora 8, they have a config file vi fedora-5-i386-epel.cfg, and it appears to be the right one for RH enterprise Linux 5. So I think I can adapt this one to SL. But, if you did it already, show me your goods. I wonder what goes under "local" in the list below. Also I wonder if I can just throw in more repositories...
What you have below looks correct to me. For sl4 I just used the following and it worked for me.
config_opts['root'] = 'sl-4-i386' config_opts['target_arch'] = 'i386' config_opts['chroot_setup_cmd'] = '-d 2 install buildsys-build' config_opts['dist'] = 'sl4' # ccache not available on epel4 config_opts['plugin_conf']['ccache_enable'] = False config_opts['yum.conf'] = """ [main] cachedir=/var/cache/yum debuglevel=1 reposdir=/dev/null logfile=/var/log/yum.log retries=20 obsoletes=1 gpgcheck=0 assumeyes=1 # repos [sl4-base] name=SL 4 Release baseurl=http://ftp.scientificlinux.org/linux/scientific/45/i386/SL/RPMS [sl4-update] name=SL 4 Updates baseurl=http://ftp.scientificlinux.org/linux/scientific/45/i386/errata/SL/RPMS [groups] name=groups baseurl=http://buildsys.fedoraproject.org/buildgroups/rhel4/$basearch/ """
config_opts['root'] = 'epel-5-i386' config_opts['target_arch'] = 'i386' config_opts['chroot_setup_cmd'] = 'install buildsys-build' config_opts['dist'] = 'el5' # ccache not available on epel5 config_opts['plugin_conf']['ccache_enable'] = False config_opts['yum.conf'] = """ [main] cachedir=/var/cache/yum debuglevel=1 logfile=/var/log/yum.log reposdir=/dev/null retries=20 obsoletes=1 gpgcheck=0 assumeyes=1 # repos [core] name=base mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=os [update] name=updates mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=updates [groups] name=groups baseurl=http://buildsys.fedoraproject.org/buildgroups/rhel5/i386/ [extras] name=epel mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=i386 [local] pj -- Paul E. Johnson Professor, Political Science 1541 Lilac Lane, Room 504 University of Kansas
-- Steve Traylen [EMAIL PROTECTED]
smime.p7s
Description: S/MIME cryptographic signature
