Greetings,
We are currently shipping mock in CentOS-Extras that includes configs for building against CentOS (without EPEL enabled). I think it makes sense for us to cough up these configs for inclusion upstream. I'm happy to keep an eye on them from our end if they need tweaking in the future.
Cheers!
Brian
Brian Stinson (5): add CentOS base x86 configs add CentOS base x86_64 configs add CentOS base arm configs add CentOS base ppc configs install CentOS base configs
Makefile.am | 1 + etc/mock/centos-5-i386.cfg | 61 +++++++++++++++++++++++++++++++++++++++++++ etc/mock/centos-5-i686.cfg | 61 +++++++++++++++++++++++++++++++++++++++++++ etc/mock/centos-5-x86_64.cfg | 61 +++++++++++++++++++++++++++++++++++++++++++ etc/mock/centos-6-i386.cfg | 61 +++++++++++++++++++++++++++++++++++++++++++ etc/mock/centos-6-x86_64.cfg | 61 +++++++++++++++++++++++++++++++++++++++++++ etc/mock/centos-7-aarch64.cfg | 59 +++++++++++++++++++++++++++++++++++++++++ etc/mock/centos-7-armhfp.cfg | 60 ++++++++++++++++++++++++++++++++++++++++++ etc/mock/centos-7-i386.cfg | 61 +++++++++++++++++++++++++++++++++++++++++++ etc/mock/centos-7-ppc64.cfg | 59 +++++++++++++++++++++++++++++++++++++++++ etc/mock/centos-7-ppc64le.cfg | 59 +++++++++++++++++++++++++++++++++++++++++ etc/mock/centos-7-x86_64.cfg | 61 +++++++++++++++++++++++++++++++++++++++++++ 12 files changed, 665 insertions(+) create mode 100644 etc/mock/centos-5-i386.cfg create mode 100644 etc/mock/centos-5-i686.cfg create mode 100644 etc/mock/centos-5-x86_64.cfg create mode 100644 etc/mock/centos-6-i386.cfg create mode 100644 etc/mock/centos-6-x86_64.cfg create mode 100644 etc/mock/centos-7-aarch64.cfg create mode 100644 etc/mock/centos-7-armhfp.cfg create mode 100644 etc/mock/centos-7-i386.cfg create mode 100644 etc/mock/centos-7-ppc64.cfg create mode 100644 etc/mock/centos-7-ppc64le.cfg create mode 100644 etc/mock/centos-7-x86_64.cfg
--- etc/mock/centos-5-i386.cfg | 61 ++++++++++++++++++++++++++++++++++++++++++++++ etc/mock/centos-5-i686.cfg | 61 ++++++++++++++++++++++++++++++++++++++++++++++ etc/mock/centos-6-i386.cfg | 61 ++++++++++++++++++++++++++++++++++++++++++++++ etc/mock/centos-7-i386.cfg | 61 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 244 insertions(+) create mode 100644 etc/mock/centos-5-i386.cfg create mode 100644 etc/mock/centos-5-i686.cfg create mode 100644 etc/mock/centos-6-i386.cfg create mode 100644 etc/mock/centos-7-i386.cfg
diff --git a/etc/mock/centos-5-i386.cfg b/etc/mock/centos-5-i386.cfg new file mode 100644 index 0000000..436ee48 --- /dev/null +++ b/etc/mock/centos-5-i386.cfg @@ -0,0 +1,61 @@ +config_opts['root'] = 'centos-5-i386' +config_opts['target_arch'] = 'i386' +config_opts['legal_host_arches'] = ('i386', 'i486', 'i586', 'i686', 'x86_64') +config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils cpio diffutils centos-release elfutils findutils gawk gcc gcc-c++ grep gzip info intltool make patch perl python redhat-rpm-config rpm-build sed shadow-utils tar unzip util-linux which xz' +config_opts['dist'] = 'el5' # only useful for --resultdir variable subst +config_opts['macros']['%dist'] = ".el5" +config_opts['%centos_ver'] = "5" +config_opts['macros']['%centos_ver'] = "5" +config_opts['macros']['%rhel'] = "5" +config_opts['macros']['%el5'] = "1" +config_opts['macros']['%redhat'] = "5" +config_opts['macros']['%_vendor'] = "redhat" +config_opts['macros']['%_vendor_host'] = "redhat" +config_opts['macros']['%_host'] = "i386-redhat-linux-gnu" + +# no ccache in base repo +config_opts['plugin_conf']['ccache_enable'] = False +config_opts['plugin_conf']['yum_cache_enable'] = False + +config_opts['yum.conf'] = """ +[main] +cachedir=/var/cache/yum +keepcache=1 +debuglevel=2 +reposdir=/dev/null +logfile=/var/log/yum.log +retries=20 +obsoletes=1 +gpgcheck=0 +assumeyes=1 +syslog_ident=mock +syslog_device= + +exclude=*.x86_64 + +# repos + +[base] +name=centos 5 i386 - base +baseurl=http://mirror.centos.org/centos/5/os/i386/ +enabled=1 +gpgcheck=0 +cost=2000 + +[updates] +name=centos 5 i386 - updates +baseurl=http://mirror.centos.org/centos/5/updates/i386/ +enabled=1 +gpgcheck=0 +cost=2000 + +[extras] +name=centos 5 i386 - extras +baseurl=http://mirror.centos.org/centos/5/extras/i386/ +enabled=0 +gpgcheck=0 +cost=2500 + + +""" + diff --git a/etc/mock/centos-5-i686.cfg b/etc/mock/centos-5-i686.cfg new file mode 100644 index 0000000..e7108b9 --- /dev/null +++ b/etc/mock/centos-5-i686.cfg @@ -0,0 +1,61 @@ +config_opts['root'] = 'centos-5-i686' +config_opts['target_arch'] = 'i686' +config_opts['legal_host_arches'] = ('i386', 'i486', 'i586', 'i686', 'x86_64') +config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils cpio diffutils centos-release elfutils findutils gawk gcc gcc-c++ grep gzip info intltool make patch perl python redhat-rpm-config rpm-build sed shadow-utils tar unzip util-linux which xz' +config_opts['dist'] = 'el5' # only useful for --resultdir variable subst +config_opts['macros']['%dist'] = ".el5" +config_opts['%centos_ver'] = "5" +config_opts['macros']['%centos_ver'] = "5" +config_opts['macros']['%rhel'] = "5" +config_opts['macros']['%el5'] = "1" +config_opts['macros']['%redhat'] = "5" +config_opts['macros']['%_vendor'] = "redhat" +config_opts['macros']['%_vendor_host'] = "redhat" +config_opts['macros']['%_host'] = "i386-redhat-linux-gnu" + +# no ccache in base repo +config_opts['plugin_conf']['ccache_enable'] = False +config_opts['plugin_conf']['yum_cache_enable'] = False + +config_opts['yum.conf'] = """ +[main] +cachedir=/var/cache/yum +keepcache=1 +debuglevel=2 +reposdir=/dev/null +logfile=/var/log/yum.log +retries=20 +obsoletes=1 +gpgcheck=0 +assumeyes=1 +syslog_ident=mock +syslog_device= + +exclude=*.x86_64 + +# repos + +[base] +name=centos 5 i386 - base +baseurl=http://mirror.centos.org/centos/5/os/i386/ +enabled=1 +gpgcheck=0 +cost=2000 + +[updates] +name=centos 5 i386 - updates +baseurl=http://mirror.centos.org/centos/5/updates/i386/ +enabled=1 +gpgcheck=0 +cost=2000 + +[extras] +name=centos 5 i386 - extras +baseurl=http://mirror.centos.org/centos/5/extras/i386/ +enabled=0 +gpgcheck=0 +cost=2500 + + +""" + diff --git a/etc/mock/centos-6-i386.cfg b/etc/mock/centos-6-i386.cfg new file mode 100644 index 0000000..763e81b --- /dev/null +++ b/etc/mock/centos-6-i386.cfg @@ -0,0 +1,61 @@ +config_opts['root'] = 'centos-6-i386' +config_opts['target_arch'] = 'i686' +config_opts['legal_host_arches'] = ('i386', 'i486', 'i586', 'i686', 'x86_64',) +config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils cpio diffutils system-release findutils gawk gcc gcc-c++ grep gzip info make patch redhat-rpm-config rpm-build sed shadow-utils tar unzip util-linux which xz' +config_opts['dist'] = 'el6' # only useful for --resultdir variable subst +config_opts['macros']['%dist'] = ".el6" +config_opts['%centos_ver'] = "6" +config_opts['macros']['%centos_ver'] = "6" +config_opts['macros']['%rhel'] = "6" +config_opts['macros']['%el6'] = "1" +config_opts['macros']['%redhat'] = "6" +config_opts['macros']['%_vendor'] = "redhat" +config_opts['macros']['%_vendor_host'] = "redhat" +config_opts['macros']['%_host'] = "i386-redhat-linux-gnu" + +# no ccache in base repo +config_opts['plugin_conf']['ccache_enable'] = False +config_opts['plugin_conf']['yum_cache_enable'] = False + +config_opts['yum.conf'] = """ +[main] +cachedir=/var/cache/yum +keepcache=1 +debuglevel=2 +reposdir=/dev/null +logfile=/var/log/yum.log +retries=20 +obsoletes=1 +gpgcheck=0 +assumeyes=1 +syslog_ident=mock +syslog_device= + +exclude=*.x86_64 + +# repos + +[base] +name=centos 6 i386 - base +baseurl=http://mirror.centos.org/centos/6/os/i386/ +enabled=1 +gpgcheck=0 +cost=2000 + +[updates] +name=centos 6 i386 - updates +baseurl=http://mirror.centos.org/centos/6/updates/i386/ +enabled=1 +gpgcheck=0 +cost=2000 + +[extras] +name=centos 6 i386 - extras +baseurl=http://mirror.centos.org/centos/6/extras/i386/ +enabled=0 +gpgcheck=0 +cost=2500 + + +""" + diff --git a/etc/mock/centos-7-i386.cfg b/etc/mock/centos-7-i386.cfg new file mode 100644 index 0000000..e9841d6 --- /dev/null +++ b/etc/mock/centos-7-i386.cfg @@ -0,0 +1,61 @@ +config_opts['root'] = 'centos-7-i386' +config_opts['target_arch'] = 'i686' +config_opts['legal_host_arches'] = ('i386', 'i486', 'i586', 'i686', 'x86_64',) +config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils cpio diffutils system-release findutils gawk gcc gcc-c++ grep gzip info make patch redhat-rpm-config rpm-build sed shadow-utils tar unzip util-linux which xz' +config_opts['dist'] = 'el7' # only useful for --resultdir variable subst +config_opts['macros']['%dist'] = ".el7" +config_opts['%centos_ver'] = "7" +config_opts['macros']['%centos_ver'] = "7" +config_opts['macros']['%rhel'] = "7" +config_opts['macros']['%el7'] = "1" +config_opts['macros']['%redhat'] = "7" +config_opts['macros']['%_vendor'] = "redhat" +config_opts['macros']['%_vendor_host'] = "redhat" +config_opts['macros']['%_host'] = "i386-redhat-linux-gnu" + +# no ccache in base repo +config_opts['plugin_conf']['ccache_enable'] = False +config_opts['plugin_conf']['yum_cache_enable'] = False + +config_opts['yum.conf'] = """ +[main] +cachedir=/var/cache/yum +keepcache=1 +debuglevel=2 +reposdir=/dev/null +logfile=/var/log/yum.log +retries=20 +obsoletes=1 +gpgcheck=0 +assumeyes=1 +syslog_ident=mock +syslog_device= + +exclude=*.x86_64 + +# repos + +[base] +name=centos 7 i386 - base +baseurl=http://mirror.centos.org/altarch/7/os/i386/ +enabled=1 +gpgcheck=0 +cost=2000 + +[updates] +name=centos 7 i386 - updates +baseurl=http://mirror.centos.org/altarch/7/updates/i386/ +enabled=1 +gpgcheck=0 +cost=2000 + +[extras] +name=centos 7 i386 - extras +baseurl=http://mirror.centos.org/altarch/7/extras/i386/ +enabled=0 +gpgcheck=0 +cost=2500 + + +""" +
Dne 21.6.2016 v 16:49 Brian Stinson napsal(a):
We are currently shipping mock in CentOS-Extras that includes configs for building against CentOS (without EPEL enabled). I think it makes sense for us to cough up these configs for inclusion upstream. I'm happy to keep an eye on them from our end if they need tweaking in the future.
Why not. But it will be nice to keep it in sync with epel-* as much as possible. Can you check them and either improve epel-* configs too or change your centos-* configs?
+config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils cpio diffutils centos-release elfutils findutils gawk gcc gcc-c++ grep gzip info intltool make patch perl python redhat-rpm-config rpm-build sed shadow-utils tar unzip util-linux which xz'
Centos does not have groups? Can there be group instead of list? What about buildsys-macros?
+config_opts['macros']['%centos_ver'] = "5" +config_opts['macros']['%rhel'] = "5" +config_opts['macros']['%el5'] = "1" +config_opts['macros']['%redhat'] = "5" +config_opts['macros']['%_vendor'] = "redhat" +config_opts['macros']['%_vendor_host'] = "redhat" +config_opts['macros']['%_host'] = "i386-redhat-linux-gnu"
You are missing config_opts['macros']['%__arch_install_post'] = '%{nil}' See commit c38fff2478e5a04ae29f38ae0444d68269751aca.
+# no ccache in base repo +config_opts['plugin_conf']['ccache_enable'] = False +config_opts['plugin_conf']['yum_cache_enable'] = False
This should not be in chroot config. This should be builder decision and should go to site-defaults.cfg or ~/.config/mock.cfg
+config_opts['yum.conf'] = """ +[main] +cachedir=/var/cache/yum +keepcache=1 +debuglevel=2 +reposdir=/dev/null +logfile=/var/log/yum.log +retries=20 +obsoletes=1 +gpgcheck=0 +assumeyes=1 +syslog_ident=mock +syslog_device=
Any reason why mdpolicy=group:primary is missing?
+exclude=*.x86_64
Why this?
+[base] +name=centos 5 i386 - base +baseurl=http://mirror.centos.org/centos/5/os/i386/
Can you use metalink or mirrolist? Metalink is prefered, but I think epel5 cannot handle it.
+enabled=1 +gpgcheck=0
Any reason why gpgcheck is disabled?
+cost=2000
Why so big cost on base repo? IMO base repo should not have cost at all.
--- etc/mock/centos-5-x86_64.cfg | 61 ++++++++++++++++++++++++++++++++++++++++++++ etc/mock/centos-6-x86_64.cfg | 61 ++++++++++++++++++++++++++++++++++++++++++++ etc/mock/centos-7-x86_64.cfg | 61 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 183 insertions(+) create mode 100644 etc/mock/centos-5-x86_64.cfg create mode 100644 etc/mock/centos-6-x86_64.cfg create mode 100644 etc/mock/centos-7-x86_64.cfg
diff --git a/etc/mock/centos-5-x86_64.cfg b/etc/mock/centos-5-x86_64.cfg new file mode 100644 index 0000000..7abc4aa --- /dev/null +++ b/etc/mock/centos-5-x86_64.cfg @@ -0,0 +1,61 @@ +config_opts['root'] = 'centos-5-x86_64' +config_opts['target_arch'] = 'x86_64' +config_opts['legal_host_arches'] = ('x86_64',) +config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils cpio diffutils centos-release elfutils findutils gawk gcc gcc-c++ grep gzip info intltool make patch perl python redhat-rpm-config rpm-build sed shadow-utils tar unzip util-linux which xz' +config_opts['dist'] = 'el5' # only useful for --resultdir variable subst +config_opts['macros']['%dist'] = ".el5" +config_opts['%centos_ver'] = "5" +config_opts['macros']['%centos_ver'] = "5" +config_opts['macros']['%rhel'] = "5" +config_opts['macros']['%el5'] = "1" +config_opts['macros']['%redhat'] = "5" +config_opts['macros']['%_vendor'] = "redhat" +config_opts['macros']['%_vendor_host'] = "redhat" +config_opts['macros']['%_host'] = "x86_64-redhat-linux-gnu" + +# no ccache in base repo +config_opts['plugin_conf']['ccache_enable'] = False +config_opts['plugin_conf']['yum_cache_enable'] = False + +config_opts['yum.conf'] = """ +[main] +cachedir=/var/cache/yum +keepcache=1 +debuglevel=2 +reposdir=/dev/null +logfile=/var/log/yum.log +retries=20 +obsoletes=1 +gpgcheck=0 +assumeyes=1 +syslog_ident=mock +syslog_device= + +# repos + +[base] +name=centos 5 x86_64 - base +baseurl=http://mirror.centos.org/centos/5/os/x86_64/ +enabled=1 +gpgcheck=0 +cost=2000 +includepkgs=*.x86_64 *.noarch glibc.i686 glibc-devel.i686 nss-softokn-freebl*.i686 + +[updates] +name=centos 5 x86_64 - updates +baseurl=http://mirror.centos.org/centos/5/updates/x86_64/ +enabled=1 +gpgcheck=0 +cost=2000 +includepkgs=*.x86_64 *.noarch glibc.i686 glibc-devel.i686 nss-softokn-freebl*.i686 + +[extras] +name=centos 5 x86_64 - extras +baseurl=http://mirror.centos.org/centos/5/extras/x86_64/ +enabled=0 +gpgcheck=0 +cost=2500 +includepkgs=*.x86_64 *.noarch glibc.i686 glibc-devel.i686 nss-softokn-freebl*.i686 + +""" + diff --git a/etc/mock/centos-6-x86_64.cfg b/etc/mock/centos-6-x86_64.cfg new file mode 100644 index 0000000..e4bad1b --- /dev/null +++ b/etc/mock/centos-6-x86_64.cfg @@ -0,0 +1,61 @@ +config_opts['root'] = 'centos-6-x86_64' +config_opts['target_arch'] = 'x86_64' +config_opts['legal_host_arches'] = ('x86_64',) +config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils cpio diffutils system-release findutils gawk gcc gcc-c++ grep gzip info make patch redhat-rpm-config rpm-build sed shadow-utils tar unzip util-linux which xz' +config_opts['dist'] = 'el6' # only useful for --resultdir variable subst +config_opts['macros']['%dist'] = ".el6" +config_opts['%centos_ver'] = "6" +config_opts['macros']['%centos_ver'] = "6" +config_opts['macros']['%rhel'] = "6" +config_opts['macros']['%el6'] = "1" +config_opts['macros']['%redhat'] = "6" +config_opts['macros']['%_vendor'] = "redhat" +config_opts['macros']['%_vendor_host'] = "redhat" +config_opts['macros']['%_host'] = "x86_64-redhat-linux-gnu" + +# no ccache in base repo +config_opts['plugin_conf']['ccache_enable'] = False +config_opts['plugin_conf']['yum_cache_enable'] = False + +config_opts['yum.conf'] = """ +[main] +cachedir=/var/cache/yum +keepcache=1 +debuglevel=2 +reposdir=/dev/null +logfile=/var/log/yum.log +retries=20 +obsoletes=1 +gpgcheck=0 +assumeyes=1 +syslog_ident=mock +syslog_device= + +# repos + +[base] +name=centos 6 x86_64 - base +baseurl=http://mirror.centos.org/centos/6/os/x86_64/ +enabled=1 +gpgcheck=0 +cost=2000 +includepkgs=*.x86_64 *.noarch glibc.i686 glibc-devel.i686 nss-softokn-freebl*.i686 + +[updates] +name=centos 6 x86_64 - updates +baseurl=http://mirror.centos.org/centos/6/updates/x86_64/ +enabled=1 +gpgcheck=0 +cost=2000 +includepkgs=*.x86_64 *.noarch glibc.i686 glibc-devel.i686 nss-softokn-freebl*.i686 + +[extras] +name=centos 6 x86_64 - extras +baseurl=http://mirror.centos.org/centos/6/extras/x86_64/ +enabled=0 +gpgcheck=0 +cost=2500 +includepkgs=*.x86_64 *.noarch glibc.i686 glibc-devel.i686 nss-softokn-freebl*.i686 + +""" + diff --git a/etc/mock/centos-7-x86_64.cfg b/etc/mock/centos-7-x86_64.cfg new file mode 100644 index 0000000..49846af --- /dev/null +++ b/etc/mock/centos-7-x86_64.cfg @@ -0,0 +1,61 @@ +config_opts['root'] = 'centos-7-x86_64' +config_opts['target_arch'] = 'x86_64' +config_opts['legal_host_arches'] = ('x86_64',) +config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils cpio diffutils system-release findutils gawk gcc gcc-c++ grep gzip info make patch redhat-rpm-config rpm-build sed shadow-utils tar unzip util-linux which xz' +config_opts['dist'] = 'el7' # only useful for --resultdir variable subst +config_opts['macros']['%dist'] = ".el7" +config_opts['%centos_ver'] = "7" +config_opts['macros']['%centos_ver'] = "7" +config_opts['macros']['%rhel'] = "7" +config_opts['macros']['%el7'] = "1" +config_opts['macros']['%redhat'] = "7" +config_opts['macros']['%_vendor'] = "redhat" +config_opts['macros']['%_vendor_host'] = "redhat" +config_opts['macros']['%_host'] = "x86_64-redhat-linux-gnu" + +# no ccache in base repo +config_opts['plugin_conf']['ccache_enable'] = False +config_opts['plugin_conf']['yum_cache_enable'] = False + +config_opts['yum.conf'] = """ +[main] +cachedir=/var/cache/yum +keepcache=1 +debuglevel=2 +reposdir=/dev/null +logfile=/var/log/yum.log +retries=20 +obsoletes=1 +gpgcheck=0 +assumeyes=1 +syslog_ident=mock +syslog_device= + +# repos + +[base] +name=centos 7 x86_64 - base +baseurl=http://mirror.centos.org/centos/7/os/x86_64/ +enabled=1 +gpgcheck=0 +cost=2000 +includepkgs=*.x86_64 *.noarch glibc.i686 glibc-devel.i686 nss-softokn-freebl*.i686 + +[updates] +name=centos 7 x86_64 - updates +baseurl=http://mirror.centos.org/centos/7/updates/x86_64/ +enabled=1 +gpgcheck=0 +cost=2000 +includepkgs=*.x86_64 *.noarch glibc.i686 glibc-devel.i686 nss-softokn-freebl*.i686 + +[extras] +name=centos 7 x86_64 - extras +baseurl=http://mirror.centos.org/centos/7/extras/x86_64/ +enabled=0 +gpgcheck=0 +cost=2500 +includepkgs=*.x86_64 *.noarch glibc.i686 glibc-devel.i686 nss-softokn-freebl*.i686 + +""" +
--- etc/mock/centos-7-aarch64.cfg | 59 ++++++++++++++++++++++++++++++++++++++++++ etc/mock/centos-7-armhfp.cfg | 60 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 119 insertions(+) create mode 100644 etc/mock/centos-7-aarch64.cfg create mode 100644 etc/mock/centos-7-armhfp.cfg
diff --git a/etc/mock/centos-7-aarch64.cfg b/etc/mock/centos-7-aarch64.cfg new file mode 100644 index 0000000..ae8d0c7 --- /dev/null +++ b/etc/mock/centos-7-aarch64.cfg @@ -0,0 +1,59 @@ +config_opts['root'] = 'centos-7-aarch64' +config_opts['target_arch'] = 'aarch64' +config_opts['legal_host_arches'] = ('aarch64',) +config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils cpio diffutils centos-release findutils gawk gcc gcc-c++ grep gzip info make patch redhat-rpm-config rpm-build sed shadow-utils tar unzip util-linux which xz' +config_opts['dist'] = 'el7' # only useful for --resultdir variable subst +config_opts['macros']['%dist'] = ".el7" +config_opts['%centos_ver'] = "7" +config_opts['macros']['%centos_ver'] = "7" +config_opts['macros']['%rhel'] = "7" +config_opts['macros']['%el7'] = "1" +config_opts['macros']['%redhat'] = "7" +config_opts['macros']['%_vendor'] = "redhat" +config_opts['macros']['%_vendor_host'] = "redhat" +config_opts['macros']['%_host'] = "aarch64-redhat-linux-gnu" + +# no ccache in base repo +config_opts['plugin_conf']['ccache_enable'] = False +config_opts['plugin_conf']['yum_cache_enable'] = False + +config_opts['yum.conf'] = """ +[main] +cachedir=/var/cache/yum +keepcache=1 +debuglevel=2 +reposdir=/dev/null +logfile=/var/log/yum.log +retries=20 +obsoletes=1 +gpgcheck=0 +assumeyes=1 +syslog_ident=mock +syslog_device= + +# repos + +[base] +name=centos 7 aarch64 - base +baseurl=http://mirror.centos.org/altarch/7/os/aarch64/ +enabled=1 +gpgcheck=0 +cost=2000 + +[updates] +name=centos 7 aarch64 - updates +baseurl=http://mirror.centos.org/altarch/7/updates/aarch64/ +enabled=1 +gpgcheck=0 +cost=2000 + +[extras] +name=centos 7 aarch64 - extras +baseurl=http://mirror.centos.org/altarch/7/extras/aarch64/ +enabled=0 +gpgcheck=0 +cost=2500 + + +""" + diff --git a/etc/mock/centos-7-armhfp.cfg b/etc/mock/centos-7-armhfp.cfg new file mode 100644 index 0000000..8a35e66 --- /dev/null +++ b/etc/mock/centos-7-armhfp.cfg @@ -0,0 +1,60 @@ +config_opts['root'] = 'centos-7-armhfp' +config_opts['target_arch'] = 'armv7hl' +config_opts['legal_host_arches'] = ('armv7l',) +config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils cpio diffutils system-release findutils gawk gcc gcc-c++ grep gzip info make patch redhat-rpm-config rpm-build sed shadow-utils tar unzip util-linux which xz' +config_opts['dist'] = 'el7' # only useful for --resultdir variable subst +config_opts['extra_chroot_dirs'] = [ '/run/lock', ] +config_opts['macros']['%dist'] = ".el7" +config_opts['%centos_ver'] = "7" +config_opts['macros']['%centos_ver'] = "7" +config_opts['macros']['%rhel'] = "7" +config_opts['macros']['%el7'] = "1" +config_opts['macros']['%redhat'] = "7" +config_opts['macros']['%_vendor'] = "redhat" +config_opts['macros']['%_vendor_host'] = "redhat" +config_opts['macros']['%_host'] = "armv7hl-redhat-linux-gnu" + +# no ccache in base repo +config_opts['plugin_conf']['ccache_enable'] = False +config_opts['plugin_conf']['yum_cache_enable'] = False + +config_opts['yum.conf'] = """ +[main] +cachedir=/var/cache/yum +keepcache=1 +debuglevel=2 +reposdir=/dev/null +logfile=/var/log/yum.log +retries=20 +obsoletes=1 +gpgcheck=0 +assumeyes=1 +syslog_ident=mock +syslog_device= + +# repos + +[base] +name=centos 7 armhfp - base +baseurl=http://mirror.centos.org/altarch/7/os/armhfp/ +enabled=1 +gpgcheck=0 +cost=2000 + +[updates] +name=centos 7 armhfp - updates +baseurl=http://mirror.centos.org/altarch/7/updates/armhfp/ +enabled=1 +gpgcheck=0 +cost=2000 + +[extras] +name=centos 7 armhfp - extras +baseurl=http://mirror.centos.org/altarch/7/extras/armhfp/ +enabled=0 +gpgcheck=0 +cost=2500 + + +""" +
--- etc/mock/centos-7-ppc64.cfg | 59 +++++++++++++++++++++++++++++++++++++++++++ etc/mock/centos-7-ppc64le.cfg | 59 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 118 insertions(+) create mode 100644 etc/mock/centos-7-ppc64.cfg create mode 100644 etc/mock/centos-7-ppc64le.cfg
diff --git a/etc/mock/centos-7-ppc64.cfg b/etc/mock/centos-7-ppc64.cfg new file mode 100644 index 0000000..60a6fed --- /dev/null +++ b/etc/mock/centos-7-ppc64.cfg @@ -0,0 +1,59 @@ +config_opts['root'] = 'centos-7-ppc64' +config_opts['target_arch'] = 'ppc64' +config_opts['legal_host_arches'] = ('ppc64',) +config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils cpio diffutils centos-release findutils gawk gcc gcc-c++ grep gzip info make patch redhat-rpm-config rpm-build sed shadow-utils tar unzip util-linux which xz' +config_opts['dist'] = 'el7' # only useful for --resultdir variable subst +config_opts['macros']['%dist'] = ".el7" +config_opts['%centos_ver'] = "7" +config_opts['macros']['%centos_ver'] = "7" +config_opts['macros']['%rhel'] = "7" +config_opts['macros']['%el7'] = "1" +config_opts['macros']['%redhat'] = "7" +config_opts['macros']['%_vendor'] = "redhat" +config_opts['macros']['%_vendor_host'] = "redhat" +config_opts['macros']['%_host'] = "ppc64-redhat-linux-gnu" + +# no ccache in base repo +config_opts['plugin_conf']['ccache_enable'] = False +config_opts['plugin_conf']['yum_cache_enable'] = False + +config_opts['yum.conf'] = """ +[main] +cachedir=/var/cache/yum +keepcache=1 +debuglevel=2 +reposdir=/dev/null +logfile=/var/log/yum.log +retries=20 +obsoletes=1 +gpgcheck=0 +assumeyes=1 +syslog_ident=mock +syslog_device= + +# repos + +[base] +name=centos 7 ppc64 - base +baseurl=http://mirror.centos.org/altarch/7/os/ppc64/ +enabled=1 +gpgcheck=0 +cost=2000 + +[updates] +name=centos 7 ppc64 - updates +baseurl=http://mirror.centos.org/altarch/7/updates/ppc64/ +enabled=1 +gpgcheck=0 +cost=2000 + +[extras] +name=centos 7 ppc64 - extras +baseurl=http://mirror.centos.org/altarch/7/extras/ppc64/ +enabled=0 +gpgcheck=0 +cost=2500 + + +""" + diff --git a/etc/mock/centos-7-ppc64le.cfg b/etc/mock/centos-7-ppc64le.cfg new file mode 100644 index 0000000..354f688 --- /dev/null +++ b/etc/mock/centos-7-ppc64le.cfg @@ -0,0 +1,59 @@ +config_opts['root'] = 'centos-7-ppc64le' +config_opts['target_arch'] = 'ppc64le' +config_opts['legal_host_arches'] = ('ppc64le',) +config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils cpio diffutils centos-release findutils gawk gcc gcc-c++ grep gzip info make patch redhat-rpm-config rpm-build sed shadow-utils tar unzip util-linux which xz' +config_opts['dist'] = 'el7' # only useful for --resultdir variable subst +config_opts['macros']['%dist'] = ".el7" +config_opts['%centos_ver'] = "7" +config_opts['macros']['%centos_ver'] = "7" +config_opts['macros']['%rhel'] = "7" +config_opts['macros']['%el7'] = "1" +config_opts['macros']['%redhat'] = "7" +config_opts['macros']['%_vendor'] = "redhat" +config_opts['macros']['%_vendor_host'] = "redhat" +config_opts['macros']['%_host'] = "ppc64le-redhat-linux-gnu" + +# no ccache in base repo +config_opts['plugin_conf']['ccache_enable'] = False +config_opts['plugin_conf']['yum_cache_enable'] = False + +config_opts['yum.conf'] = """ +[main] +cachedir=/var/cache/yum +keepcache=1 +debuglevel=2 +reposdir=/dev/null +logfile=/var/log/yum.log +retries=20 +obsoletes=1 +gpgcheck=0 +assumeyes=1 +syslog_ident=mock +syslog_device= + +# repos + +[base] +name=centos 7 ppc64le - base +baseurl=http://mirror.centos.org/altarch/7/os/ppc64le/ +enabled=1 +gpgcheck=0 +cost=2000 + +[updates] +name=centos 7 ppc64le - updates +baseurl=http://mirror.centos.org/altarch/7/updates/ppc64le/ +enabled=1 +gpgcheck=0 +cost=2000 + +[extras] +name=centos 7 ppc64le - extras +baseurl=http://mirror.centos.org/altarch/7/extras/ppc64le/ +enabled=0 +gpgcheck=0 +cost=2500 + + +""" +
--- Makefile.am | 1 + 1 file changed, 1 insertion(+)
diff --git a/Makefile.am b/Makefile.am index ab4a9cb..1b80787 100644 --- a/Makefile.am +++ b/Makefile.am @@ -30,6 +30,7 @@ mocketc_DATA = $(wildcard $(top_srcdir)/etc/mock/epel*.cfg) \ $(wildcard $(top_srcdir)/etc/mock/fedora*.cfg) \ $(wildcard $(top_srcdir)/etc/mock/mageia*.cfg) \ $(wildcard $(top_srcdir)/etc/mock/custom*.cfg) \ + $(wildcard $(top_srcdir)/etc/mock/centos*.cfg) \ $(top_srcdir)/etc/mock/site-defaults.cfg \ $(top_srcdir)/etc/mock/logging.ini
buildsys@lists.fedoraproject.org