aboutsummaryrefslogtreecommitdiff
path: root/devel/got
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2020-12-29 16:26:45 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2020-12-29 16:26:45 +0000
commit4b6db79490ef84a2dfc3cf360eae3695ad9c53d2 (patch)
treed0b4e9c738567aa72ca3f6bb9d84357ec15c044e /devel/got
parent6dba0708425509f2508bd74c5ce7e264ce5886b1 (diff)
downloadports-4b6db79490ef84a2dfc3cf360eae3695ad9c53d2.tar.gz
ports-4b6db79490ef84a2dfc3cf360eae3695ad9c53d2.zip
Work around a bug in gcc <5.0 by compiling with -std=gnu89 instead of gnu99.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63567 Got will support building with gcc 4.2.1 until OpenBSD retires gcc on all archs.
Notes
Notes: svn path=/head/; revision=559592
Diffstat (limited to 'devel/got')
-rw-r--r--devel/got/Makefile3
-rw-r--r--devel/got/files/patch-Makefile.inc10
2 files changed, 10 insertions, 3 deletions
diff --git a/devel/got/Makefile b/devel/got/Makefile
index 5c5bc1ea8fb3..90678a662959 100644
--- a/devel/got/Makefile
+++ b/devel/got/Makefile
@@ -2,6 +2,7 @@
PORTNAME= got
PORTVERSION= 0.47
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= https://gameoftrees.org/releases/
@@ -11,7 +12,7 @@ COMMENT= Game of Trees version control system
LICENSE= ISCL
LICENSE_FILE= ${WRKSRC}/LICENCE
-USES= compiler:c11 uidfix
+USES= uidfix
n= ${.newline}
post-extract:
diff --git a/devel/got/files/patch-Makefile.inc b/devel/got/files/patch-Makefile.inc
index 3510ead29343..ded2594b255b 100644
--- a/devel/got/files/patch-Makefile.inc
+++ b/devel/got/files/patch-Makefile.inc
@@ -1,9 +1,15 @@
---- Makefile.inc.orig 2020-11-26 12:53:05 UTC
+--- Makefile.inc.orig 2020-12-19 00:55:45 UTC
+++ Makefile.inc
-@@ -4,6 +4,13 @@ CPPFLAGS += -DGOT_LIBEXECDIR=${LIBEXECDIR} -DGOT_VERSI
+@@ -4,6 +4,19 @@ CPPFLAGS += -DGOT_LIBEXECDIR=${LIBEXECDIR} -DGOT_VERSI
#CFLAGS += -DGOT_OBJ_CACHE_DEBUG
#CFLAGS += -DGOT_DIFF_NO_MMAP
++# work around https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63567
++.include <bsd.compiler.mk>
++.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} < 50000
++CSTD = gnu89
++.endif
++
+OPENBSD_COMPAT := ${.PARSEDIR}/openbsd-compat
+CFLAGS += ${CPPFLAGS} -I${OPENBSD_COMPAT}
+CFLAGS += -Wno-pointer-sign