Skip to content

Commit

Permalink
Default to tar & zip over libarchive except on supported platforms
Browse files Browse the repository at this point in the history
`libarchive` (the Haskell package, not its upstream C library) vendors
the `config.h` header files generated by autoconf for each platform it
supports instead of using autoconf (or even CMake, which the C library
offers as an option). So apart from those specific platforms, just use
`tar` & `zip`.

`lzma-static` currently does the same, but we're gonna fix it upstream
then update the minimum version bounds on our dependency of it.
  • Loading branch information
habibalamin committed Nov 19, 2024
1 parent 6afbc4f commit 82c679a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions cabal.project.release
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ import: cabal.project.common

optimization: 2

-- The release project file always wants to build with -tar.
-- The tar flag is only there to circumvent complicated errors during
-- development, which sometimes happens due to libarchive.
-- The release project file always wants to build with -tar on the
-- platforms it supports (which are those it provides config.h files
-- for). The tar flag is only there to circumvent complicated errors
-- during development, which sometimes happens due to libarchive.
package ghcup
flags: +tui

Expand Down Expand Up @@ -32,3 +33,6 @@ elif os(freebsd)
xz -system-xz
package *
ghc-options: -split-sections
else
package ghcup
flags: +tar

0 comments on commit 82c679a

Please sign in to comment.