From a00b099f8a489d7a69d37bc637b61f3ed2945414 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 20 Jun 2018 12:48:11 +0200 Subject: community/consul: GOARCH=386 --- community/consul/PKGBUILD | 6 ++++++ community/consul/force-pie-build.patch | 11 +++++++++++ 2 files changed, 17 insertions(+) create mode 100644 community/consul/PKGBUILD create mode 100644 community/consul/force-pie-build.patch diff --git a/community/consul/PKGBUILD b/community/consul/PKGBUILD new file mode 100644 index 00000000..2b554253 --- /dev/null +++ b/community/consul/PKGBUILD @@ -0,0 +1,6 @@ +for ((i=0; i<${#source[@]}; i++)); do + if [ "${sha512sums[${i}]}" = '2c7323b889e9a040f8e2732aa192fbef87bb5eb81072a06a48f536cbdd93d7d219ea17b61e89dfebf915e85861cbb60dd889cb03a14e0a8197b081595e2a2783' ]; then + break + fi +done +sha512sums[${i}]='9c74086d013b97f57609eec5bab6d6c57cb3958cc993daebe702afa95a5f3db6efa7d6f391cb118c7a8685af4442ac0aca0150003751a2e55df91eee8bee9968' diff --git a/community/consul/force-pie-build.patch b/community/consul/force-pie-build.patch new file mode 100644 index 00000000..81fcad92 --- /dev/null +++ b/community/consul/force-pie-build.patch @@ -0,0 +1,11 @@ +--- a/GNUmakefile 2018-05-22 13:25:37.236071564 +0200 ++++ b/GNUmakefile 2018-05-22 13:26:44.852192711 +0200 +@@ -58,7 +58,7 @@ + # linux builds a linux package independent of the source platform + linux: + mkdir -p pkg/linux_amd64/ +- GOOS=linux GOARCH=amd64 go build -ldflags '$(GOLDFLAGS)' -tags '$(GOTAGS)' -o pkg/linux_amd64/consul ++ GOOS=linux GOARCH=386 go build -buildmode=pie -ldflags '$(GOLDFLAGS)' -tags '$(GOTAGS)' -o pkg/linux_amd64/consul + + # dist builds binaries for all platforms and packages them for distribution + dist: -- cgit v1.2.3-70-g09d2