1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00

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
This commit is contained in:
Vinícius Zavam 2021-10-17 07:53:55 +00:00
parent 6c8368bab3
commit b1fe2ae523
No known key found for this signature in database
GPG Key ID: 415C653413B43475
2 changed files with 13 additions and 7 deletions

View File

@ -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>

View File

@ -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