[Feature request] xbps-install interactive choice for selecting virtual provider
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
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:
- https://github.com/void-linux/xbps/blob/0.59.1/include/xbps.h.in#L1698-L1708
- https://github.com/void-linux/xbps/blob/0.59.1/lib/repo.c#L389-L421
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
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của void-linux/xbps
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
void-linux/xbps#475 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
void-linux/xbps#701 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
void-linux/xbps#700 ·
-
xbps-query -RX repository overridesCó thể đã có người làm @outofsyncrs đã nhận 35 ngày trước. Đang mởbug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
void-linux/xbps#696 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
void-linux/xbps#695 · 7 bình luận ·
Tất cả issue của void-linux/xbps
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
compiler-explorer/compiler-explorer#9272 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
semantic-reasoning/wirelog#2163 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
Xinyuan-LilyGO/T-Display-S3#352 · 3 bình luận ·
-
documentation severity/minor
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày