stable

Mock v2.0 release and mock-core-configs v32 - fc31

FEDORA-2020-8c3f06d776 created by praiskup 5 years ago for Fedora 31

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-*

How to install

Updates may require up to 24 hours to propagate to mirrors. If the following command doesn't work, please retry later:

sudo dnf upgrade --refresh --advisory=FEDORA-2020-8c3f06d776

This update has been submitted for testing by praiskup.

5 years ago

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

5 years ago

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

5 years ago

praiskup edited this update.

5 years ago

This update has been pushed to testing.

5 years ago
User Icon elxreno commented & provided feedback 5 years ago
karma

After trying to build something I receive this error:

KeyError: 'dnf.conf'

ERROR: Error in configuration

Example command: mock -r epel-8-x86_64 --rebuild ~/rpmbuild/SRPMS/ImageMagick-6.9.10.91-1.fc31.src.rpm

Bodhi is disabling automatic push to stable due to negative karma. The maintainer may push manually if they determine that the issue is not severe.

5 years ago

praiskup edited this update.

New build(s):

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

Removed build(s):

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

Karma has been reset.

5 years ago

This update has been submitted for testing by praiskup.

5 years ago

praiskup edited this update.

5 years ago

praiskup edited this update.

5 years ago

@elxreno, thank you for the feedback, I attached new build with fix.

praiskup edited this update.

5 years ago
User Icon elxreno commented & provided feedback 5 years ago
karma

Now it works for me. Thanks for the fix!

BZ#1672984 mock --buildsrpm requires --sources when there are zero sources in the spec file
User Icon elxreno commented & provided feedback 5 years ago

@praiskup I'm not sure, but maybe bootstrap feature should be disabled by default? Source: https://github.com/rpm-software-management/mock/wiki/Feature-bootstrap

This feature is not enabled by default right now. If you want to enable it you can use --bootstrap-chroot command-line option or set config_opts['use_bootstrap_container'] = True in your configuration.

User Icon praiskup commented & provided feedback 5 years ago

It was long term plan to flip the default. So we need to fix the wiki page now actually, thanks for the hint and testing.

User Icon praiskup commented & provided feedback 5 years ago

Ah, thanks for the wiki edit!

User Icon atim commented & provided feedback 5 years ago
karma

LGTM. But still experiencing #1754807 (not Mock bug). Only works with --old-chroot (now --isolation=simple). Kernel 5.5.2

This update has been pushed to testing.

5 years ago

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

5 years ago
User Icon cairo provided feedback 5 years ago
karma
User Icon churchyard commented & provided feedback 5 years ago
karma

Went here to report the same problem with epel8, updated. It fixed the problem. Otherwise so far so good. Thanks.

User Icon pwalter commented & provided feedback 5 years ago
karma

Works

User Icon jdoss commented & provided feedback 5 years ago
karma

Works for me!

User Icon ellert commented & provided feedback 5 years ago
karma

Without this update mock rawhide builds are broken.

User Icon alakatos commented & provided feedback 5 years ago
karma

It works for me. Mock build on rawhide works without a problem with this update. Thank you!

BZ#1672984 mock --buildsrpm requires --sources when there are zero sources in the spec file
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'
BZ#1740421 selinux is preventing mock-1.4.17-1 from executing RPM scriptlets
BZ#1743843 Builds fail with use_bootstrap_container experimental feature enabled
BZ#1762728 [lvm] can't scrub volume
BZ#1767417 --forcearch doesn't warn/fail if you don't have qemu-user-static installed
BZ#1772598 use_bootstrap_image doesn't use proxy
User Icon mtamasko provided feedback 5 years ago
karma
User Icon mtamasko provided feedback 5 years ago
karma
BZ#1672984 mock --buildsrpm requires --sources when there are zero sources in the spec file
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'
BZ#1740421 selinux is preventing mock-1.4.17-1 from executing RPM scriptlets
BZ#1743843 Builds fail with use_bootstrap_container experimental feature enabled
BZ#1762728 [lvm] can't scrub volume
BZ#1767417 --forcearch doesn't warn/fail if you don't have qemu-user-static installed
BZ#1772598 use_bootstrap_image doesn't use proxy
User Icon mtamasko commented & provided feedback 5 years ago
karma

LGTM

BZ#1672984 mock --buildsrpm requires --sources when there are zero sources in the spec file
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'
BZ#1740421 selinux is preventing mock-1.4.17-1 from executing RPM scriptlets
BZ#1743843 Builds fail with use_bootstrap_container experimental feature enabled
BZ#1762728 [lvm] can't scrub volume
BZ#1767417 --forcearch doesn't warn/fail if you don't have qemu-user-static installed
BZ#1772598 use_bootstrap_image doesn't use proxy

praiskup edited this update.

5 years ago
User Icon jkonecny commented & provided feedback 5 years ago
karma

Working great. Thanks!

User Icon mooninite commented & provided feedback 5 years ago
karma

You want 15 +1s? Really? OK... and the custom update name? :(

User Icon jjames commented & provided feedback 5 years ago

I have a custom mock config which is a copy of /etc/mock/fedora-rawhide-x86_64.cfg with this added to the end:

config_opts['dnf.conf'] += """

[jerry]
name=jerry
baseurl=/home/jjames/yum/33/x86_64/Packages
gpgcheck=0
enabled=1
skip_if_unavailable=False
"""

This has worked for many years, but with mock-2.0-2.fc31.noarch, I get:

Errors during downloading metadata for repository 'jerry':
  - Curl error (37): Couldn't read a file:// file for file:///home/jjames/yum/33/x86_64/Packages/repodata/repomd.xml [Couldn't open file /home/jjames/yum/33/x86_64/Packages/repodata/repomd.xml]
Error: Failed to download metadata for repo 'jerry': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

The man page is not revealing what changed, or what I need to do to make this work again. I'm sure I'm not the only packager with a private repository, so if this needs to be done differently now, i think attention should be drawn to the new way of configuring mock. The path that curl is complaining about does exist, but is only readable by me and privileged processes. What user needs ACLs to that path to keep this working?

I'm not going to give negative karma, because this update is important, but it does break a workflow that I use frequently.

User Icon jjames commented & provided feedback 5 years ago

The trick is to make baseurl=file://<path>. The file:// prefix has never been necessary before, and the error message includes it, which is quite misleading.

User Icon merlinm commented & provided feedback 5 years ago
karma

Works for me. I can now enable and use the EL8 epel-modular repo.

User Icon praiskup commented & provided feedback 5 years ago

@mooninite, I'm going to push this to stable as soon as possible, this turned out to be important update. I set the high karma limit because I didn't want to get this merged sooner than I test several other things.

@jjames, thanks for the note. I remember I tried the variant without file:// prefix, and that didn't seem to work for me even with old mock.... I'll try.

User Icon vladimirslavik commented & provided feedback 5 years ago
karma

Works for me!

This update has been submitted for stable by praiskup.

5 years ago
User Icon decathorpe commented & provided feedback 5 years ago
karma

For some reason, all lines after INFO buildroot.py:398: Mock Version: 2.0 in root.log, lines are duplicated (in root.log after that INFO line, and all of build.log)

This update has been pushed to stable.

5 years ago

Please login to add feedback.

Metadata
Type
enhancement
Karma
12
Signed
Content Type
RPM
Test Gating
Autopush Settings
Unstable by Karma
-2
Stable by Karma
15
Stable by Time
disabled
Dates
submitted
5 years ago
in testing
5 years ago
in stable
5 years ago
modified
5 years ago
BZ#1672984 mock --buildsrpm requires --sources when there are zero sources in the spec file
0
2
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
2
BZ#1740421 selinux is preventing mock-1.4.17-1 from executing RPM scriptlets
0
2
BZ#1743843 Builds fail with use_bootstrap_container experimental feature enabled
0
2
BZ#1762728 [lvm] can't scrub volume
0
2
BZ#1767417 --forcearch doesn't warn/fail if you don't have qemu-user-static installed
0
2
BZ#1772598 use_bootstrap_image doesn't use proxy
0
2

Automated Test Results