pkgsrc-Changes archive

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

CVS commit: pkgsrc/databases/mongodb



Module Name:    pkgsrc
Committed By:   maya
Date:           Tue Dec 16 15:13:16 UTC 2025

Modified Files:
        pkgsrc/databases/mongodb: Makefile

Log Message:
mongodb: Introduce workarond for PR pkg/59842

cwrappers doesn't transform when `cc @args` syntax is used (to avoid very
long commands). Tell the package we can handle the long commands so this
syntax isn't necessary.

Build failure seen on NetBSD-10/x86_64 - which relies on pkgsrc GCC, which
relies on cwrappers transform.


To generate a diff of this commit:
cvs rdiff -u -r1.101 -r1.102 pkgsrc/databases/mongodb/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/mongodb/Makefile
diff -u pkgsrc/databases/mongodb/Makefile:1.101 pkgsrc/databases/mongodb/Makefile:1.102
--- pkgsrc/databases/mongodb/Makefile:1.101     Sun Oct  5 19:25:46 2025
+++ pkgsrc/databases/mongodb/Makefile   Tue Dec 16 15:13:16 2025
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.101 2025/10/05 19:25:46 js Exp $
+# $NetBSD: Makefile,v 1.102 2025/12/16 15:13:16 maya Exp $
 
 DISTNAME=      mongodb-src-r6.0.13
 PKGNAME=       ${DISTNAME:S/src-r//}
@@ -66,6 +66,11 @@ INCL_PATH+=  ${BUILDLINK_PREFIX.mongo-c-d
 INCL_PATH+=    ${BUILDLINK_PREFIX.mongo-c-driver}/include/libmongoc-1.0
 LDFLAGS+=      ${COMPILER_RPATH_FLAG}${PREFIX}/lib -L${PREFIX}/lib
 
+# Workaround for PR pkg/59842 - build fails with pkgsrc GCC
+# due to cwrappers bug. Tell mongodb we can handle very long commands
+# so `cc @args` syntax won't be used.
+SCONS_BUILD_ARGS+=     MAXLINELENGTH=262144
+
 # needed for linking against boost_log, otherwise some symbols are not found
 #SCONS_BUILD_ARGS+=    CPPDEFINES=-DBOOST_LOG_DYN_LINK=1
 SCONS_BUILD_ARGS+=     CC=${CC:Q}



Home | Main Index | Thread Index | Old Index