File reproducible.patch of Package amazon-ecs-init
28
1
Author: Bernhard M. Wiedemann <bwiedemann suse de>
2
Date: 2018-08-30
3
4
https://bugzilla.opensuse.org/show_bug.cgi?id=1062303
5
6
Without this patch, there was always variation
7
in /usr/sbin/amazon-ecs-init differs in ELF section .gopclntab
8
b7ed20 7a5f1e00 285f1e00 2f746d70 2f746d70 z_..(_../tmp/tmp
9
- b7ed30 2e6a4867 4463556e 6c46702f 7372632f .jHgDcUnlFp/src/
10
+ b7ed30 2e385731 596d4c63 556a462f 7372632f .8W1YmLcUjF/src/
11
b7ed40 67697468 75622e63 6f6d2f61 77732f61 github.com/aws/a
12
13
See https://reproducible-builds.org/ for why this matters.
14
15
Index: amazon-ecs-init-1.18.0-1/scripts/gobuild.sh
16
===================================================================
17
--- amazon-ecs-init-1.18.0-1.orig/scripts/gobuild.sh
18
+++ amazon-ecs-init-1.18.0-1/scripts/gobuild.sh
19
20
set -x
21
set -e
22
export TOPWD="$(pwd)"
23
-export BUILDDIR="$(mktemp -d)"
24
+export BUILDDIR="$TOPWD/build"
25
export GOPATH="${TOPWD}/ecs-init/:${BUILDDIR}"
26
export SRCPATH="${BUILDDIR}/src/github.com/aws/amazon-ecs-init"
27
28