|
|
|
@ -1,3 +1,12 @@
|
|
|
|
|
%bcond_with bootstrap
|
|
|
|
|
# temporalily ignore test failures
|
|
|
|
|
# due to https://github.com/golang/go/issues/39466
|
|
|
|
|
%ifarch aarch64
|
|
|
|
|
%bcond_without ignore_tests
|
|
|
|
|
%else
|
|
|
|
|
%bcond_with ignore_tests
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# build ids are not currently generated:
|
|
|
|
|
# https://code.google.com/p/go/issues/detail?id=5238
|
|
|
|
|
#
|
|
|
|
@ -22,8 +31,58 @@
|
|
|
|
|
%global __spec_install_post /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot \
|
|
|
|
|
/usr/lib/rpm/brp-compress
|
|
|
|
|
|
|
|
|
|
# let this match the macros in macros.golang
|
|
|
|
|
%global golibdir %{_libdir}/golang
|
|
|
|
|
|
|
|
|
|
# This macro may not always be defined, ensure it is
|
|
|
|
|
%{!?gopath: %global gopath %{_datadir}/gocode}
|
|
|
|
|
|
|
|
|
|
# Golang build options.
|
|
|
|
|
|
|
|
|
|
# Build golang using external/internal(close to cgo disabled) linking.
|
|
|
|
|
%ifarch %{ix86} x86_64 ppc64le %{arm} aarch64 s390x
|
|
|
|
|
%global external_linker 1
|
|
|
|
|
%else
|
|
|
|
|
%global external_linker 0
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Build golang with cgo enabled/disabled(later equals more or less to internal linking).
|
|
|
|
|
%ifarch %{ix86} x86_64 ppc64le %{arm} aarch64 s390x
|
|
|
|
|
%global cgo_enabled 1
|
|
|
|
|
%else
|
|
|
|
|
%global cgo_enabled 0
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Use golang/gcc-go as bootstrap compiler
|
|
|
|
|
%if %{with bootstrap}
|
|
|
|
|
%global golang_bootstrap 0
|
|
|
|
|
%else
|
|
|
|
|
%global golang_bootstrap 1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Controls what ever we fail on failed tests
|
|
|
|
|
%if %{with ignore_tests}
|
|
|
|
|
%global fail_on_tests 0
|
|
|
|
|
%else
|
|
|
|
|
%global fail_on_tests 1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Build golang shared objects for stdlib
|
|
|
|
|
%ifarch %{ix86} x86_64 ppc64le %{arm} aarch64
|
|
|
|
|
%global shared 1
|
|
|
|
|
%else
|
|
|
|
|
%global shared 0
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Pre build std lib with -race enabled
|
|
|
|
|
%ifarch x86_64
|
|
|
|
|
%global race 1
|
|
|
|
|
%else
|
|
|
|
|
%global race 0
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Fedora GOROOT
|
|
|
|
|
%global goroot /usr/lib/%{name}
|
|
|
|
|
|
|
|
|
|
%ifarch x86_64
|
|
|
|
|
%global gohostarch amd64
|
|
|
|
|
%endif
|
|
|
|
@ -36,51 +95,148 @@
|
|
|
|
|
%ifarch aarch64
|
|
|
|
|
%global gohostarch arm64
|
|
|
|
|
%endif
|
|
|
|
|
%ifarch ppc64
|
|
|
|
|
%global gohostarch ppc64
|
|
|
|
|
%endif
|
|
|
|
|
%ifarch ppc64le
|
|
|
|
|
%global gohostarch ppc64le
|
|
|
|
|
%endif
|
|
|
|
|
%ifarch s390x
|
|
|
|
|
%global gohostarch s390x
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%global go_api 1.5
|
|
|
|
|
%global go_version 1.5.1
|
|
|
|
|
%global go_api 1.15
|
|
|
|
|
%global go_version 1.15.5
|
|
|
|
|
|
|
|
|
|
Name: golang
|
|
|
|
|
Version: 1.5.1
|
|
|
|
|
Release: 0%{?dist}
|
|
|
|
|
Version: 1.15.5
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: The Go Programming Language
|
|
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
|
# source tree includes several copies of Mark.Twain-Tom.Sawyer.txt under Public Domain
|
|
|
|
|
License: BSD and Public Domain
|
|
|
|
|
URL: http://golang.org/
|
|
|
|
|
Source0: https://storage.googleapis.com/golang/go%{go_version}.src.tar.gz
|
|
|
|
|
# make possible to override default traceback level at build time by setting build tag rpm_crashtraceback
|
|
|
|
|
Source1: fedora.go
|
|
|
|
|
|
|
|
|
|
# go1.5 bootstrapping. The compiler is written in golang.
|
|
|
|
|
# The compiler is written in Go. Needs go(1.4+) compiler for build.
|
|
|
|
|
%if !%{golang_bootstrap}
|
|
|
|
|
BuildRequires: gcc-go >= 5
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: golang > 1.4
|
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?rhel} > 6 || 0%{?fedora} > 0
|
|
|
|
|
BuildRequires: hostname
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: net-tools
|
|
|
|
|
%endif
|
|
|
|
|
# use the arch dependent path in the bootstrap
|
|
|
|
|
Patch212: golang-1.5-bootstrap-binary-path.patch
|
|
|
|
|
# for tests
|
|
|
|
|
BuildRequires: pcre-devel, glibc-static, perl-interpreter, procps-ng
|
|
|
|
|
|
|
|
|
|
Provides: go = %{version}-%{release}
|
|
|
|
|
Requires: %{name}-bin
|
|
|
|
|
|
|
|
|
|
# Bundled/Vendored provides generated by
|
|
|
|
|
# go list -f {{.ImportPath}} ./src/vendor/... | sed "s:_$PWD/src/vendor/::g;s:_:.:;s:.*:Provides\: bundled(golang(&)):" && go list -f {{.ImportPath}} ./src/cmd/vendor/... | sed "s:_$PWD/src/cmd/vendor/::g;s:_:.:;s:.*:Provides\: bundled(golang(&)):"
|
|
|
|
|
Provides: bundled(golang(golang.org/x/crypto/chacha20))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/crypto/chacha20poly1305))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/crypto/cryptobyte))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/crypto/cryptobyte/asn1))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/crypto/curve25519))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/crypto/hkdf))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/crypto/internal/subtle))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/crypto/poly1305))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/net/dns/dnsmessage))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/net/http/httpguts))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/net/http/httpproxy))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/net/http2/hpack))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/net/idna))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/net/nettest))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/sys/cpu))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/text/secure/bidirule))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/text/transform))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/text/unicode/bidi))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/text/unicode/norm))
|
|
|
|
|
Provides: bundled(golang(github.com/google/pprof/driver))
|
|
|
|
|
Provides: bundled(golang(github.com/google/pprof/internal/binutils))
|
|
|
|
|
Provides: bundled(golang(github.com/google/pprof/internal/driver))
|
|
|
|
|
Provides: bundled(golang(github.com/google/pprof/internal/elfexec))
|
|
|
|
|
Provides: bundled(golang(github.com/google/pprof/internal/graph))
|
|
|
|
|
Provides: bundled(golang(github.com/google/pprof/internal/measurement))
|
|
|
|
|
Provides: bundled(golang(github.com/google/pprof/internal/plugin))
|
|
|
|
|
Provides: bundled(golang(github.com/google/pprof/internal/report))
|
|
|
|
|
Provides: bundled(golang(github.com/google/pprof/internal/symbolizer))
|
|
|
|
|
Provides: bundled(golang(github.com/google/pprof/internal/symbolz))
|
|
|
|
|
Provides: bundled(golang(github.com/google/pprof/internal/transport))
|
|
|
|
|
Provides: bundled(golang(github.com/google/pprof/profile))
|
|
|
|
|
Provides: bundled(golang(github.com/google/pprof/third.party/d3))
|
|
|
|
|
Provides: bundled(golang(github.com/google/pprof/third.party/d3flamegraph))
|
|
|
|
|
Provides: bundled(golang(github.com/google/pprof/third.party/svgpan))
|
|
|
|
|
Provides: bundled(golang(github.com/ianlancetaylor/demangle))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/arch/arm/armasm))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/arch/arm64/arm64asm))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/arch/ppc64/ppc64asm))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/arch/x86/x86asm))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/crypto/ed25519))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/crypto/ed25519/internal/edwards25519))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/crypto/ssh/terminal))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/mod/internal/lazyregexp))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/mod/modfile))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/mod/module))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/mod/semver))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/mod/sumdb))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/mod/sumdb/dirhash))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/mod/sumdb/note))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/mod/sumdb/tlog))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/mod/zip))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/sys/internal/unsafeheader))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/sys/unix))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/analysis))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/analysis/internal/analysisflags))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/analysis/internal/facts))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/analysis/passes/asmdecl))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/analysis/passes/assign))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/analysis/passes/atomic))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/analysis/passes/bools))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/analysis/passes/buildtag))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/analysis/passes/cgocall))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/analysis/passes/composite))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/analysis/passes/copylock))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/analysis/passes/ctrlflow))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/analysis/passes/errorsas))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/analysis/passes/httpresponse))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/analysis/passes/ifaceassert))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/analysis/passes/inspect))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/analysis/passes/internal/analysisutil))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/analysis/passes/loopclosure))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/analysis/passes/lostcancel))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/analysis/passes/nilfunc))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/analysis/passes/printf))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/analysis/passes/shift))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/analysis/passes/stdmethods))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/analysis/passes/stringintconv))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/analysis/passes/structtag))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/analysis/passes/tests))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/analysis/passes/unmarshal))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/analysis/passes/unreachable))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/analysis/passes/unsafeptr))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/analysis/passes/unusedresult))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/analysis/unitchecker))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/ast/astutil))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/ast/inspector))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/cfg))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/types/objectpath))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/go/types/typeutil))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/tools/internal/analysisinternal))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/xerrors))
|
|
|
|
|
Provides: bundled(golang(golang.org/x/xerrors/internal))
|
|
|
|
|
|
|
|
|
|
Requires: %{name}-bin = %{version}-%{release}
|
|
|
|
|
Requires: %{name}-src = %{version}-%{release}
|
|
|
|
|
Requires: go-srpm-macros
|
|
|
|
|
|
|
|
|
|
Patch0: golang-1.2-verbose-build.patch
|
|
|
|
|
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1038683
|
|
|
|
|
Patch1: golang-1.2-remove-ECC-p224.patch
|
|
|
|
|
|
|
|
|
|
# disable TestGdbPython
|
|
|
|
|
# https://github.com/golang/go/issues/11214
|
|
|
|
|
Patch213: go1.5beta1-disable-TestGdbPython.patch
|
|
|
|
|
|
|
|
|
|
# disable TestCloneNEWUSERAndRemapNoRootDisableSetgroups
|
|
|
|
|
# this is not possible in the limitied build chroot
|
|
|
|
|
Patch214: go1.5beta2-disable-TestCloneNEWUSERAndRemapNoRootDisableSetgroups.patch
|
|
|
|
|
|
|
|
|
|
# we had been just removing the zoneinfo.zip, but that caused tests to fail for users that
|
|
|
|
|
# later run `go test -a std`. This makes it only use the zoneinfo.zip where needed in tests.
|
|
|
|
|
Patch215: ./go1.5-zoneinfo_testing_only.patch
|
|
|
|
|
Patch1: 0001-Don-t-use-the-bundled-tzdata-at-runtime-except-for-t.patch
|
|
|
|
|
Patch2: 0002-syscall-expose-IfInfomsg.X__ifi_pad-on-s390x.patch
|
|
|
|
|
Patch3: 0003-cmd-go-disable-Google-s-proxy-and-sumdb.patch
|
|
|
|
|
|
|
|
|
|
# Having documentation separate was broken
|
|
|
|
|
Obsoletes: %{name}-docs < 1.1-4
|
|
|
|
@ -96,7 +252,6 @@ Obsoletes: emacs-%{name} < 1.4
|
|
|
|
|
ExclusiveArch: %{golang_arches}
|
|
|
|
|
|
|
|
|
|
Source100: golang-gdbinit
|
|
|
|
|
Source101: golang-prelink.conf
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
%{summary}.
|
|
|
|
@ -134,6 +289,8 @@ BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%package bin
|
|
|
|
|
Summary: Golang core compiler tools
|
|
|
|
|
# Some distributions refer to this package by this name
|
|
|
|
|
Provides: %{name}-go = %{version}-%{release}
|
|
|
|
|
Requires: go = %{version}-%{release}
|
|
|
|
|
# Pre-go1.5, all arches had to be bootstrapped individually, before usable, and
|
|
|
|
|
# env variables to compile for the target os-arch.
|
|
|
|
@ -160,13 +317,21 @@ Obsoletes: %{name}-pkg-netbsd-arm < 1.4.99
|
|
|
|
|
Obsoletes: %{name}-pkg-openbsd-386 < 1.4.99
|
|
|
|
|
Obsoletes: %{name}-pkg-openbsd-amd64 < 1.4.99
|
|
|
|
|
|
|
|
|
|
Obsoletes: golang-vet < 0-12.1
|
|
|
|
|
Obsoletes: golang-cover < 0-12.1
|
|
|
|
|
|
|
|
|
|
Requires(post): %{_sbindir}/update-alternatives
|
|
|
|
|
Requires(postun): %{_sbindir}/update-alternatives
|
|
|
|
|
Requires(preun): %{_sbindir}/update-alternatives
|
|
|
|
|
|
|
|
|
|
# We strip the meta dependency, but go does require glibc.
|
|
|
|
|
# This is an odd issue, still looking for a better fix.
|
|
|
|
|
Requires: glibc
|
|
|
|
|
Requires: gcc
|
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} < 8
|
|
|
|
|
Requires: git, subversion, mercurial
|
|
|
|
|
%else
|
|
|
|
|
Recommends: git, subversion, mercurial
|
|
|
|
|
%endif
|
|
|
|
|
%description bin
|
|
|
|
|
%{summary}
|
|
|
|
|
|
|
|
|
@ -180,7 +345,7 @@ for _,d in pairs({"api", "doc", "include", "lib", "src"}) do
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
%ifarch x86_64
|
|
|
|
|
%if %{shared}
|
|
|
|
|
%package shared
|
|
|
|
|
Summary: Golang shared object libraries
|
|
|
|
|
|
|
|
|
@ -188,57 +353,70 @@ Summary: Golang shared object libraries
|
|
|
|
|
%{summary}.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{race}
|
|
|
|
|
%package race
|
|
|
|
|
Summary: Golang std library with -race enabled
|
|
|
|
|
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description race
|
|
|
|
|
%{summary}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n go
|
|
|
|
|
%autosetup -p1 -n go
|
|
|
|
|
|
|
|
|
|
# increase verbosity of build
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
|
|
# remove the P224 curve
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
|
|
|
|
|
# use the arch dependent path in the bootstrap
|
|
|
|
|
%patch212 -p1
|
|
|
|
|
|
|
|
|
|
# disable TestGdbPython
|
|
|
|
|
%patch213 -p1
|
|
|
|
|
|
|
|
|
|
# disable TestCloneNEWUSERAndRemapNoRootDisableSetgroups
|
|
|
|
|
%patch214 -p1
|
|
|
|
|
cp %{SOURCE1} ./src/runtime/
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# go1.5 bootstrapping. The compiler is written in golang.
|
|
|
|
|
# print out system information
|
|
|
|
|
uname -a
|
|
|
|
|
cat /proc/cpuinfo
|
|
|
|
|
cat /proc/meminfo
|
|
|
|
|
|
|
|
|
|
# bootstrap compiler GOROOT
|
|
|
|
|
%if !%{golang_bootstrap}
|
|
|
|
|
export GOROOT_BOOTSTRAP=/
|
|
|
|
|
%else
|
|
|
|
|
export GOROOT_BOOTSTRAP=%{goroot}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# set up final install location
|
|
|
|
|
export GOROOT_FINAL=%{goroot}
|
|
|
|
|
|
|
|
|
|
# TODO use the system linker to get the system link flags and build-id
|
|
|
|
|
# when https://code.google.com/p/go/issues/detail?id=5221 is solved
|
|
|
|
|
#export GO_LDFLAGS="-linkmode external -extldflags $RPM_LD_FLAGS"
|
|
|
|
|
|
|
|
|
|
export GOHOSTOS=linux
|
|
|
|
|
export GOHOSTARCH=%{gohostarch}
|
|
|
|
|
|
|
|
|
|
pushd src
|
|
|
|
|
# use our gcc options for this build, but store gcc as default for compiler
|
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS" \
|
|
|
|
|
LDFLAGS="$RPM_LD_FLAGS" \
|
|
|
|
|
CC="gcc" \
|
|
|
|
|
CC_FOR_TARGET="gcc" \
|
|
|
|
|
GOOS=linux \
|
|
|
|
|
GOARCH=%{gohostarch} \
|
|
|
|
|
./make.bash --no-clean
|
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
|
export LDFLAGS="$RPM_LD_FLAGS"
|
|
|
|
|
export CC="gcc"
|
|
|
|
|
export CC_FOR_TARGET="gcc"
|
|
|
|
|
export GOOS=linux
|
|
|
|
|
export GOARCH=%{gohostarch}
|
|
|
|
|
%if !%{external_linker}
|
|
|
|
|
export GO_LDFLAGS="-linkmode internal"
|
|
|
|
|
%endif
|
|
|
|
|
%if !%{cgo_enabled}
|
|
|
|
|
export CGO_ENABLED=0
|
|
|
|
|
%endif
|
|
|
|
|
./make.bash --no-clean -v
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%ifarch x86_64
|
|
|
|
|
# TODO get linux/386 support for shared objects.
|
|
|
|
|
# golang shared objects for stdlib
|
|
|
|
|
GOROOT=$(pwd) PATH=$(pwd)/bin:$PATH go install -buildmode=shared std
|
|
|
|
|
# build shared std lib
|
|
|
|
|
%if %{shared}
|
|
|
|
|
GOROOT=$(pwd) PATH=$(pwd)/bin:$PATH go install -buildmode=shared -v -x std
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{race}
|
|
|
|
|
GOROOT=$(pwd) PATH=$(pwd)/bin:$PATH go install -race -v -x std
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
# remove GC build cache
|
|
|
|
|
rm -rf pkg/obj/go-build/*
|
|
|
|
|
|
|
|
|
|
# create the top level directories
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
@ -259,17 +437,18 @@ cwd=$(pwd)
|
|
|
|
|
src_list=$cwd/go-src.list
|
|
|
|
|
pkg_list=$cwd/go-pkg.list
|
|
|
|
|
shared_list=$cwd/go-shared.list
|
|
|
|
|
race_list=$cwd/go-race.list
|
|
|
|
|
misc_list=$cwd/go-misc.list
|
|
|
|
|
docs_list=$cwd/go-docs.list
|
|
|
|
|
tests_list=$cwd/go-tests.list
|
|
|
|
|
rm -f $src_list $pkg_list $docs_list $misc_list $tests_list $shared_list
|
|
|
|
|
touch $src_list $pkg_list $docs_list $misc_list $tests_list $shared_list
|
|
|
|
|
rm -f $src_list $pkg_list $docs_list $misc_list $tests_list $shared_list $race_list
|
|
|
|
|
touch $src_list $pkg_list $docs_list $misc_list $tests_list $shared_list $race_list
|
|
|
|
|
pushd $RPM_BUILD_ROOT%{goroot}
|
|
|
|
|
find src/ -type d -a \( ! -name testdata -a ! -ipath '*/testdata/*' \) -printf '%%%dir %{goroot}/%p\n' >> $src_list
|
|
|
|
|
find src/ ! -type d -a \( ! -ipath '*/testdata/*' -a ! -name '*_test*.go' \) -printf '%{goroot}/%p\n' >> $src_list
|
|
|
|
|
find src/ ! -type d -a \( ! -ipath '*/testdata/*' -a ! -name '*_test.go' \) -printf '%{goroot}/%p\n' >> $src_list
|
|
|
|
|
|
|
|
|
|
find bin/ pkg/ -type d -a ! -path '*_dynlink/*' -printf '%%%dir %{goroot}/%p\n' >> $pkg_list
|
|
|
|
|
find bin/ pkg/ ! -type d -a ! -path '*_dynlink/*' -printf '%{goroot}/%p\n' >> $pkg_list
|
|
|
|
|
find bin/ pkg/ -type d -a ! -path '*_dynlink/*' -a ! -path '*_race/*' -printf '%%%dir %{goroot}/%p\n' >> $pkg_list
|
|
|
|
|
find bin/ pkg/ ! -type d -a ! -path '*_dynlink/*' -a ! -path '*_race/*' -printf '%{goroot}/%p\n' >> $pkg_list
|
|
|
|
|
|
|
|
|
|
find doc/ -type d -printf '%%%dir %{goroot}/%p\n' >> $docs_list
|
|
|
|
|
find doc/ ! -type d -printf '%{goroot}/%p\n' >> $docs_list
|
|
|
|
@ -277,15 +456,34 @@ pushd $RPM_BUILD_ROOT%{goroot}
|
|
|
|
|
find misc/ -type d -printf '%%%dir %{goroot}/%p\n' >> $misc_list
|
|
|
|
|
find misc/ ! -type d -printf '%{goroot}/%p\n' >> $misc_list
|
|
|
|
|
|
|
|
|
|
%ifarch x86_64
|
|
|
|
|
%if %{shared}
|
|
|
|
|
mkdir -p %{buildroot}/%{_libdir}/
|
|
|
|
|
mkdir -p %{buildroot}/%{golibdir}/
|
|
|
|
|
for file in $(find . -iname "*.so" ); do
|
|
|
|
|
chmod 755 $file
|
|
|
|
|
mv $file %{buildroot}/%{golibdir}
|
|
|
|
|
pushd $(dirname $file)
|
|
|
|
|
ln -fs %{golibdir}/$(basename $file) $(basename $file)
|
|
|
|
|
popd
|
|
|
|
|
echo "%%{goroot}/$file" >> $shared_list
|
|
|
|
|
echo "%%{golibdir}/$(basename $file)" >> $shared_list
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
find pkg/*_dynlink/ -type d -printf '%%%dir %{goroot}/%p\n' >> $shared_list
|
|
|
|
|
find pkg/*_dynlink/ ! -type d -printf '%{goroot}/%p\n' >> $shared_list
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{race}
|
|
|
|
|
|
|
|
|
|
find pkg/*_race/ -type d -printf '%%%dir %{goroot}/%p\n' >> $race_list
|
|
|
|
|
find pkg/*_race/ ! -type d -printf '%{goroot}/%p\n' >> $race_list
|
|
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
find test/ -type d -printf '%%%dir %{goroot}/%p\n' >> $tests_list
|
|
|
|
|
find test/ ! -type d -printf '%{goroot}/%p\n' >> $tests_list
|
|
|
|
|
find src/ -type d -a \( -name testdata -o -ipath '*/testdata/*' \) -printf '%%%dir %{goroot}/%p\n' >> $tests_list
|
|
|
|
|
find src/ ! -type d -a \( -ipath '*/testdata/*' -o -name '*_test*.go' \) -printf '%{goroot}/%p\n' >> $tests_list
|
|
|
|
|
find src/ ! -type d -a \( -ipath '*/testdata/*' -o -name '*_test.go' \) -printf '%{goroot}/%p\n' >> $tests_list
|
|
|
|
|
# this is only the zoneinfo.zip
|
|
|
|
|
find lib/ -type d -printf '%%%dir %{goroot}/%p\n' >> $tests_list
|
|
|
|
|
find lib/ ! -type d -printf '%{goroot}/%p\n' >> $tests_list
|
|
|
|
@ -295,7 +493,7 @@ popd
|
|
|
|
|
rm -rfv $RPM_BUILD_ROOT%{goroot}/doc/Makefile
|
|
|
|
|
|
|
|
|
|
# put binaries to bindir, linked to the arch we're building,
|
|
|
|
|
# leave the arch independent pieces in %{goroot}
|
|
|
|
|
# leave the arch independent pieces in {goroot}
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{goroot}/bin/linux_%{gohostarch}
|
|
|
|
|
ln -sf %{goroot}/bin/go $RPM_BUILD_ROOT%{goroot}/bin/linux_%{gohostarch}/go
|
|
|
|
|
ln -sf %{goroot}/bin/gofmt $RPM_BUILD_ROOT%{goroot}/bin/linux_%{gohostarch}/gofmt
|
|
|
|
@ -316,31 +514,35 @@ ln -sf /etc/alternatives/gofmt $RPM_BUILD_ROOT%{_bindir}/gofmt
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/gdbinit.d
|
|
|
|
|
cp -av %{SOURCE100} $RPM_BUILD_ROOT%{_sysconfdir}/gdbinit.d/golang.gdb
|
|
|
|
|
|
|
|
|
|
# prelink blacklist
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/prelink.conf.d
|
|
|
|
|
cp -av %{SOURCE101} $RPM_BUILD_ROOT%{_sysconfdir}/prelink.conf.d/golang.conf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
export GOROOT=$(pwd -P)
|
|
|
|
|
export PATH="$GOROOT"/bin:"$PATH"
|
|
|
|
|
cd src
|
|
|
|
|
# skip using CGO for test. causes a SIGABRT on fc21 (bz1086900)
|
|
|
|
|
# until this test/issue is fixed
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1086900
|
|
|
|
|
# CGO for test, which fails in i686 on fc21 inside mock/chroot (bz1087621)
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1087621
|
|
|
|
|
|
|
|
|
|
# not using our 'gcc' since the CFLAGS fails crash_cgo_test.go due to unused variables
|
|
|
|
|
# https://code.google.com/p/go/issues/detail?id=6883
|
|
|
|
|
export CC="gcc"
|
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
|
export LDFLAGS="$RPM_LD_FLAGS"
|
|
|
|
|
%if !%{external_linker}
|
|
|
|
|
export GO_LDFLAGS="-linkmode internal"
|
|
|
|
|
%endif
|
|
|
|
|
%if !%{cgo_enabled} || !%{external_linker}
|
|
|
|
|
export CGO_ENABLED=0
|
|
|
|
|
%endif
|
|
|
|
|
# workaround for https://github.com/golang/go/issues/39466 until it gests fixed
|
|
|
|
|
# Commented until the patch is ready, this work around suggested in the link avobe
|
|
|
|
|
# doesn't work properly
|
|
|
|
|
#ifarch aarch64
|
|
|
|
|
#export CGO_CFLAGS="-mno-outline-atomics"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
# XXX reenable. likely go1.5beta2 https://github.com/golang/go/commit/9adf684686bad7c6319080d0b1da8308a77b08c9
|
|
|
|
|
#CGO_ENABLED=0 ./run.bash --no-rebuild
|
|
|
|
|
# make sure to not timeout
|
|
|
|
|
export GO_TEST_TIMEOUT_SCALE=2
|
|
|
|
|
|
|
|
|
|
CC="gcc" \
|
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS" \
|
|
|
|
|
LDFLAGS="$RPM_LD_FLAGS" \
|
|
|
|
|
./run.bash --no-rebuild -v -k
|
|
|
|
|
%if %{fail_on_tests}
|
|
|
|
|
./run.bash --no-rebuild -v -v -v -k
|
|
|
|
|
%else
|
|
|
|
|
./run.bash --no-rebuild -v -v -v -k || :
|
|
|
|
|
%endif
|
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -356,20 +558,18 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc AUTHORS CONTRIBUTORS LICENSE PATENTS
|
|
|
|
|
%license LICENSE PATENTS
|
|
|
|
|
%doc AUTHORS CONTRIBUTORS
|
|
|
|
|
# VERSION has to be present in the GOROOT, for `go install std` to work
|
|
|
|
|
%doc %{goroot}/VERSION
|
|
|
|
|
%dir %{goroot}/doc
|
|
|
|
|
%doc %{goroot}/doc/*
|
|
|
|
|
|
|
|
|
|
# go files
|
|
|
|
|
%dir %{goroot}
|
|
|
|
|
%exclude %{goroot}/bin/
|
|
|
|
|
%exclude %{goroot}/pkg/
|
|
|
|
|
%exclude %{goroot}/src/
|
|
|
|
|
%exclude %{goroot}/doc/
|
|
|
|
|
%exclude %{goroot}/misc/
|
|
|
|
|
%{goroot}/*
|
|
|
|
|
%{goroot}/api/
|
|
|
|
|
%{goroot}/lib/time/
|
|
|
|
|
%{goroot}/favicon.ico
|
|
|
|
|
%{goroot}/robots.txt
|
|
|
|
|
|
|
|
|
|
# ensure directory ownership, so they are cleaned up if empty
|
|
|
|
|
%dir %{gopath}
|
|
|
|
@ -385,26 +585,424 @@ fi
|
|
|
|
|
# gdbinit (for gdb debugging)
|
|
|
|
|
%{_sysconfdir}/gdbinit.d
|
|
|
|
|
|
|
|
|
|
# prelink blacklist
|
|
|
|
|
%{_sysconfdir}/prelink.conf.d
|
|
|
|
|
%files src -f go-src.list
|
|
|
|
|
|
|
|
|
|
%files -f go-src.list src
|
|
|
|
|
%files docs -f go-docs.list
|
|
|
|
|
|
|
|
|
|
%files -f go-docs.list docs
|
|
|
|
|
%files misc -f go-misc.list
|
|
|
|
|
|
|
|
|
|
%files -f go-misc.list misc
|
|
|
|
|
%files tests -f go-tests.list
|
|
|
|
|
|
|
|
|
|
%files -f go-tests.list tests
|
|
|
|
|
|
|
|
|
|
%files -f go-pkg.list bin
|
|
|
|
|
%files bin -f go-pkg.list
|
|
|
|
|
%{_bindir}/go
|
|
|
|
|
%{_bindir}/gofmt
|
|
|
|
|
%{goroot}/bin/linux_%{gohostarch}/go
|
|
|
|
|
%{goroot}/bin/linux_%{gohostarch}/gofmt
|
|
|
|
|
|
|
|
|
|
%ifarch x86_64
|
|
|
|
|
%files -f go-shared.list shared
|
|
|
|
|
%if %{shared}
|
|
|
|
|
%files shared -f go-shared.list
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{race}
|
|
|
|
|
%files race -f go-race.list
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Nov 13 2020 Jakub Čajka <jcajka@redhat.com> - 1.15.5-1
|
|
|
|
|
- Rebase to go1.15.5
|
|
|
|
|
- Security fix for CVE-2020-28362, CVE-2020-28367 and CVE-2020-28366
|
|
|
|
|
- Resolves: BZ#1897342, BZ#1897636, BZ#1897644, BZ#1897647
|
|
|
|
|
|
|
|
|
|
* Fri Nov 06 2020 Jakub Čajka <jcajka@redhat.com> - 1.15.4-1
|
|
|
|
|
- Rebase to go1.15.4
|
|
|
|
|
- Resolves: BZ#1895189
|
|
|
|
|
|
|
|
|
|
* Thu Oct 15 2020 Jakub Čajka <jcajka@redhat.com> - 1.15.3-1
|
|
|
|
|
- Rebase to go1.15.3
|
|
|
|
|
- Resolves: BZ#1888443
|
|
|
|
|
|
|
|
|
|
* Thu Sep 10 2020 Jakub Čajka <jcajka@redhat.com> - 1.15.2-1
|
|
|
|
|
- Rebase to go1.15.2
|
|
|
|
|
- Resolves: BZ#1877565
|
|
|
|
|
|
|
|
|
|
* Thu Sep 03 2020 Jakub Čajka <jcajka@redhat.com> - 1.15.1-1
|
|
|
|
|
- Rebase to go1.15.1
|
|
|
|
|
- Security fix for CVE-2020-24553
|
|
|
|
|
- Resolves: BZ#1874858, BZ#1866892
|
|
|
|
|
|
|
|
|
|
* Wed Aug 12 2020 Jakub Čajka <jcajka@redhat.com> - 1.15-1
|
|
|
|
|
- Rebase to go1.15 proper
|
|
|
|
|
- Resolves: BZ#1859241, BZ#1866892
|
|
|
|
|
|
|
|
|
|
* Mon Aug 10 2020 Jakub Čajka <jcajka@redhat.com> - 1.15-0.rc2.0
|
|
|
|
|
- Rebase to go1.15rc1
|
|
|
|
|
- Security fix for CVE-2020-16845
|
|
|
|
|
- Resolves: BZ#1867101
|
|
|
|
|
- Related: BZ#1859241
|
|
|
|
|
|
|
|
|
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.15-0.rc1.0.1
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jul 27 2020 Jakub Čajka <jcajka@redhat.com> - 1.15-0.rc1.0
|
|
|
|
|
- Rebase to go1.15rc1
|
|
|
|
|
- Related: BZ#1859241
|
|
|
|
|
|
|
|
|
|
* Mon Jul 20 2020 Jakub Čajka <jcajka@redhat.com> - 1.15-0.beta1.0
|
|
|
|
|
- Rebase to go1.15beta1
|
|
|
|
|
|
|
|
|
|
* Mon Jul 20 2020 Jakub Čajka <jcajka@redhat.com> - 1.14.6-1
|
|
|
|
|
- Rebase to go1.14.6
|
|
|
|
|
- Security fix for CVE-2020-14040 and CVE-2020-15586
|
|
|
|
|
- Resolves: BZ#1842708, BZ#1856957, BZ#1853653
|
|
|
|
|
|
|
|
|
|
* Tue Jun 30 2020 Alejandro Sáez <asm@redhat.com> - 1.14.4-1
|
|
|
|
|
- Rebase to go1.14.4
|
|
|
|
|
- Add patch that fixes: https://golang.org/issue/39991
|
|
|
|
|
- Related: BZ#1842708
|
|
|
|
|
|
|
|
|
|
* Mon May 18 2020 Álex Sáez <asm@redhat.com> - 1.14.3-1
|
|
|
|
|
- Rebase to go1.14.3
|
|
|
|
|
- Resolves: BZ#1836015
|
|
|
|
|
|
|
|
|
|
* Mon Apr 20 2020 Jakub Čajka <jcajka@redhat.com> - 1.14.2-1
|
|
|
|
|
- Rebase to go1.14.2
|
|
|
|
|
- Resolves: BZ#1815282
|
|
|
|
|
|
|
|
|
|
* Wed Feb 26 2020 Jakub Čajka <jcajka@redhat.com> - 1.14-1
|
|
|
|
|
- Rebase to go1.14 proper
|
|
|
|
|
- Resolves: BZ#1792475
|
|
|
|
|
|
|
|
|
|
* Thu Feb 06 2020 Jakub Čajka <jcajka@redhat.com> - 1.14-0.rc1.0
|
|
|
|
|
- Rebase to go1.14.rc1
|
|
|
|
|
- Related: BZ#1792475
|
|
|
|
|
|
|
|
|
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.14-0.beta1.0.1
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jan 20 2020 Jakub Čajka <jcajka@redhat.com> - 1.14-0.beta1.0
|
|
|
|
|
- Rebase to go1.14beta1
|
|
|
|
|
- Resolves: BZ#1792475
|
|
|
|
|
|
|
|
|
|
* Mon Jan 13 2020 Jakub Čajka <jcajka@redhat.com> - 1.13.6-1
|
|
|
|
|
- Rebase to go1.13.6
|
|
|
|
|
|
|
|
|
|
* Thu Dec 05 2019 Jakub Čajka <jcajka@redhat.com> - 1.13.5-1
|
|
|
|
|
- Rebase to go1.13.5
|
|
|
|
|
|
|
|
|
|
* Tue Nov 26 2019 Neal Gompa <ngompa@datto.com> - 1.13.4-2
|
|
|
|
|
- Small fixes to the spec and tighten up the file list
|
|
|
|
|
|
|
|
|
|
* Fri Nov 01 2019 Jakub Čajka <jcajka@redhat.com> - 1.13.4-1
|
|
|
|
|
- Rebase to go1.13.4
|
|
|
|
|
- Resolves BZ#1767673
|
|
|
|
|
|
|
|
|
|
* Sat Oct 19 2019 Jakub Čajka <jcajka@redhat.com> - 1.13.3-1
|
|
|
|
|
- Rebase to go1.13.3
|
|
|
|
|
- Fix for CVE-2019-17596
|
|
|
|
|
- Resolves: BZ#1755639, BZ#1763312
|
|
|
|
|
|
|
|
|
|
* Fri Sep 27 2019 Jakub Čajka <jcajka@redhat.com> - 1.13.1-1
|
|
|
|
|
- Rebase to go1.13.1
|
|
|
|
|
- Fix for CVE-2019-16276
|
|
|
|
|
- Resolves: BZ#1755970
|
|
|
|
|
|
|
|
|
|
* Thu Sep 05 2019 Jakub Čajka <jcajka@redhat.com> - 1.13-2
|
|
|
|
|
- Back to go1.13 tls1.3 behavior
|
|
|
|
|
|
|
|
|
|
* Wed Sep 04 2019 Jakub Čajka <jcajka@redhat.com> - 1.13-1
|
|
|
|
|
- Rebase to go1.13
|
|
|
|
|
|
|
|
|
|
* Fri Aug 30 2019 Jakub Čajka <jcajka@redhat.com> - 1.13-0.rc2.1
|
|
|
|
|
- Rebase to go1.13rc2
|
|
|
|
|
- Do not enable tls1.3 by default
|
|
|
|
|
- Related: BZ#1737471
|
|
|
|
|
|
|
|
|
|
* Wed Aug 28 2019 Jakub Čajka <jcajka@redhat.com> - 1.13-0.rc1.2
|
|
|
|
|
- Actually fix CVE-2019-9514 and CVE-2019-9512
|
|
|
|
|
- Related: BZ#1741816, BZ#1741827
|
|
|
|
|
|
|
|
|
|
* Mon Aug 26 2019 Jakub Čajka <jcajka@redhat.com> - 1.13-0.rc1.1
|
|
|
|
|
- Rebase to 1.13rc1
|
|
|
|
|
- Fix for CVE-2019-14809, CVE-2019-9514 and CVE-2019-9512
|
|
|
|
|
- Resolves: BZ#1741816, BZ#1741827 and BZ#1743131
|
|
|
|
|
|
|
|
|
|
* Thu Aug 01 2019 Jakub Čajka <jcajka@redhat.com> - 1.13-0.beta1.2.2
|
|
|
|
|
- Fix ICE affecting aarch64
|
|
|
|
|
- Resolves: BZ#1735290
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-0.beta1.2.1
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jul 24 2019 Jakub Čajka <jcajka@redhat.com> - 1.13-0.beta1.2
|
|
|
|
|
- De-configure sumdb and go proxy
|
|
|
|
|
|
|
|
|
|
* Wed Jul 24 2019 Jakub Čajka <jcajka@redhat.com> - 1.13-0.beta1.1
|
|
|
|
|
- Rebase to 1.13beta1
|
|
|
|
|
- Related: BZ#1732118
|
|
|
|
|
|
|
|
|
|
* Tue Jul 09 2019 Jakub Čajka <jcajka@redhat.com> - 1.12.7-1
|
|
|
|
|
- Rebase to 1.12.7
|
|
|
|
|
- Resolves: BZ#1728056
|
|
|
|
|
|
|
|
|
|
* Wed Jun 12 2019 Jakub Čajka <jcajka@redhat.com> - 1.12.6-1
|
|
|
|
|
- Rebase to 1.12.6
|
|
|
|
|
- Resolves: BZ#1719483
|
|
|
|
|
|
|
|
|
|
* Tue May 07 2019 Jakub Čajka <jcajka@redhat.com> - 1.12.5-1
|
|
|
|
|
- Rebase to 1.12.5
|
|
|
|
|
- Resolves: BZ#1707187
|
|
|
|
|
|
|
|
|
|
* Mon Apr 08 2019 Jakub Čajka <jcajka@redhat.com> - 1.12.2-1
|
|
|
|
|
- Rebase to 1.12.2
|
|
|
|
|
- Resolves: BZ#1688996
|
|
|
|
|
|
|
|
|
|
* Mon Apr 01 2019 Jakub Čajka <jcajka@redhat.com> - 1.12.1-2
|
|
|
|
|
- Fix up change log, respective CVE has been fixed in go1.12rc1
|
|
|
|
|
|
|
|
|
|
* Fri Mar 15 2019 Jakub Čajka <jcajka@redhat.com> - 1.12.1-1
|
|
|
|
|
- Rebase to 1.12.1
|
|
|
|
|
- Fix requirement for %%preun (instead of %%postun) scriptlet thanks to Tim Landscheidt
|
|
|
|
|
- Use weak deps for SCM deps
|
|
|
|
|
|
|
|
|
|
* Wed Feb 27 2019 Jakub Čajka <jcajka@redhat.com> - 1.12-1
|
|
|
|
|
- Rebase to go1.12 proper
|
|
|
|
|
- Resolves: BZ#1680040
|
|
|
|
|
|
|
|
|
|
* Mon Feb 18 2019 Jakub Čajka <jcajka@redhat.com> - 1.12-0.rc1.1
|
|
|
|
|
- Rebase to go1.12rc1
|
|
|
|
|
|
|
|
|
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-0.beta2.2.1
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jan 27 2019 Jakub Čajka <jcajka@redhat.com> - 1.12-0.beta2.2
|
|
|
|
|
- Fix for CVE-2019-6486
|
|
|
|
|
- Resolves: BZ#1668973
|
|
|
|
|
|
|
|
|
|
* Fri Jan 11 2019 Jakub Čajka <jcajka@redhat.com> - 1.12-0.beta2.1
|
|
|
|
|
- Rebase to go1.12beta2
|
|
|
|
|
|
|
|
|
|
* Wed Jan 02 2019 Jakub Čajka <jcajka@redhat.com> - 1.11.4-1
|
|
|
|
|
- Rebase to go1.11.4
|
|
|
|
|
- Fix for CVE-2018-16875, CVE-2018-16874 and CVE-2018-16873
|
|
|
|
|
- Resolves: BZ#1659290, BZ#1659289, BZ#1659288
|
|
|
|
|
|
|
|
|
|
* Mon Nov 05 2018 Jakub Čajka <jcajka@redhat.com> - 1.11.2-1
|
|
|
|
|
- Rebase to go1.11.2
|
|
|
|
|
|
|
|
|
|
* Thu Oct 04 2018 Jakub Čajka <jcajka@redhat.com> - 1.11.1-1
|
|
|
|
|
- Rebase to go1.11.1
|
|
|
|
|
|
|
|
|
|
* Mon Aug 27 2018 Jakub Čajka <jcajka@redhat.com> - 1.11-1
|
|
|
|
|
- Rebase to go1.11 release
|
|
|
|
|
|
|
|
|
|
* Thu Aug 23 2018 Jakub Čajka <jcajka@redhat.com> - 1.11-0.rc2.1
|
|
|
|
|
- Rebase to go1.11rc2
|
|
|
|
|
- Reduce size of bin package
|
|
|
|
|
|
|
|
|
|
* Tue Aug 14 2018 Jakub Čajka <jcajka@redhat.com> - 1.11-0.rc1.1
|
|
|
|
|
- Rebase to go1.11rc1
|
|
|
|
|
|
|
|
|
|
* Mon Aug 06 2018 Jakub Čajka <jcajka@redhat.com> - 1.11-0.beta3.1
|
|
|
|
|
- Rebase to go1.11beta3
|
|
|
|
|
|
|
|
|
|
* Fri Jul 27 2018 Jakub Čajka <jcajka@redhat.com> - 1.11-0.beta2.2
|
|
|
|
|
- Turn on back DWARF compression by default
|
|
|
|
|
- Use less memory on 32bit targets during build
|
|
|
|
|
- Resolves: BZ#1607270
|
|
|
|
|
- Related: BZ#1602096
|
|
|
|
|
|
|
|
|
|
* Fri Jul 20 2018 Jakub Čajka <jcajka@redhat.com> - 1.11-0.beta2.1
|
|
|
|
|
- Rebase to 1.11beta2
|
|
|
|
|
|
|
|
|
|
* Wed Jul 18 2018 Jakub Čajka <jcajka@redhat.com> - 1.11-0.beta1.2
|
|
|
|
|
- Turn off DWARF compression by default as it is not supported by rpm/debuginfo
|
|
|
|
|
- Related: BZ#1602096
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-0.beta1.1.1
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jul 04 2018 Jakub Čajka <jcajka@redhat.com> - 1.11-0.beta1.1
|
|
|
|
|
* Rebase to 1.11beta1
|
|
|
|
|
|
|
|
|
|
* Fri Jun 08 2018 Jakub Čajka <jcajka@redhat.com> - 1.10.3-1
|
|
|
|
|
- Rebase to 1.10.3
|
|
|
|
|
|
|
|
|
|
* Wed May 02 2018 Jakub Čajka <jcajka@redhat.com> - 1.10.2-1
|
|
|
|
|
- Rebase to 1.10.2
|
|
|
|
|
|
|
|
|
|
* Wed Apr 04 2018 Jakub Čajka <jcajka@redhat.com> - 1.10.1-1
|
|
|
|
|
- Rebase to 1.10.1
|
|
|
|
|
- Resolves: BZ#1562270
|
|
|
|
|
|
|
|
|
|
* Sat Mar 03 2018 Jakub Čajka <jcajka@redhat.com> - 1.10-2
|
|
|
|
|
- Fix CVE-2018-7187
|
|
|
|
|
- Resolves: BZ#1546386, BZ#1546388
|
|
|
|
|
|
|
|
|
|
* Wed Feb 21 2018 Jakub Čajka <jcajka@redhat.com> - 1.10-1
|
|
|
|
|
- Rebase to 1.10
|
|
|
|
|
|
|
|
|
|
* Thu Feb 08 2018 Jakub Čajka <jcajka@redhat.com> - 1.10-0.rc2.1
|
|
|
|
|
- Rebase to 1.10rc2
|
|
|
|
|
- Fix CVE-2018-6574
|
|
|
|
|
- Resolves: BZ#1543561, BZ#1543562
|
|
|
|
|
|
|
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.10-0.rc1.1.1
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 26 2018 Jakub Čajka <jcajka@redhat.com> - 1.10-0.rc1.1
|
|
|
|
|
- Rebase to 1.10rc1
|
|
|
|
|
|
|
|
|
|
* Fri Jan 12 2018 Jakub Čajka <jcajka@redhat.com> - 1.10-0.beta2.1
|
|
|
|
|
- Rebase to 1.10beta2
|
|
|
|
|
|
|
|
|
|
* Mon Jan 08 2018 Jakub Čajka <jcajka@redhat.com> - 1.10-0.beta1.1
|
|
|
|
|
- Rebase to 1.10beta1
|
|
|
|
|
- Drop verbose patch as most of it is now implemented by bootstrap tool and is easily toggled by passing -v flag to make.bash
|
|
|
|
|
|
|
|
|
|
* Thu Oct 26 2017 Jakub Čajka <jcajka@redhat.com> - 1.9.2-1
|
|
|
|
|
- Rebase to 1.9.2
|
|
|
|
|
- execute correctly pie tests
|
|
|
|
|
- allow to ignore tests via bcond
|
|
|
|
|
- reduce size of golang package
|
|
|
|
|
|
|
|
|
|
* Fri Oct 06 2017 Jakub Čajka <jcajka@redhat.com> - 1.9.1-1
|
|
|
|
|
- fix CVE-2017-15041 and CVE-2017-15042
|
|
|
|
|
|
|
|
|
|
* Fri Sep 15 2017 Jakub Čajka <jcajka@redhat.com> - 1.9-1
|
|
|
|
|
- bump to the relased version
|
|
|
|
|
|
|
|
|
|
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9-0.beta2.1.2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9-0.beta2.1.1
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 11 2017 Jakub Čajka <jcajka@redhat.com> - 1.9-0.beta2.1
|
|
|
|
|
- bump to beta2
|
|
|
|
|
|
|
|
|
|
* Thu May 25 2017 Jakub Čajka <jcajka@redhat.com> - 1.8.3-1
|
|
|
|
|
- bump to 1.8.3
|
|
|
|
|
- fix for CVE-2017-8932
|
|
|
|
|
- make possible to use 31bit OID in ASN1
|
|
|
|
|
- Resolves: BZ#1454978, BZ#1455191
|
|
|
|
|
|
|
|
|
|
* Fri Apr 21 2017 Jakub Čajka <jcajka@redhat.com> - 1.8.1-2
|
|
|
|
|
- fix uint64 constant codegen on s390x
|
|
|
|
|
- Resolves: BZ#1441078
|
|
|
|
|
|
|
|
|
|
* Tue Apr 11 2017 Jakub Čajka <jcajka@redhat.com> - 1.8.1-1
|
|
|
|
|
- bump to Go 1.8.1
|
|
|
|
|
- Resolves: BZ#1440345
|
|
|
|
|
|
|
|
|
|
* Fri Feb 24 2017 Jakub Čajka <jcajka@redhat.com> - 1.8-2
|
|
|
|
|
- avoid possibly stale packages due to chacha test file not being test file
|
|
|
|
|
|
|
|
|
|
* Fri Feb 17 2017 Jakub Čajka <jcajka@redhat.com> - 1.8-1
|
|
|
|
|
- bump to released version
|
|
|
|
|
- Resolves: BZ#1423637
|
|
|
|
|
- Related: BZ#1411242
|
|
|
|
|
|
|
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8-0.rc3.2.1
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 27 2017 Jakub Čajka <jcajka@redhat.com> - 1.8-0.rc3.2
|
|
|
|
|
- make possible to override default traceback level at build time
|
|
|
|
|
- add sub-package race containing std lib built with -race enabled
|
|
|
|
|
- Related: BZ#1411242
|
|
|
|
|
|
|
|
|
|
* Fri Jan 27 2017 Jakub Čajka <jcajka@redhat.com> - 1.8-0.rc3.1
|
|
|
|
|
- rebase to go1.8rc3
|
|
|
|
|
- Resolves: BZ#1411242
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2017 Jakub Čajka <jcajka@redhat.com> - 1.7.4-2
|
|
|
|
|
- Resolves: BZ#1404679
|
|
|
|
|
- expose IfInfomsg.X__ifi_pad on s390x
|
|
|
|
|
|
|
|
|
|
* Fri Dec 02 2016 Jakub Čajka <jcajka@redhat.com> - 1.7.4-1
|
|
|
|
|
- Bump to 1.7.4
|
|
|
|
|
- Resolves: BZ#1400732
|
|
|
|
|
|
|
|
|
|
* Thu Nov 17 2016 Tom Callaway <spot@fedoraproject.org> - 1.7.3-2
|
|
|
|
|
- re-enable the NIST P-224 curve
|
|
|
|
|
|
|
|
|
|
* Thu Oct 20 2016 Jakub Čajka <jcajka@redhat.com> - 1.7.3-1
|
|
|
|
|
- Resolves: BZ#1387067 - golang-1.7.3 is available
|
|
|
|
|
- added fix for tests failing with latest tzdata
|
|
|
|
|
|
|
|
|
|
* Fri Sep 23 2016 Jakub Čajka <jcajka@redhat.com> - 1.7.1-2
|
|
|
|
|
- fix link failure due to relocation overflows on PPC64X
|
|
|
|
|
|
|
|
|
|
* Thu Sep 08 2016 Jakub Čajka <jcajka@redhat.com> - 1.7.1-1
|
|
|
|
|
- rebase to 1.7.1
|
|
|
|
|
- Resolves: BZ#1374103
|
|
|
|
|
|
|
|
|
|
* Tue Aug 23 2016 Jakub Čajka <jcajka@redhat.com> - 1.7-1
|
|
|
|
|
- update to released version
|
|
|
|
|
- related: BZ#1342090, BZ#1357394
|
|
|
|
|
|
|
|
|
|
* Mon Aug 08 2016 Jakub Čajka <jcajka@redhat.com> - 1.7-0.3.rc5
|
|
|
|
|
- Obsolete golang-vet and golang-cover from golang-googlecode-tools package
|
|
|
|
|
vet/cover binaries are provided by golang-bin rpm (thanks to jchaloup)
|
|
|
|
|
- clean up exclusive arch after s390x boostrap
|
|
|
|
|
- resolves: #1268206
|
|
|
|
|
|
|
|
|
|
* Wed Aug 03 2016 Jakub Čajka <jcajka@redhat.com> - 1.7-0.2.rc5
|
|
|
|
|
- rebase to go1.7rc5
|
|
|
|
|
- Resolves: BZ#1342090
|
|
|
|
|
|
|
|
|
|
* Thu Jul 21 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-0.1.rc2
|
|
|
|
|
- https://fedoraproject.org/wiki/Changes/golang1.7
|
|
|
|
|
|
|
|
|
|
* Tue Jul 19 2016 Jakub Čajka <jcajka@redhat.com> - 1.7-0.0.rc2
|
|
|
|
|
- rebase to 1.7rc2
|
|
|
|
|
- added s390x build
|
|
|
|
|
- improved shared lib packaging
|
|
|
|
|
- Resolves: bz1357602 - CVE-2016-5386
|
|
|
|
|
- Resolves: bz1342090, bz1342090
|
|
|
|
|
|
|
|
|
|
* Tue Apr 26 2016 Jakub Čajka <jcajka@redhat.com> - 1.6.2-1
|
|
|
|
|
- rebase to 1.6.2
|
|
|
|
|
- Resolves: bz1329206 - golang-1.6.2.src is available
|
|
|
|
|
|
|
|
|
|
* Wed Apr 13 2016 Jakub Čajka <jcajka@redhat.com> - 1.6.1-1
|
|
|
|
|
- rebase to 1.6.1
|
|
|
|
|
- Resolves: bz1324344 - CVE-2016-3959
|
|
|
|
|
- Resolves: bz1324951 - prelink is gone, /etc/prelink.conf.d/* is no longer used
|
|
|
|
|
- Resolves: bz1326366 - wrong epoll_event struct for ppc64le/ppc64
|
|
|
|
|
|
|
|
|
|
* Mon Feb 22 2016 Jakub Čajka <jcajka@redhat.com> - 1.6-1
|
|
|
|
|
- Resolves: bz1304701 - rebase to go1.6 release
|
|
|
|
|
- Resolves: bz1304591 - fix possible stack miss-alignment in callCgoMmap
|
|
|
|
|
|
|
|
|
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-0.3.rc1
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jan 29 2016 Jakub Čajka <jcajka@redhat.com> - 1.6-0.2.rc1
|
|
|
|
|
- disabled cgo and external linking on ppc64
|
|
|
|
|
|
|
|
|
|
* Thu Jan 28 2016 Jakub Čajka <jcajka@redhat.com> - 1.6-0.1.rc1
|
|
|
|
|
- Resolves bz1292640, rebase to pre-release 1.6
|
|
|
|
|
- bootstrap for PowerPC
|
|
|
|
|
- fix rpmlint errors/warning
|
|
|
|
|
|
|
|
|
|
* Thu Jan 14 2016 Jakub Čajka <jcajka@redhat.com> - 1.5.3-1
|
|
|
|
|
- rebase to 1.5.3
|
|
|
|
|
- resolves bz1293451, CVE-2015-8618
|
|
|
|
|
- apply timezone patch, avoid using bundled data
|
|
|
|
|
- print out rpm build system info
|
|
|
|
|
|
|
|
|
|
* Fri Dec 11 2015 Jakub Čajka <jcajka@redhat.com> - 1.5.2-2
|
|
|
|
|
- bz1290543 Accept x509 certs with negative serial
|
|
|
|
|
|
|
|
|
|
* Tue Dec 08 2015 Jakub Čajka <jcajka@redhat.com> - 1.5.2-1
|
|
|
|
|
- bz1288263 rebase to 1.5.2
|
|
|
|
|
- spec file clean up
|
|
|
|
|
- added build options
|
|
|
|
|
- scrubbed "Project Gutenberg License"
|
|
|
|
|
|
|
|
|
|
* Mon Oct 19 2015 Vincent Batts <vbatts@fedoraproject.org> - 1.5.1-1
|
|
|
|
|
- bz1271709 include patch from upstream fix
|
|
|
|
|
|
|
|
|
|
* Wed Sep 09 2015 Vincent Batts <vbatts@fedoraproject.org> - 1.5.1-0
|
|
|
|
|
- update to go1.5.1
|
|
|
|
|
|
|
|
|
@ -611,7 +1209,7 @@ fi
|
|
|
|
|
- include sub-packages for compiler toolchains, for all golang supported architectures
|
|
|
|
|
|
|
|
|
|
* Wed Mar 26 2014 Vincent Batts <vbatts@fedoraproject.org> 1.2.1-2
|
|
|
|
|
- provide a system rpm macros. Starting with %gopath
|
|
|
|
|
- provide a system rpm macros. Starting with gopath
|
|
|
|
|
|
|
|
|
|
* Tue Mar 04 2014 Adam Miller <maxamillion@fedoraproject.org> 1.2.1-1
|
|
|
|
|
- Update to latest upstream
|
|
|
|
|