You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ mock -r fedora-rawhide-x86_64 ../SRPMS/reproducer_if-0.0-1.fc30.src.rpm
...
No matching package to install: '(python3dist(importlib-metadata) if python3 < 3.8)'
Package python3-3.8.0~b4-1.fc32.x86_64 is already installed.
Not all dependencies satisfied
Error: Some packages could not be found.
Any additional notes
The conditional works good on Fedora 32. However mock running on Fedora 30 seems to choke on it. The package providing python3dist(importlib-metadata) was retired on Fedora 32, because it is not needed with Python 3.8.
This also affects dynamic buildrequires. When a rawhide build prints (python3dist(importlib-metadata) if python3 < 3.8) in %generate_buildrequires, Fedora 30 mock exists with No matching package to install: '(python3dist(importlib-metadata) if python3 < 3.8)'
Short description of the problem
Conditional BRs (with
if
in them) seem to be evaluated on host.Output of
rpm -q mock
mock-1.4.18-1.fc30.noarch
Steps to reproduce issue
Run on Fedora 29, 30 or 31. Get this spec:
Create a SRPM:
See the dependencies:
Attempt a rawhide mockbuild:
Any additional notes
The conditional works good on Fedora 32. However mock running on Fedora 30 seems to choke on it. The package providing
python3dist(importlib-metadata)
was retired on Fedora 32, because it is not needed with Python 3.8.cc @encukou
See also fedora-infra/koschei#295
The text was updated successfully, but these errors were encountered: