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

[Feature request] xbps-install interactive choice for selecting virtual provider #516

Open
JamiKettunen opened this issue Oct 20, 2022 · 1 comment

Comments

@JamiKettunen
Copy link

JamiKettunen commented Oct 20, 2022

Some packages depend on virtual?java-runtime for example which is provided by openjdk17-jre and openjdk11-jre at least. Currently (xbps-0.59.1_7) though the default provider to install appears to be completely arbitrary and depends on the sorting of the package index on the mirror.

Obviously if the user has configured virtualpkg=... in /etc/xbps.d or whatever that should be prioritized (or given as the default choice when just pressing enter?) when installing something and installed always during non-interactive cases with --yes (just like it works presently).

Related code:

Here's how an "interactive virtual provider choice" looks like on pacman (Arch Linux) for example:

# pacman -S java-runtime
:: There are 4 providers available for java-runtime:
:: Repository extra
   1) jre-openjdk  2) jre11-openjdk  3) jre17-openjdk  4) jre8-openjdk

Enter a number (default=1):

@classabbyamp @paper42 would know a bit more about this as we discussed this a few months back in August on #xbps.

@JamiKettunen
Copy link
Author

If you want to select another provider during install-time without setting a preference via xbps.d(5) you have to name the provider package also in the same install command or later remove the one you didn't want after replacing it.

@JamiKettunen JamiKettunen changed the title xbps-install: provide interactive choice for selecting virtual provider xbps-install: add interactive choice for selecting virtual provider Oct 20, 2022
@JamiKettunen JamiKettunen changed the title xbps-install: add interactive choice for selecting virtual provider [Feature request] xbps-install interactive choice for selecting virtual provider Oct 20, 2022
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

1 participant