[CentOS] How to setup own i686 buildenv for CentOS7

Peter peter at pajamian.dhs.org
Mon Sep 7 04:12:26 UTC 2015


On 09/07/2015 02:32 PM, Robin Lee wrote:
> Can you re-paste this cfg? The url is outdated.

I'll paste mine in here for posterity (altered to remove my private
repos, and personal info, etc):

config_opts['root'] = 'epel-7-i386'
config_opts['target_arch'] = 'i686'
config_opts['legal_host_arches'] = ('i686','x86_64',)
config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils cpio
diffutils findutils gawk gcc gcc-c++ grep gzip info make patch
redhat-rpm-config rpm-build sed shadow-utils tar unzip util-linux-ng
which xz'
config_opts['plugin_conf']['ccache_enable'] = False
config_opts['dist'] = 'el7'  # only useful for --resultdir variable subst
config_opts['macros']['%dist'] = '.el7'
config_opts['macros']['%vendor'] = 'Your Name Here'
config_opts['macros']['%packager'] = 'username at example.org'
config_opts['macros']['%debug_package'] = '%{nil}'

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
syslog_ident=mock
syslog_device=

# repos
[base]
name=BaseOS
baseurl=http://buildlogs.centos.org/centos/7/os/i386/
failovermethod=priority
gpgkey=file:///etc/pki/mock/RPM-GPG-KEY-CentOS-7
gpgcheck=1

[updates]
name=updates
baseurl=http://buildlogs.centos.org/centos/7/updates/i386/
failovermethod=priority
gpgkey=file:///etc/pki/mock/RPM-GPG-KEY-CentOS-7
gpgcheck=1
"""



More information about the CentOS mailing list