--------------------------------------------------------------------------------
Fedora Update Notification
FEDORA-2020-4ab9c18a6a
2020-02-20 04:45:33.328026
--------------------------------------------------------------------------------
Name : mock
Product : Fedora 30
Version : 2.0
Release : 2.fc30
URL :
https://github.com/rpm-software-management/mock/
Summary : Builds packages inside chroots
Description :
Mock takes an SRPM and builds it in a chroot.
--------------------------------------------------------------------------------
Update Information:
mock - log reasons why src.rpm can not be installed into chroot - nspawn: non-
interactive commands in chroot are executed with --pipe - bind mount local repos
to bootstrap chroot (dturecek(a)redhat.com) - expand the generated config
(includes) completely before passing it to eval() (sergio(a)serjux.com) - do not
ignore cleanup_on_success when post_install is True (logans(a)cottsay.net) - fix
fd resource-leak in 'mock --chain' (jcajka(a)redhat.com) - the --debug-config
option only shows the differences from the mock's default configuration - do not
expand jinja for --debug-config - don't use chroot.pkg_manager in podman case,
we need to install from within the container - --use-bootstrap-image implies
--bootstrap-chroot - drop python2 support from spec file, and code too - ammend
man page and state that --dnf is the default now - rename --{old,new}-chroot to
--isolation - turn ON the jinja rendering a bit earlier - pre-populate loop
devices in nspawn chroot as with --isolation=chroot - deepcopy the plugin_conf
options from chroot to bootstrap_chroot - simplified implementation of include()
config option, accept relative files (jkadlcik(a)redhat.com, sergio(a)serjux.com) -
lvm_root: fix volume removal in --scrub - bootstrap: don't install shadow-utils,
and distribution-gpg-keys - make --sources optional for --buildsrpm mode
(sisi.chlupova(a)gmail.com) - bootstrap: bind-mount normal chroot into bootstrap
chroot recursively - add --scrub=bootstrap parameter (frostyx(a)email.cz) - don't
clean bootstrap with --clean - do not call traceLog decorator when no tracing -
pre-create builddir before changing it's owner, and when we have proper process
privileges - copy /etc/pki/ca-trust/extracted into chroot [GH#397] - change
default of 'package_manager' to 'dnf' - always copy distribution-gpg-keys
into
chroot [GH#308] - support DNF vars added [GH#346] - use jinja macros instead of
python variable expansion - get the text representation of error code -
--scrub=all also does --scrub=bootstrap (jkadlcik(a)redhat.com) - success/fail
aren't created root-owned - compress_logs: setup defaults to 'gzip' - raise
error for --localrepo without --chain - detect that forcearch can not work, and
raise obvious error - drop unnecessary privilege escalations which only make
unnecessary root-owned files - solve yum.conf vs. dnf.conf inconsistency in code
and config - fix mockchain with --bootstrap-chroot (issue/469) - document 'mock
--chain -c' in man page mock-core-configs - solve yum.conf vs. dnf.conf
inconsistency in config and code - add F32 configs and move rawhide to F33 -
make compatibility changes with mock 2.0 - allow host overrides (build-time for
now) - use jinja for gpgkey= in rawhide template - add rhel-{7,8}-s390x configs
- drop rhel-8-ppc64, it was never supported - fix rhel-7 configs - update epel-8
config template to include modular repos as well as missing non-modular source
repo (mmathesi(a)redhat.com) - drop for a long time useless epel-6-ppc64 config -
use template for opensuse, openmandriva, mageia, epel, custom ... - fix
epel-6.tpl config bug - set default podman image for centos-stream - remove
aarch64 string from repo name in template [RHBZ#1780977] - EOL F29 configs - fix
rhelepel configs - allow including configs and templates from relative path
(frostyx(a)email.cz) - configs: drop cost=2000 from fedora-31+-i386 - add missing
metadata_expire=0 to epel configs - change default of 'package_manager' to
'dnf', and use 'dnf.conf' - remove rhelbeta-8-*
--------------------------------------------------------------------------------
ChangeLog:
* Fri Feb 7 2020 Pavel Raiskup <praiskup(a)redhat.com> 2.0-2
- solve yum.conf vs. dnf.conf inconsistency in code and config
- fix mockchain with --bootstrap-chroot (issue/469)
- document 'mock --chain -c' in man page
* Thu Feb 6 2020 Pavel Raiskup <praiskup(a)redhat.com> 2.0-1
- log reasons why src.rpm can not be installed into chroot
- nspawn: non-interactive commands in chroot are executed with --pipe
- bind mount local repos to bootstrap chroot (dturecek(a)redhat.com)
- expand the generated config (includes) completely before passing it
to eval() (sergio(a)serjux.com)
- do not ignore cleanup_on_success when post_install is True
(logans(a)cottsay.net)
- fix fd resource-leak in 'mock --chain' (jcajka(a)redhat.com)
- the --debug-config option only shows the differences from the mock's default
configuration
- do not expand jinja for --debug-config
- don't use chroot.pkg_manager in podman case, we need to install from within
the container
- --use-bootstrap-image implies --bootstrap-chroot
- drop python2 support from spec file, and code too
- ammend man page and state that --dnf is the default now
- rename --{old,new}-chroot to --isolation
- turn ON the jinja rendering a bit earlier
- pre-populate loop devices in nspawn chroot as with --isolation=chroot
- deepcopy the plugin_conf options from chroot to bootstrap_chroot
- simplified implementation of include() config option, accept relative files
(jkadlcik(a)redhat.com, sergio(a)serjux.com)
- pass proxy environment to exec of Podman (RHBZ#1772598)
- lvm_root: fix volume removal in --scrub
- bootstrap: don't install shadow-utils, and distribution-gpg-keys
- make --sources optional for --buildsrpm mode (sisi.chlupova(a)gmail.com)
- bootstrap: bind-mount normal chroot into bootstrap chroot recursively
- add --scrub=bootstrap parameter (frostyx(a)email.cz)
- don't clean bootstrap with --clean
- do not call traceLog decorator when no tracing
- pre-create builddir before changing it's owner, and when we have proper
process privileges
- copy /etc/pki/ca-trust/extracted into chroot [GH#397]
- change default of 'package_manager' to 'dnf'
- always copy distribution-gpg-keys into chroot [GH#308]
- support DNF vars added [GH#346]
- use jinja macros instead of python variable expansion
- get the text representation of error code
- --scrub=all also does --scrub=bootstrap (jkadlcik(a)redhat.com)
- success/fail aren't created root-owned
- compress_logs: setup defaults to 'gzip'
- raise error for --localrepo without --chain
- detect that forcearch can not work, and raise obvious error
- drop unnecessary privilege escalations which only make unnecessary
root-owned files
* Fri Oct 4 2019 Miroslav Such�� <msuchy(a)redhat.com> 1.4.20-1
- /bin/mockchain wrapper around 'mock --chain' (praiskup(a)redhat.com)
- mock: options for retrying packager managers' actions (praiskup(a)redhat.com)
- remove mockchain [RHBZ#1757388]
- chain: don't skip local repository (praiskup(a)redhat.com)
- chain: propagate local repository to bootstrap chroot (praiskup(a)redhat.com)
- hw_info: don't create root-owned files (praiskup(a)redhat.com)
- ignore ./var/log when creating root_cache - fixes #309
(jiri.novak(a)ghorland.net)
- mock: don't create root files if possible (praiskup(a)redhat.com)
- add commandline options for using bootstrap image (frostyx(a)email.cz)
- Use podman to pull and export an image as a bootstrap chroot
(dmach(a)redhat.com)
* Tue Sep 10 2019 Miroslav Such�� <msuchy(a)redhat.com> 1.4.19-1
- results should be owned by unpriv user [GH#322]
- do not build with tests by default
- Resultdir variable is missing in config. (sisi.chlupova(a)gmail.com)
* Tue Aug 27 2019 Miroslav Such�� <msuchy(a)redhat.com> 1.4.18-1
- use forcearch even when --forcearch is not specified
(turecek.dominik(a)gmail.com)
- requires systemd-container on rhel8 [RHBZ#1744538]
- mock: only make /sys and /proc mounts rprivate (praiskup(a)redhat.com)
- Add Red Hat subscription-manager support (praiskup(a)redhat.com)
- Turn jinja ON a bit later, once configs are loaded (praiskup(a)redhat.com)
- bootstrap-chroot: always explicitly install shadow-utils
(praiskup(a)redhat.com)
- Add procenv plugin for more detailed buildtime information
(riehecky(a)fnal.gov)
- enable selinux plugin for nspawn [RHBZ#1740421]
- Added signals handling by calling orphansKill for signals: SIGTERM, SIGPIPE
and SIGHUP (janbuchmaier(a)seznam.cz)
- Mention user configuration file in a man page (jkonecny(a)redhat.com)
* Thu Aug 8 2019 Miroslav Such�� <msuchy(a)redhat.com> 1.4.17-1
- change of exit code during transition from mockchain to mock --chain
- support run in Fedora Toolbox (otaylor(a)fishsoup.net)
- add cheat sheet
- Adding tool for parsing build.log (sisi.chlupova(a)gmail.com)
- load secondary groups [RHBZ#1264005]
- pass --allowerasing by default to DNF [GH#251]
- make include() functional for --chain [GH#263]
- Removing buildstderr from log - configurable via
_mock_stderr_line_prefix (sisi.chlupova(a)gmail.com)
- Fixup: Use rpm -qa --root instead of running rpm -qa in chroot
(miro(a)hroncok.cz)
- DynamicBuildrequires: Detect when no new packages were installed
(miro(a)hroncok.cz)
- Allow more loop devices (sisi.chlupova(a)gmail.com)
- Fix binary locations in /bin for split-usr setups (bero(a)lindev.ch)
- describe behaviour of resultdir together with --chain [GH#267]
- repeat dynamic requires if needed [GH#276]
- Fix compatibility with pre-4.15 RPM versions with DynamicBuildRequires
(i.gnatenko.brain(a)gmail.com)
- Enable dynamic BuildRequires by default (i.gnatenko.brain(a)gmail.com)
- bootstrap: independent network configuration (praiskup(a)redhat.com)
- Update the man page about ~/.config/mock/FOO.cfg (miro(a)hroncok.cz)
- explicitely convert releasever to string [GH#270]
- grant anyone access to bind-mounted /etc/resolv.conf (praiskup(a)redhat.com)
- -r FOO will try to read first ~/.mock/FOO.cfg if exists
- enhance man page of mock about --chain
- bash completion for --chain
- respect use_host_resolv config even with use_nspawn (praiskup(a)redhat.com)
- Fix crash on non-ascii dnf log messages (bkorren(a)redhat.com)
- add deprecation warning to mockchain
- replace mockchain with `mock --chain` command (necas.marty(a)gmail.com)
- switch to python3 on el7 (msuchy(a)redhat.com)
* Wed May 22 2019 Miroslav Such�� <msuchy(a)redhat.com> 1.4.16-1
- switch to python3 on el7
- respect use_host_resolv config even with use_nspawn (praiskup(a)redhat.com)
- Fix crash on non-ascii dnf log messages (bkorren(a)redhat.com)
* Mon Apr 22 2019 Miroslav Such�� <msuchy(a)redhat.com> 1.4.15-1
- ignore weird distro.version() [RHBZ#1690374]
- switch to string rpm's API [RHBZ#1693759]
- FileNotFoundError is not defined in Python 2 [RHBZ#1696234]
- Fix python2-devel build require
- temporary do not make errors from createrepo_c fatal [GH#249]
- allow to configure disabled DNF plugins [GH#210]
- print warning when user is not in the mock group [GH#244]
- implement Dynamic Build Dependencies (msuchy(a)redhat.com)
- Allow mock to be built for epel 8, and without tests
(vanmeeuwen(a)kolabsys.com)
- Add debug logging for systemd-nspawn and related args (riehecky(a)fnal.gov)
- Fix mock for non-ascii paths on python2 (a.badger(a)gmail.com)
- require python-jinja2 rather than python2-jinja2
- Fix --enable-network documentation in man page (directhex(a)apebox.org)
--------------------------------------------------------------------------------
References:
[ 1 ] Bug #1740421 - selinux is preventing mock-1.4.17-1 from executing RPM scriptlets
https://bugzilla.redhat.com/show_bug.cgi?id=1740421
[ 2 ] Bug #1762728 - [lvm] can't scrub volume
https://bugzilla.redhat.com/show_bug.cgi?id=1762728
[ 3 ] Bug #1743843 - Builds fail with use_bootstrap_container experimental feature
enabled
https://bugzilla.redhat.com/show_bug.cgi?id=1743843
[ 4 ] Bug #1672984 - mock --buildsrpm requires --sources when there are zero sources in
the spec file
https://bugzilla.redhat.com/show_bug.cgi?id=1672984
[ 5 ] Bug #1767417 - --forcearch doesn't warn/fail if you don't have
qemu-user-static installed
https://bugzilla.redhat.com/show_bug.cgi?id=1767417
[ 6 ] Bug #1772598 - use_bootstrap_image doesn't use proxy
https://bugzilla.redhat.com/show_bug.cgi?id=1772598
[ 7 ] Bug #1694420 - [abrt] mock: rmtree(): util.py:231:rmtree:PermissionError: [Errno
13] Permission denied:
'/var/lib/mock/fedora-29-x86_64/root/builddir/build/SOURCES'
https://bugzilla.redhat.com/show_bug.cgi?id=1694420
--------------------------------------------------------------------------------
This update can be installed with the "dnf" update program. Use
su -c 'dnf upgrade --advisory FEDORA-2020-4ab9c18a6a' at the command
line. For more information, refer to the dnf documentation available at
http://dnf.readthedocs.io/en/latest/command_ref.html#upgrade-command-label
All packages are signed with the Fedora Project GPG key. More details on the
GPG keys used by the Fedora Project can be found at
https://fedoraproject.org/keys
--------------------------------------------------------------------------------