Skip to content

Allow detection of installed packages through their virtual names on ALT Linux, RHEL-based and SUSE-based distributions#6431

Open
kit-ty-kate wants to merge 2 commits intoocaml:masterfrom
kit-ty-kate:virtual-installed-rhel-suse
Open

Allow detection of installed packages through their virtual names on ALT Linux, RHEL-based and SUSE-based distributions#6431
kit-ty-kate wants to merge 2 commits intoocaml:masterfrom
kit-ty-kate:virtual-installed-rhel-suse

Conversation

@kit-ty-kate
Copy link
Copy Markdown
Member

@kit-ty-kate kit-ty-kate commented Mar 24, 2025

Fixes #6426
Queued on

Per discussion in the ticket, getting the list of available packages on SUSE-based distributions is too costly.
Instead, the solution is one similar to #4791 which was chosen for RHEL-based distributions: simply disable the detection of available packages.

However, while with the original issue the user will be able to install conf-python-3 on openSUSE Tumbleweed, opam will continue to detect that the package isn't installed and continuously bug the user about the missing python3 package which is in fact already installed.

To fix that we use the %{PROVIDES} tag (documented in http://ftp.rpm.org/max-rpm/ch-queryformat-tags.html):

  • Pros: adds support for virtual packages on RHEL-based distributions as well
  • Cons: increases the time it takes to get the availability information by 18% (locally on Fedora: before takes 1.5s, now takes 1.77 seconds)

Related to #4759

@kit-ty-kate kit-ty-kate changed the title Virtual installed rhel suse Allow detection of installed packages through their virtual names on ALT Linux, RHEL-based and SUSE-based distributions Mar 24, 2025
@kit-ty-kate kit-ty-kate marked this pull request as draft March 25, 2025 12:40
@rjbou rjbou self-requested a review March 25, 2025 12:40
@kit-ty-kate kit-ty-kate added this to the 2.4.0~alpha1 milestone Apr 5, 2025
@kit-ty-kate kit-ty-kate added the PR: QUEUED Pending pull request, waiting for other work to be merged or closed label Apr 7, 2025
@kit-ty-kate kit-ty-kate marked this pull request as ready for review April 7, 2025 16:42
@kit-ty-kate kit-ty-kate removed the PR: QUEUED Pending pull request, waiting for other work to be merged or closed label Apr 9, 2025
…names on ALT Linux, RHEL-based and SUSE-based distributions
@kit-ty-kate kit-ty-kate force-pushed the virtual-installed-rhel-suse branch from 2532248 to 442e33c Compare April 9, 2025 20:07
@kit-ty-kate kit-ty-kate modified the milestones: 2.4.0~alpha2, 2.4.0~alpha3 May 5, 2025
@rjbou rjbou added the PR: QUEUED Pending pull request, waiting for other work to be merged or closed label Jul 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AREA: DEPEXTS KIND: BUG PR: QUEUED Pending pull request, waiting for other work to be merged or closed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Virtual packages are not supported on Suse

2 participants