svn commit: r491338 - in branches/2019Q1/devel/libhoard: . files
Tobias Kortkamp
tobik at FreeBSD.org
Sun Jan 27 10:38:03 UTC 2019
Author: tobik
Date: Sun Jan 27 10:38:02 2019
New Revision: 491338
URL: https://svnweb.freebsd.org/changeset/ports/491338
Log:
MFH: r491337
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
Approved by: ports-secteam build fix blanket
Added:
branches/2019Q1/devel/libhoard/files/patch-Makefile
- copied unchanged from r491337, head/devel/libhoard/files/patch-Makefile
Modified:
branches/2019Q1/devel/libhoard/Makefile
Directory Properties:
branches/2019Q1/ (props changed)
Modified: branches/2019Q1/devel/libhoard/Makefile
==============================================================================
--- branches/2019Q1/devel/libhoard/Makefile Sun Jan 27 10:36:16 2019 (r491337)
+++ branches/2019Q1/devel/libhoard/Makefile Sun Jan 27 10:38:02 2019 (r491338)
@@ -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>
Copied: branches/2019Q1/devel/libhoard/files/patch-Makefile (from r491337, head/devel/libhoard/files/patch-Makefile)
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ branches/2019Q1/devel/libhoard/files/patch-Makefile Sun Jan 27 10:38:02 2019 (r491338, copy of r491337, head/devel/libhoard/files/patch-Makefile)
@@ -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
+
More information about the svn-ports-branches
mailing list