mock 0.8.9 for EPEL-5

Michael E Brown Michael_E_Brown at dell.com
Tue Nov 20 22:55:12 UTC 2007


On Tue, Nov 20, 2007 at 11:52:27PM +0200, Manuel Wolfshant wrote:
> Stephen, please note that we are not simply  speaking about machines 
> _running_ a specific distro but about machines running a distro 
> _and_also_ doing development. As Michael has pointed out, one can very 
> well do development on one distro (i.e. run mock on a Fedora box for 
> instance) and test the compiled stuff on EL-3 / EL-4 / EL-5.
> 
> BTW, I think that it would be nice to have a clear reference somewhere 
> in the wiki for configs with the options needed to build for EL-3. (Yes, 
> I know EPEL does not support this distro but a) as pointed above there 
> are quite a lot of machines in use and b) it would not hurt.)

If somebody wants to add this to the wiki, go ahead.

Here are the configs I personally use to compile packages for RHEL 3
i386 and x86_64. You probably want to point the baseurls at a handy
mirror, I have an internal one I maintain.
--
Michael
-------------- next part --------------
config_opts['root'] = 'rhel3-i386'
config_opts['target_arch'] = 'i386'
config_opts['dist'] = 'el3'
config_opts['macros']['%dist'] = ".el3"
config_opts['macros']['%rhel'] = "3"
config_opts['macros']['%el3'] = "1"
#config_opts['macros']['%__arch_install_post'] = "/usr/lib/rpm/check-buildroot"
config_opts['chroot_setup_cmd'] = 'install bash  bzip2  cpio  diffutils  gcc  gcc-c++  gzip  make  patch  perl  rpm-build  sed  tar  unzip  which  redhat-release  coreutils  elfutils  redhat-rpm-config '

# ccache not available on el3
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
baseurl=http://your.mirror.server.here/pub/yum/rhel3/base/i386/
"""


-------------- next part --------------
config_opts['root'] = 'rhel3-x86_64'
config_opts['target_arch'] = 'x86_64'
config_opts['dist'] = 'el3'
config_opts['macros']['%dist'] = ".el3"
config_opts['macros']['%rhel'] = "3"
config_opts['macros']['%el3'] = "1"
config_opts['chroot_setup_cmd'] = 'install bash  bzip2  cpio  diffutils  gcc  gcc-c++  gzip  make  patch  perl  rpm-build  sed  tar  unzip  which  redhat-release  coreutils  elfutils  redhat-rpm-config '

# ccache not available on el3
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
# grub/syslinux on x86_64 need glibc-devel.i386 which pulls in glibc.i386, need to exclude all
# .i?86 packages except these.
exclude=[A-Za-fh-z]*.i*86 g[a-km-z]*.i?86 glib2.i?86 glib.i?86 glib-devel.i?86 glib2-devel.i?86

# repos

[core]
name=base
baseurl=http://your.mirror.server.here/pub/yum/rhel3/base/x86_64/
"""




More information about the epel-devel-list mailing list