From c892a8d6203dc0fb40a0b107ebbcea994c1afc0b Mon Sep 17 00:00:00 2001 From: Thomas Tanaka Date: Fri, 15 Apr 2016 09:48:53 -0700 Subject: [PATCH] DWZ problem with multiple golang binary caused OL7 RPM build to fail Refering to this: https://fedoraproject.org/wiki/PackagingDrafts/Go this could be due to the following bug: https://bugzilla.redhat.com/show_bug.cgi?id=995136#c12 This fixes #22051 Signed-off-by: Thomas Tanaka --- hack/make/.build-rpm/docker-engine.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hack/make/.build-rpm/docker-engine.spec b/hack/make/.build-rpm/docker-engine.spec index 4f366dd39d..a9c7276eee 100644 --- a/hack/make/.build-rpm/docker-engine.spec +++ b/hack/make/.build-rpm/docker-engine.spec @@ -60,6 +60,12 @@ Requires: device-mapper >= 1.02.90-2 %global with_selinux 1 %endif +# DWZ problem with multiple golang binary, see bug +# https://bugzilla.redhat.com/show_bug.cgi?id=995136#c12 +%if 0%{?fedora} >= 20 || 0%{?rhel} >= 7 || 0%{?oraclelinux} >= 7 +%global _dwz_low_mem_die_limit 0 +%endif + # start if with_selinux %if 0%{?with_selinux} # Version of SELinux we were using