aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinícius Zavam <egypcio@FreeBSD.org>2021-10-17 07:53:55 +0000
committerVinícius Zavam <egypcio@FreeBSD.org>2021-10-17 07:53:55 +0000
commitb1fe2ae52311869265eb74a9940a1dd502bd1e74 (patch)
tree4b466ae1b8cefcc56ec6935479e5f2af9a2fa884
parent6c8368bab3bb46dcb1d92ef3b9a1e8cca5333dcf (diff)
downloadports-b1fe2ae52311869265eb74a9940a1dd502bd1e74.tar.gz
ports-b1fe2ae52311869265eb74a9940a1dd502bd1e74.zip
net-mgmt/mk-livestatus: fix "ld: error: duplicate symbol: g_mainthread_id"
- add '-fcommon' to our CFLAGS in order to build with clang 11; - fix used by other ports as well (mentioned a few on original PR); - this is applied in a conditional way, checking OSVERSION; - while here, also added new DISTSITES. Reported by: dvl@, pkg-fallout PR: 257162
-rw-r--r--net-mgmt/mk-livestatus/Makefile18
-rw-r--r--net-mgmt/mk-livestatus/distinfo2
2 files changed, 13 insertions, 7 deletions
diff --git a/net-mgmt/mk-livestatus/Makefile b/net-mgmt/mk-livestatus/Makefile
index 3a9224e5b7b4..4a21119a8ac0 100644
--- a/net-mgmt/mk-livestatus/Makefile
+++ b/net-mgmt/mk-livestatus/Makefile
@@ -2,9 +2,11 @@
PORTNAME= mk-livestatus
PORTVERSION= 1.2.8p25
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= net-mgmt
-MASTER_SITES= http://mathias-kettner.de/download/
+MASTER_SITES= https://mirrors.xtom.com/freebsd-ports/distfiles/check_mk/ \
+ https://mirrors.xtom.nl/freebsd-ports/distfiles/check_mk/ \
+ http://mathias-kettner.de/download/
DIST_SUBDIR= check_mk
MAINTAINER= egypcio@FreeBSD.org
@@ -12,9 +14,6 @@ COMMENT= Nagios event broker module
LICENSE= GPLv2
-BROKEN_FreeBSD_13= ld: error: duplicate symbol: g_mainthread_id
-BROKEN_FreeBSD_14= ld: error: duplicate symbol: g_mainthread_id
-
USES= compiler:c++11-lang
GNU_CONFIGURE= yes
@@ -61,4 +60,11 @@ post-install-EXAMPLES-on:
${PORTEXAMPLES:S|^|${WRKSRC}/api/python/|}
${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/api/python/|} ${STAGEDIR}${EXAMPLESDIR}
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+# Fix building with clang 11 ("ld: error: duplicate symbol: g_mainthread_id")
+.if ${OSVERSION} >= 1300000
+CFLAGS+= -fcommon
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/net-mgmt/mk-livestatus/distinfo b/net-mgmt/mk-livestatus/distinfo
index 182cf8a75586..5f3b46109f00 100644
--- a/net-mgmt/mk-livestatus/distinfo
+++ b/net-mgmt/mk-livestatus/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1551174701
+TIMESTAMP = 1634456011
SHA256 (check_mk/mk-livestatus-1.2.8p25.tar.gz) = 3da53e234724517cd1ecbbd1dcdffb9a7dbbb325861fac9398e40ad6d1fdffe9
SIZE (check_mk/mk-livestatus-1.2.8p25.tar.gz) = 453525