Skip to content
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

Search for mismatched package versions #19

Open
hololeap opened this issue Jan 8, 2023 · 0 comments
Open

Search for mismatched package versions #19

hololeap opened this issue Jan 8, 2023 · 0 comments
Labels
Feature Non-critical feature request

Comments

@hololeap
Copy link
Member

hololeap commented Jan 8, 2023

This came up because of gentoo-haskell/gentoo-haskell#1381. When process was upgraded, there may have been packages left on the system that are still built using the old process. This was because the package was never added to ebuilds that depend on it and therefore they were missing dev-haskell/process:= in RDEPEND (and therefore never rebuilt).

While this scenario should be rare, haskell-updater could be modified to detect situations like this. The basic process would look like:

  1. Scan installed haskell packages and collect the package/version of each of their dependencies. This could be through scanning package.conf.d or using a higher-level interface such as ghc-pkg.
  2. When all of the dependencies are collected, look for any that are listed with more than one version, then determine which one is preferred (highest version number). Flag the other versions as non-preferred.
  3. Find any packages that are still depending on the non-preferred version and then pass them off for a rebuild.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Non-critical feature request
Projects
None yet
Development

No branches or pull requests

1 participant