Bug 1540813 - Build fails with ccache enabled
Summary: Build fails with ccache enabled
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: mock
Version: epel7
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-01 05:12 UTC by Orion Poplawski
Modified: 2018-02-27 20:39 UTC (History)
7 users (show)

Fixed In Version: mock-1.4.9-1.fc27 mock-1.4.9-1.fc26 mock-1.4.9-1.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-20 17:14:56 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Orion Poplawski 2018-02-01 05:12:27 UTC
Description of problem:

Trying to build a rawhide package with ccache enabled I end up with:

DEBUG package_manager.py:111:  ['/usr/bin/yum', '--installroot', '/var/lib/mock/fedora-rawhide-x86_64/root/', '--releasever', '28', 'resolvedep', 'ccache']
DEBUG util.py:636:  child environment: None
DEBUG util.py:562:  Executing command: ['/usr/bin/yum', '--installroot', '/var/lib/mock/fedora-rawhide-x86_64/root/', '--releasever', '28', 'resolvedep', 'ccache', '--setopt=tsflags=nocontexts'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'LC_MESSAGES': 'C.UTF-8', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'CCACHE_DIR': '/var/tmp/ccache', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'HOME': '/builddir', 'CCACHE_UMASK': '002'} and shell False
DEBUG util.py:479:  Failed to set locale, defaulting to C
DEBUG util.py:479:  No such command: resolvedep. Please use /usr/bin/yum --help
DEBUG util.py:479:  It could be a DNF plugin command, try: "dnf install 'dnf-command(resolvedep)'"
DEBUG util.py:617:  Child return code was: 1

Version-Release number of selected component (if applicable):
mock-1.4.8-1.el7.noarch

Comment 1 Miroslav Suchý 2018-02-02 22:59:59 UTC
First this can work only if you use --bootstrap-chroot

Initial work done in:
* 3229566 (HEAD -> devel) do not run ccache in bootstrap chroot [RHBZ#1540813]
* 38b3627 use DNF on EL7 when bootstrap is used [RHBZ#1540813]

but still in the bootstrap chroot is not installed dnf-plugins-core. Notes for myself: it seem that the code use yum_install_command instead of dnf_install_command.

Comment 2 Orion Poplawski 2018-02-06 18:43:20 UTC
Yeah, I'm switching to bootstrap - but as you noted I'm also having to install dnf locally to get it to work - seems like it should install the bootstrap with yum and then dnf for the rest.  Thanks.

Comment 3 Miroslav Suchý 2018-02-09 14:56:53 UTC
Commits:

* bfb431a (HEAD -> devel) "setup_cmd" of bootstrap container is the actuall $pm_install_command from the main container [RHBZ#1540813]
* fe62523 do not produce warning when we are using different PM for bootstrap container

It should work now. I tested both building rawhide on EL7 and building EL7 on F27.

You can try it from the nightly repo in Copr. I will welcome any feedback and testing as this gave me a hard time.

If there will be no negative feedback I will cut the release next week.

Comment 4 Fedora Update System 2018-02-12 20:24:11 UTC
mock-1.4.9-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-c17daa06f6

Comment 5 Fedora Update System 2018-02-12 20:24:30 UTC
mock-1.4.9-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2018-fdd5d935df

Comment 6 Fedora Update System 2018-02-12 20:24:47 UTC
mock-1.4.9-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-5d1f3c3e39

Comment 7 Fedora Update System 2018-02-13 16:21:42 UTC
mock-1.4.9-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-fdd5d935df

Comment 8 Fedora Update System 2018-02-13 16:41:21 UTC
mock-1.4.9-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-c17daa06f6

Comment 9 Fedora Update System 2018-02-13 18:17:29 UTC
mock-1.4.9-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-5d1f3c3e39

Comment 10 Fedora Update System 2018-02-20 17:14:56 UTC
mock-1.4.9-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2018-02-27 16:53:20 UTC
mock-1.4.9-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2018-02-27 20:39:50 UTC
mock-1.4.9-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.


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