Blob Blame History Raw
Author: Bernhard M. Wiedemann <bwiedemann suse de>
Date: 2018-08-30

https://bugzilla.opensuse.org/show_bug.cgi?id=1062303

Without this patch, there was always variation
in /usr/sbin/amazon-ecs-init differs in ELF section .gopclntab
  b7ed20 7a5f1e00 285f1e00 2f746d70 2f746d70  z_..(_../tmp/tmp
- b7ed30 2e6a4867 4463556e 6c46702f 7372632f  .jHgDcUnlFp/src/
+ b7ed30 2e385731 596d4c63 556a462f 7372632f  .8W1YmLcUjF/src/
  b7ed40 67697468 75622e63 6f6d2f61 77732f61  github.com/aws/a

See https://reproducible-builds.org/ for why this matters.

Index: amazon-ecs-init-1.18.0-1/scripts/gobuild.sh
===================================================================
--- amazon-ecs-init-1.18.0-1.orig/scripts/gobuild.sh
+++ amazon-ecs-init-1.18.0-1/scripts/gobuild.sh
@@ -15,7 +15,7 @@
 set -x
 set -e
 export TOPWD="$(pwd)"
-export BUILDDIR="$(mktemp -d)"
+export BUILDDIR="$TOPWD/build"
 export GOPATH="${TOPWD}/ecs-init/:${BUILDDIR}"
 export SRCPATH="${BUILDDIR}/src/github.com/aws/amazon-ecs-init"