Skip to content
Snippets Groups Projects
Unverified Commit 3d881acd authored by mergify[bot]'s avatar mergify[bot] Committed by GitHub
Browse files

Merge pull request #9775 from chreekat/b/zlib-no-pkg-config

Tell zlib not to use pkg-config
parents 6f47691d 62c74fe1
No related branches found
No related tags found
No related merge requests found
Pipeline #91238 failed
......@@ -57,6 +57,22 @@ if [ "$(getconf LONG_BIT)" = "32" -o "${PLATFORM:=xxx}" = "x86_64-linux-centos7"
echo 'constraints: lukko -ofd-locking' >> cabal.project.release.local
fi
# In February 2024, cabal started using zlib-0.7.0.0, which uses pkg-config by
# default. The GitLab CI environment doesn't (yet) supply pkg-config, and zlib
# does just fine without it on modern GHCs. That said, the CI environment
# probably *should* have pkg-config installed. See
# https://github.com/haskell/cabal/issues/9774.
echo 'constraints: zlib -pkg-config' >> cabal.project.release.local
# Furthermore, on Windows, zlib claims that libz is shipped with GHC, so it just
# uses @extra-libraries: z@ if pkg-config is False. If you are reading this
# comment, however, this didn't work. Thus we switch to using the bundled libz,
# as was done in zlib <0.7.0.0.
case "$(uname)" in
MSYS_*|MINGW*)
echo 'constraints: zlib +bundled-c-zlib' >> cabal.project.release.local
;;
esac
args=(
-w "ghc-$GHC_VERSION"
--disable-profiling
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment