Compare commits

...

No commits in common. "stream-mongodb-3.6-rhel-8.9.0" and "c8-stream-3.6" have entirely different histories.

15 changed files with 14 additions and 29 deletions

1
.mongo-tools.metadata Normal file
View File

@ -0,0 +1 @@
3dcb29faa50b161fa43ac008da0ee429c37aa479 SOURCES/mongo-tools-bd441aa.tar.gz

View File

@ -1,7 +1,6 @@
%global with_bundled 1 %global with_bundled 1
%global with_debug 1 %global with_debug 1
%global with_check 1 %global with_check 1
%undefine _debugsource_packages
%global provider github %global provider github
%global provider_tld com %global provider_tld com
@ -20,13 +19,13 @@
# BUILD_ID can be generated for golang build no matter of debuginfo # BUILD_ID can be generated for golang build no matter of debuginfo
%define gobuild(o:) \ %define gobuild(o:) \
%ifnarch ppc64 \ %ifnarch ppc64 \
go build -buildmode pie -compiler gc -tags=rpm_crashtraceback -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v -x %{?**};\ scl enable go-toolset-1.10 -- go build -buildmode pie -compiler gc -tags=rpm_crashtraceback -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v -x %{?**};\
%else \ %else \
go build -compiler gc -tags=rpm_crashtraceback -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v -x %{?**};\ scl enable go-toolset-1.10 -- go build -compiler gc -tags=rpm_crashtraceback -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v -x %{?**};\
%endif %endif
# Define commands for testing - from go-compilers-golang-compiler rpm # Define commands for testing - from go-compilers-golang-compiler rpm
%define gotest() go test -compiler gc -ldflags "${LDFLAGS:-}" %{?**}; %define gotest() scl enable go-toolset-1.10 'go test -compiler gc -ldflags "${LDFLAGS:-}" %{?**}';
Name: %{repo} Name: %{repo}
@ -50,13 +49,12 @@ Source9: https://github.com/mongodb/mongo/raw/%{mongohash}/debian/mongoto
Source10: https://github.com/mongodb/mongo/raw/%{mongohash}/APACHE-2.0.txt Source10: https://github.com/mongodb/mongo/raw/%{mongohash}/APACHE-2.0.txt
Patch0: change-import-path.patch Patch0: change-import-path.patch
Patch1: mongodb-tools-fixparam.patch
# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required # e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
ExclusiveArch: x86_64 aarch64 ppc64le s390x %{arm} ExclusiveArch: x86_64 aarch64 ppc64le s390x
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead. # If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
#BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang} #BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}
BuildRequires: golang BuildRequires: go-toolset-1.10-golang
BuildRequires: openssl-devel BuildRequires: openssl-devel
%if ! 0%{?with_bundled} %if ! 0%{?with_bundled}
@ -129,7 +127,6 @@ building other packages which use %{project}/%{repo}.
%if ! 0%{?with_bundled} %if ! 0%{?with_bundled}
%patch0 -p1 %patch0 -p1
%endif %endif
%patch1 -p1
sed -i.bak -e "s/built-without-version-string/%{version}/" \ sed -i.bak -e "s/built-without-version-string/%{version}/" \
-e "s/built-without-git-spec/%{shortcommit}/" \ -e "s/built-without-git-spec/%{shortcommit}/" \
@ -206,7 +203,7 @@ export GOPATH=%{buildroot}/%{gopath}:%{gopath}
export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath} export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath}
%endif %endif
# %gotest %{import_path}/common/bsonutil %gotest %{import_path}/common/bsonutil
# import cycle not allowed in test # import cycle not allowed in test
#%gotest %{import_path}/common/db #%gotest %{import_path}/common/db
# upstream bug, removed field from Intents struct # upstream bug, removed field from Intents struct
@ -215,15 +212,15 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath}
#gotest {import_path}/common/json #gotest {import_path}/common/json
# import cycle not allowed in test # import cycle not allowed in test
#gotest {import_path}/common/log #gotest {import_path}/common/log
#%gotest %{import_path}/common/progress %gotest %{import_path}/common/progress
#%gotest %{import_path}/common/text %gotest %{import_path}/common/text
#%gotest %{import_path}/common/util #%gotest %{import_path}/common/util
#%gotest %{import_path}/mongodump %gotest %{import_path}/mongodump
#%gotest %{import_path}/mongoexport %gotest %{import_path}/mongoexport
#%gotest %{import_path}/mongofiles %gotest %{import_path}/mongofiles
#gotest {import_path}/mongoimport #gotest {import_path}/mongoimport
#%gotest %{import_path}/mongorestore %gotest %{import_path}/mongorestore
#%gotest %{import_path}/mongostat %gotest %{import_path}/mongostat
#%gotest %{import_path}/mongoreplay #%gotest %{import_path}/mongoreplay
%endif %endif

View File

@ -1,12 +0,0 @@
diff -Naurp a/mongorestore/filepath.go b/mongorestore/filepath.go
--- a/mongorestore/filepath.go 2018-06-29 18:11:47.000000000 +0000
+++ b/mongorestore/filepath.go 2019-06-18 19:37:20.342889629 +0000
@@ -360,7 +360,7 @@ func (restore *MongoRestore) CreateInten
// Server versions >= 3.0.3 disallow user inserts to system.profile so
// it would likely fail anyway.
if collection == "system.profile" {
- log.Logvf(log.DebugLow, "skipping restore of system.profile collection", db)
+ log.Logvf(log.DebugLow, "skipping restore of system.profile collection %v", db)
skip = true
}
// skip restoring the indexes collection if we are using metadata

View File

@ -1 +0,0 @@
SHA512 (mongo-tools-bd441aa.tar.gz) = bef820fa810baf9c8b6530630b0aee534cc64c010fc3e9f110c69f9259ceb1e67dc119229baed632591a78f59a02406929756e60f147b5776ced71e862825c6d