Commit 2278decb authored by Michał Kępień's avatar Michał Kępień

RPM packager: work around an ENOTTY bug

The combination of current CentOS/EPEL 7 versions of mock and GPGME
triggers the following error when YUM invoked by mock running in a
Docker container attempts to verify repository metadata:

    gpgme.GpgmeError: (7, 32870, u'Inappropriate ioctl for device')

This prevents any CentOS 7 RPM packages from being built in GitLab CI.
Work around the problem by forcing mock to run YUM without a PTY
parent 535309f5
......@@ -10,3 +10,4 @@ RUN echo "config_opts['yum.conf'] += '''$(cat /etc/yum.repos.d/cloudsmith-isc-bi
RUN echo "config_opts['print_main_output'] = True" | tee -a /etc/mock/epel-{6,7,8}-x86_64.cfg
RUN echo "config_opts['use_nspawn'] = False" | tee -a /etc/mock/epel-{7,8}-x86_64.cfg
RUN echo "config_opts['use_bootstrap_container'] = True" | tee -a /etc/mock/epel-8-x86_64.cfg
RUN sed -i "/'pty'/{s|True|False|}" /usr/lib/python3.6/site-packages/mockbuild/
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment