Created attachment 270297 [details] git_diff_v1 Hi everyone, I updated my port to the latest version 2.8.2 because it now supports building with www/node24 (current lts) since 2.7.0. Source: https://jira.mongodb.org/browse/MONGOSH-3046 Changelog : https://github.com/mongodb-js/mongosh/releases/tag/v2.8.2 Following bugs can be closed after the merge : https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294459 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285348 Special thanks to Hiroki Tagato for your contribution with this PR: https://github.com/mongodb-js/kerberos/pull/248 You made my life easier. Thanks for your review.
https://github.com/mongodb-js/mongosh/releases/tag/v2.8.3
But 2.8.3 is not here yet: https://github.com/VultureProject/mongosh/releases
Created attachment 270404 [details] git_diff_v2
Variable MPROTECT_DISABLE isn't used. Also there are a lot of very long lines - I'll split them.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=17d38f0bbec167cf10697172b3f1c80452c00803 commit 17d38f0bbec167cf10697172b3f1c80452c00803 Author: Fabien Amelinck <fabien.amelinck+freebsd@advens.fr> AuthorDate: 2026-05-04 11:44:02 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2026-05-04 11:51:56 +0000 databases/mongosh: Update 2.5.5 → 2.8.3 Changelogs: https://github.com/mongodb-js/mongosh/releases/tag/v2.5.6 https://github.com/mongodb-js/mongosh/releases/tag/v2.5.7 https://github.com/mongodb-js/mongosh/releases/tag/v2.5.8 https://github.com/mongodb-js/mongosh/releases/tag/v2.5.9 https://github.com/mongodb-js/mongosh/releases/tag/v2.5.10 https://github.com/mongodb-js/mongosh/releases/tag/v2.6.0 https://github.com/mongodb-js/mongosh/releases/tag/v2.7.0 https://github.com/mongodb-js/mongosh/releases/tag/v2.8.1 https://github.com/mongodb-js/mongosh/releases/tag/v2.8.2 https://github.com/mongodb-js/mongosh/releases/tag/v2.8.3 While here (non-functional changes): - Split long lines. - Remove unused variable MPROTECT_DISABLE. - Fix warnings from portclippy. - Improve alignment and formatting. PR: 294921 Sponsored by: UNIS Labs Co-authored-by: Vladimir Druzenko <vvd@FreeBSD.org> databases/mongosh/Makefile | 133 +++++++++++++-------- databases/mongosh/distinfo | 22 ++-- ...patch-node__modules_kerberos_binding.gyp (gone) | 31 ----- ..._modules_kerberos_src_kerberos__common.h (gone) | 11 -- ...uild_node__modules_boxednode_lib_index.js (new) | 13 ++ .../011-deps-v8-src-base-small-vector.h (gone) | 10 -- .../node-patches/011-src_node__cjs__lexer.cc (new) | 21 ++++ databases/mongosh/files/patch-package.json | 16 +-- 8 files changed, 137 insertions(+), 120 deletions(-)
Thanks.
Thank you for the fast review and suggestions. I would like to add that MPROTECT_DISABLE is used by pax to disable mprotect otherwise mongosh crashes on startup.
(In reply to Fabien Amelinck from comment #7) pax? How can defining a variable in Makefile affect anything if no one uses it?
This is an internal OPNsense ports variable.
(In reply to Vladimir Druzenko from comment #8) Oh... I'm so sorry, this is an HardenedBSD's ports feature O_O I really thought it was a generic feature in FreeBSD. >.for _file in ${MPROTECT_DISABLE} > -/usr/sbin/hbsdcontrol pax disable mprotect >${STAGEDIR}/${PREFIX}/${_file} >.endfor Source: https://github.com/HardenedBSD/ports/blob/b8fcbd91988db68a464db168ba7f61951f7c55c5/Mk/bsd.port.mk#L5571