-
Notifications
You must be signed in to change notification settings - Fork 6
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
Metapac always want to reinstall the same 2 packages #51
Comments
What does |
Thanks for your quick reply @ripytide! They are explicitly installed:
But from what I understood, they are now just aliases of the mesa package: https://archlinux.org/packages/extra/x86_64/mesa/ I am unsure how I've compiled the list for Metapac; maybe they were standalone packages in the past. Anyway, I guess this is a case to handle. |
Ah ok, so |
@ripytide Yes, it would be handy; I would also add to the message the "real" package that should be used instead. |
Unfortunately, it seems there is no proper way to list packages providing a virtual package as far as I can tell: https://www.reddit.com/r/archlinux/comments/uxgwk5/how_to_list_every_package_that_provides_virtual/ so we may just have to result to a warning plus a suggestion to run |
I am going to test it again, but doing **pacman -Su ** does not solve the issue, metacap will try to install it again, I guess because it doesn't understand virtual packages. |
The current situation is:
I don't know if those packages are I guess it is managed by Maybe there is a way to query the |
I can't find them as packages on https://archlinux.org/packages and I don't think there is a built-in way to query the database for replacing packages, other than iterating through every package in the database and doing Regardless, I think a user having virtual packages in their group files is a fundamental ambiguity and so |
I've opened a PR (#52) to check that packages are in fact real packages and provide a hefty warning if they aren't. Here is the warning I've put together:
What do you think? |
We can also add this command to the warning: ❯ sudo pacman -Ss libva-mesa-driver
extra/mesa 1:24.2.7-1 [installed]
Open-source OpenGL drivers Which can help to know which packages now provide the package. I don't know the internal of metapac, nor if it's implemented on the libalpm library. This function can be helpful, I think that it's the very same used by pacman to do the trick: https://github.com/archlinux/alpm.rs/blob/master/alpm/src/package.rs#L237 |
@paolomainardi I'm also on arch. Afaik recently the packages were merged. |
Thanks @ripytide |
When running
metapac s
it always tries to reinstall the same two packages:They, of course are already part of the group file:
Is this is an issue from my side or it's a bug?
Running the latest version:
The text was updated successfully, but these errors were encountered: