Skip to content

Commit

Permalink
databases/mongodb44: Update to 4.4.7
Browse files Browse the repository at this point in the history
- Add a fix for compilation on aarch64 on 14-CURRENT/clang 12.
See: https://lists.freebsd.org/archives/freebsd-ports/2021-July/000431.html

Changelog:	https://docs.mongodb.com/manual/release-notes/4.4-changelog/#4.4.7-changelog

PR:		257393
Approved by:	lwhsu (mentor, implicit)
  • Loading branch information
Ronald Klop authored and yzgyyang committed Jul 26, 2021
1 parent 659ba57 commit 0034d83
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
2 changes: 1 addition & 1 deletion databases/mongodb44/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PORTNAME= mongodb
DISTVERSIONPREFIX= r
DISTVERSION= 4.4.6
DISTVERSION= 4.4.7
CATEGORIES= databases net
MASTER_SITES= https://fastdl.mongodb.org/src/ \
http://fastdl.mongodb.org/src/
Expand Down
6 changes: 3 additions & 3 deletions databases/mongodb44/distinfo
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
TIMESTAMP = 1620589981
SHA256 (mongodb-src-r4.4.6.tar.gz) = b5189aa87977137574cd75432dac9bb91699d322358f857b7b6d1e191fbd2f32
SIZE (mongodb-src-r4.4.6.tar.gz) = 50069717
TIMESTAMP = 1626429656
SHA256 (mongodb-src-r4.4.7.tar.gz) = 5deaa20aa92dcf33558b323b45e1fcae413f69b3eb088b98e1eb243f1ac68727
SIZE (mongodb-src-r4.4.7.tar.gz) = 50442373
24 changes: 17 additions & 7 deletions databases/mongodb44/files/patch-SConstruct
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--- SConstruct.orig 2019-08-08 20:06:23 UTC
--- SConstruct.orig 2021-07-07 09:17:06 UTC
+++ SConstruct
@@ -1068,9 +1068,9 @@ if has_option('variables-help'):
print((env_vars.GenerateHelpText(env)))
@@ -1213,9 +1213,9 @@ if has_option('variables-help'):
print(env_vars.GenerateHelpText(env))
Exit(0)

-unknown_vars = env_vars.UnknownVariables()
Expand All @@ -11,9 +11,9 @@
+#if unknown_vars:
+# env.FatalError("Unknown variables specified: {0}", ", ".join(list(unknown_vars.keys())))

def set_config_header_define(env, varname, varval = 1):
env['CONFIG_HEADER_DEFINES'][varname] = varval
@@ -1851,7 +1851,7 @@ if env.TargetOSIs('posix'):
if get_option('install-action') != 'default' and get_option('ninja') != "disabled":
env.FatalError("Cannot use non-default install actions when generating Ninja.")
@@ -2091,7 +2091,7 @@ if env.TargetOSIs('posix'):
# If runtime hardening is requested, then build anything
# destined for an executable with the necessary flags for PIE.
env.AppendUnique(
Expand All @@ -22,7 +22,7 @@
PROGLINKFLAGS=['-pie'],
)

@@ -1865,7 +1865,7 @@ if env.TargetOSIs('posix'):
@@ -2106,7 +2106,7 @@ if env.TargetOSIs('posix'):
"-Wno-unknown-pragmas",
"-Winvalid-pch"] )
# env.Append( " -Wconversion" ) TODO: this doesn't really work yet
Expand All @@ -31,3 +31,13 @@
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')

0 comments on commit 0034d83

Please sign in to comment.