summaryrefslogtreecommitdiff
path: root/app-admin/mongo-tools/files/mongo-tools-3.0.12-build.patch
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/mongo-tools/files/mongo-tools-3.0.12-build.patch')
-rw-r--r--app-admin/mongo-tools/files/mongo-tools-3.0.12-build.patch9
1 files changed, 9 insertions, 0 deletions
diff --git a/app-admin/mongo-tools/files/mongo-tools-3.0.12-build.patch b/app-admin/mongo-tools/files/mongo-tools-3.0.12-build.patch
new file mode 100644
index 000000000000..f3d881948679
--- /dev/null
+++ b/app-admin/mongo-tools/files/mongo-tools-3.0.12-build.patch
@@ -0,0 +1,9 @@
+--- a/build.sh 2016-04-29 20:14:54.000000000 +0200
++++ b/build.sh 2016-05-17 17:22:50.830113156 +0200
+@@ -19,5 +19,5 @@
+ for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongooplog; do
+ echo "Building ${i}..."
+ # Build the tool, using -ldflags to link in the current gitspec
+- go build -o "bin/$i" -ldflags "-X github.com/mongodb/mongo-tools/common/options.Gitspec=`git rev-parse HEAD` -X github.com/mongodb/mongo-tools/common/options.VersionStr=$(git describe)" -tags "$tags" "$i/main/$i.go"
++ go build -o "bin/$i" -tags "$tags" "$i/main/$i.go" || exit 1
+ done