[141185] trunk/dports/devel/mongo-tools
ryandesign at macports.org
ryandesign at macports.org
Sun Oct 11 19:12:23 PDT 2015
Revision: 141185
https://trac.macports.org/changeset/141185
Author: ryandesign at macports.org
Date: 2015-10-11 19:12:23 -0700 (Sun, 11 Oct 2015)
Log Message:
-----------
mongo-tools: fix build with go 1.5 (#49147)
Modified Paths:
--------------
trunk/dports/devel/mongo-tools/Portfile
Added Paths:
-----------
trunk/dports/devel/mongo-tools/files/
trunk/dports/devel/mongo-tools/files/patch-build.sh.diff
Modified: trunk/dports/devel/mongo-tools/Portfile
===================================================================
--- trunk/dports/devel/mongo-tools/Portfile 2015-10-12 00:23:04 UTC (rev 141184)
+++ trunk/dports/devel/mongo-tools/Portfile 2015-10-12 02:12:23 UTC (rev 141185)
@@ -32,6 +32,8 @@
depends_build port:go
+patchfiles patch-build.sh.diff
+
use_configure no
build.cmd ./build.sh
Added: trunk/dports/devel/mongo-tools/files/patch-build.sh.diff
===================================================================
--- trunk/dports/devel/mongo-tools/files/patch-build.sh.diff (rev 0)
+++ trunk/dports/devel/mongo-tools/files/patch-build.sh.diff 2015-10-12 02:12:23 UTC (rev 141185)
@@ -0,0 +1,10 @@
+go 1.5 compatibility
+--- build.sh.orig 2015-09-25 15:05:08.000000000 -0500
++++ build.sh 2015-10-11 21:05:46.000000000 -0500
+@@ -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`" -tags "$tags" "$i/main/$i.go"
++ go build -o "bin/$i" -ldflags "-X github.com/mongodb/mongo-tools/common/options.Gitspec=`git rev-parse HEAD`" -tags "$tags" "$i/main/$i.go"
+ done
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151011/09cb5bb2/attachment.html>
More information about the macports-changes
mailing list