SCIENTIFIC-LINUX-USERS Archives

December 2007

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Steve Traylen <[log in to unmask]>
Reply To:
Steve Traylen <[log in to unmask]>
Date:
Wed, 12 Dec 2007 10:37:38 +0100
Content-Type:
multipart/signed
Parts/Attachments:
text/plain (2683 bytes) , smime.p7s (4 kB)

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
[log in to unmask]






ATOM RSS1 RSS2