SERVER-40242 Update banner inclusions for vendored tools

This commit is contained in:
Spencer Jackson 2019-03-22 13:22:44 -04:00
parent 92d941353e
commit e5d7bb7eaf
No known key found for this signature in database
GPG Key ID: 8C7FA5856CA7F642
16 changed files with 21 additions and 2 deletions

View File

@ -492,7 +492,7 @@ def unpack_binaries_into(build_os, arch, spec, where):
try:
sysassert(["tar", "xvzf", rootdir + "/" + tarfile(build_os, arch, spec)])
release_dir = glob('mongodb-linux-*')[0]
for releasefile in "bin", "LICENSE-Community.txt", "README", "THIRD-PARTY-NOTICES", "MPL-2":
for releasefile in "bin", "LICENSE-Community.txt", "README", "THIRD-PARTY-NOTICES", "THIRD-PARTY-NOTICES.gotools", "MPL-2":
print "moving file: %s/%s" % (release_dir, releasefile)
os.rename("%s/%s" % (release_dir, releasefile), releasefile)
os.rmdir(release_dir)

View File

@ -218,7 +218,7 @@ def unpack_binaries_into(build_os, arch, spec, where):
try:
packager.sysassert(["tar", "xvzf", rootdir + "/" + tarfile(build_os, arch, spec)])
release_dir = glob('mongodb-linux-*')[0]
for releasefile in "bin", "snmp", "LICENSE-Enterprise.txt", "README", "THIRD-PARTY-NOTICES", "MPL-2":
for releasefile in "bin", "snmp", "LICENSE-Enterprise.txt", "README", "THIRD-PARTY-NOTICES", "THIRD-PARTY-NOTICES.gotools", "MPL-2":
os.rename("%s/%s" % (release_dir, releasefile), releasefile)
os.rmdir(release_dir)
except Exception:

View File

@ -6,4 +6,5 @@ snmp/MONGODBINC-MIB.txt
LICENSE-Enterprise.txt
README
THIRD-PARTY-NOTICES
THIRD-PARTY-NOTICES.gotools
MPL-2

View File

@ -6,4 +6,5 @@ snmp/MONGODBINC-MIB.txt
LICENSE-Enterprise.txt
README
THIRD-PARTY-NOTICES
THIRD-PARTY-NOTICES.gotools
MPL-2

View File

@ -1,4 +1,5 @@
LICENSE-Community.txt
README
THIRD-PARTY-NOTICES
THIRD-PARTY-NOTICES.gotools
MPL-2

View File

@ -1,4 +1,5 @@
LICENSE-Community.txt
README
THIRD-PARTY-NOTICES
THIRD-PARTY-NOTICES.gotools
MPL-2

View File

@ -1026,6 +1026,9 @@ functions:
"../../../../../../mongo-tools/$i${exe|}" --version
done
mkdir -p ../../../../../../mongo-tools/distsrc
cp THIRD-PARTY-NOTICES ../../../../../../mongo-tools/distsrc/THIRD-PARTY-NOTICES.gotools
"get modified patch files":
command: shell.exec
params:

View File

@ -257,6 +257,7 @@ fi
%files tools
%defattr(-,root,root,-)
#%doc README
%doc THIRD-PARTY-NOTICES.gotools
%{_bindir}/bsondump
%{_bindir}/install_compass

View File

@ -246,6 +246,7 @@ fi
%files tools
%defattr(-,root,root,-)
#%doc README
%doc THIRD-PARTY-NOTICES.gotools
%{_bindir}/bsondump
%{_bindir}/install_compass

View File

@ -248,6 +248,7 @@ fi
%files tools
%defattr(-,root,root,-)
#%doc README
%doc THIRD-PARTY-NOTICES.gotools
%{_bindir}/bsondump
%{_bindir}/install_compass

View File

@ -257,6 +257,7 @@ fi
%files tools
%defattr(-,root,root,-)
#%doc README
%doc THIRD-PARTY-NOTICES.gotools
%{_bindir}/bsondump
%{_bindir}/install_compass

View File

@ -251,6 +251,7 @@ fi
%files tools
%defattr(-,root,root,-)
#%doc README
%doc THIRD-PARTY-NOTICES.gotools
%{_bindir}/bsondump
%{_bindir}/install_compass

View File

@ -239,6 +239,7 @@ fi
%files tools
%defattr(-,root,root,-)
#%doc README
%doc THIRD-PARTY-NOTICES.gotools
%{_bindir}/bsondump
%{_bindir}/install_compass

View File

@ -239,6 +239,7 @@ fi
%files tools
%defattr(-,root,root,-)
#%doc README
%doc THIRD-PARTY-NOTICES.gotools
%{_bindir}/bsondump
%{_bindir}/install_compass

View File

@ -251,6 +251,7 @@ fi
%files tools
%defattr(-,root,root,-)
#%doc README
%doc THIRD-PARTY-NOTICES.gotools
%{_bindir}/bsondump
%{_bindir}/install_compass

View File

@ -717,7 +717,11 @@ def installExternalBinary( e, name_str ):
# "--use-new-tools" adds dependencies for rewritten (Go) tools
# It is required for "dist" but optional for "install"
if has_option("use-new-tools"):
env.Append(MODULE_BANNERS=[env.File('#/src/mongo-tools/distsrc/THIRD-PARTY-NOTICES.gotools')])
toolsRoot = "src/mongo-tools"
for t in rewrittenTools:
installExternalBinary(env, "%s/%s" % (toolsRoot, t))
if has_option("build-mongoreplay") and get_option("build-mongoreplay") == "true":