You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-db/mongodb/files/mongodb-4.4.1-no-compass.patch

57 lines
1.9 KiB

diff --git a/src/mongo/SConscript b/src/mongo/SConscript
index 8acf5469..737c31d4 100644
--- a/src/mongo/SConscript
+++ b/src/mongo/SConscript
@@ -834,43 +834,6 @@ for full_dir, archive_dir in list(env["ARCHIVE_ADDITION_DIR_MAP"].items()):
for target in env["DIST_BINARIES"]:
installBinary(env, "db/modules/" + target)
-compass_type = 'compass'
-
-compass_script = "install_compass.in"
-if env.TargetOSIs('windows'):
- compass_script = "Install-Compass.ps1.in"
-
-compass_python_interpreter = '/usr/bin/env python2'
-if env.TargetOSIs('darwin'):
- compass_python_interpreter = '/usr/bin/env python'
-
-compass_installer = env.Substfile(
- target="$BUILD_DIR/mongo/installer/compass/" + compass_script[:-3],
- source='installer/compass/' + compass_script,
- SUBST_DICT=[
- ('@compass_type@', compass_type),
- ('@python_interpreter@', compass_python_interpreter),
- ],
-)
-
-distBinaries.append(compass_installer)
-
-if not hygienic:
- compass_script_installer = env.Install("$DESTDIR/bin", compass_installer)
-else:
- compass_script_installer = env.AutoInstall(
- target='$PREFIX_BINDIR',
- source=[
- compass_installer,
- ],
- AIB_COMPONENT='dist',
- AIB_ROLE='runtime',
- )
-
-if env.TargetOSIs('posix'):
- env.AddPostAction( compass_script_installer, 'chmod 755 $TARGET' )
- env.AddPostAction( compass_installer, 'chmod 755 $TARGET' )
-
if not hygienic:
server_archive = env.Command(
target='#/${SERVER_ARCHIVE}',
@@ -884,7 +847,6 @@ if not hygienic:
'--transform $BUILD_DIR/mongo/stripped/db/modules/enterprise=$SERVER_DIST_BASENAME/bin',
'--transform $BUILD_DIR/mongo/stripped=$SERVER_DIST_BASENAME/bin',
'--transform $BUILD_DIR/mongo=$SERVER_DIST_BASENAME/bin',
- '--transform src/mongo/installer/compass=$SERVER_DIST_BASENAME/bin',
'${TEMPFILE(SOURCES[1:])}'
],
),