Bug 256424 - lang/ghc build fails on 14-CURRENT under synth
Summary: lang/ghc build fails on 14-CURRENT under synth
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-haskell (Nobody)
Depends on:
Reported: 2021-06-05 07:38 UTC by Filipe da Silva Santos
Modified: 2021-06-12 10:19 UTC (History)
1 user (show)

See Also:
arrowd: maintainer-feedback+

Synth build log (258.05 KB, text/plain)
2021-06-05 07:38 UTC, Filipe da Silva Santos
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Filipe da Silva Santos 2021-06-05 07:38:47 UTC
Created attachment 225566 [details]
Synth build log

GHC build fails on 14-CURRENT.
It seems to be conflicting with some dtrace file.
Comment 1 Gleb Popov freebsd_committer 2021-06-05 09:51:18 UTC
Can you please try this patch?

diff --git a/lang/ghc/Makefile b/lang/ghc/Makefile
index 93c57dca4853..4bfcf607ceae 100644
--- a/lang/ghc/Makefile
+++ b/lang/ghc/Makefile
@@ -92,7 +92,7 @@ PORTDOCS=             *
 BUILD_DEPENDS+=        ${LOCALBASE}/lib/compat/libncursesw.so.8:misc/compat12x
-.if ${ARCH} == powerpc64
+.if ${ARCH} == powerpc64 || ${OSVERSION} >= 1400018
 CONFIGURE_ARGS+=       --enable-dtrace=0
Comment 2 Filipe da Silva Santos 2021-06-05 19:26:33 UTC
(In reply to Gleb Popov from comment #1)
Thanks for your response!
It works like a charm.
Comment 3 commit-hook freebsd_committer 2021-06-12 10:15:19 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9db3b6bbb62c7f86094e882d4d1a0b187d26a13b

commit 9db3b6bbb62c7f86094e882d4d1a0b187d26a13b
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2021-06-12 10:10:34 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2021-06-12 10:14:10 +0000

    lang/ghc: Workaround build failure on CURRENT.

    PR:     256424

    Reported by:    Filipe da Silva Santos <contact@shiori.com.br>

 lang/ghc/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 4 Gleb Popov freebsd_committer 2021-06-12 10:19:22 UTC
Fixed, thanks.