Skip to content

Set arch to detected x86_64 microarchitecture if available#2591

Open
lleyton wants to merge 2 commits intorpm-software-management:mainfrom
FyraLabs:main
Open

Set arch to detected x86_64 microarchitecture if available#2591
lleyton wants to merge 2 commits intorpm-software-management:mainfrom
FyraLabs:main

Conversation

@lleyton
Copy link
Contributor

@lleyton lleyton commented Feb 2, 2026

The code for detecting the current microarchitecture is taken from RPM. See the associated comment in the diff. I have tested it, and it seems to allow installation of packages built against a target x86_64_v*, when the system supports it. Additionally, it seems to prioritize packages that have the same microarch. Everything else seems to work, but please let me know if I'm missing anything, as I'm not too familiar with the internals of dnf5.

Closes #1468.

@lleyton lleyton requested a review from a team as a code owner February 2, 2026 03:19
@lleyton lleyton requested review from pkratoch and removed request for a team February 2, 2026 03:19
@GildedRoach
Copy link

Commenting as the x86_64_v3 tester for this, everything worked as expected running this build and I could install and run x86_64_v3 packages and below, but not any above what my CPU could handle.

@lleyton
Copy link
Contributor Author

lleyton commented Feb 2, 2026

Noticed the copr and manifest plugins were failing with my change. I took a look and it seems like they're not using the basearch, even though it seems like that would be the correct behavior when looking at the dnf4 source:

I updated the plugins to use the basearch. I'm not sure why specifically the 43 test is failing, as I'm not able to reproduce the issue locally. Again, I'm not too familiar with the internals of dnf, so please let me know if I'm missing anything.

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

Successfully merging this pull request may close these issues.

Support subarchitectures (e.g. 86_64_v3)

2 participants