[PATCHSET] Add CentOS Base configs to Mock Upstream
by Brian Stinson
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
--
1.8.3.1
7 years, 5 months
New release - mock-1.2.18
by Miroslav Suchý
Hi,
I just released new version of Mock.
The release notes are here:
https://fedoraproject.org/wiki/Mock/1.2.18
I will cc it here (sans links):
mock-1.2.18 has several bugfixes:
copy just content of SRPM not the attributes (RHBZ#1301985)
do not fail when we cannot link default.cfg (RHBZ#1305367)
Build always fails when using --nocheck (RHBZ#1327594)
keep machine-id in /etc/machine-id (RHBZ#1344305)
And several changes:
Unconditionally setup resolver config
use DNF for F24 chroot
requires rpm-python
Escape the escape sequences in PROMPT_COMMAND, improve prompt
Use root name instead config name for backups dir
Add MIPS personalities
scm plugin handle better submodules
And there are two new groups of configs. There are new Mageia configs:
mageia-cauldron-armv5tl
mageia-cauldron-armv7hl
mageia-cauldron-i586
mageia-cauldron-x86_64
mageia-6-armv5tl
mageia-6-armv7hl
mageia-6-i586
mageia-6-x86_64
And there are new custom configs:
custom-1-aarch64
custom-1-armhfp
custom-1-i386
custom-1-ppc64
custom-1-ppc64le
custom-1-s390
custom-1-s390x
custom-1-x86_64
Those configs does not have any repository configured and base is empty.
I.e:
config_opts['chroot_setup_cmd'] = ''
This is useful if you want to prepare the chroot yourself. Or when you
use it with mockchain with `--addrepo=REPOS` option. This was added on
request of Koschei, which will use it.
Mirek Suchý
7 years, 5 months
kojira won't start ssl cert verify fails
by Noah Rømer
Trying to get kojira to start up, with a new cert (using the instructions
for a self hosted CA on the koji server). Koji version 1.9.0-5 on a Centos
6.6 box. I get the following error:
Traceback (most recent call last):
File "/usr/sbin/kojira", line 743, in <module>
session.ssl_login(options.cert, options.ca, options.serverca)
File "/usr/lib/python2.6/site-packages/koji/__init__.py", line 1729, in
ssl_login
sinfo = self.callMethod('sslLogin', proxyuser)
File "/usr/lib/python2.6/site-packages/koji/__init__.py", line 1778, in
callMethod
return self._callMethod(name, args, opts)
File "/usr/lib/python2.6/site-packages/koji/__init__.py", line 1898, in
_callMethod
return self._sendCall(handler, headers, request)
File "/usr/lib/python2.6/site-packages/koji/__init__.py", line 1809, in
_sendCall
return self._sendOneCall(handler, headers, request)
File "/usr/lib/python2.6/site-packages/koji/__init__.py", line 1827, in
_sendOneCall
cnx.endheaders()
File "/usr/lib64/python2.6/httplib.py", line 908, in endheaders
self._send_output()
File "/usr/lib64/python2.6/httplib.py", line 780, in _send_output
self.send(msg)
File "/usr/lib64/python2.6/httplib.py", line 759, in send
self.sock.sendall(str)
File "/usr/lib/python2.6/site-packages/koji/ssl/SSLConnection.py", line
108, in sendall
sent = con.send(data, flags)
OpenSSL.SSL.Error: [('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE',
'certificate verify failed')]
If I run openssl from the command line, to verify the cert, it succeeds:
# openssl verify -CAfile /etc/pki/koji/koji_ca_cert.crt
/etc/pki/koji/certs/kojira.cer
/etc/pki/koji/certs/kojira.cer: OK
The cert in question is SHA256/RSA4096 (matching the params of the certs
we've previously used).
--
Squirrels are the lunatic teenagers of the animal kingdom.
7 years, 5 months
[PATCH] Install Mageia configs
by Neal Gompa
Hey all,
I didn't realize that I didn't have this before, so I've attached a
patch that applies onto devel that installs the Mageia configs.
Please apply at your earliest convenience.
Thanks in advance,
--
真実はいつも一つ!/ Always, there's only one truth!
7 years, 5 months
[PATCHSET] Updates for Mageia mock build targets
by Neal Gompa
Hello all,
Since my last email two months ago[1], I've been working steadily
towards the completion of our infrastructure bringup for supporting
COPR oriented workflows. I've added tito and copr CLI tools to the
distribution to enable CLI-centric workflows as well.
While we are still working on bringing up MirrorBrain for metalinks,
we have a rudimentary script that generates a yum-style mirrorlist
that DNF and mock can consume. This has allowed me to update and
expand the Mageia build target configuration for mock, which I have
added to our mock package.
The patches attached to this email update and expand the Mageia
configs, including adding Mageia 6. Note that the Mageia configuration
for armv7hl does not yet work because we are still in the process of
completing the build. We've estimated that it should be finished
within the next couple of days, and then the switch will be flipped to
make it public. This is why the Mageia armv7hl configuration files are
in a separate patch. While I have applied the entire patch series to
the Mageia mock package, it is up to you on whether you wish to
include the armv7hl configuration files or not right now.
These patches should apply cleanly on top of the devel branch for mock.
--
真実はいつも一つ!/ Always, there's only one truth!
7 years, 5 months
"Layered" build system
by Avi Kivity
Hello,
I'd like to use koji as a layered build system. I'm not sure that this is the right place, or that koji is the right tool. If not, please let me know what is.
We are building rpms against Fedora and CentOS/RHEL 7. While all our dependencies are in Fedora, that's not the case for RHEL. We would like to store our dependencies (updated rarely) as well as our product packages (updated often) in our local koji, but we'd like the rest of the distribution to be picked up from upstream, rather than having to import (and keep updating) all of our upstream dependencies into our local koji instance.
To make the case concrete, our non-upstream dependencies include gcc 5.3 (included in Fedora 23, but not in RHEL), binutils and isl (dependencies of gcc), boost (we need a later version than is available), ninja-build, ragel, gdb, and pyparsing.
Currently, we just regenerate them each build. Ideally we pull them from our local koji instance.
Avi
7 years, 5 months
[PATCH] Add config for CentOS PPC64LE arch
by Mauro Rodrigues
From: "Mauro S. M. Rodrigues" <maurosr(a)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
7 years, 6 months