Aaron Bieber <[email protected]> writes:

> Seems to work as intended! Though I can't get it to produce the desired
> output for kmonad (cabal-bundler --openbsd kmonad-0.4.1 --executable
> kmonad).

The output is fairly descriptive if you know how to read it :)

  [__2] rejecting: fake-package:kmonad:exe.base-4.14.1.0/installed-4.14.1.0
  (conflict: fake-package:kmonad:exe.kmonad =>
  fake-package:kmonad:exe.base>=4.12.0.0 && <4.13)

This indicates that nobody bothered to upload a release for the new enough
ghc (or edit the version bounds on hackage). You can work around this:

% cabal v2-get kmonad-0.4.1
% cd kmonad-0.4.1
# This patch will be needed in the port too.
% patch -p0 <<EOF
--- kmonad.cabal        Mon May 24 19:42:45 2021
+++ kmonad.cabal.orig   Mon May 24 19:37:41 2021
@@ -99,5 +99,5 @@
     default-language: Haskell2010
     ghc-options:      -threaded -rtsopts -with-rtsopts=-N
     build-depends:
-        base >=4.12.0.0 && <4.15,
+        base >=4.12.0.0 && <4.13,
         kmonad -any
EOF
% cabal v2-configure
% cabal-bundler --openbsd kmonad -p ./dist-newstyle/cache/plan.json 
MODCABAL_STEM         = kmonad
MODCABAL_VERSION        = 0.4.1
MODCABAL_MANIFEST       = \
        StateVar        1.2.1   0       \
...

> OK abieber@ for import.

Thanks!

Reply via email to