From owner-svn-ports-all@freebsd.org Sun Jan 27 10:36:17 2019 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 57D0E14C9824; Sun, 27 Jan 2019 10:36:17 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F295F916A0; Sun, 27 Jan 2019 10:36:16 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E4BFF6C03; Sun, 27 Jan 2019 10:36:16 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x0RAaGIr015506; Sun, 27 Jan 2019 10:36:16 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x0RAaGGK015505; Sun, 27 Jan 2019 10:36:16 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201901271036.x0RAaGGK015505@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Sun, 27 Jan 2019 10:36:16 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r491337 - in head/devel/libhoard: . files X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: in head/devel/libhoard: . files X-SVN-Commit-Revision: 491337 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: F295F916A0 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.95 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.95)[-0.948,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jan 2019 10:36:17 -0000 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 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 +