Discussion:
[PATCH] Add config for CentOS PPC64LE arch
m***@linux.vnet.ibm.com
2016-06-01 18:07:08 UTC
Permalink
From: "Mauro S. M. Rodrigues" <***@linux.vnet.ibm.com>

CentOS for PPC64LE is a altarch SIG announced in the end of 2015[1] and this
patch provides configuration file to use mock on it.

Note that there are two GPG keys for the PPC64LE repositories at
mirrors.centos.org, in general noarch packages were signed with the usual
RPM-GPG-KEY-CentOS-7 and packages rebuilt or created for the architecture, in
the case PPC64LE, were signed with RPM-GPG-KEY-CentOS-SIG-AltArch-7-ppc64le[2],
also added in this patch.

[1]: https://lists.centos.org/pipermail/centos-announce/2015-December/021556.html
[2]: https://www.centos.org/keys/
---
etc/mock/epel-7-ppc64le.cfg | 70 ++++++++++++++++++++++++
etc/pki/RPM-GPG-KEY-CentOS-SIG-AltArch-7-ppc64le | 20 +++++++
2 files changed, 90 insertions(+)
create mode 100644 etc/mock/epel-7-ppc64le.cfg
create mode 100644 etc/pki/RPM-GPG-KEY-CentOS-SIG-AltArch-7-ppc64le

diff --git a/etc/mock/epel-7-ppc64le.cfg b/etc/mock/epel-7-ppc64le.cfg
new file mode 100644
index 0000000..99dccf6
--- /dev/null
+++ b/etc/mock/epel-7-ppc64le.cfg
@@ -0,0 +1,70 @@
+config_opts['root'] = 'epel-7-ppc64le'
+config_opts['target_arch'] = 'ppc64le'
+config_opts['legal_host_arches'] = ('ppc64le',)
+config_opts['chroot_setup_cmd'] = 'install @buildsys-build'
+config_opts['dist'] = 'el7' # only useful for --resultdir variable subst
+config_opts['releasever'] = '7'
+
+config_opts['yum.conf'] = """
+[main]
+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=
+mdpolicy=group:primary
+
+# repos
+[base]
+name=BaseOS
+baseurl=http://mirror.centos.org/altarch/7/os/ppc64le/
+failovermethod=priority
+gpgkey=file:///etc/pki/mock/RPM-GPG-KEY-CentOS-7,file:///etc/pki/mock/RPM-GPG-KEY-CentOS-SIG-AltArch-7-ppc64le
+gpgcheck=1
+
+[updates]
+name=updates
+enabled=1
+baseurl=http://mirror.centos.org/altarch/7/updates/ppc64le/
+failovermethod=priority
+gpgkey=file:///etc/pki/mock/RPM-GPG-KEY-CentOS-7,file:///etc/pki/mock/RPM-GPG-KEY-CentOS-SIG-AltArch-7-ppc64le
+gpgcheck=1
+
+[epel]
+name=epel
+mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-7&arch=ppc64le
+failovermethod=priority
+gpgkey=file:///etc/pki/mock/RPM-GPG-KEY-EPEL-7
+gpgcheck=1
+
+[extras]
+name=extras
+baseurl=http://mirror.centos.org/altarch/7/extras/ppc64le/
+failovermethod=priority
+gpgkey=file:///etc/pki/mock/RPM-GPG-KEY-EPEL-7,file:///etc/pki/mock/RPM-GPG-KEY-CentOS-SIG-AltArch-7-ppc64le
+gpgcheck=1
+
+[testing]
+name=epel-testing
+enabled=0
+mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=testing-epel7&arch=ppc64le
+failovermethod=priority
+
+
+[local]
+name=local
+baseurl=http://kojipkgs.fedoraproject.org/repos/epel7-build/latest/ppc64le/
+cost=2000
+enabled=0
+
+[epel-debug]
+name=epel-debug
+mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-7&arch=ppc64le
+failovermethod=priority
+enabled=0
+"""
diff --git a/etc/pki/RPM-GPG-KEY-CentOS-SIG-AltArch-7-ppc64le b/etc/pki/RPM-GPG-KEY-CentOS-SIG-AltArch-7-ppc64le
new file mode 100644
index 0000000..fcac2b8
--- /dev/null
+++ b/etc/pki/RPM-GPG-KEY-CentOS-SIG-AltArch-7-ppc64le
@@ -0,0 +1,20 @@
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+Version: GnuPG v2.0.22 (GNU/Linux)
+
+mQENBFZYUWkBCADomwJs4B6eBhhHmkBxaTQBNg2SicdZZWfb9+VArLqZ+Qyez3YQ
+V1Bq2dBaDv2HIpTI8AHyT/KL/VuF1cdmGK8Q+uhqVxbFIP3giuaNHdV+DLx7suid
+aKP0MA/1fs5x4RDvRmHVm0bPRwUWK84aWyh2Ux1D9I8HWsmDamAVKUinocnWWG0K
+sNsV2uTuHeXYrJB0lex1nD1ColEa4CjmRxHMFYhoaFfw+mUUJ6rrN+zPdettxzbe
+HPBVhNWpfOcQdEIrPWwhMCJJYOnPQ7OpZBZ7088Bc7JVA4RHMo54MuuU2t1Th71H
+l7hcF9ueIKXqnsoAWFoG+p4UOy+OHU11THp3ABEBAAG0aUNlbnRPUyBBbHRBcmNo
+IFNJRyAtIFBvd2VyUEMgKGh0dHBzOi8vd2lraS5jZW50b3Mub3JnL1NwZWNpYWxJ
+bnRlcmVzdEdyb3VwL0FsdEFyY2gpIDxzZWN1cml0eUBjZW50b3Mub3JnPokBOQQT
+AQIAIwUCVlhRaQIbAwcLCQgHAwIBBhUIAgkKCwQWAgMBAh4BAheAAAoJEKlju9v1
+M/T6HPsH/jLoRihPGZrdNjnVRSx/7hzQ+csdpgwRYSgJOeLTJAmemXYxiAQ0Wh+Z
+AiDA6hdUu973Y/aTZbOoX+trb6SaEquGLLxhFgC21whVYfRznxE3FQv02a/hjp/3
+a+i0GDT4ExSNuMxAqEewnWTymHS8bAsPGKuEMk9zElMZgeM6RrZUT+RL/ybjw5Mi
+H8mP/tEcR1jAsm30BSoWV0nKHMXLpuOVTQS2V3ngzMWoA/l/9t7CafhkpV7IGfnB
+HwQChc3L9fyZ/LwCo0WR1mHbzoPq+K4fwOnjdFEbgUSvfQ3+QiXXrfWt7C9IYAmA
+/6cxo9vG1NH6sQ3BJiEyJNaWj3q2c5U=
+=E+yp
+-----END PGP PUBLIC KEY BLOCK-----
--
1.8.3.1
Miroslav Suchý
2016-06-02 10:56:57 UTC
Permalink
Post by m***@linux.vnet.ibm.com
CentOS for PPC64LE is a altarch SIG announced in the end of 2015[1] and this
patch provides configuration file to use mock on it.
Note that there are two GPG keys for the PPC64LE repositories at
mirrors.centos.org, in general noarch packages were signed with the usual
RPM-GPG-KEY-CentOS-7 and packages rebuilt or created for the architecture, in
the case PPC64LE, were signed with RPM-GPG-KEY-CentOS-SIG-AltArch-7-ppc64le[2],
also added in this patch.
[1]: https://lists.centos.org/pipermail/centos-announce/2015-December/021556.html
[2]: https://www.centos.org/keys/
Committed as:
* 84a2e62 (HEAD -> devel, origin/devel) Add config for CentOS PPC64LE arch

Thank you
--
Miroslav Suchy, RHCA
Red Hat, Senior Software Engineer, #brno, #devexp, #fedora-buildsys
Loading...