File tree 1 file changed +16
-0
lines changed 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,22 @@ if [ "$(getconf LONG_BIT)" = "32" -o "${PLATFORM:=xxx}" = "x86_64-linux-centos7"
57
57
echo ' constraints: lukko -ofd-locking' >> cabal.project.release.local
58
58
fi
59
59
60
+ # In February 2024, cabal started using zlib-0.7.0.0, which uses pkg-config by
61
+ # default. The GitLab CI environment doesn't (yet) supply pkg-config, and zlib
62
+ # does just fine without it on modern GHCs. That said, the CI environment
63
+ # probably *should* have pkg-config installed. See
64
+ # https://github.com/haskell/cabal/issues/9774.
65
+ echo ' constraints: zlib -pkg-config' >> cabal.project.release.local
66
+ # Furthermore, on Windows, zlib claims that libz is shipped with GHC, so it just
67
+ # uses @extra-libraries: z@ if pkg-config is False. If you are reading this
68
+ # comment, however, this didn't work. Thus we switch to using the bundled libz,
69
+ # as was done in zlib <0.7.0.0.
70
+ case " $( uname) " in
71
+ MSYS_* |MINGW* )
72
+ echo ' constraints: zlib +bundled-c-zlib' >> cabal.project.release.local
73
+ ;;
74
+ esac
75
+
60
76
args=(
61
77
-w " ghc-$GHC_VERSION "
62
78
--disable-profiling
You can’t perform that action at this time.
0 commit comments