Big thanks for mock! I'm trying to make mock use/pass smp_mflags -j1 and
--with-tests (or --with-python3, etc) but no joy. So a couple of questions:
What is the differrence between -D/--define= and --rpmbuild_opts?
How do I pass smp_mflags -j1 when an SRPM does not support parallel build?
How do I pass --with-tests (%bcond) or --with-python3 (%configure)?
Pavel is on holidays and we needed new release of Mock because of
so I stepped into Pavel shoes and done the release.
From the release notes:
Mock 2.4 features:
The file /dev/btrfs-control is now available in chroot if host supports it. This allows to create btrfs-based image
Copy source CA certificates -
Prior to this change, we would only copy the "extracted" SSL CA certificates into the chroot. If anything ran
"update-ca-trust" inside the chroot, this would delete our custom SSL certificates from the "extracted" directory. For
example, Fedora and RHEL's main "ca-certificates" package always does this in %post, and any custom third-party package
could do this as well. Copy the entire parent directory so that "sources" and "extracted" are both present in the
chroot. With this change, "update-ca-trust" does not wipe out the CA certificates from the chroot. [#588]
Add module_setup_commands configuration option, The new config option obsoletes module_enable and module_install
configuration options (but those are still supported), and allows users to also configure "disable", "remove" and other
Each command can be specified multiple times, and mock respects the order of the commands when executing them.
Artificial example: (1) Disable any potentially enabled postgresql module stream, (2) enable specific postgresql and
ruby module streams, (3) install the development nodejs profile and (4) disable it immediately.
config_opts['module_setup_commands'] = [
('enable', 'postgresql:12, ruby:2.6'),
Mock 2.4 bugfixes:
.rpmmacros is now created in "rootdir" instead of "basedir" [rhbz#1848201]
Following contributors contributed to this release:
Miroslav Suchy, RHCA
Red Hat, Associate Manager ABRT/Copr, #brno, #fedora-buildsys
I'm trying to run mock 2.3 in container under centos 8. During init it gives me
the following error:
OSError: [Errno 30] Read-only file system: '/var/lib/mock/cs7-bootstrap/root/sys/fs/selinux'
ERROR: Could not create dir /var/lib/mock/cs7-bootstrap/root/sys/fs/selinux. Error: [Errno 30] Read-only file system:
I can create this directory manually when not in mock.
I checked apparmor diagnostics both in container and on host and there are none.
mock was installed from epel repository.
\ / | |
(OvO) | Михаил Иванов |
(^^^) | |
\^/ | E-mail: ivans(a)isle.spb.ru |
^ ^ | |