Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Oct 2021 15:43:31 GMT
From:      =?utf-8?Q?Vin=C3=ADcius Zavam?= <egypcio@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 00f889e0346c - main - net/pacemaker1: fix building port with clang 11
Message-ID:  <202110171543.19HFhV8E067517@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by egypcio:

URL: https://cgit.FreeBSD.org/ports/commit/?id=00f889e0346cd6cf49a9379e00285e6addf0031a

commit 00f889e0346cd6cf49a9379e00285e6addf0031a
Author:     Vinícius Zavam <egypcio@FreeBSD.org>
AuthorDate: 2021-10-17 15:40:38 +0000
Commit:     Vinícius Zavam <egypcio@FreeBSD.org>
CommitDate: 2021-10-17 15:43:25 +0000

    net/pacemaker1: fix building port with clang 11
    
      wrong reason was added to BROKEN conditional;
      remove BROKEN flag if OSVERSION >= 1300000;
      current commit also fixes ability to build this port.
---
 net/pacemaker1/Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/net/pacemaker1/Makefile b/net/pacemaker1/Makefile
index da2a3734e572..3f3eaf5c20b4 100644
--- a/net/pacemaker1/Makefile
+++ b/net/pacemaker1/Makefile
@@ -1,7 +1,7 @@
 # Created by: David Shane Holden <dpejesh@yahoo.com>
 
 PORTVERSION=		1.1.24
-PORTREVISION=		1
+PORTREVISION=		2
 PKGNAMESUFFIX=		1
 
 .include "${.CURDIR}/Makefile.common"
@@ -24,8 +24,9 @@ REPLACE_ARGS_GETOPT=	-e 's,getopt,${LOCALBASE}/bin/getopt,'
 
 .include <bsd.port.pre.mk>
 
+# Fix building it with clang 11
 .if ${OSVERSION} >= 1300000
-BROKEN=	"includes <sys/timeb.h> which is deprecated"
+CFLAGS+=	-fcommon
 .endif
 
 .if ${PYTHON_SUFFIX} > 36



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202110171543.19HFhV8E067517>