Browse Source

Merge pull request #22076 from thtanaka/rpmbuild-error

DWZ problem with multiple golang binary caused OL7 RPM build to fail
Alexander Morozov 9 years ago
parent
commit
ebc5a61593
1 changed files with 6 additions and 0 deletions
  1. 6 0
      hack/make/.build-rpm/docker-engine.spec

+ 6 - 0
hack/make/.build-rpm/docker-engine.spec

@@ -60,6 +60,12 @@ Requires: device-mapper >= 1.02.90-2
 %global with_selinux 1
 %global with_selinux 1
 %endif
 %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
 # start if with_selinux
 %if 0%{?with_selinux}
 %if 0%{?with_selinux}
 # Version of SELinux we were using
 # Version of SELinux we were using