stack build plan construction fails due to 4 unspecified package versions #666

Closed
opened 3 weeks ago by drjaska · 1 comments

Latest source code has failed to automatically compile for a few months for me. Following stack suggestions for +4 lines allows for a successful compilation but manual work is tedious and breaks simple scripts without elaborate error handling.

Distro: Debian Testing

Git:
branch: master
commit id: 0efa439

$ stack install --flag xmobar:all_extensions
Trouble loading CompilerPaths cache: UnliftIO.Exception.throwString called with:

Global dump did not parse correctly
Called from:
  throwString (src/Stack/Storage/User.hs:295:20 in stack-2.7.5-B1jlbuKpw2BAwHuZjEwwoP:Stack.Storage.User)


Error: While constructing the build plan, the following exceptions were encountered:

In the dependencies for xmobar-0.46(+all_extensions):
    cairo must match >=0.13, but the stack configuration has no specified version  (latest matching
          version is 0.13.8.2)
    pango must match >=0.13, but the stack configuration has no specified version  (latest matching
          version is 0.13.8.2)
needed since xmobar is a build target.

Some different approaches to resolving this:

  * Recommended action: try adding the following to your extra-deps
    in /home/drjaska/programs/xmobar/stack.yaml:

- cairo-0.13.8.2@sha256:ef1709c3c4d2c6d68a9a51d9f220dccc0745f6468d2d0868c15a7ecdf8f325a1,4078
- pango-0.13.8.2@sha256:d4057ebddade4cde3e25d7755b5e030e7a7e56fe7365afd37916a7bba46d3fd9,3917

Plan construction failed.
$ stack install --flag xmobar:all_extensions

Error: While constructing the build plan, the following exceptions were encountered:

In the dependencies for cairo-0.13.8.2:
    gtk2hs-buildtools must match >=0.13.2.0 && <0.14, but the stack configuration has no specified
                      version  (latest matching version is 0.13.8.3)
needed due to xmobar-0.46 -> cairo-0.13.8.2

In the dependencies for pango-0.13.8.2:
    glib must match >=0.13.0.0 && <0.14, but the stack configuration has no specified version  (latest
         matching version is 0.13.8.2)
    gtk2hs-buildtools must match >=0.13.2.0 && <0.14, but the stack configuration has no specified
                      version  (latest matching version is 0.13.8.3)
needed due to xmobar-0.46 -> pango-0.13.8.2

Some different approaches to resolving this:

  * Recommended action: try adding the following to your extra-deps
    in /home/drjaska/programs/xmobar/stack.yaml:

- glib-0.13.8.2@sha256:f44b829e741b3c3244d523f60b058701dfc067ff64c2ba61d43be4cccfc2663d,3156
- gtk2hs-buildtools-0.13.8.3@sha256:207229eee7abff12aba2740b32131522086275e46f2e72a0f5bbc3cb781e9d4d,5304

Plan construction failed.

git diff after following stack's suggestions without specifying hashes:

$ git diff
diff --git a/stack.yaml b/stack.yaml
index 8021bad..0b8ecb4 100644
--- a/stack.yaml
+++ b/stack.yaml
@@ -12,6 +12,10 @@ flags:
 extra-deps:
  - netlink-1.1.1.0
  - libmpd-0.9.2.0
+ - cairo-0.13.8.2
+ - pango-0.13.8.2
+ - glib-0.13.8.2
+ - gtk2hs-buildtools-0.13.8.3
 nix:
     packages:
       - alsaLib
Latest source code has failed to automatically compile for a few months for me. Following stack suggestions for +4 lines allows for a successful compilation but manual work is tedious and breaks simple scripts without elaborate error handling. Distro: Debian Testing Git: branch: master commit id: 0efa439 ``` $ stack install --flag xmobar:all_extensions Trouble loading CompilerPaths cache: UnliftIO.Exception.throwString called with: Global dump did not parse correctly Called from: throwString (src/Stack/Storage/User.hs:295:20 in stack-2.7.5-B1jlbuKpw2BAwHuZjEwwoP:Stack.Storage.User) Error: While constructing the build plan, the following exceptions were encountered: In the dependencies for xmobar-0.46(+all_extensions): cairo must match >=0.13, but the stack configuration has no specified version (latest matching version is 0.13.8.2) pango must match >=0.13, but the stack configuration has no specified version (latest matching version is 0.13.8.2) needed since xmobar is a build target. Some different approaches to resolving this: * Recommended action: try adding the following to your extra-deps in /home/drjaska/programs/xmobar/stack.yaml: - cairo-0.13.8.2@sha256:ef1709c3c4d2c6d68a9a51d9f220dccc0745f6468d2d0868c15a7ecdf8f325a1,4078 - pango-0.13.8.2@sha256:d4057ebddade4cde3e25d7755b5e030e7a7e56fe7365afd37916a7bba46d3fd9,3917 Plan construction failed. $ stack install --flag xmobar:all_extensions Error: While constructing the build plan, the following exceptions were encountered: In the dependencies for cairo-0.13.8.2: gtk2hs-buildtools must match >=0.13.2.0 && <0.14, but the stack configuration has no specified version (latest matching version is 0.13.8.3) needed due to xmobar-0.46 -> cairo-0.13.8.2 In the dependencies for pango-0.13.8.2: glib must match >=0.13.0.0 && <0.14, but the stack configuration has no specified version (latest matching version is 0.13.8.2) gtk2hs-buildtools must match >=0.13.2.0 && <0.14, but the stack configuration has no specified version (latest matching version is 0.13.8.3) needed due to xmobar-0.46 -> pango-0.13.8.2 Some different approaches to resolving this: * Recommended action: try adding the following to your extra-deps in /home/drjaska/programs/xmobar/stack.yaml: - glib-0.13.8.2@sha256:f44b829e741b3c3244d523f60b058701dfc067ff64c2ba61d43be4cccfc2663d,3156 - gtk2hs-buildtools-0.13.8.3@sha256:207229eee7abff12aba2740b32131522086275e46f2e72a0f5bbc3cb781e9d4d,5304 Plan construction failed. ``` `git diff` after following stack's suggestions without specifying hashes: ``` $ git diff diff --git a/stack.yaml b/stack.yaml index 8021bad..0b8ecb4 100644 --- a/stack.yaml +++ b/stack.yaml @@ -12,6 +12,10 @@ flags: extra-deps: - netlink-1.1.1.0 - libmpd-0.9.2.0 + - cairo-0.13.8.2 + - pango-0.13.8.2 + - glib-0.13.8.2 + - gtk2hs-buildtools-0.13.8.3 nix: packages: - alsaLib ```
jao closed this issue 3 weeks ago
jao commented 3 weeks ago
Owner

thanks for the heads-up: i've added the dependencies to stack.yaml in the master branch.

thanks for the heads-up: i've added the dependencies to stack.yaml in the master branch.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: xmobar/xmobar#666
Loading…
There is no content yet.