Bug 294921 - databases/mongosh: Update 2.5.5 → 2.8.3
Summary: databases/mongosh: Update 2.5.5 → 2.8.3
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Vladimir Druzenko
URL: https://github.com/mongodb-js/mongosh...
Keywords:
Depends on: 294918
Blocks: 285348 294459
  Show dependency treegraph
 
Reported: 2026-05-01 00:43 UTC by Fabien Amelinck
Modified: 2026-05-05 08:58 UTC (History)
1 user (show)

See Also:


Attachments
git_diff_v1 (17.85 KB, patch)
2026-05-01 00:43 UTC, Fabien Amelinck
no flags Details | Diff
git_diff_v2 (17.85 KB, patch)
2026-05-04 07:56 UTC, Fabien Amelinck
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fabien Amelinck 2026-05-01 00:43:18 UTC
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.
Comment 1 Vladimir Druzenko freebsd_committer freebsd_triage 2026-05-03 10:52:43 UTC
https://github.com/mongodb-js/mongosh/releases/tag/v2.8.3
Comment 2 Vladimir Druzenko freebsd_committer freebsd_triage 2026-05-03 11:09:19 UTC
But 2.8.3 is not here yet: https://github.com/VultureProject/mongosh/releases
Comment 3 Fabien Amelinck 2026-05-04 07:56:15 UTC
Created attachment 270404 [details]
git_diff_v2
Comment 4 Vladimir Druzenko freebsd_committer freebsd_triage 2026-05-04 09:25:40 UTC
Variable MPROTECT_DISABLE isn't used.

Also there are a lot of very long lines - I'll split them.
Comment 5 commit-hook freebsd_committer freebsd_triage 2026-05-04 11:52:12 UTC
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(-)
Comment 6 Vladimir Druzenko freebsd_committer freebsd_triage 2026-05-04 11:53:16 UTC
Thanks.
Comment 7 Fabien Amelinck 2026-05-04 14:33:05 UTC
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.
Comment 8 Vladimir Druzenko freebsd_committer freebsd_triage 2026-05-04 19:06:28 UTC
(In reply to Fabien Amelinck from comment #7)
pax?
How can defining a variable in Makefile affect anything if no one uses it?
Comment 9 Vladimir Druzenko freebsd_committer freebsd_triage 2026-05-04 19:22:39 UTC
This is an internal OPNsense ports variable.
Comment 10 Fabien Amelinck 2026-05-05 08:58:18 UTC
(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