Description of problem: Package ocrmypdf fails to build from source in Fedora Rawhide. Version-Release number of selected component (if applicable): 12.6.0-1.fc36 Steps to Reproduce: koji build --scratch f36 ocrmypdf-12.6.0-1.fc36.src.rpm Additional info: This package is tracked by Koschei. See: https://koschei.fedoraproject.org/package/ocrmypdf ---- This seems to be because > %pyproject_buildrequires -r -x docs -x test does not actually generate the BR’s defined for these extras in setup.cfg. I haven’t figured out exactly what is going wrong here. ---- There is also a bundling/policy concern that was recently identified with Sphinx HTML documentation. See https://bugzilla.redhat.com/show_bug.cgi?id=2006555 and https://lists.fedoraproject.org/archives/list/packaging@lists.fedoraproject.org/thread/LLUAURXZVADATHK65HBPPBHKF4EM4UC3/ for discussion, and let me know if you would like a PR to build the PDF documentation instead, which should be less problematic.
It seems that the dependency generator is broken, so I'm not sure I can do much about fixing this.
Miro, would you mind taking a look at this when you have a chance? It seems like something interesting is going on with %pyproject_buildrequires in this project. It’s a slightly odd arrangement upstream—requires in pyproject.toml and also install_requires in setup.cfg, setup_requires in setup.py and also in setup.cfg, and extras_require in setup.cfg only—but it seems like generating the extras ought to work.
It seems that when python3-cffi is installed, the buildrequires generator does not consider cffi installed. It instructs dnf to install python3dist(cffi), but that is already installed and hence the %generate_buildrequires section ends, and build proceeds to %build. Apparently, the check that fails here is more or less: >>> from packaging.requirements import Requirement >>> req = Requirement('cffi') >>> '1.15.0' in req.specifier True >>> '1.15.0rc2' in req.specifier False So, when pre-releases are installed, the generator does not see them as installed. Maybe a bug in python-packaging, or a well-documented behavior of it that we need to workaround. I will open a bugzilla for pyproject-rpm-macros later.
Proposed fix: https://src.fedoraproject.org/rpms/pyproject-rpm-macros/pull-request/205
Thanks for looking at it, and for the quick fix!
FEDORA-2021-dd552b99bd has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2021-dd552b99bd
FEDORA-2021-dd552b99bd has been pushed to the Fedora 36 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2021-c150eb582a has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-c150eb582a
FEDORA-2021-49a9344544 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-49a9344544
FEDORA-2021-49a9344544 has been pushed to the Fedora 35 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-49a9344544` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-49a9344544 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2021-7ddfcf642a has been pushed to the Fedora 33 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-7ddfcf642a` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-7ddfcf642a See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2021-c150eb582a has been pushed to the Fedora 34 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-c150eb582a` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-c150eb582a See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2021-22b68be2d5 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-22b68be2d5
FEDORA-2021-d085ce09ef has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-d085ce09ef
FEDORA-2021-49a9344544 has been pushed to the Fedora 35 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2021-22b68be2d5 has been pushed to the Fedora 34 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-22b68be2d5` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-22b68be2d5 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2021-d085ce09ef has been pushed to the Fedora 33 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-d085ce09ef` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-d085ce09ef See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2021-d085ce09ef has been pushed to the Fedora 33 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2021-22b68be2d5 has been pushed to the Fedora 34 stable repository. If problem still persists, please make note of it in this bug report.