mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-21 22:41:09 +02:00
dev-db/etcd: Fix etcd2 on arm64
If we build a program, we probably expect to be able to run it.
This commit is contained in:
parent
8e5538bab8
commit
40c5052cfb
@ -27,6 +27,11 @@ IUSE="+etcdctl"
|
||||
RDEPEND="!dev-db/etcd:0
|
||||
etcdctl? ( !dev-db/etcdctl )"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PN}-2.3.8-fix-pointless-breakage.patch"
|
||||
coreos-go_src_prepare "$@"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
GO_LDFLAGS="-X ${COREOS_GO_PACKAGE}/version.GitSHA=${CROS_WORKON_COMMIT:0:7}"
|
||||
go_build "${COREOS_GO_PACKAGE}"
|
||||
|
@ -0,0 +1,10 @@
|
||||
--- etcdmain/etcd.go
|
||||
+++ etcdmain/etcd.go
|
||||
@@ -555,6 +555,7 @@
|
||||
}
|
||||
|
||||
func checkSupportArch() {
|
||||
+ return
|
||||
// TODO qualify arm64
|
||||
if runtime.GOARCH == "amd64" {
|
||||
return
|
Loading…
x
Reference in New Issue
Block a user