diff options
author | 2016-11-15 16:42:33 +0000 | |
---|---|---|
committer | 2016-11-15 16:42:33 +0000 | |
commit | 5654ae0877a025b09fe1e642eb48da392e9b9db6 (patch) | |
tree | bf41ff0d1ce58e67ae74faf37e09bc93c4db3c23 /app-admin/mongo-tools/files | |
parent | sci-electronics/qucs: Avoid automagic dep on mpi (diff) | |
download | gentoo-5654ae0877a025b09fe1e642eb48da392e9b9db6.tar.gz gentoo-5654ae0877a025b09fe1e642eb48da392e9b9db6.tar.bz2 gentoo-5654ae0877a025b09fe1e642eb48da392e9b9db6.zip |
app-admin/mongo-tools: Build PIE (Position Independent Executables) to avoid text relocations. Patch by "runtarod" closes bug #582854.
Package-Manager: portage-2.3.0
Diffstat (limited to 'app-admin/mongo-tools/files')
-rw-r--r-- | app-admin/mongo-tools/files/mongo-tools-3.2.10-pie.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app-admin/mongo-tools/files/mongo-tools-3.2.10-pie.patch b/app-admin/mongo-tools/files/mongo-tools-3.2.10-pie.patch new file mode 100644 index 000000000000..6a80d75b2cb9 --- /dev/null +++ b/app-admin/mongo-tools/files/mongo-tools-3.2.10-pie.patch @@ -0,0 +1,12 @@ +diff -uNr mongo-tools-r3.2.10.ORIG/build.sh mongo-tools-r3.2.10/build.sh +--- mongo-tools-r3.2.10.ORIG/build.sh 2016-11-15 16:15:09.487441283 +0000 ++++ mongo-tools-r3.2.10/build.sh 2016-11-15 16:15:23.127235064 +0000 +@@ -22,7 +22,7 @@ + + for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongooplog; do + echo "Building ${i}..." +- go build -o "bin/$i" -tags "$tags" "$i/main/$i.go" ++ go build -buildmode=pie -o "bin/$i" -tags "$tags" "$i/main/$i.go" + ./bin/$i --version + done + |