pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/geography/R-s2



Module Name:    pkgsrc
Committed By:   wiz
Date:           Mon Sep 14 21:33:47 UTC 2026

Modified Files:
        pkgsrc/geography/R-s2: Makefile

Log Message:
R-s2: force C++17

something sets this to build with C++20, but the code is not ready for this
it uses features that were deprecated in C++17 and removed in C++20

Force C++17 to fix the build.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 pkgsrc/geography/R-s2/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/geography/R-s2/Makefile
diff -u pkgsrc/geography/R-s2/Makefile:1.12 pkgsrc/geography/R-s2/Makefile:1.13
--- pkgsrc/geography/R-s2/Makefile:1.12 Sat Jul  4 23:42:08 2026
+++ pkgsrc/geography/R-s2/Makefile      Mon Sep 14 21:33:47 2026
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2026/07/04 23:42:08 mef Exp $
+# $NetBSD: Makefile,v 1.13 2026/09/14 21:33:47 wiz Exp $
 
 R_PKGNAME=     s2
 R_PKGVER=      1.1.7
@@ -19,14 +19,13 @@ TEST_DEPENDS+=      tex-url-[0-9]*:../../prin
 TEST_DEPENDS+= tex-xkeyval-[0-9]*:../../print/tex-xkeyval
 
 USE_LANGUAGES=         c c++
-.include "../../mk/bsd.prefs.mk"
+# somehow, -std=gnu++20 ends up on the compiler command line,
+# but the code is not ready for that (e.g. std::allocator::rebind
+# was removed in C++20); so force C++17
+FORCE_CXX_STD=         gnu++17
+USE_CXX_FEATURES=      c++20
 
-# https://mail-index.netbsd.org/pkgsrc-users/2025/01/02/msg040775.html
-.if ${OPSYS} == "NetBSD"
-.  if ${OPSYS_VERSION} < 090900
-CWRAPPERS_APPEND.cxx=  -D_NETBSD_SOURCE
-.  endif
-.endif
+.include "../../mk/bsd.prefs.mk"
 
 SUBST_CLASSES+=                pkglibs
 SUBST_STAGE.pkglibs=   pre-configure



Home | Main Index | Thread Index | Old Index