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@redhat.com)
  • expand the generated config (includes) completely before passing it to eval() (sergio@serjux.com)
  • do not ignore cleanup_on_success when post_install is True (logans@cottsay.net)
  • fix fd resource-leak in 'mock --chain' (jcajka@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@redhat.com, sergio@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@gmail.com)
  • bootstrap: bind-mount normal chroot into bootstrap chroot recursively
  • add --scrub=bootstrap parameter (frostyx@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@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@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 [#1780977]
  • EOL F29 configs
  • fix rhelepel configs
  • allow including configs and templates from relative path (frostyx@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-*
  • fixed mageia, opensuse and mandriva configs
  • fixed fedora 31+ i386 configs

This update has been submitted for testing by praiskup.

7 months ago

This update's test gating status has been changed to 'waiting'.

7 months ago

This update's test gating status has been changed to 'ignored'.

7 months ago

praiskup edited this update.

7 months ago

This update has been pushed to testing.

7 months ago

praiskup edited this update.

New build(s):

  • mock-core-configs-32.1-1.el8

Removed build(s):

  • mock-core-configs-32.0-2.el8

Karma has been reset.

7 months ago

This update has been submitted for testing by praiskup.

7 months ago

praiskup edited this update.

7 months ago

praiskup edited this update.

7 months ago

This update has been pushed to testing.

7 months ago

praiskup edited this update.

New build(s):

  • mock-core-configs-32.2-1.el8

Removed build(s):

  • mock-core-configs-32.1-1.el8

Karma has been reset.

7 months ago

This update has been submitted for testing by praiskup.

7 months ago

praiskup edited this update.

7 months ago
User Icon adamwill commented & provided feedback 7 months ago

Note this includes a change which can potentially break existing configs. If you have a config that inherits from a Fedora 31, 32 or Rawhide config, or a RHEL 8 config, and adds to the yum.conf section - something like this, from openQA, which does exactly this:

include('/etc/mock/fedora-31-x86_64.cfg')
config_opts['plugin_conf']['bind_mount_enable'] = True
config_opts['plugin_conf']['bind_mount_opts']['dirs'].append(('/opt/update_repo', '/opt/update_repo'))
config_opts['plugin_conf']['bind_mount_opts']['dirs'].append(('/dev/ttyS0', '/dev/ttyS0'))
config_opts['yum.conf'] += """
[advisory]
name=Advisory repo
baseurl=file:///opt/update_repo
enabled=1
metadata_expire=3600
gpgcheck=0
"""

it will suddenly stop working with this version of mock, with an error KeyError: 'yum.conf'. This is because of this commit, which changes these configs from having a yum.conf section to having a dnf.conf section.

These updates do seem to be somewhat against the Fedora and EPEL update policies, which discourage shipping major releases with incompatible changes as updates for stable releases.

This update has been pushed to testing.

7 months ago

praiskup edited this update.

New build(s):

  • mock-core-configs-32.3-2.el8

Removed build(s):

  • mock-core-configs-32.2-1.el8

Karma has been reset.

7 months ago

This update has been submitted for testing by praiskup.

7 months ago
User Icon praiskup commented & provided feedback 7 months ago

There's actually commit from november 2019 which flipped the default for Fedora to 'dnf.conf', the cited one is just "sync" to make everything behave the same.

These updates do seem to be somewhat against the Fedora and EPEL update policies, which discourage shipping major releases with incompatible changes as updates for stable releases.

Well, mock has to adapt a lot to new environments outside from EPEL (you need to adapt epel7 mock for building e.g. fedora rawhide). What you suggest would make mock mostly unmaintainable (we would have to maintain two versions, help with this would be welcome).

But the yum.conf -> dnf.conf was probably rather cosmetic change, and should happen only in newly added configs. I realized this too late after taking over the maintenance. If you have some good proposal (fixing mock somehow so we make it compatible with both variants or so) please suggest.

Btw., the include() feature itself is pretty new thing, definitely brought by updates to el7 (maybe even epel8). I didn't know it is so widely adopted already. Sorry for inconvenience.

This update has been pushed to testing.

7 months ago

This update can be pushed to stable now if the maintainer wishes

6 months ago

This update has been obsoleted by mock-2.1-1.el8.

6 months ago

Please login to add feedback.

Metadata
Type
enhancement
Karma
0
Signed
Content Type
RPM
Test Gating
Settings
Unstable by Karma
-2
Stable by Karma
3
Stable by Time
disabled
Dates
submitted
7 months ago
in testing
7 months ago
modified
7 months ago
BZ#1672984 mock --buildsrpm requires --sources when there are zero sources in the spec file
0
0
BZ#1694420 [abrt] mock: rmtree(): util.py:231:rmtree:PermissionError: [Errno 13] Permission denied: '/var/lib/mock/fedora-29-x86_64/root/builddir/build/SOURCES'
0
0
BZ#1740421 selinux is preventing mock-1.4.17-1 from executing RPM scriptlets
0
0
BZ#1743843 Builds fail with use_bootstrap_container experimental feature enabled
0
0
BZ#1762728 [lvm] can't scrub volume
0
0
BZ#1767417 --forcearch doesn't warn/fail if you don't have qemu-user-static installed
0
0
BZ#1772598 use_bootstrap_image doesn't use proxy
0
0

Automated Test Results