Date: Sun, 27 Jan 2019 10:36:16 +0000 (UTC) From: Tobias Kortkamp <tobik@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r491337 - in head/devel/libhoard: . files Message-ID: <201901271036.x0RAaGGK015505@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tobik Date: Sun Jan 27 10:36:16 2019 New Revision: 491337 URL: https://svnweb.freebsd.org/changeset/ports/491337 Log: devel/libhoard: Unbreak build with Clang 6 (C++14 by default) include/hoard/geometricsizeclass.h:137:5: error: non-type template argument evaluates to -2147483648, which cannot be narrowed to type 'size_t' (aka 'unsigned long') [-Wc++11-narrowing] MaxObjectSize>::VALUE }; ^ http://beefy3.nyi.freebsd.org/data/112amd64-quarterly/491309/logs/errors/libhoard-3.10.log - Respect CXX, CXXFLAGS, LDFLAGS - Add a soname to the library - Use INSTALL_LIB to install it Added: head/devel/libhoard/files/patch-Makefile (contents, props changed) Modified: head/devel/libhoard/Makefile Modified: head/devel/libhoard/Makefile ============================================================================== --- head/devel/libhoard/Makefile Sun Jan 27 09:58:17 2019 (r491336) +++ head/devel/libhoard/Makefile Sun Jan 27 10:36:16 2019 (r491337) @@ -3,6 +3,7 @@ PORTNAME= libhoard PORTVERSION= 3.10 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= https://github.com/emeryberger/Hoard/releases/download/${PORTVERSION}/ DISTNAME= Hoard-${PORTVERSION}-source @@ -19,6 +20,7 @@ BROKEN_mips64= no spin lock implementation is availab BROKEN_powerpc64= Does not build: Error: instruction address is not a multiple of 4 BROKEN_sparc64= Does not build +USE_CXXSTD= gnu++98 USE_LDCONFIG= yes WRKSRC= ${WRKDIR}/Hoard/src @@ -26,12 +28,8 @@ ALL_TARGET= freebsd PLIST_FILES= lib/libhoard.so lib/libhoard.so.1 -post-patch: - ${REINPLACE_CMD} 's!g++!${CXX}!; s!-O2!${CFLAGS}!' ${WRKSRC}/Makefile - do-install: - ${STRIP_CMD} ${WRKSRC}/libhoard.so - ${INSTALL_DATA} ${WRKSRC}/libhoard.so ${STAGEDIR}${PREFIX}/lib/libhoard.so.1 + ${INSTALL_LIB} ${WRKSRC}/libhoard.so ${STAGEDIR}${PREFIX}/lib/libhoard.so.1 ${LN} -sf libhoard.so.1 ${STAGEDIR}${PREFIX}/lib/libhoard.so .include <bsd.port.mk> Added: head/devel/libhoard/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/libhoard/files/patch-Makefile Sun Jan 27 10:36:16 2019 (r491337) @@ -0,0 +1,11 @@ +--- Makefile.orig 2019-01-27 10:26:30 UTC ++++ Makefile +@@ -47,7 +47,7 @@ WIN_INCLUDES = /I. /Iinclude /Iinclude/util /Iinclude/ + # Compile commands for individual targets. + # + +-FREEBSD_COMPILE = g++ -g $(CPPFLAGS) -DNDEBUG -DNDEBUG $(INCLUDES) -D_REENTRANT=1 -shared $(UNIX_SRC) -Bsymbolic -o libhoard.so -pthread -fPIC ++FREEBSD_COMPILE = $(CXX) $(CXXFLAGS) -DNDEBUG -DNDEBUG $(INCLUDES) -D_REENTRANT=1 -shared $(UNIX_SRC) -Bsymbolic -Wl,-soname=libhoard.so.1 $(LDFLAGS) -o libhoard.so -pthread -fPIC + + MACOS_COMPILE = clang++ -ftemplate-depth=1024 -arch i386 -arch x86_64 -pipe -g $(CPPFLAGS) -DNDEBUG $(INCLUDES) -D_REENTRANT=1 -compatibility_version 1 -current_version 1 -dynamiclib -D'CUSTOM_PREFIX(x)=xx\#\#x' $(MACOS_SRC) -o libhoard.dylib -ldl -lpthread +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901271036.x0RAaGGK015505>