On Wednesday, December 22, 2021 9:36:01 AM CET Pavel Raiskup wrote: > On Tuesday, December 21, 2021 5:49:34 PM CET Maxwell G wrote: > > On Tuesday, December 21, 2021 8:22:55 AM CST Miro Hrončok wrote: > > > On 19. 12. 21 22:39, Pavel Raiskup wrote: > > > > On Sunday, December 19, 2021 10:22:57 PM CET Pavel Raiskup wrote: > > > >> So it seems that fedpkg doesn't (yet) know there's ~/.config/mock* at > > > >> all. > > > > > > > > Proposed fix: https://pagure.io/rpkg/pull-request/595 > > > > > > It seems that this would only fix the issue if the symbolic link has > > > already > > > been created. But before that, `fedpkg --release epel8 > > > mockbuild` would still > > > fail, wouldn't it? Can we fix that as well, even if it's fixed in some > > > documentation only? > > > > Yes, I think `fedpkg --release epel8 mockbuild` should print the same error > > message mock does when no default has been set, instead of defaulting to a > > non-functional koji config. > > Fedpkg _automatically_ downloads the relevant Koji config ('koji > mock-config' variant, which is broken for normal users) when mock doesn't > ship the appropriate config file (it doesn't by default). > > @onosek, would it be too bad if we made the Koji config download feature > opt-in in fedpkg? Something like 'fedpkg mockbuild --use-koji-mock-config'? > - when used, all local mock configuration is ignored > - when not used, 'mock -r epel-8-x86_64' even if the config doesn't exist, > which would automatically trigger the new Mock error message
I'm trying to propose this: https://pagure.io/rpkg/pull-request/597 $ fedpkg mockbuild Not downloading already downloaded pspg-5.5.2.tar.gz setting SOURCE_DATE_EPOCH=1639353600 Wrote: /tmp/pspg/pspg-5.5.2-1.el8.src.rpm ERROR: Could not find required config file: /etc/mock/epel-8-x86_64.cfg ERROR: There are those alternatives: ERROR: ERROR: [1] alma+epel-8-x86_64 ERROR: Use instead: mock -r alma+epel-8-x86_64 --resultdir /tmp/pspg/results_pspg/5.5.2/1.el8 --rebuild /tmp/pspg/pspg-5.5.2-1.el8.src.rpm ERROR: Builds against AlmaLinux 8 repositories, together with the official EPEL repositories. ERROR: Project page: https://almalinux.org/ ERROR: Enable permanently by: ERROR: $ ln -s /etc/mock/alma+epel-8-x86_64.cfg /home/praiskup/.config/mock/epel-8-x86_64.cfg ERROR: ERROR: [2] centos+epel-8-x86_64 ERROR: Use instead: mock -r centos+epel-8-x86_64 --resultdir /tmp/pspg/results_pspg/5.5.2/1.el8 --rebuild /tmp/pspg/pspg-5.5.2-1.el8.src.rpm ERROR: Builds against CentOS Linux 8 repositories, together with the official EPEL repositories. ERROR: This will reach end-of-life in January 2021. ERROR: Enable permanently by: ERROR: $ ln -s /etc/mock/centos+epel-8-x86_64.cfg /home/praiskup/.config/mock/epel-8-x86_64.cfg ERROR: ERROR: [3] rhel+epel-8-x86_64 ERROR: Use instead: mock -r rhel+epel-8-x86_64 --resultdir /tmp/pspg/results_pspg/5.5.2/1.el8 --rebuild /tmp/pspg/pspg-5.5.2-1.el8.src.rpm ERROR: Builds against Red Hat Enterprise Linux 8 repositories, together with the official EPEL repositories. ERROR: This mimics what is done in the official EPEL build system, but you need a Red Hat subscription: ERROR: https://rpm-software-management.github.io/mock/Feature-rhelchroots ERROR: Enable permanently by: ERROR: $ ln -s /etc/mock/rhel+epel-8-x86_64.cfg /home/praiskup/.config/mock/epel-8-x86_64.cfg ERROR: ERROR: [4] rocky+epel-8-x86_64 ERROR: Use instead: mock -r rocky+epel-8-x86_64 --resultdir /tmp/pspg/results_pspg/5.5.2/1.el8 --rebuild /tmp/pspg/pspg-5.5.2-1.el8.src.rpm ERROR: Builds against Rocky Linux 8 repositories, together with the official EPEL repositories. ERROR: Project page: https://rockylinux.org/ ERROR: Enable permanently by: ERROR: $ ln -s /etc/mock/rocky+epel-8-x86_64.cfg /home/praiskup/.config/mock/epel-8-x86_64.cfg Could not execute mockbuild: Failed to execute command. Pavel _______________________________________________ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure