Skip to content

Commit

Permalink
dev-haskell/alex: use inplace alex for tests, bug #703920
Browse files Browse the repository at this point in the history
Reported-by: Toralf Förster
Closes: https://bugs.gentoo.org/703920
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich <[email protected]>
  • Loading branch information
Sergei Trofimovich committed Dec 27, 2019
1 parent 64db3a3 commit 72c564a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dev-haskell/alex/alex-3.2.4.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ src_compile() {
}

src_test() {
# workaround https://github.com/haskell/cabal/issues/2398
emake -k -C tests all
# 1. workaround Setup.hs deadlock: https://github.com/haskell/cabal/issues/2398
# 2. use freshly built ALEX= binary and datadir path
alex_datadir="${S}"/data \
emake -k -C tests all ALEX="${S}"/dist/build/alex/alex
}

src_install() {
Expand Down

0 comments on commit 72c564a

Please sign in to comment.