Bug 1460713 - mock-scm build fails with: 'Buildroot' object has no attribute 'init_install_output'
mock-scm build fails with: 'Buildroot' object has no attribute 'init_install_...
Status: NEW
Product: Fedora
Classification: Fedora
Component: mock (Show other bugs)
26
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Suchý
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-06-12 09:32 EDT by Michael Simacek
Modified: 2017-12-11 10:26 EST (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Michael Simacek 2017-06-12 09:32:29 EDT
Description of problem:
Build using mock-scm fails with mock error: 'Buildroot' object has no attribute 'init_install_output'

The build: https://copr.fedorainfracloud.org/coprs/g/java/snapshots/build/564372/
Build log: https://copr-be.cloud.fedoraproject.org/results/%40java/snapshots/custom-1-x86_64/00564372-javapackages-tools/builder-live.log

How reproducible:
always

Steps to Reproduce:
1. Rebuild @java/snapshots/javapackages-tools
Comment 1 Miroslav Suchý 2017-06-12 17:51:19 EDT
Full log here:
INFO: Results and/or logs in: intermediate-srpm
INFO: unmounting tmpfs.
ERROR: 'Buildroot' object has no attribute 'init_install_output'
Traceback (most recent call last):
  File "/usr/libexec/mock/mock", line 886, in <module>
    main()
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 89, in trace
    result = func(*args, **kw)
  File "/usr/libexec/mock/mock", line 701, in main
    run_command(options, args, config_opts, commands, buildroot, state)
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 89, in trace
    result = func(*args, **kw)
  File "/usr/libexec/mock/mock", line 786, in run_command
    do_buildsrpm(config_opts, commands, buildroot, options, args)
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 89, in trace
    result = func(*args, **kw)
  File "/usr/libexec/mock/mock", line 538, in do_buildsrpm
    cmd=cmd, post=None, clean=clean)
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 89, in trace
    result = func(*args, **kw)
  File "/usr/libexec/mock/mock", line 464, in rebuild_generic
    commands.init(prebuild=not config_opts.get('short_circuit'))
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 89, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.6/site-packages/mockbuild/backend.py", line 125, in init
    self.buildroot.initialize(**kwargs)
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 89, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.6/site-packages/mockbuild/buildroot.py", line 90, in initialize
    self._init(prebuild=prebuild, do_log=do_log)
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 89, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.6/site-packages/mockbuild/buildroot.py", line 146, in _init
    self._init_pkg_management()
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 89, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.6/site-packages/mockbuild/buildroot.py", line 243, in _init_pkg_management
    self.init_install_output += self.pkg_manager.execute(*cmd, returnOutput=1)
AttributeError: 'Buildroot' object has no attribute 'init_install_output'
Could not build srpm: No such file or directory at /usr/bin/copr-rpmbuild line 181, <$sources_fh> line 1.
cannot remove path when cwd is /tmp/JWX1BBjrUo/javapackages-tools for /tmp/JWX1BBjrUo:  at /usr/share/perl5/vendor_perl/File/Temp.pm line 1616.

This is mock issue.

Note You need to log in before you can comment on or make changes to this bug.