Mock -D & --rpmbuild-opts - difference and how to use?
by patrick+buildsys@laimbock.com
Hi folks,
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)?
Thanks!
Best,
Patrick
3 years, 8 months
New Mock release
by Miroslav Suchý
Hi,
Pavel is on holidays and we needed new release of Mock because of
https://pagure.io/fedora-infrastructure/issue/9138
so I stepped into Pavel shoes and done the release.
From the release notes:
https://github.com/rpm-software-management/mock/wiki/Release-Notes-2.4
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
builds. [fedora-infra#9138].
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
commands.
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'] = [
('disable', 'postgresql'),
('enable', 'postgresql:12, ruby:2.6'),
('install', 'nodejs:13/development'),
('disable', 'nodejs'),
]
Mock 2.4 bugfixes:
.rpmmacros is now created in "rootdir" instead of "basedir" [rhbz#1848201]
Following contributors contributed to this release:
Ken Dreyer
Neal Gompa
Pavel Raiskup
Thank you.
--
Miroslav Suchy, RHCA
Red Hat, Associate Manager ABRT/Copr, #brno, #fedora-buildsys
3 years, 8 months
errors when running mock --init in container
by Michael Ivanov
Greetings!
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:
'/var/lib/mock/cs7-bootstrap/root/sys/fs/selinux'
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.
Best regards,
--
\ / | |
(OvO) | Михаил Иванов |
(^^^) | |
\^/ | E-mail: ivans(a)isle.spb.ru |
^ ^ | |
3 years, 8 months