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

Fix cabal pkg-config performance issue #2178

Merged
merged 1 commit into from
Apr 3, 2024
Merged

Conversation

hamishmack
Copy link
Collaborator

The dummy version of pkg-config we provide to cabal-install-solver so that it can make an appropriate plan includes an extra blank line at the end of it's output.

In more recent versions of cabal-install-solver the following change has been made:

haskell/cabal@0b34b4e

This change now filters the null values from the list of package names. Then when the versions are looked up the output is not the expected length (because there is also a blank line at the end of the version list).

This change updates the dummy pkg-config script so that it does not include the extra blank lines at the end of the output.

The dummy version of `pkg-config` we provide to cabal-install-solver so that it can make an appropriate plan includes an extra blank line at the end of it's output.

In more recent versions of cabal-install-solver the following change has been made:

haskell/cabal@0b34b4e

This change now filters the `null` value from the list of package names.  Then when the versions are looked up the output is not the expected length (because there is also a blank line at the end of the version list).

This change updates the dummy pkg-config script so that it does not include the extra blank lines at the end of the output.
@hamishmack hamishmack requested a review from angerman April 3, 2024 08:23
@hamishmack hamishmack self-assigned this Apr 3, 2024
@hamishmack hamishmack merged commit 433a6c9 into master Apr 3, 2024
30 of 31 checks passed
pranaysashank pushed a commit to kronor-io/haskell.nix that referenced this pull request Jan 18, 2025
The dummy version of `pkg-config` we provide to cabal-install-solver so that it can make an appropriate plan includes an extra blank line at the end of it's output.

In more recent versions of cabal-install-solver the following change has been made:

haskell/cabal@0b34b4e

This change now filters the `null` value from the list of package names.  Then when the versions are looked up the output is not the expected length (because there is also a blank line at the end of the version list).

This change updates the dummy pkg-config script so that it does not include the extra blank lines at the end of the output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant