pkgsrc-Changes archive

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

CVS commit: pkgsrc/databases/mongodb4



Module Name:    pkgsrc
Committed By:   gdt
Date:           Tue Sep 24 13:38:31 UTC 2024

Modified Files:
        pkgsrc/databases/mongodb4: Makefile

Log Message:
databases/mongodb4: Rototill __GCC_DESTRUCTIVE_SIZE comments

Thanks to martin@ for the explanation of the problem.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 pkgsrc/databases/mongodb4/Makefile

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

Modified files:

Index: pkgsrc/databases/mongodb4/Makefile
diff -u pkgsrc/databases/mongodb4/Makefile:1.17 pkgsrc/databases/mongodb4/Makefile:1.18
--- pkgsrc/databases/mongodb4/Makefile:1.17     Tue Sep 24 13:29:44 2024
+++ pkgsrc/databases/mongodb4/Makefile  Tue Sep 24 13:38:31 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2024/09/24 13:29:44 gdt Exp $
+# $NetBSD: Makefile,v 1.18 2024/09/24 13:38:31 gdt Exp $
 
 DISTNAME=      mongodb-4.4.29
 PKGREVISION=   1
@@ -57,14 +57,21 @@ PYTHON_VERSIONS_INCOMPATIBLE=       27
 
 .include "../../mk/bsd.prefs.mk"
 
-# On gcc12 as found in NetBSD 10.99.x, on aarch64, there is a static
-# assert related to a c++17 feature about cacheline size.  Adding a
-# param to force the value appears to resolve it.
-# Perhaps, this is for gcc12+ on all arches.
-# On gcc10 as found in NetBSD 10, there is no assert, and the --param
-# flag is unrecognized.
+# In c++17, there is a __GCC_DESTRUCTIVE_SIZE which is obtained from
+# -mtune, and used in std::hardware_destructive_interference_size.
+#
+# In gcc12 as found in NetBSD 10.99.x, on aarch64, there is a static
+# assert, perhaps that this value is used without being adequately
+# set, in some contexts.  gcc12 adds
+# --param=destructive-interference-size to set __GCC_DESTRUCTIVE_SIZE.
+#
+# Thus, in NetBSD-current-gcc12, the build fails without --param, and
+# in NetBSD-10-gcc10, it fails with it.
+#
 # \todo File a bug upstream and include the URL
 # \todo Fix this upstream, with a configure test.
+#
+# For now, limit --param to where it is known to be needed.
 .if ${MACHINE_ARCH} == "aarch64" && ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} > 109900
 CXXFLAGS+=             --param=destructive-interference-size=64
 .endif



Home | Main Index | Thread Index | Old Index