Build failure with newest ghc 9.6.2, cabal 3.10.2.0
Hello
Homebrew maintainer here. We are trying to build hopenpgp-tools 0.23.7 with ghc 9.6.2, cabal 3.10.2.0. We are getting the same error with older versions too. https://github.com/Homebrew/homebrew-core/pull/141617
==> cabal v2-install --constraint=hashable<1.3.4.0 --constraint=aeson<1.6
Last 150 lines from /Users/brew/actions-runner/_work/homebrew-core/homebrew-core/bottles/logs/hopenpgp-tools/02.cabal:
Building prettyprinter-ansi-terminal-1.1.3 (lib)
Installing prettyprinter-ansi-terminal-1.1.3 (lib)
Completed prettyprinter-ansi-terminal-1.1.3 (lib)
Starting asn1-encoding-0.9.6 (lib)
Building asn1-encoding-0.9.6 (lib)
Installing iproute-1.7.12 (lib)
Completed iproute-1.7.12 (lib)
...
Installing graphviz-2999.20.1.0 (lib)
Completed graphviz-2999.20.1.0 (lib)
Installing aeson-1.5.6.0 (lib)
Completed aeson-1.5.6.0 (lib)
Failed to build prettyprinter-convert-ansi-wl-pprint-1.1.2.
Build log (
/private/tmp/hopenpgp-tools-20230918-90300-lek9fz/hopenpgp-tools-0.23.7/.brew_home/.cache/cabal/logs/ghc-8.10.7/prttyprntr-cnvrt-ns-wl-pprnt-1.1.2-db86adc5.log
):
Configuring library for prettyprinter-convert-ansi-wl-pprint-1.1.2..
clang: warning: -Wl,-headerpad_max_install_names: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-L/usr/local/opt/ghc@8.10/lib' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-L/usr/local/lib' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-L/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries' [-Wunused-command-line-argument]
Preprocessing library for prettyprinter-convert-ansi-wl-pprint-1.1.2..
Building library for prettyprinter-convert-ansi-wl-pprint-1.1.2..
[1 of 2] Compiling Prettyprinter.Convert.AnsiWlPprint ( src/Prettyprinter/Convert/AnsiWlPprint.hs, dist/build/Prettyprinter/Convert/AnsiWlPprint.o, dist/build/Prettyprinter/Convert/AnsiWlPprint.dyn_o )
src/Prettyprinter/Convert/AnsiWlPprint.hs:29:1: error:
Could not find module ‘Text.PrettyPrint.ANSI.Leijen.Internal’
Perhaps you meant
Text.PrettyPrint.ANSI.Leijen (from ansi-wl-pprint-1.0.2)
Text.PrettyPrint.ANSI.Leijen (needs flag -package-key prettyprinter-compat-ansi-wl-pprint-1.0.2)
Use -v (or `:set -v` in ghci) to see a list of the files searched for.
|
29 | import qualified Text.PrettyPrint.ANSI.Leijen.Internal as Old
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: cabal: Failed to build prettyprinter-convert-ansi-wl-pprint-1.1.2
(which is required by exe:hot from hopenpgp-tools-0.23.7, exe:hokey from
hopenpgp-tools-0.23.7 and others). See the build log above for details.
Looks like this dependency is deprecated. I'm not an haskell/cabal expert, so I can't really help. But an update of the dependencies would be welcome.