Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional build dependencies seem to be resolved on wrong Fedora version #295

Open
hroncok opened this issue Sep 17, 2019 · 1 comment

Comments

@hroncok
Copy link

hroncok commented Sep 17, 2019

See pytest on f32. It says:

No package found for: (python3-importlib-metadata if python3 < 3.8)

While python3 on Fedora 32 is 3.8.

I can probably workaround this by adding an %if around the BR and rebuild the package, but I wonder how does the dependency resolution actually work. Is it resolved on some other Fedora version?

cc @encukou

@mizdebsk
Copy link
Member

I can reproduce this issue locally. Reproducer: https://gist.github.com/mizdebsk/2ff126556cff0fa42d8111e2094c2033

Koschei resolves dependencies using libdnf. It seems that libdnf is checking python3 version on the system it is running, not in configured sack. This will require further investigation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants