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

Aberta
#516 1 comentário 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
35/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
c
Domínio
cli

Direção de pesquisa

Start with the referenced declarations in include/xbps.h.in and provider-selection logic in lib/repo.c. Trace how virtual providers and configured virtualpkg entries are selected, then define the interactive prompt behavior while preserving the configured default and the existing non-interactive --yes path.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
C
Estrelas
1.2k
Forks
156
Merge médio
1h 39min
PRs com merge (30d)
1

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de void-linux/xbps

Todas as issues de void-linux/xbps

Issues semelhantes

Mais issues de C

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.