Skip to content

Commit

Permalink
cabal: allow building under MacPorts again
Browse files Browse the repository at this point in the history
The recently released haskell tar-0.6 introduces some breaking changes
that prevent Cabal from building on MacPorts because of its previous use
of `--allow-newer` in `build.target`. This line was deliberately added
(haskell/cabal#8360 (comment)),
but it's causes persistent build failure.
  • Loading branch information
halostatue committed Dec 26, 2023
1 parent 9980bce commit ccef77d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lang/cabal/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PortSystem 1.0

name cabal
version 3.10.2.0
revision 0
revision 1
categories lang haskell devel
platforms darwin
license BSD
Expand Down Expand Up @@ -152,10 +152,8 @@ if {[exists extract.rename]} {
"CABAL_CONFIG=${haskell_cabal.cabal_root}/config" \
"GHC=${prefix}/bin/ghc"

# https://github.com/haskell/cabal/issues/8360#issuecomment-1220918581
build.target ${name}-install \
--project-file=cabal.project.release \
--allow-newer
--project-file=cabal.project.release
build.post_args-append \
--bindir=${prefix}/bin \
--datadir=${prefix}/share/${subport}
Expand Down

0 comments on commit ccef77d

Please sign in to comment.