git: b15a31e89a19 - main - databases/mongodb44: Update to 4.4.9

From: Yasuhiro Kimura <yasu_at_FreeBSD.org>
Date: Mon, 25 Oct 2021 07:13:17 UTC
The branch main has been updated by yasu:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b15a31e89a19f3b1e50a1876bf5a8cdb0f5af3c2

commit b15a31e89a19f3b1e50a1876bf5a8cdb0f5af3c2
Author:     Ronald Klop <ronald-lists@klop.ws>
AuthorDate: 2021-10-08 17:55:49 +0000
Commit:     Yasuhiro Kimura <yasu@FreeBSD.org>
CommitDate: 2021-10-25 07:12:07 +0000

    databases/mongodb44: Update to 4.4.9
    
    * Update CONFLICTS_INSTALL
    * Enable LSE atomics on 14-CURRENT aarch64
    
    ChangeLog:      https://docs.mongodb.com/manual/release-notes/4.4-changelog/#4.4.9-changelog
    PR:             258687
    Approved by:    meta (mentor)
    Differential Revision:  https://reviews.freebsd.org/D32374
---
 databases/mongodb44/Makefile               |  9 +++++++--
 databases/mongodb44/distinfo               |  6 +++---
 databases/mongodb44/files/patch-SConstruct | 10 ----------
 3 files changed, 10 insertions(+), 15 deletions(-)

diff --git a/databases/mongodb44/Makefile b/databases/mongodb44/Makefile
index b99f5d9e9aab..d043d3d9c4f4 100644
--- a/databases/mongodb44/Makefile
+++ b/databases/mongodb44/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	mongodb
 DISTVERSIONPREFIX=	r
-DISTVERSION=	4.4.8
+DISTVERSION=	4.4.9
 CATEGORIES=	databases net
 MASTER_SITES=	https://fastdl.mongodb.org/src/ \
 		http://fastdl.mongodb.org/src/
@@ -32,7 +32,7 @@ USE_RC_SUBR=	mongod
 
 PORTSCOUT=	limit:^4\.4\.
 
-CONFLICTS_INSTALL=	mongodb36 mongodb4[02]
+CONFLICTS_INSTALL=	mongodb36 mongodb4[02] mongodb50
 
 OPTIONS_DEFINE=	LTO SASL SSL
 OPTIONS_DEFAULT=LTO SASL SSL
@@ -63,6 +63,11 @@ SSL_MAKE_ARGS=	--ssl
 
 .include <bsd.port.pre.mk>
 
+.if ${OPSYS} == FreeBSD && ((${OSREL:R} >= 14 && ${OSVERSION} < 1400033) \
+                        && ${ARCH} == "aarch64")
+BROKEN=        Aarch64 needs LSE atomics which was fixed in https://cgit.freebsd.org/src/commit/?id=efe67f33c322265eb303ec0ab40275100795b22a
+.endif
+
 .if ${ARCH} == aarch64 || ${ARCH} == powerpc64le
 EXTRA_PATCHES=	${FILESDIR}/${ARCH}
 .endif
diff --git a/databases/mongodb44/distinfo b/databases/mongodb44/distinfo
index 3d2b2bc2f004..760d4d4cac1c 100644
--- a/databases/mongodb44/distinfo
+++ b/databases/mongodb44/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1628281136
-SHA256 (mongodb-src-r4.4.8.tar.gz) = 6f9bd6626ef61ec3cd9051ff8576bf499936de99c4fc3551f8bde4e9ba504a97
-SIZE (mongodb-src-r4.4.8.tar.gz) = 50492854
+TIMESTAMP = 1632143635
+SHA256 (mongodb-src-r4.4.9.tar.gz) = 4eee0a2213b4c455d5bc21c78a5a6a02bf33ac09e6c6bba8d5547247307a319f
+SIZE (mongodb-src-r4.4.9.tar.gz) = 50541749
diff --git a/databases/mongodb44/files/patch-SConstruct b/databases/mongodb44/files/patch-SConstruct
index de57cb103810..9fc72edebc07 100644
--- a/databases/mongodb44/files/patch-SConstruct
+++ b/databases/mongodb44/files/patch-SConstruct
@@ -31,13 +31,3 @@
          if not has_option("disable-warnings-as-errors"):
              env.Append( CCFLAGS=["-Werror"] )
  
-@@ -3926,7 +3926,8 @@ def doConfigure(myenv):
-     myenv = conf.Finish()
- 
-     if env['TARGET_ARCH'] == "aarch64":
--        AddToCCFLAGSIfSupported(myenv, "-moutline-atomics")
-+        # https://lists.freebsd.org/archives/freebsd-ports/2021-July/000431.html
-+        AddToCCFLAGSIfSupported(myenv, "-mno-outline-atomics")
- 
-     conf = Configure(myenv)
-     usdt_enabled = get_option('enable-usdt-probes')