From 8517d24bade636eb269068c8643d96603ed7cb2e Mon Sep 17 00:00:00 2001 From: Alex Crawford Date: Wed, 16 Nov 2016 11:11:37 -0800 Subject: [PATCH] app-emulation/docker: disable optimizations With optimizations enabled, seccomp fails to compile with errors like: error: enumerator value for '__cgo_enum__0' is not an integer constant This is due to https://github.com/golang/go/issues/14669. --- .../docker/{docker-1.12.3.ebuild => docker-1.12.3-r1.ebuild} | 0 .../coreos-overlay/app-emulation/docker/docker-9999.ebuild | 3 +++ 2 files changed, 3 insertions(+) rename sdk_container/src/third_party/coreos-overlay/app-emulation/docker/{docker-1.12.3.ebuild => docker-1.12.3-r1.ebuild} (100%) diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/docker-1.12.3.ebuild b/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/docker-1.12.3-r1.ebuild similarity index 100% rename from sdk_container/src/third_party/coreos-overlay/app-emulation/docker/docker-1.12.3.ebuild rename to sdk_container/src/third_party/coreos-overlay/app-emulation/docker/docker-1.12.3-r1.ebuild diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/docker-9999.ebuild b/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/docker-9999.ebuild index 4fa61f6477..6a4e103356 100644 --- a/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/docker-9999.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/docker-9999.ebuild @@ -252,6 +252,9 @@ src_compile() { unset DOCKER_EXPERIMENTAL fi + # disable optimizations due to https://github.com/golang/go/issues/14669 + CFLAGS+=" -O0" + go_export # verbose building