Description of problem: There is a missing default.cfg after installing on rawhide Version-Release number of selected component (if applicable): sh$ rpm -q mock mock-1.4.2-1.fc27.noarch How reproducible: Deterministic Steps to Reproduce: 1. //install mock on minimal rawhide docker run --rm -ti fedora:rawhide bash 2. dnf install -y mock 3. ls -l /etc/mock/default.cfg Actual results: sh$ ls -l /etc/mock/default.cfg ls: cannot access '/etc/mock/default.cfg': No such file or directory Expected results: sh$ ls -l /etc/mock/default.cfg lrwxrwxrwx. 1 root root 20 Apr 29 09:57 /etc/mock/default.cfg -> fedora-rawhide-x86_64.cfg Additional info: There is an error in rpm scriptlet Installing : mock-1.4.2-1.fc27.noarch 40/50 /var/tmp/rpm-tmp.wLYr98: line 15: python: command not found Warning: file /etc/mock/fedora-rawhide-.cfg does not exists. unable to update /etc/mock/default.cfg
Moving to f26 because I can easily reproduce with f26 docker image registry.fedoraproject.org/fedora:26
Fixed in commit 8cacc2355cbf3dc36a72d48f8f0c9f7d6936bd37 Previously we called python in %post and this is no longer true. So for Fedoras we now call python3 script.
mock-1.4.2-1.fc25 does not depend on yum or any other python2 package. But it still use python(python2) in scriptlet. BTW mock in f24 still depends on yum and therefore there is not such problem.
Ops, I forgot to 'git push' it. Correct commit is 1874608
> BTW mock in f24 still depends on yum and therefore there is not such problem. In upstream it is: Suggests: yum So you can have mock without yum.
(In reply to Miroslav Suchý from comment #5) > > BTW mock in f24 still depends on yum and therefore there is not such problem. > > In upstream it is: > Suggests: yum > So you can have mock without yum. "Suggests: yum" is not proper solution in rawhide Because there will be still missing default cfg in case of "dnf --setopt=install_weak_deps=false install mock" And IIRC microdnf should have disabled weak deps by default. mock depends on python3 and therefore shoudl use python3 in scriptlets sh$ rpm -q --requires mock | grep python3 /usr/bin/python3 python3 python3-distro python3-requests python3-six >= 1.4.0 rpm-python3 sh$ rpm -q --scripts mock | grep python mock_arch=$(python -c "import rpmUtils.arch; baseArch = rpmUtils.arch.getBaseArch(); print baseArch")
This is the same issue as bug #1461839 it's against different releases, since I'm not sure I won't close it as duplicate.
> "Suggests: yum" is not proper solution in rawhide That was just my reply that mock still depend on yum. It does not depend anymore. See the commit that fixes this BZ https://github.com/rpm-software-management/mock/commit/1874608000f1f3f695e651b9447e450cf8c81e75 Mock is now using python3 and hawkey module to detect arch.
(In reply to Miroslav Suchý from comment #8) > > "Suggests: yum" is not proper solution in rawhide > That was just my reply that mock still depend on yum. It does not depend > anymore. > I see > See the commit that fixes this BZ > https://github.com/rpm-software-management/mock/commit/ > 1874608000f1f3f695e651b9447e450cf8c81e75 > Mock is now using python3 and hawkey module to detect arch. OK, then please change state of BZ so you won't forget to close BZ with update in koji. I am use POST for fixed issues in upstream but missing fix in downstream. But you might have different workflow.
*** Bug 1461839 has been marked as a duplicate of this bug. ***
*** Bug 1469699 has been marked as a duplicate of this bug. ***
mock-1.4.3-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-53f9c9cb51
mock-1.4.3-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-204acb9aa4
mock-1.4.3-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-4ee5b66a4c
mock-1.4.3-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-2017-53f9c9cb51
mock-1.4.3-1.fc25 has been pushed to the Fedora 25 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-2017-4ee5b66a4c
mock-1.4.3-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-2017-204acb9aa4
mock-1.4.3-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.4.3-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.
mock-1.4.3-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.