Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#516 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
c
Lĩnh vực
cli

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
C
Star
1.2k
Fork
152
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của void-linux/xbps

Tất cả issue của void-linux/xbps

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.