FEDORA-2018-c17daa06f6 created by msuchy 3 years ago for Fedora 27
stable

Features:

  • Stdout and stderr in build.log has been split. All stderr output lines are prefixed by BUILDSTDERR:
  • There is a new config option opstimeout:
# Set timeout in seconds for common mock operations
# if 0 is set, then no time limit is used
# config_opts['opstimeout'] = 0

The default is 0, which means that Mock is waiting until command exit.

Bugfixes:

  • Builds for EL5 are working again - EL5 is sensitive to order of params of adduser #1535328
  • Use correct builddep when bootstrap is used. Additionally, ccache is not installed into bootstrap chroot. #1540813.
  • User defined mounts are not mounted in bootstrap chroot.
  • Detect if essential mounts are already mounted - previously, mock assumed that essential mounts (procfs, sysfs) are never mounted when mock starts up. That's not true, as multiple non-destructive mock processes are allowed (--shell, --install, etc.) to run concurrently. So when you use mock --shell and do a mock --install in parallel, it breaks your shell, because it unmounts its proc. This improves the situation by first asking whether the mounts aren't there already.
  • fix quoting in sign_opts example in site-defaults.cfg #1537797.
  • Honor the "cwd" flag when nspawn is being used and "chrootPath" is not set.
  • Do not produce a warning when we are using different PM for a bootstrap container.
  • Default for config_opts['dnf_warning'] in site-defaults.cfg according to docs.

How to install

sudo dnf upgrade --advisory=FEDORA-2018-c17daa06f6

This update has been submitted for testing by msuchy.

3 years ago

This update has been pushed to testing.

3 years ago
User Icon filiperosset commented & provided feedback 3 years ago
karma

no regressions noted

User Icon cserpentis commented & provided feedback 3 years ago
karma

works for me

User Icon danniel commented & provided feedback 3 years ago
karma

works

This update has been submitted for batched by bodhi.

3 years ago

This update has been submitted for stable by bodhi.

3 years ago

This update has been pushed to stable.

3 years ago
$ tito build --offline --builder mock --arg mock=fedora-27-x86_64 --rpm --test
Creating output directory: /tmp/tito
Building package [pgadmin3-1.24.0-2]
Creating rpms for pgadmin3-git-8.cb9dc55 in mock: fedora-27-x86_64

Wrote: /tmp/tito/pgadmin3-1.24.1-2.git.8.cb9dc55.fc27.src.rpm

Using srpm: /tmp/tito/pgadmin3-1.24.1-2.git.8.cb9dc55.fc27.src.rpm
Initializing mock...
INFO: mock.py version 1.4.9 starting (python version = 3.6.4)...
Start: init plugins
INFO: selinux disabled
Finish: init plugins
Start: run
Start: clean chroot
Finish: clean chroot
Start: chroot init
INFO: calling preinit hooks
INFO: enabled root cache
INFO: root cache aged out! cache will be rebuilt
INFO: enabled dnf cache
Start: cleaning dnf metadata
Finish: cleaning dnf metadata
INFO: enabled HW Info plugin
Mock Version: 1.4.9
INFO: Mock Version: 1.4.9
Start: dnf install
Finish: dnf install
Start: creating root cache
ERROR: 'ascii' codec can't encode characters in position 207-210: ordinal not in range(128)
Traceback (most recent call last):
  File "/usr/libexec/mock/mock", line 959, in <module>
    main()
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/libexec/mock/mock", line 759, in main
    run_command(options, args, config_opts, commands, buildroot, state)
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/libexec/mock/mock", line 786, in run_command
    commands.init()
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.6/site-packages/mockbuild/backend.py", line 164, in init
    self.buildroot.initialize(**kwargs)
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.6/site-packages/mockbuild/buildroot.py", line 92, in initialize
    self._init(prebuild=prebuild, do_log=do_log)
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.6/site-packages/mockbuild/buildroot.py", line 182, in _init
    self.plugins.call_hooks('postinit')
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.6/site-packages/mockbuild/plugin.py", line 78, in call_hooks
    hook(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.6/site-packages/mockbuild/plugins/root_cache.py", line 163, in _rootCachePostInitHook
    self._rebuild_root_cache()
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.6/site-packages/mockbuild/plugins/root_cache.py", line 200, in _rebuild_root_cache
    l.write(self.buildroot.pkg_manager.init_install_output)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 207-210: ordinal not in range(128)


ERROR: Error running command: mock  -r fedora-27-x86_64 --init

Status code: 1
....
Traceback (most recent call last):
  File "/usr/bin/tito", line 23, in <module>
    CLI().main(sys.argv[1:])
  File "/usr/lib/python3.6/site-packages/tito/cli.py", line 203, in main
    return module.main(argv)
  File "/usr/lib/python3.6/site-packages/tito/cli.py", line 378, in main
    return builder.run(self.options)
  File "/usr/lib/python3.6/site-packages/tito/builder/main.py", line 156, in run
    self.rpm()
  File "/usr/lib/python3.6/site-packages/tito/builder/main.py", line 1139, in rpm
    self._build_in_mock()
  File "/usr/lib/python3.6/site-packages/tito/builder/main.py", line 1149, in _build_in_mock
    run_command_func("mock %s -r %s --init" % (self.mock_cmd_args, self.mock_tag))
  File "/usr/lib/python3.6/site-packages/tito/common.py", line 468, in run_command_print
    raise RunCommandException(command, status, "\n".join(output))
tito.exception.RunCommandException: Error running command: mock  -r fedora-27-x86_64 --init

downgrade to mock.noarch 1.4.6-1.fc27 solves this problem
https://bugzilla.redhat.com/show_bug.cgi?id=1564035


Please login to add feedback.

Metadata
Type
enhancement
Karma
3
Signed
Content Type
RPM
Test Gating
Settings
Unstable by Karma
-3
Stable by Karma
3
Stable by Time
disabled
Dates
submitted
3 years ago
in testing
3 years ago
in stable
3 years ago
BZ#1535328 Unable to mock shell to RHEL5 because of wrong parameters order given to usermod
0
0
BZ#1537797 mock: Missing " causes error after enabling package signing
0
0
BZ#1540813 Build fails with ccache enabled
0
0

Automated Test Results