Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

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

Offen
#516 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
c
Bereich
cli

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
C
Sterne
1.2k
Forks
155
Ø Merge
1 Std. 39 Min.
Gemergte PRs (30 T.)
1

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus void-linux/xbps

Alle Issues in void-linux/xbps

Ähnliche Issues

Weitere Issues zu C

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.