Description of problem: Currently there are issues with building EPEL8 packages caused by dnf / modularity bugs (see bug 1758459). This kind of issues could be easily workarounded by dnf --nobest but there currently no easy way how to customize dnf configuration in buildroot. Copr should provide a way to specify dnf options or dnf.conf customization (at least the one which can be easily passed to mock buildroot config). Version-Release number of selected component (if applicable): 2019-10-04
Do you have work-around for plain mock?
Yes, an easy one: # cat >>/etc/mock/rhel-8-x86_64.cfg <<EOF config_opts['yum.conf'] += """ [main] best=False """ EOF
Ah, this. I'd expect per-build knob?
IMHO per-chroot is enough.
I'm also hitting issues with centos-stream missing best=0 parameter. Any plan to implement this feature in copr short-term?
> Any plan to implement this feature in copr short-term? No. If it causes pain for you, then please increase a push on Modularity and DNF team. Fedora devel mailing list is likely the best place.
(In reply to Miroslav Suchý from comment #6) > > Any plan to implement this feature in copr short-term? > > No. If it causes pain for you, then please increase a push on Modularity and > DNF team. Fedora devel mailing list is likely the best place. I see epel8 build root has best=false because of https://bugzilla.redhat.com/show_bug.cgi?id=1756681. Could the same approach be applied in centos-stream config?
(In reply to Alfredo Moralejo from comment #7) > I see epel8 build root has best=false because of > https://bugzilla.redhat.com/show_bug.cgi?id=1756681. Could the same approach > be applied in centos-stream config? Thanks, valid point: https://infrastructure.fedoraproject.org/cgit/ansible.git/commit/?id=6fa5f05650050a7b3e4eebf68edea24255d37f4c There's no reason to work-around epel-8 chroots, and keep centos-stream in non-working state. Though I agree with Mirek that this is to be fixed in modularity.
(In reply to Pavel Raiskup from comment #8) > (In reply to Alfredo Moralejo from comment #7) > > I see epel8 build root has best=false because of > > https://bugzilla.redhat.com/show_bug.cgi?id=1756681. Could the same approach > > be applied in centos-stream config? > > Thanks, valid point: > https://infrastructure.fedoraproject.org/cgit/ansible.git/commit/ > ?id=6fa5f05650050a7b3e4eebf68edea24255d37f4c > > There's no reason to work-around epel-8 chroots, and keep centos-stream > in non-working state. Though I agree with Mirek that this is to be fixed > in modularity. Apparently that commit broke builds on centos-streams: https://copr-be.cloud.fedoraproject.org/results/@openstack-sig/centos8-deps/centos-stream-x86_64/01120405-erlang-eflame/builder-live.log.gz comparing with previous configs it seems the include for the template should be full path: include('/etc/mock/templates/centos-stream.tpl') From a previous successful run: https://copr-be.cloud.fedoraproject.org/results/%40openstack-sig/centos8-deps/centos-stream-x86_64/01120132-erlang-cuttlefish/configs/centos-stream-x86_64.cfg
Meh, sorry. Fixed here: https://infrastructure.fedoraproject.org/cgit/ansible.git/commit/?id=b9543141c93f2954bd7b13113cbaa6d885368bb5
(In reply to Alfredo Moralejo from comment #9) > (In reply to Pavel Raiskup from comment #8) > > (In reply to Alfredo Moralejo from comment #7) > > > I see epel8 build root has best=false because of > > > https://bugzilla.redhat.com/show_bug.cgi?id=1756681. Could the same approach > > > be applied in centos-stream config? > > > > Thanks, valid point: > > https://infrastructure.fedoraproject.org/cgit/ansible.git/commit/ > > ?id=6fa5f05650050a7b3e4eebf68edea24255d37f4c > > > > There's no reason to work-around epel-8 chroots, and keep centos-stream > > in non-working state. Though I agree with Mirek that this is to be fixed > > in modularity. > Thanks for fixing it so fast! And yes, i also think there is a problem with modularity that should be fixed there. IIUC there is ongoing discussions about existing issues with modularity but i guess it will take some time to get it fixed.
There's an alternative proposal for: ``` # cat >>/etc/mock/rhel-8-x86_64.cfg <<EOF config_opts['yum.conf'] += """ [main] best=False """ EOF ``` https://pagure.io/copr/copr/issue/1336 Feel free to reopen if you think the RFE isn't matching your usecase.
FTR, today I disabled the best=0 work-around. The default mock-core-configs without this hack doesn't seem to mistakenly install modular packages anymore into EL 8 chroots. Let me know if this still breaks something. https://pagure.io/fedora-infra/ansible/c/b9d52f1b6517901e0694aec67d6bf44960e2dff5?branch=main