innoextract fails with the WIP update of libc++. innoextract builds
with -std=c++17 if available, but it uses boost - the boost version we
have in-tree uses auto_ptr, which was removed from c++17.

I think time is a bit tight to deal with a boost update pre-release
so this works around for now.

OK?

Index: devel/boost/Makefile
===================================================================
RCS file: /cvs/ports/devel/boost/Makefile,v
retrieving revision 1.74
diff -u -p -r1.74 Makefile
--- devel/boost/Makefile        23 Aug 2018 16:38:10 -0000      1.74
+++ devel/boost/Makefile        11 Sep 2018 14:03:39 -0000
@@ -2,6 +2,8 @@
 
 COMMENT=       free peer-reviewed portable C++ source libraries
 
+# XXX if updating, try to remove -D_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR
+# XXX in archivers/innoextract
 VERSION=       1.66.0
 DISTNAME=      boost_${VERSION:S/./_/g}
 PKGNAME=       boost-${VERSION}
Index: archivers/innoextract/Makefile
===================================================================
RCS file: /cvs/ports/archivers/innoextract/Makefile,v
retrieving revision 1.8
diff -u -p -r1.8 Makefile
--- archivers/innoextract/Makefile      24 Jun 2018 08:56:16 -0000      1.8
+++ archivers/innoextract/Makefile      11 Sep 2018 14:03:39 -0000
@@ -27,7 +27,7 @@ MODULES=      devel/cmake
 
 SEPARATE_BUILD=        Yes
 
-CXXFLAGS+=     -Wno-system-headers
+CXXFLAGS+=     -D_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR -Wno-system-headers
 CONFIGURE_ARGS+=-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
                -DCMAKE_INSTALL_MANDIR="man" \
                -DDOXYGEN_EXECUTABLE="false"

Reply via email to