forked from pool/docker
apply the gcc5 fix only for sle12, not for opensuse tumbleweed
OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=98
This commit is contained in:
parent
3e758ad610
commit
d627c46579
11
docker.spec
11
docker.spec
@ -157,19 +157,10 @@ Test package for docker. It contains the source code and the tests.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}
|
||||
# >= 1315 means leap, sle12, or Tumbleweed
|
||||
# gcc5-go in those distros includes this commit
|
||||
# https://github.com/golang/gofrontend/commit/a850225433a66a58613c22185c3b09626f5545eb
|
||||
# Which "fixes" the data type for RawSockaddr.Data
|
||||
# However, docker now expects the "wrong" data type, since docker had a workaround
|
||||
# for that issue.
|
||||
# Thus, we need to workaround the workaround
|
||||
%if 0%{?suse_version} >= 1315
|
||||
%patch1 -p1
|
||||
%endif
|
||||
%if 0%{?is_opensuse}
|
||||
# nothing
|
||||
%else
|
||||
%patch1 -p1
|
||||
%patch200 -p1
|
||||
%endif
|
||||
%ifnarch %go_arches
|
||||
|
Loading…
Reference in New Issue
Block a user