Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kit-ty-kate
Copy link
Member

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

Fixes #6426
Queued on #6464

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Virtual packages are not supported on Suse
1 participant