Dave Dykstra e9bcd2b
%undefine _missing_build_ids_terminate_build
Dave Dykstra e9bcd2b
Dave Dykstra d3ee7b5
%bcond_with strict_fips
Dave Dykstra d3ee7b5
%bcond_with ignore_tests
Dave Dykstra c1995c0
c56eb06
# build ids are not currently generated:
c56eb06
# https://code.google.com/p/go/issues/detail?id=5238
c56eb06
#
c56eb06
# also, debuginfo extraction currently fails with
c56eb06
# "Failed to write file: invalid section alignment"
c56eb06
%global debug_package %{nil}
c56eb06
cc50719
# we are shipping the full contents of src in the data subpackage, which
cc50719
# contains binary-like things (ELF data for tests, etc)
cc50719
%global _binaries_in_noarch_packages_terminate_build 0
cc50719
cc50719
# Do not check any files in doc or src for requires
Vincent Batts be393a2
%global __requires_exclude_from ^(%{_datadir}|/usr/lib)/%{name}/(doc|src)/.*$
cc50719
03e9b35
# Don't alter timestamps of especially the .a files (or else go will rebuild later)
03e9b35
# Actually, don't strip at all since we are not even building debug packages and this corrupts the dwarf testdata
03e9b35
%global __strip /bin/true
03e9b35
Adam Miller 666ac20
# rpmbuild magic to keep from having meta dependency on libc.so.6
Adam Miller 666ac20
%define _use_internal_dependency_generator 0
Adam Miller 666ac20
%define __find_requires %{nil}
Adam Miller 666ac20
%global __spec_install_post /usr/lib/rpm/check-rpaths   /usr/lib/rpm/check-buildroot  \
Adam Miller 666ac20
  /usr/lib/rpm/brp-compress
Adam Miller 666ac20
Dave Dykstra e9bcd2b
# Define GOROOT macros
Dave Dykstra e9bcd2b
%global goroot          %{_prefix}/lib/%{name}
Dave Dykstra e9bcd2b
%global gopath          %{_datadir}/gocode
Dave Dykstra e9bcd2b
%global golang_arches   x86_64 aarch64 ppc64le s390x
Dave Dykstra e9bcd2b
%global golibdir        %{_libdir}/%{name}
Dave Dykstra c1995c0
c524af8
# Golang build options.
c524af8
d40cd88
# Build golang using external/internal(close to cgo disabled) linking.
Dave Dykstra e9bcd2b
%ifarch x86_64 ppc64le %{arm} aarch64 s390x
c524af8
%global external_linker 1
c524af8
%else
c524af8
%global external_linker 0
c524af8
%endif
c524af8
c524af8
# Build golang with cgo enabled/disabled(later equals more or less to internal linking).
Dave Dykstra e9bcd2b
%ifarch x86_64 ppc64le %{arm} aarch64 s390x
c524af8
%global cgo_enabled 1
c524af8
%else
c524af8
%global cgo_enabled 0
c524af8
%endif
c524af8
c524af8
# Use golang/gcc-go as bootstrap compiler
Dave Dykstra e9bcd2b
%ifarch %{golang_arches}
920ea39
%global golang_bootstrap 1
Dave Dykstra e9bcd2b
%else
Dave Dykstra e9bcd2b
%global golang_bootstrap 0
1344685
%endif
c524af8
d40cd88
# Controls what ever we fail on failed tests
CentOS Sources aefc38f
%ifarch x86_64 %{arm} aarch64 ppc64le s390x
Dave Dykstra d3ee7b5
%if %{with ignore_tests}
Dave Dykstra d3ee7b5
%global fail_on_tests 0
Dave Dykstra d3ee7b5
%else
315b776
%global fail_on_tests 1
Dave Dykstra d3ee7b5
%endif
Dave Dykstra e9bcd2b
%else
Dave Dykstra e9bcd2b
%global fail_on_tests 0
Dave Dykstra e9bcd2b
%endif
c524af8
c524af8
# Build golang shared objects for stdlib
Dave Dykstra e9bcd2b
%ifarch 0
c524af8
%global shared 1
c524af8
%else
c524af8
%global shared 0
c524af8
%endif
c524af8
Dave Dykstra 890ccf6
# Disabled due to 1.20 new cache usage, see 1.20 upstream release notes
b881112
%global race 0
b881112
Vincent Batts be393a2
%ifarch x86_64
Vincent Batts be393a2
%global gohostarch  amd64
Vincent Batts be393a2
%endif
Vincent Batts be393a2
%ifarch %{arm}
Vincent Batts be393a2
%global gohostarch  arm
Vincent Batts be393a2
%endif
b869aad
%ifarch aarch64
b869aad
%global gohostarch  arm64
b869aad
%endif
c524af8
%ifarch ppc64
c524af8
%global gohostarch  ppc64
c524af8
%endif
c524af8
%ifarch ppc64le
c524af8
%global gohostarch  ppc64le
c524af8
%endif
d36359a
%ifarch s390x
d36359a
%global gohostarch  s390x
d36359a
%endif
Vincent Batts be393a2
Dave Dykstra 890ccf6
%global go_api 1.20
Dave Dykstra 7c53255
%global version 1.20.12
Dave Dykstra 890ccf6
%global pkg_release 1
e0d8010
Vincent Batts 7025cc8
Name:           golang
CentOS Sources aefc38f
Version:        %{version}
Dave Dykstra 7c53255
Release:        1%{?dist}
Dave Dykstra 890ccf6
Vincent Batts 7025cc8
Summary:        The Go Programming Language
fd042be
# source tree includes several copies of Mark.Twain-Tom.Sawyer.txt under Public Domain
fd042be
License:        BSD and Public Domain
Vincent Batts 7025cc8
URL:            http://golang.org/
CentOS Sources aefc38f
Source0:        https://github.com/golang/go/archive/refs/tags/go%{version}.tar.gz
CentOS Sources aefc38f
# Go's FIPS mode bindings are now provided as a standalone
CentOS Sources aefc38f
# module instead of in tree.  This makes it easier to see
CentOS Sources aefc38f
# the actual changes vs upstream Go.  The module source is
CentOS Sources aefc38f
# located at https://github.com/golang-fips/openssl-fips,
CentOS Sources aefc38f
# And pre-genetated patches to set up the module for a given
CentOS Sources aefc38f
# Go release are located at https://github.com/golang-fips/go.
CentOS Sources aefc38f
Source1:       https://github.com/golang-fips/go/archive/refs/tags/go%{version}-%{pkg_release}-openssl-fips.tar.gz
b881112
# make possible to override default traceback level at build time by setting build tag rpm_crashtraceback
CentOS Sources aefc38f
Source2:        fedora.go
Adam Miller d0ddbae
c524af8
# The compiler is written in Go. Needs go(1.4+) compiler for build.
Dave Dykstra e9bcd2b
# Actual Go based bootstrap compiler provided by above source.
c524af8
%if !%{golang_bootstrap}
c524af8
BuildRequires:  gcc-go >= 5
c524af8
%else
Dave Dykstra e9bcd2b
BuildRequires:  golang
c524af8
%endif
1a6adea
%if 0%{?rhel} > 6 || 0%{?fedora} > 0
19dca7f
BuildRequires:  hostname
Vincent Batts c91e9b6
%else
1a6adea
BuildRequires:  net-tools
Vincent Batts c91e9b6
%endif
Dave Dykstra e9bcd2b
# For OpenSSL FIPS
Dave Dykstra e9bcd2b
BuildRequires:  openssl-devel
c524af8
# for tests
Dave Dykstra e9bcd2b
BuildRequires:  pcre-devel, glibc-static, perl
Vincent Batts c91e9b6
Vincent Batts 77cba21
Provides:       go = %{version}-%{release}
Dave Dykstra 58a0272
%if 0%{?rhel} == 7
Dave Dykstra 58a0272
Provides:       go-srpm-macros
Dave Dykstra e9bcd2b
Requires:       go-srpm-macros
Dave Dykstra 58a0272
%endif
d40cd88
Requires:       %{name}-bin = %{version}-%{release}
8d165df
Requires:       %{name}-src = %{version}-%{release}
Dave Dykstra e9bcd2b
Requires:       openssl-devel
Dave Dykstra e9bcd2b
Requires:       diffutils
Vincent Batts 77cba21
Dave Dykstra e9bcd2b
Dave Dykstra e9bcd2b
# Proposed patch by jcajka https://golang.org/cl/86541
Dave Dykstra e9bcd2b
Patch221:       fix_TestScript_list_std.patch
Dave Dykstra 7c53255
Patch222:      skip-test-overlong-message.patch
Dave Dykstra e9bcd2b
CentOS Sources aefc38f
Patch1939923:   skip_test_rhbz1939923.patch
Dave Dykstra dd6a0d5
Dave Dykstra 890ccf6
Patch2:        disable_static_tests_part1.patch
Dave Dykstra 890ccf6
Patch3:        disable_static_tests_part2.patch
Dave Dykstra 6185bba
Dave Dykstra 841b4ab
%if 0%{?rhel} == 7
Dave Dykstra 841b4ab
Patch64:       skip_ppc64le_cgo_inline_plt.patch
Dave Dykstra 841b4ab
%endif
Dave Dykstra 841b4ab
Vincent Batts d8b5074
# Having documentation separate was broken
Vincent Batts 7025cc8
Obsoletes:      %{name}-docs < 1.1-4
c56eb06
467dc85
# RPM can't handle symlink -> dir with subpackages, so merge back
Vincent Batts 7025cc8
Obsoletes:      %{name}-data < 1.1.1-4
c56eb06
Dave Dykstra 890ccf6
# We don't build golang-race anymore, rhbz#2230599
Dave Dykstra 890ccf6
Obsoletes:      golang-race < 1.20.0
Dave Dykstra 890ccf6
Vincent Batts be393a2
# These are the only RHEL/Fedora architectures that we compile this package for
Dave Dykstra 58a0272
ExclusiveArch:  %{golang_arches}
c56eb06
Vincent Batts 7025cc8
Source100:      golang-gdbinit
Dave Dykstra e9bcd2b
Source101:      golang-prelink.conf
Dave Dykstra 58a0272
%if 0%{?rhel} == 7
Dave Dykstra 58a0272
Source102:      macros.golang
Dave Dykstra 58a0272
%endif
c9b9b2a
cc50719
%description
c56eb06
%{summary}.
c56eb06
8d165df
%package       docs
8d165df
Summary:       Golang compiler docs
8d165df
Requires:      %{name} = %{version}-%{release}
8d165df
BuildArch:     noarch
8d165df
Obsoletes:     %{name}-docs < 1.1-4
c56eb06
8d165df
%description   docs
8d165df
%{summary}.
8d165df
8d165df
%package       misc
8d165df
Summary:       Golang compiler miscellaneous sources
8d165df
Requires:      %{name} = %{version}-%{release}
8d165df
BuildArch:     noarch
c56eb06
8d165df
%description   misc
8d165df
%{summary}.
c56eb06
8d165df
%package       tests
8d165df
Summary:       Golang compiler tests for stdlib
8d165df
Requires:      %{name} = %{version}-%{release}
8d165df
BuildArch:     noarch
8d165df
8d165df
%description   tests
8d165df
%{summary}.
c56eb06
Vincent Batts be393a2
%package        src
Vincent Batts be393a2
Summary:        Golang compiler source tree
Vincent Batts ea1d7ad
BuildArch:      noarch
Dave Dykstra e9bcd2b
Vincent Batts be393a2
%description    src
Vincent Batts be393a2
%{summary}
Vincent Batts be393a2
8d165df
%package        bin
8d165df
Summary:        Golang core compiler tools
Dave Dykstra e9bcd2b
Requires:       %{name} = %{version}-%{release}
Vincent Batts be393a2
Vincent Batts be393a2
# We strip the meta dependency, but go does require glibc.
Vincent Batts be393a2
# This is an odd issue, still looking for a better fix.
Vincent Batts be393a2
Requires:       glibc
Dave Dykstra e9bcd2b
Requires:       /usr/bin/gcc
8d165df
%description    bin
Vincent Batts be393a2
%{summary}
Vincent Batts be393a2
7e281b5
# Workaround old RPM bug of symlink-replaced-with-dir failure
5863470
%pretrans -p <lua>
c9b9b2a
for _,d in pairs({"api", "doc", "include", "lib", "src"}) do
Vincent Batts be393a2
  path = "%{goroot}/" .. d
c9b9b2a
  if posix.stat(path, "type") == "link" then
c9b9b2a
    os.remove(path)
c9b9b2a
    posix.mkdir(path)
c9b9b2a
  end
5863470
end
7e281b5
c524af8
%if %{shared}
418a760
%package        shared
418a760
Summary:        Golang shared object libraries
418a760
418a760
%description    shared
418a760
%{summary}.
418a760
%endif
7e281b5
b881112
%if %{race}
b881112
%package        race
b881112
Summary:        Golang std library with -race enabled
b881112
b881112
Requires:       %{name} = %{version}-%{release}
b881112
b881112
%description    race
b881112
%{summary}
b881112
%endif
b881112
c56eb06
%prep
CentOS Sources aefc38f
%setup -q -n go-go%{version}
CentOS Sources aefc38f
CentOS Sources aefc38f
pushd ..
CentOS Sources aefc38f
tar -xf %{SOURCE1}
CentOS Sources aefc38f
popd
CentOS Sources aefc38f
patch -p1 < ../go-go%{version}-%{pkg_release}-openssl-fips/patches/000-initial-setup.patch
CentOS Sources aefc38f
patch -p1 < ../go-go%{version}-%{pkg_release}-openssl-fips/patches/001-initial-openssl-for-fips.patch
Dave Dykstra f9bc2c1
patch -p1 < ../go-go%{version}-%{pkg_release}-openssl-fips/patches/002-strict-fips-runtime-detection.patch
CentOS Sources aefc38f
CentOS Sources 016b1be
# Configure crypto tests
CentOS Sources 016b1be
pushd ../go-go%{version}-%{pkg_release}-openssl-fips
CentOS Sources 016b1be
ln -s ../go-go%{version} go
CentOS Sources 016b1be
./scripts/configure-crypto-tests.sh
CentOS Sources 016b1be
popd
CentOS Sources 016b1be
CentOS Sources aefc38f
%patch2 -p1
CentOS Sources aefc38f
%patch3 -p1
Dave Dykstra e9bcd2b
Dave Dykstra 841b4ab
%if 0%{?rhel} == 7
Dave Dykstra 841b4ab
%patch64 -p1
Dave Dykstra 841b4ab
%endif
Dave Dykstra 841b4ab
Dave Dykstra e9bcd2b
%patch221 -p1
Dave Dykstra 7c53255
%patch222 -p1
CentOS Sources aefc38f
CentOS Sources aefc38f
%patch1939923 -p1
Dave Dykstra e9bcd2b
CentOS Sources aefc38f
cp %{SOURCE2} ./src/runtime/
b881112
c56eb06
%build
Dave Dykstra e9bcd2b
set -xe
fd042be
# print out system information
fd042be
uname -a
fd042be
cat /proc/cpuinfo
fd042be
cat /proc/meminfo
fd042be
c524af8
# bootstrap compiler GOROOT
c524af8
%if !%{golang_bootstrap}
c524af8
export GOROOT_BOOTSTRAP=/
c524af8
%else
Dave Dykstra e9bcd2b
export GOROOT_BOOTSTRAP=/opt/rh/go-toolset-1.10/root/usr/lib/go-toolset-1.10-golang
c524af8
%endif
8d165df
c56eb06
# set up final install location
Vincent Batts be393a2
export GOROOT_FINAL=%{goroot}
c56eb06
Vincent Batts be393a2
export GOHOSTOS=linux
Vincent Batts be393a2
export GOHOSTARCH=%{gohostarch}
Vincent Batts be393a2
Vincent Batts be393a2
pushd src
8d165df
# use our gcc options for this build, but store gcc as default for compiler
c524af8
export CFLAGS="$RPM_OPT_FLAGS"
c524af8
export LDFLAGS="$RPM_LD_FLAGS"
c524af8
export CC="gcc"
c524af8
export CC_FOR_TARGET="gcc"
c524af8
export GOOS=linux
c524af8
export GOARCH=%{gohostarch}
Dave Dykstra e9bcd2b
Dave Dykstra e9bcd2b
DEFAULT_GO_LD_FLAGS=""
c524af8
%if !%{external_linker}
Dave Dykstra e9bcd2b
export GO_LDFLAGS="-linkmode internal $DEFAULT_GO_LD_FLAGS"
Dave Dykstra e9bcd2b
%else
Dave Dykstra e9bcd2b
# Only pass a select subset of the external hardening flags. We do not pass along
Dave Dykstra e9bcd2b
# the default $RPM_LD_FLAGS as on certain arches Go does not fully, correctly support
Dave Dykstra e9bcd2b
# building in PIE mode.
Dave Dykstra e9bcd2b
export GO_LDFLAGS="\"-extldflags=-Wl,-z,now,-z,relro\" $DEFAULT_GO_LD_FLAGS"
c524af8
%endif
c524af8
%if !%{cgo_enabled}
c524af8
export CGO_ENABLED=0
c524af8
%endif
Dave Dykstra e9bcd2b
./make.bash --no-clean
Vincent Batts be393a2
popd
c56eb06
c524af8
# build shared std lib
c524af8
%if %{shared}
Dave Dykstra e9bcd2b
GOROOT=$(pwd) PATH=$(pwd)/bin:$PATH go install -buildmode=shared std
418a760
%endif
9297305
b881112
%if %{race}
Dave Dykstra e9bcd2b
GOROOT=$(pwd) PATH=$(pwd)/bin:$PATH go install -race std
b881112
%endif
b881112
Dave Dykstra e9bcd2b
c56eb06
%install
Dave Dykstra e9bcd2b
c56eb06
rm -rf $RPM_BUILD_ROOT
c56eb06
c56eb06
# create the top level directories
c56eb06
mkdir -p $RPM_BUILD_ROOT%{_bindir}
Vincent Batts be393a2
mkdir -p $RPM_BUILD_ROOT%{goroot}
c56eb06
Dave Dykstra e9bcd2b
# remove bootstrap binaries
Dave Dykstra e9bcd2b
rm -rf pkg/bootstrap/bin
Dave Dykstra e9bcd2b
c9b9b2a
# install everything into libdir (until symlink problems are fixed)
c9b9b2a
# https://code.google.com/p/go/issues/detail?id=5830
Dave Dykstra e9bcd2b
cp -apv api bin doc lib pkg src misc test VERSION \
Vincent Batts be393a2
   $RPM_BUILD_ROOT%{goroot}
c56eb06
Vincent Batts ab7a3d0
# bz1099206
Vincent Batts ab7a3d0
find $RPM_BUILD_ROOT%{goroot}/src -exec touch -r $RPM_BUILD_ROOT%{goroot}/VERSION "{}" \;
Vincent Batts abfb918
# and level out all the built archives
Vincent Batts abfb918
touch $RPM_BUILD_ROOT%{goroot}/pkg
Vincent Batts abfb918
find $RPM_BUILD_ROOT%{goroot}/pkg -exec touch -r $RPM_BUILD_ROOT%{goroot}/pkg "{}" \;
Vincent Batts 110e264
# generate the spec file ownership of this source tree and packages
Vincent Batts 110e264
cwd=$(pwd)
Vincent Batts 110e264
src_list=$cwd/go-src.list
8d165df
pkg_list=$cwd/go-pkg.list
418a760
shared_list=$cwd/go-shared.list
8d165df
misc_list=$cwd/go-misc.list
8d165df
docs_list=$cwd/go-docs.list
8d165df
tests_list=$cwd/go-tests.list
Dave Dykstra 890ccf6
rm -f $src_list $pkg_list $docs_list $misc_list $tests_list $shared_list
Dave Dykstra 890ccf6
touch $src_list $pkg_list $docs_list $misc_list $tests_list $shared_list
Vincent Batts 9380b0e
pushd $RPM_BUILD_ROOT%{goroot}
d40cd88
    find src/ -type d -a \( ! -name testdata -a ! -ipath '*/testdata/*' \) -printf '%%%dir %{goroot}/%p\n' >> $src_list
Dave Dykstra e9bcd2b
    find src/ ! -type d -a \( ! -ipath '*/testdata/*' -a ! -name '*_test*.go' \) -printf '%{goroot}/%p\n' >> $src_list
8d165df
b881112
    find bin/ pkg/ -type d -a ! -path '*_dynlink/*' -a ! -path '*_race/*' -printf '%%%dir %{goroot}/%p\n' >> $pkg_list
b881112
    find bin/ pkg/ ! -type d -a ! -path '*_dynlink/*' -a ! -path '*_race/*' -printf '%{goroot}/%p\n' >> $pkg_list
8d165df
d40cd88
    find doc/ -type d -printf '%%%dir %{goroot}/%p\n' >> $docs_list
d40cd88
    find doc/ ! -type d -printf '%{goroot}/%p\n' >> $docs_list
8d165df
d40cd88
    find misc/ -type d -printf '%%%dir %{goroot}/%p\n' >> $misc_list
d40cd88
    find misc/ ! -type d -printf '%{goroot}/%p\n' >> $misc_list
Vincent Batts 1afe7e2
c524af8
%if %{shared}
fd042be
    mkdir -p %{buildroot}/%{_libdir}/
fd042be
    mkdir -p %{buildroot}/%{golibdir}/
fd042be
    for file in $(find .  -iname "*.so" ); do
fd042be
        chmod 755 $file
fd042be
        mv  $file %{buildroot}/%{golibdir}
fd042be
        pushd $(dirname $file)
fd042be
        ln -fs %{golibdir}/$(basename $file) $(basename $file)
fd042be
        popd
fd042be
        echo "%%{goroot}/$file" >> $shared_list
fd042be
        echo "%%{golibdir}/$(basename $file)" >> $shared_list
fd042be
    done
fd042be
    
bc69b83
    find pkg/*_dynlink/ -type d -printf '%%%dir %{goroot}/%p\n' >> $shared_list
bc69b83
    find pkg/*_dynlink/ ! -type d -printf '%{goroot}/%p\n' >> $shared_list
418a760
%endif
Vincent Batts 90e7326
d40cd88
    find test/ -type d -printf '%%%dir %{goroot}/%p\n' >> $tests_list
d40cd88
    find test/ ! -type d -printf '%{goroot}/%p\n' >> $tests_list
d40cd88
    find src/ -type d -a \( -name testdata -o -ipath '*/testdata/*' \) -printf '%%%dir %{goroot}/%p\n' >> $tests_list
Dave Dykstra e9bcd2b
    find src/ ! -type d -a \( -ipath '*/testdata/*' -o -name '*_test*.go' \) -printf '%{goroot}/%p\n' >> $tests_list
d40cd88
    # this is only the zoneinfo.zip
d40cd88
    find lib/ -type d -printf '%%%dir %{goroot}/%p\n' >> $tests_list
d40cd88
    find lib/ ! -type d -printf '%{goroot}/%p\n' >> $tests_list
Vincent Batts b025cc2
popd
c56eb06
c56eb06
# remove the doc Makefile
Vincent Batts be393a2
rm -rfv $RPM_BUILD_ROOT%{goroot}/doc/Makefile
Vincent Batts be393a2
Vincent Batts be393a2
# put binaries to bindir, linked to the arch we're building,
fd042be
# leave the arch independent pieces in {goroot}
Vincent Batts be393a2
mkdir -p $RPM_BUILD_ROOT%{goroot}/bin/linux_%{gohostarch}
Dave Dykstra e9bcd2b
ln -sf %{goroot}/bin/go $RPM_BUILD_ROOT%{_bindir}/go
Dave Dykstra e9bcd2b
ln -sf %{goroot}/bin/gofmt $RPM_BUILD_ROOT%{_bindir}/gofmt
Vincent Batts be393a2
Vincent Batts 8081f33
# ensure these exist and are owned
0134196
mkdir -p $RPM_BUILD_ROOT%{gopath}/src/github.com
0134196
mkdir -p $RPM_BUILD_ROOT%{gopath}/src/bitbucket.org
0134196
mkdir -p $RPM_BUILD_ROOT%{gopath}/src/code.google.com/p
0134196
mkdir -p $RPM_BUILD_ROOT%{gopath}/src/golang.org/x
c56eb06
c9b9b2a
# gdbinit
c9b9b2a
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/gdbinit.d
Vincent Batts 8712265
cp -av %{SOURCE100} $RPM_BUILD_ROOT%{_sysconfdir}/gdbinit.d/golang.gdb
7e281b5
Dave Dykstra e9bcd2b
# prelink blacklist
Dave Dykstra e9bcd2b
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/prelink.conf.d
Dave Dykstra e9bcd2b
cp -av %{SOURCE101} $RPM_BUILD_ROOT%{_sysconfdir}/prelink.conf.d/golang.conf
Dave Dykstra e9bcd2b
Dave Dykstra 58a0272
%if 0%{?rhel} == 7
Dave Dykstra 58a0272
# rpm macros
Dave Dykstra 58a0272
mkdir -p %{buildroot}
Dave Dykstra 58a0272
mkdir -p $RPM_BUILD_ROOT%{_rpmconfigdir}/macros.d
Dave Dykstra 58a0272
cp -av %{SOURCE102} $RPM_BUILD_ROOT%{_rpmconfigdir}/macros.d/macros.golang
Dave Dykstra 58a0272
%endif
Dave Dykstra 58a0272
Dave Dykstra e9bcd2b
# Quick fix for the rhbz#2014704
Dave Dykstra e9bcd2b
sed -i 's/const defaultGO_LDSO = `.*`/const defaultGO_LDSO = ``/' $RPM_BUILD_ROOT%{goroot}/src/internal/buildcfg/zbootstrap.go
Dave Dykstra e9bcd2b
Vincent Batts 110e264
%check
Vincent Batts 110e264
export GOROOT=$(pwd -P)
8d165df
export PATH="$GOROOT"/bin:"$PATH"
Vincent Batts 110e264
cd src
Vincent Batts b025cc2
Dave Dykstra e9bcd2b
# Add some sanity checks.
Dave Dykstra e9bcd2b
echo "GO VERSION:"
Dave Dykstra e9bcd2b
go version
Dave Dykstra e9bcd2b
Dave Dykstra e9bcd2b
echo "GO ENVIRONMENT:"
Dave Dykstra e9bcd2b
go env
Dave Dykstra e9bcd2b
fd042be
export CC="gcc"
fd042be
export CFLAGS="$RPM_OPT_FLAGS"
fd042be
export LDFLAGS="$RPM_LD_FLAGS"
c524af8
%if !%{external_linker}
c524af8
export GO_LDFLAGS="-linkmode internal"
Dave Dykstra e9bcd2b
%else
Dave Dykstra e9bcd2b
export GO_LDFLAGS="-extldflags '$RPM_LD_FLAGS'"
c524af8
%endif
c524af8
%if !%{cgo_enabled} || !%{external_linker}
c524af8
export CGO_ENABLED=0
c524af8
%endif
Vincent Batts be393a2
fd042be
# make sure to not timeout
CentOS Sources aefc38f
export GO_TEST_TIMEOUT_SCALE=2
Vincent Batts 33152ba
Dave Dykstra e9bcd2b
export GO_TEST_RUN=""
Dave Dykstra e9bcd2b
%ifarch aarch64
Dave Dykstra e9bcd2b
  export GO_TEST_RUN="-run=!testshared"
c524af8
%endif
Vincent Batts be393a2
Dave Dykstra e9bcd2b
%if %{fail_on_tests}
Vincent Batts 33152ba
Dave Dykstra e9bcd2b
# TestEd25519Vectors needs network connectivity but it should be cover by
Dave Dykstra e9bcd2b
# this test https://pkgs.devel.redhat.com/cgit/tests/golang/tree/Regression/internal-testsuite/runtest.sh#n127
Vincent Batts be393a2
CentOS Sources aefc38f
./run.bash --no-rebuild -v -v -v -k $GO_TEST_RUN
c56eb06
Dave Dykstra e9bcd2b
# Run tests with FIPS enabled.
Dave Dykstra e9bcd2b
export GOLANG_FIPS=1
Dave Dykstra e9bcd2b
pushd crypto
Dave Dykstra e9bcd2b
  # Run all crypto tests but skip TLS, we will run FIPS specific TLS tests later
CentOS Sources aefc38f
  go test $(go list ./... | grep -v tls) -v
Dave Dykstra e9bcd2b
  # Check that signature functions have parity between boring and notboring
CentOS Sources aefc38f
  CGO_ENABLED=0 go test $(go list ./... | grep -v tls) -v
Dave Dykstra e9bcd2b
popd
Dave Dykstra e9bcd2b
# Run all FIPS specific TLS tests
Dave Dykstra e9bcd2b
pushd crypto/tls
CentOS Sources aefc38f
  go test -v -run "Boring"
Dave Dykstra e9bcd2b
popd
Dave Dykstra e9bcd2b
%else
Dave Dykstra e9bcd2b
./run.bash --no-rebuild -v -v -v -k || :
Dave Dykstra e9bcd2b
%endif
Dave Dykstra e9bcd2b
cd ..
Vincent Batts 74686a2
c56eb06
%files
Dave Dykstra e9bcd2b
CentOS Sources aefc38f
%doc LICENSE PATENTS
Vincent Batts 7c6268c
# VERSION has to be present in the GOROOT, for `go install std` to work
Vincent Batts 7c6268c
%doc %{goroot}/VERSION
8d165df
%dir %{goroot}/doc
Dave Dykstra e9bcd2b
%doc %{goroot}/doc/*
c56eb06
c9b9b2a
# go files
Vincent Batts 8081f33
%dir %{goroot}
Dave Dykstra e9bcd2b
%exclude %{goroot}/bin/
Dave Dykstra e9bcd2b
%exclude %{goroot}/pkg/
Dave Dykstra e9bcd2b
%exclude %{goroot}/src/
Dave Dykstra e9bcd2b
%exclude %{goroot}/doc/
Dave Dykstra e9bcd2b
%exclude %{goroot}/misc/
Dave Dykstra e9bcd2b
%exclude %{goroot}/test/
Dave Dykstra e9bcd2b
%{goroot}/*
c9b9b2a
Vincent Batts 8081f33
# ensure directory ownership, so they are cleaned up if empty
Vincent Batts 8081f33
%dir %{gopath}
Vincent Batts 8081f33
%dir %{gopath}/src
Vincent Batts 8081f33
%dir %{gopath}/src/github.com/
Vincent Batts 8081f33
%dir %{gopath}/src/bitbucket.org/
Vincent Batts 8081f33
%dir %{gopath}/src/code.google.com/
Vincent Batts 8081f33
%dir %{gopath}/src/code.google.com/p/
0134196
%dir %{gopath}/src/golang.org
0134196
%dir %{gopath}/src/golang.org/x
c9b9b2a
c9b9b2a
# gdbinit (for gdb debugging)
c9b9b2a
%{_sysconfdir}/gdbinit.d
c56eb06
Dave Dykstra e9bcd2b
# prelink blacklist
Dave Dykstra e9bcd2b
%{_sysconfdir}/prelink.conf.d
Dave Dykstra e9bcd2b
Dave Dykstra 58a0272
%if 0%{?rhel} ==7
Dave Dykstra 58a0272
%{_rpmconfigdir}/macros.d/macros.golang
Dave Dykstra 58a0272
%endif
Dave Dykstra 58a0272
Dave Dykstra e9bcd2b
%files -f go-src.list src
20cd634
Dave Dykstra e9bcd2b
%files -f go-docs.list docs
Vincent Batts be393a2
Dave Dykstra e9bcd2b
%files -f go-misc.list misc
Vincent Batts be393a2
Dave Dykstra e9bcd2b
%files -f go-tests.list tests
Vincent Batts be393a2
Dave Dykstra e9bcd2b
%files -f go-pkg.list bin
Vincent Batts 4620c48
%{_bindir}/go
Vincent Batts 4620c48
%{_bindir}/gofmt
Vincent Batts be393a2
c524af8
%if %{shared}
Dave Dykstra e9bcd2b
%files -f go-shared.list shared
Vincent Batts 2911c49
%endif
Vincent Batts be393a2
c56eb06
%changelog
Dave Dykstra 7c53255
* Tue Mar  5 2024 Dave Dykstra <dwd@fedoraproject.org> - 1.20.12-1
Dave Dykstra 7c53255
- Update to 1.20.12 by doing the equivalent changes done in RedHat ubi8's
Dave Dykstra 7c53255
  golang-1.20.12-2
Dave Dykstra d3ee7b5
- Restore the "--with ignore_tests" rpmbuild option
Dave Dykstra 7c53255
Dave Dykstra 841b4ab
* Thu Nov 23 2023 Dave Dykstra <dwd@fedoraproject.org> - 1.20.10-3
Dave Dykstra 841b4ab
- Skip ppc64le_cgo_inline_plt test which is failing on el7.
Dave Dykstra 841b4ab
Dave Dykstra c7450dd
* Thu Nov 23 2023 Dave Dykstra <dwd@fedoraproject.org> - 1.20.10-2
Dave Dykstra c7450dd
- Rebuild to correct day of week on 1.19.13 changelog.
Dave Dykstra c7450dd
Dave Dykstra 890ccf6
* Thu Nov 23 2023 Dave Dykstra <dwd@fedoraproject.org> - 1.20.10-1
Dave Dykstra 890ccf6
- Update to 1.20.10 by doing the equivalent changes done in RedHat ubi8.
Dave Dykstra 890ccf6
Dave Dykstra 08a8fc8
* Mon Oct 16 2023 Dave Dykstra <dwd@fedoraproject.org> - 1.19.13-1
Dave Dykstra f9bc2c1
- Update to 1.19.13 by doing the equivalent changes done in RedHat ubi8.
Dave Dykstra f9bc2c1
Dave Dykstra 8ab0447
* Thu Jun 29 2023 Dave Dykstra <dwd@fedoraproject.org> - 1.19.10-1
Dave Dykstra 8ab0447
- Update to 1.19.10 by doing the equivalent changes done in RedHat ubi8.
Dave Dykstra 8ab0447
CentOS Sources bb5d67c
* Fri May 26 2023 Dave Dykstra <dwd@fedoraproject.org> - 1.19.9-1
CentOS Sources bb5d67c
- Update to 1.19.9 by doing the equivalent changes as centos8-stream.
CentOS Sources bb5d67c
CentOS Sources 016b1be
* Tue May 16 2023 Dave Dykstra <dwd@fedoraproject.org> - 1.19.6-1
CentOS Sources 016b1be
- Update to 1.19.6 by doing the equivalent changes as centos8-stream.
CentOS Sources 016b1be
CentOS Sources aefc38f
* Tue May 16 2023 Dave Dykstra <dwd@fedoraproject.org> - 1.19.4-1
CentOS Sources aefc38f
- Update to 1.19.4 by doing the equivalent changes as centos8-stream.
CentOS Sources aefc38f
Dave Dykstra 6185bba
* Wed Jan 25 2023 Dave Dykstra <dwd@fedoraproject.org> - 1.18.9-1
Dave Dykstra 6185bba
- Update to 1.18.9 by doing the equivalent changes as centos8-stream.
Dave Dykstra 6185bba
Dave Dykstra 6185bba
* Wed Nov 30 2022 Dave Dykstra <dwd@fedoraproject.org> - 1.18.4-1
Dave Dykstra dd6a0d5
- Update to 1.18.4 by doing the equivalent changes as centos8-stream.
Dave Dykstra dd6a0d5
Dave Dykstra dd6a0d5
* Mon Aug  1 2022 Dave Dykstra <dwd@fedoraproject.org> - 1.17.12-1
Dave Dykstra acaccc3
- Update to 1.17.12 by doing the equivalent changes as centos8-stream.
Dave Dykstra acaccc3
CentOS Sources 4b02510
* Thu Jun 30 2022 Dave Dykstra <dwd@fedoraproject.org> - 1.17.10-1
CentOS Sources 4b02510
- Update to 1.17.10 by cherry-picking the commit from centos8-stream.
CentOS Sources 4b02510
Dave Dykstra e9bcd2b
* Tue May 10 2022 Dave Dykstra <dwd@fedoraproject.org> - 1.17.7-1
Dave Dykstra e9bcd2b
- Update to 1.17.7, based on centos8-stream packaging except keeping
Dave Dykstra e9bcd2b
  go-srpm-macros and the "--with ignore_tests" rpmbuild option
Dave Dykstra e9bcd2b
Dave Dykstra 58a0272
* Thu Jan 20 2022 Dave Dykstra <dwd@fedoraproject.org> - 1.16.13-2
Dave Dykstra 58a0272
- Add back providing go-srpm-macros on rhel 7
Dave Dykstra 58a0272
Dave Dykstra c1995c0
* Tue Jan 18 2022 Dave Dykstra <dwd@fedoraproject.org> - 1.16.13-1
Dave Dykstra c1995c0
- Update to go1.16.13, copied from f35
Dave Dykstra c1995c0
9cc2f33
* Tue Jul 27 2021 Jakub Čajka <jcajka@redhat.com> - 1.15.14-1
60bb8c5
- Update to go1.15.14
9e9d343
- Fix crash in VDSO calls on ppc64le
9cc2f33
- Security fix for CVE-2020-28851, CVE-2020-28852, CVE-2021-3114, CVE-2021-3115, CVE-2021-27918, CVE-2021-31525, CVE-2021-33198, CVE-2021-33197, CVE-2021-33195 and CVE-2021-34558
9cc2f33
- Resolves: BZ#1913336, BZ#1913365, BZ#1918752, BZ#1918762, BZ#1937902, BZ#1958342, BZ#1989576, BZ#1989571, BZ#1989565 and BZ#1986200
643bf67
dcb04b9
* Mon Nov 16 2020 Jakub Čajka <jcajka@redhat.com> - 1.15.5-1
27a8ad3
- Rebase to go1.15.5
27a8ad3
- Security fix for CVE-2020-28362, CVE-2020-28367 and CVE-2020-28366
dcb04b9
- Resolves: BZ#1897637, BZ#1897645 and BZ#1897648
61730a3
efeddef
* Thu Sep 10 2020 Jakub Čajka <jcajka@redhat.com> - 1.15.2-1
efeddef
- Rebase to go1.15.2
efeddef
- Security fix for CVE-2020-24553
efeddef
- Resolves: BZ#1874859
efeddef
ab2b31c
* Tue Aug 25 2020 Jakub Čajka <jcajka@redhat.com> - 1.15-1
ab2b31c
- Rebase to go1.15
ab2b31c
- Security fix for CVE-2020-16845 and CVE-2020-14040
ab2b31c
- Resolves BZ#1867100 and BZ#1853654
ecf8f72
69ff2bc
* Mon Jul 20 2020 Jakub Čajka <jcajka@redhat.com> - 1.13.14-1
69ff2bc
- Rebase to go1.13.14
7719430
- Fix for  CVE-2020-15586
7719430
- Resolves: BZ#1856956
69ff2bc
62b1543
* Mon May 18 2020 Álex Sáez <asm@redhat.com> - 1.13.11-1
62b1543
- Rebase to go1.13.11
62b1543
b61393b
* Mon Feb 03 2020 Jakub Čajka <jcajka@redhat.com> - 1.13.6-1
fbfc80f
- Rebase to go1.13.6
fbfc80f
e508311
* Wed Nov 13 2019 Jakub Čajka <jcajka@redhat.com> - 1.13.4-1
f445d76
- Rebase to go1.13.4
f445d76
c4aa731
* Wed Oct 30 2019 Jakub Čajka <jcajka@redhat.com> - 1.13.3-1
069e0f1
- Rebase to go1.13.3
069e0f1
- Fix for CVE-2019-17596
c4aa731
- Resolves: BZ#1763311
069e0f1
480d70a
* Sat Oct 5 2019 Jakub Čajka <jcajka@redhat.com> - 1.13.1-1
151fe9e
- Rebase to go1.13.1
151fe9e
- Fix for CVE-2019-16276
480d70a
- Resolves: BZ#1755971
25a05dd
c909a8f
* Tue Sep 10 2019 Jakub Čajka <jcajka@redhat.com> - 1.13-1
8f7b389
- Rebase to go1.13
c909a8f
- Fix for CVE-2019-9512, CVE-2019-9514, CVE-2019-14809
c909a8f
- Resolves: BZ#1741815, BZ#1741826, BZ#1743130
8f7b389
3af1556
* Thu Aug 08 2019 Jakub Čajka <jcajka@redhat.com> - 1.11.12-1
c3b72c1
- Rebase to 1.11.12
c3b72c1
f7816c0
* Mon Feb 04 2019 Jakub Čajka <jcajka@redhat.com> - 1.11.5-1
d0a2453
- Rebase to go1.11.5
d0a2453
- Fix for CVE-2019-6486
f7816c0
- Resolves: BZ#1668975
d0a2453
50b7643
* Wed Jan 02 2019 Jakub Čajka <jcajka@redhat.com> - 1.11.4-1
50b7643
- Rebase to go1.11.4
50b7643
- Fix for CVE-2018-16875, CVE-2018-16874 and CVE-2018-16873
b9f45a7
- Resolves: BZ#1664332
62f2ae0
fc3cecf
* Fri Nov 30 2018 Jakub Čajka <jcajka@redhat.com> - 1.11.2-3
fc3cecf
- add ppc64le proper
fc3cecf
46137b6
* Mon Nov 26 2018 Jakub Čajka <jcajka@redhat.com> - 1.11.2-2
46137b6
- fix up macros file for aarch64
46137b6
a35b371
* Fri Nov 23 2018 Jakub Čajka <jcajka@redhat.com> - 1.11.2-1
b86284b
- Rebase to go1.11.2
b86284b
be0aa04
* Sun Oct 07 2018 Jakub Čajka <jcajka@redhat.com> - 1.11.1-1
eb7ec5d
- Rebase to go1.11.1
eb7ec5d
8547fbc
* Mon Jun 11 2018 Jakub Čajka <jcajka@redhat.com> - 1.9.7-1
8547fbc
- Rebase to 1.9.7
8547fbc
6239736
* Thu May 10 2018 Jakub Čajka <jcajka@redhat.com> - 1.9.6-1
371df34
- Rebase to 1.9.6
371df34
7371bb1
* Tue Mar 20 2018 Jakub Čajka <jcajka@redhat.com> - 1.9.4-1
5abf0c8
- Rebase to 1.9.4
7371bb1
- Fix CVE-2018-6574 and CVE-2018-7187
7371bb1
- Resolves: BZ#1543561, BZ#1543563, BZ#1546386, BZ#1546387
9ca117e
315b776
* Thu Oct 26 2017 Jakub Čajka <jcajka@redhat.com> - 1.9.2-1
315b776
- Rebase to 1.9.2
315b776
- execute correctly pie tests
315b776
- allow to ignore tests via bcond
315b776
- reduce size of golang package
315b776
ceb83a7
* Fri Oct 06 2017 Jakub Čajka <jcajka@redhat.com> - 1.9.1-1
dc8fe7c
- fix CVE-2017-15041 and CVE-2017-15042
dc8fe7c
903219b
* Fri Sep 15 2017 Jakub Čajka <jcajka@redhat.com> - 1.9-1
903219b
- bump to the relased version
903219b
cb0891b
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9-0.beta2.1.2
cb0891b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
cb0891b
494a6d1
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9-0.beta2.1.1
494a6d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
494a6d1
5767354
* Tue Jul 11 2017 Jakub Čajka <jcajka@redhat.com> - 1.9-0.beta2.1
5767354
- bump to beta2
5c3bfef
45041c8
* Thu May 25 2017 Jakub Čajka <jcajka@redhat.com> - 1.8.3-1
45041c8
- bump to 1.8.3
45041c8
- fix for CVE-2017-8932
45041c8
- make possible to use 31bit OID in ASN1
45041c8
- Resolves: BZ#1454978, BZ#1455191
45041c8
0a43a1c
* Fri Apr 21 2017 Jakub Čajka <jcajka@redhat.com> - 1.8.1-2
0a43a1c
- fix uint64 constant codegen on s390x
0a43a1c
- Resolves: BZ#1441078
0a43a1c
749ec62
* Tue Apr 11 2017 Jakub Čajka <jcajka@redhat.com> - 1.8.1-1
749ec62
- bump to Go 1.8.1
749ec62
- Resolves: BZ#1440345
749ec62
a1ca3c9
* Fri Feb 24 2017 Jakub Čajka <jcajka@redhat.com> - 1.8-2
a1ca3c9
- avoid possibly stale packages due to chacha test file not being test file
a1ca3c9
1bf7308
* Fri Feb 17 2017 Jakub Čajka <jcajka@redhat.com> - 1.8-1
1bf7308
- bump to released version
1bf7308
- Resolves: BZ#1423637
1bf7308
- Related: BZ#1411242
1bf7308
7dabca5
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8-0.rc3.2.1
7dabca5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
7dabca5
b881112
* Fri Jan 27 2017 Jakub Čajka <jcajka@redhat.com> - 1.8-0.rc3.2
b881112
- make possible to override default traceback level at build time
b881112
- add sub-package race containing std lib built with -race enabled
b881112
- Related: BZ#1411242
b881112
100fcef
* Fri Jan 27 2017 Jakub Čajka <jcajka@redhat.com> - 1.8-0.rc3.1
100fcef
- rebase to go1.8rc3
100fcef
- Resolves: BZ#1411242
100fcef
Jakub Cajka 0dbd49f
* Fri Jan 20 2017 Jakub Čajka <jcajka@redhat.com> - 1.7.4-2
Jakub Cajka 0dbd49f
- Resolves: BZ#1404679
Jakub Cajka 0dbd49f
- expose IfInfomsg.X__ifi_pad on s390x
Jakub Cajka 0dbd49f
66c8bd8
* Fri Dec 02 2016 Jakub Čajka <jcajka@redhat.com> - 1.7.4-1
e3d5bfe
- Bump to 1.7.4
e3d5bfe
- Resolves: BZ#1400732
e3d5bfe
85dfe17
* Thu Nov 17 2016 Tom Callaway <spot@fedoraproject.org> - 1.7.3-2
85dfe17
- re-enable the NIST P-224 curve
85dfe17
663103c
* Thu Oct 20 2016 Jakub Čajka <jcajka@redhat.com> - 1.7.3-1
663103c
- Resolves: BZ#1387067 - golang-1.7.3 is available
663103c
- added fix for tests failing with latest tzdata
663103c
d978616
* Fri Sep 23 2016 Jakub Čajka <jcajka@redhat.com> - 1.7.1-2
d978616
- fix link failure due to relocation overflows on PPC64X
d978616
8bda509
* Thu Sep 08 2016 Jakub Čajka <jcajka@redhat.com> - 1.7.1-1
8bda509
- rebase to 1.7.1
8bda509
- Resolves: BZ#1374103
8bda509
1fe9869
* Tue Aug 23 2016 Jakub Čajka <jcajka@redhat.com> - 1.7-1
1fe9869
- update to released version
1fe9869
- related: BZ#1342090, BZ#1357394
1fe9869
6896a58
* Mon Aug 08 2016 Jakub Čajka <jcajka@redhat.com> - 1.7-0.3.rc5
6896a58
- Obsolete golang-vet and golang-cover from golang-googlecode-tools package
6896a58
  vet/cover binaries are provided by golang-bin rpm (thanks to jchaloup)
6896a58
- clean up exclusive arch after s390x boostrap
6896a58
- resolves: #1268206
6896a58
cf2fb88
* Wed Aug 03 2016 Jakub Čajka <jcajka@redhat.com> - 1.7-0.2.rc5
cf2fb88
- rebase to go1.7rc5
cf2fb88
- Resolves: BZ#1342090
cf2fb88
00c9202
* Thu Jul 21 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-0.1.rc2
00c9202
- https://fedoraproject.org/wiki/Changes/golang1.7
00c9202
d36359a
* Tue Jul 19 2016 Jakub Čajka <jcajka@redhat.com> - 1.7-0.0.rc2
d36359a
- rebase to 1.7rc2
d36359a
- added s390x build
d36359a
- improved shared lib packaging
d36359a
- Resolves: bz1357602 - CVE-2016-5386
d36359a
- Resolves: bz1342090, bz1342090
45a3692
04b972e
* Tue Apr 26 2016 Jakub Čajka <jcajka@redhat.com> - 1.6.2-1
04b972e
- rebase to 1.6.2
04b972e
- Resolves: bz1329206 - golang-1.6.2.src is available
414707a
b2c2028
* Wed Apr 13 2016 Jakub Čajka <jcajka@redhat.com> - 1.6.1-1
b2c2028
- rebase to 1.6.1
b2c2028
- Resolves: bz1324344 - CVE-2016-3959
b2c2028
- Resolves: bz1324951 - prelink is gone, /etc/prelink.conf.d/* is no longer used
b2c2028
- Resolves: bz1326366 - wrong epoll_event struct for ppc64le/ppc64
b2c2028
263126f
* Mon Feb 22 2016 Jakub Čajka <jcajka@redhat.com> - 1.6-1
263126f
- Resolves: bz1304701 - rebase to go1.6 release
263126f
- Resolves: bz1304591 - fix possible stack miss-alignment in callCgoMmap
263126f
30a817d
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-0.3.rc1
30a817d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
30a817d
f031dfd
* Fri Jan 29 2016 Jakub Čajka <jcajka@redhat.com> - 1.6-0.2.rc1
f031dfd
- disabled cgo and external linking on ppc64
f031dfd
d40cd88
* Thu Jan 28 2016 Jakub Čajka <jcajka@redhat.com> - 1.6-0.1.rc1
d40cd88
- Resolves bz1292640, rebase to pre-release 1.6
d40cd88
- bootstrap for PowerPC
d40cd88
- fix rpmlint errors/warning
d40cd88
672b8a1
* Thu Jan 14 2016 Jakub Čajka <jcajka@redhat.com> - 1.5.3-1
672b8a1
- rebase to 1.5.3
672b8a1
- resolves bz1293451, CVE-2015-8618
672b8a1
- apply timezone patch, avoid using bundled data
672b8a1
- print out rpm build system info
672b8a1
8b92652
* Fri Dec 11 2015 Jakub Čajka <jcajka@redhat.com> - 1.5.2-2
8552516
- bz1290543 Accept x509 certs with negative serial
8b92652
c524af8
* Tue Dec 08 2015 Jakub Čajka <jcajka@redhat.com> - 1.5.2-1
c524af8
- bz1288263 rebase to 1.5.2
c524af8
- spec file clean up
c524af8
- added build options
c524af8
- scrubbed "Project Gutenberg License"
fd042be
27c6fb3
* Mon Oct 19 2015 Vincent Batts <vbatts@fedoraproject.org> - 1.5.1-1
27c6fb3
- bz1271709 include patch from upstream fix
27c6fb3
682f928
* Wed Sep 09 2015 Vincent Batts <vbatts@fedoraproject.org> - 1.5.1-0
682f928
- update to go1.5.1
682f928
a68f1b0
* Fri Sep 04 2015 Vincent Batts <vbatts@fedoraproject.org> - 1.5-8
a68f1b0
- bz1258166 remove srpm macros, for go-srpm-macros
a68f1b0
286f73c
* Thu Sep 03 2015 Vincent Batts <vbatts@fedoraproject.org> - 1.5-7
286f73c
- bz1258166 remove srpm macros, for go-srpm-macros
286f73c
418a760
* Thu Aug 27 2015 Vincent Batts <vbatts@fedoraproject.org> - 1.5-6
418a760
- starting a shared object subpackage. This will be x86_64 only until upstream supports more arches shared objects.
Vincent Batts be393a2
7782fc0
* Thu Aug 27 2015 Vincent Batts <vbatts@fedoraproject.org> - 1.5-5
7782fc0
- bz991759 gdb path fix
Vincent Batts be393a2
12a31f1
* Wed Aug 26 2015 Vincent Batts <vbatts@fedoraproject.org> - 1.5-4
12a31f1
- disable shared object until linux/386 is ironned out
12a31f1
- including the test/ directory for tests
Vincent Batts be393a2
3cb3b22
* Tue Aug 25 2015 Vincent Batts <vbatts@fedoraproject.org> - 1.5-3
32abaed
- bz1256910 only allow the golang zoneinfo.zip to be used in tests
32abaed
- bz1166611 add golang.org/x directory
32abaed
- bz1256525 include stdlib shared object. This will let other libraries and binaries
32abaed
  build with `go build -buildmode=shared -linkshared ...` or similar.
Vincent Batts be393a2
b869aad
* Sun Aug 23 2015 Peter Robinson <pbrobinson@fedoraproject.org> 1.5-2
b869aad
- Enable aarch64
b869aad
- Minor cleanups
Vincent Batts be393a2
0d13e2d
* Thu Aug 20 2015 Vincent Batts <vbatts@fedoraproject.org> - 1.5-1
0d13e2d
- updating to go1.5
Adam Miller b77f6c7
03b73e2
* Thu Aug 06 2015 Vincent Batts <vbatts@fedoraproject.org> - 1.5-0.11.rc1
03b73e2
- fixing the sources reference
03b73e2
831ba34
* Thu Aug 06 2015 Vincent Batts <vbatts@fedoraproject.org> - 1.5-0.10.rc1
831ba34
- updating to go1.5rc1
831ba34
- checks are back in place
831ba34
f2f58b5
* Tue Aug 04 2015 Vincent Batts <vbatts@fedoraproject.org> - 1.5-0.9.beta3
f2f58b5
- pull in upstream archive/tar fix
f2f58b5
9fc0bc4
* Thu Jul 30 2015 Vincent Batts <vbatts@fedoraproject.org> - 1.5-0.8.beta3
9fc0bc4
- updating to go1.5beta3
9fc0bc4
78d9b3d
* Thu Jul 30 2015 Vincent Batts <vbatts@fedoraproject.org> - 1.5-0.7.beta2
78d9b3d
- add the patch ..
78d9b3d
c1bee09
* Thu Jul 30 2015 Vincent Batts <vbatts@fedoraproject.org> - 1.5-0.6.beta2
c1bee09
- increase ELFRESERVE (bz1248071)
c1bee09
bb5db89
* Tue Jul 28 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.5-0.5.beta2
bb5db89
- correct package version and release tags as per naming guidelines
bb5db89
6da96f9
* Fri Jul 17 2015 Vincent Batts <vbatts@fedoraproject.org> - 1.4.99-4.1.5beta2
6da96f9
- adding test output, for visibility
6da96f9
2ecad65
* Fri Jul 10 2015 Vincent Batts <vbatts@fedoraproject.org> - 1.4.99-3.1.5beta2
2ecad65
- updating to go1.5beta2
2ecad65
beda572
* Fri Jul 10 2015 Vincent Batts <vbatts@fedoraproject.org> - 1.4.99-2.1.5beta1
beda572
- add checksum to sources and fixed one patch
beda572
8d165df
* Fri Jul 10 2015 Vincent Batts <vbatts@fedoraproject.org> - 1.4.99-1.1.5beta1
8d165df
- updating to go1.5beta1
8d165df
7dc03d1
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.2-3
7dc03d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
aa501a2
a8686d8
* Wed Mar 18 2015 Vincent Batts <vbatts@fedoraproject.org> - 1.4.2-2
a8686d8
- obsoleting deprecated packages
a8686d8
b5c0254
* Wed Feb 18 2015 Vincent Batts <vbatts@fedoraproject.org> - 1.4.2-1
b5c0254
- updating to go1.4.2
b5c0254
4c424d4
* Fri Jan 16 2015 Vincent Batts <vbatts@fedoraproject.org> - 1.4.1-1
4c424d4
- updating to go1.4.1
4c424d4
2ba9c52
* Fri Jan 02 2015 Vincent Batts <vbatts@fedoraproject.org> - 1.4-2
2ba9c52
- doc organizing
2ba9c52
82982da
* Thu Dec 11 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.4-1
82982da
- update to go1.4 release
82982da
0ad646d
* Wed Dec 03 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3.99-3.1.4rc2
0ad646d
- update to go1.4rc2
0ad646d
55020ea
* Mon Nov 17 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3.99-2.1.4rc1
55020ea
- update to go1.4rc1
55020ea
20cd634
* Thu Oct 30 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3.99-1.1.4beta1
20cd634
- update to go1.4beta1
20cd634
84f9320
* Thu Oct 30 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3.3-3
84f9320
- macros will need to be in their own rpm
84f9320
c2c5dc1
* Fri Oct 24 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3.3-2
c2c5dc1
- split out rpm macros (bz1156129)
c2c5dc1
- progress on gccgo accomodation
c2c5dc1
Vincent Batts 94c0b3b
* Wed Oct 01 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3.3-1
Vincent Batts 94c0b3b
- update to go1.3.3 (bz1146882)
Vincent Batts 94c0b3b
Vincent Batts 8cfb9c4
* Mon Sep 29 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3.2-1
Vincent Batts 8cfb9c4
- update to go1.3.2 (bz1147324)
Vincent Batts 8cfb9c4
Vincent Batts 999ceca
* Thu Sep 11 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3.1-3
Vincent Batts 999ceca
- patching the tzinfo failure
Vincent Batts 31e8a62
726440c
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-2
726440c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
Vincent Batts 3b49f32
Vincent Batts ec11551
* Wed Aug 13 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3.1-1
Vincent Batts ec11551
- update to go1.3.1
Vincent Batts 110e264
Vincent Batts 81887c2
* Wed Aug 13 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3-11
Vincent Batts 81887c2
- merged a line wrong
Vincent Batts 9380b0e
Vincent Batts b025cc2
* Wed Aug 13 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3-10
Vincent Batts b025cc2
- more work to get cgo.a timestamps to line up, due to build-env
Vincent Batts b025cc2
- explicitly list all the files and directories for the source and packages trees
Vincent Batts abfb918
- touch all the built archives to be the same
Vincent Batts abfb918
Vincent Batts ab9b265
* Mon Aug 11 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3-9
Vincent Batts ea1d7ad
- make golang-src 'noarch' again, since that was not a fix, and takes up more space
Vincent Batts ea1d7ad
Vincent Batts dd6f77a
* Mon Aug 11 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3-8
Vincent Batts ab7a3d0
- update timestamps of source files during %%install bz1099206
Vincent Batts ab7a3d0
Vincent Batts 1afe7e2
* Fri Aug 08 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3-7
Vincent Batts 90e7326
- update timestamps of source during %%install bz1099206
Vincent Batts 90e7326
Vincent Batts 42cdf8d
* Wed Aug 06 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3-6
Vincent Batts 97dd9b4
- make the source subpackage arch'ed, instead of noarch
Vincent Batts 97dd9b4
Vincent Batts 374526d
* Mon Jul 21 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3-5
Vincent Batts 374526d
- fix the writing of pax headers
Vincent Batts 374526d
Vincent Batts 3a4853b
* Tue Jul 15 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3-4
Vincent Batts 8712265
- fix the loading of gdb safe-path. bz981356
Vincent Batts 8712265
Vincent Batts 3a4853b
* Tue Jul 08 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3-3
Vincent Batts 7c6268c
- `go install std` requires gcc, to build cgo. bz1105901, bz1101508
Vincent Batts 7c6268c
Vincent Batts 3a4853b
* Mon Jul 07 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3-2
Vincent Batts 4086849
- archive/tar memory allocation improvements
Vincent Batts 4086849
Vincent Batts 3a4853b
* Thu Jun 19 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3-1
Vincent Batts 207296f
- update to go1.3
Vincent Batts 207296f
Vincent Batts 3a4853b
* Fri Jun 13 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.3rc2-1
Vincent Batts ae78530
- update to go1.3rc2
Vincent Batts ae78530
472df19
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3rc1-2
472df19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
472df19
Vincent Batts f3f956d
* Tue Jun 03 2014 Vincent Batts <vbatts@redhat.com> 1.3rc1-1
Vincent Batts f3f956d
- update to go1.3rc1
Vincent Batts ffa74e0
- new arch file shuffling
Vincent Batts f3f956d
Vincent Batts 0b3722b
* Wed May 21 2014 Vincent Batts <vbatts@redhat.com> 1.3beta2-1
Vincent Batts 0b3722b
- update to go1.3beta2
Vincent Batts 0b3722b
- no longer provides go-mode for xemacs (emacs only)
Vincent Batts 0b3722b
Vincent Batts 4620c48
* Wed May 21 2014 Vincent Batts <vbatts@redhat.com> 1.2.2-7
Vincent Batts 4620c48
- bz1099206 ghost files are not what is needed
Vincent Batts 4620c48
Vincent Batts 8bd3750
* Tue May 20 2014 Vincent Batts <vbatts@redhat.com> 1.2.2-6
Vincent Batts 8bd3750
- bz1099206 more fixing. The packages %%post need golang-bin present first
Vincent Batts 8bd3750
Vincent Batts c849611
* Tue May 20 2014 Vincent Batts <vbatts@redhat.com> 1.2.2-5
Vincent Batts 7619d50
- bz1099206 more fixing. Let go fix its own timestamps and freshness
Vincent Batts c849611
Vincent Batts 6109664
* Tue May 20 2014 Vincent Batts <vbatts@redhat.com> 1.2.2-4
Vincent Batts 6109664
- fix the existence and alternatives of `go` and `gofmt`
Vincent Batts 6109664
Vincent Batts 74686a2
* Mon May 19 2014 Vincent Batts <vbatts@redhat.com> 1.2.2-3
Vincent Batts 74686a2
- bz1099206 fix timestamp issue caused by koji builders
Vincent Batts 74686a2
Vincent Batts 573d0ba
* Fri May 09 2014 Vincent Batts <vbatts@redhat.com> 1.2.2-2
Vincent Batts 573d0ba
- more arch file shuffling
Vincent Batts 573d0ba
Vincent Batts c8bd3b7
* Fri May 09 2014 Vincent Batts <vbatts@redhat.com> 1.2.2-1
Vincent Batts c8bd3b7
- update to go1.2.2
Vincent Batts c8bd3b7
Vincent Batts 2911c49
* Thu May 08 2014 Vincent Batts <vbatts@redhat.com> 1.2.1-8
Vincent Batts 2911c49
- RHEL6 rpm macros can't %%exlude missing files
Vincent Batts 2911c49
Vincent Batts 6e4126f
* Wed May 07 2014 Vincent Batts <vbatts@redhat.com> 1.2.1-7
Vincent Batts 6e4126f
- missed two arch-dependent src files
Vincent Batts 6e4126f
Vincent Batts df7b191
* Wed May 07 2014 Vincent Batts <vbatts@redhat.com> 1.2.1-6
Vincent Batts df7b191
- put generated arch-dependent src in their respective RPMs
Vincent Batts df7b191
Vincent Batts d931512
* Fri Apr 11 2014 Vincent Batts <vbatts@redhat.com> 1.2.1-5
Vincent Batts 76f08f5
- skip test that is causing a SIGABRT on fc21 bz1086900
Vincent Batts 76f08f5
Vincent Batts d931512
* Thu Apr 10 2014 Vincent Batts <vbatts@fedoraproject.org> 1.2.1-4
Vincent Batts 8081f33
- fixing file and directory ownership bz1010713
Vincent Batts 8081f33
Vincent Batts be393a2
* Wed Apr 09 2014 Vincent Batts <vbatts@fedoraproject.org> 1.2.1-3
Vincent Batts be393a2
- including more to macros (%%go_arches)
Vincent Batts be393a2
- set a standard goroot as /usr/lib/golang, regardless of arch
Vincent Batts be393a2
- include sub-packages for compiler toolchains, for all golang supported architectures
Vincent Batts be393a2
Vincent Batts fd00fb3
* Wed Mar 26 2014 Vincent Batts <vbatts@fedoraproject.org> 1.2.1-2
d40cd88
- provide a system rpm macros. Starting with gopath
Vincent Batts fd00fb3
Adam Miller 01d4c2e
* Tue Mar 04 2014 Adam Miller <maxamillion@fedoraproject.org> 1.2.1-1
Adam Miller 01d4c2e
- Update to latest upstream
Adam Miller 01d4c2e
Vincent Batts 8712265
* Thu Feb 20 2014 Adam Miller <maxamillion@fedoraproject.org> 1.2-7
Adam Miller d0ddbae
- Remove  _BSD_SOURCE and _SVID_SOURCE, they are deprecated in recent
Adam Miller d0ddbae
  versions of glibc and aren't needed
Adam Miller d0ddbae
Adam Miller 1318683
* Wed Feb 19 2014 Adam Miller <maxamillion@fedoraproject.org> 1.2-6
Adam Miller 1318683
- pull in upstream archive/tar implementation that supports xattr for
Adam Miller 1318683
  docker 0.8.1
Adam Miller 1318683
Vincent Batts 77cba21
* Tue Feb 18 2014 Vincent Batts <vbatts@redhat.com> 1.2-5
Vincent Batts 77cba21
- provide 'go', so users can yum install 'go'
Vincent Batts 77cba21
Adam Miller 64f9c14
* Fri Jan 24 2014 Vincent Batts <vbatts@redhat.com> 1.2-4
Vincent Batts 25b1d04
- skip a flaky test that is sporadically failing on the build server
Vincent Batts 25b1d04
Vincent Batts b5cbd1e
* Thu Jan 16 2014 Vincent Batts <vbatts@redhat.com> 1.2-3
Vincent Batts b5cbd1e
- remove golang-godoc dependency. cyclic dependency on compiling godoc
Vincent Batts b5cbd1e
Vincent Batts 5152b3a
* Wed Dec 18 2013 Vincent Batts <vbatts@redhat.com> - 1.2-2
Vincent Batts 5152b3a
- removing P224 ECC curve
Vincent Batts 5152b3a
Vincent Batts 5a84c90
* Mon Dec 2 2013 Vincent Batts <vbatts@fedoraproject.org> - 1.2-1
Vincent Batts 5a84c90
- Update to upstream 1.2 release
Vincent Batts 5a84c90
- remove the pax tar patches
Vincent Batts 5a84c90
Vincent Batts 4e1713b
* Tue Nov 26 2013 Vincent Batts <vbatts@redhat.com> - 1.1.2-8
Vincent Batts 4e1713b
- fix the rpmspec conditional for rhel and fedora
Vincent Batts 4e1713b
Vincent Batts 8856b2e
* Thu Nov 21 2013 Vincent Batts <vbatts@redhat.com> - 1.1.2-7
Vincent Batts d09407f
- patch tests for testing on rawhide
Vincent Batts ce418df
- let the same spec work for rhel and fedora
Vincent Batts d09407f
Vincent Batts d8b5074
* Wed Nov 20 2013 Vincent Batts <vbatts@redhat.com> - 1.1.2-6
Vincent Batts d8b5074
- don't symlink /usr/bin out to ../lib..., move the file
Vincent Batts d8b5074
- seperate out godoc, to accomodate the go.tools godoc
Vincent Batts d8b5074
Adam Miller 355d9b0
* Fri Sep 20 2013 Adam Miller <maxamillion@fedoraproject.org> - 1.1.2-5
Adam Miller f12359b
- Pull upstream patches for BZ#1010271
Adam Miller f12359b
- Add glibc requirement that got dropped because of meta dep fix
Adam Miller f12359b
Adam Miller b77f6c7
* Fri Aug 30 2013 Adam Miller <maxamillion@fedoraproject.org> - 1.1.2-4
Adam Miller 666ac20
- fix the libc meta dependency (thanks to vbatts [at] redhat.com for the fix)
Adam Miller 666ac20
Adam Miller b77f6c7
* Tue Aug 27 2013 Adam Miller <maxamillion@fedoraproject.org> - 1.1.2-3
Adam Miller b77f6c7
- Revert incorrect merged changelog
Adam Miller c2c1e2a
Adam Miller b77f6c7
* Tue Aug 27 2013 Adam Miller <maxamillion@fedoraproject.org> - 1.1.2-2
Adam Miller b77f6c7
- This was reverted, just a placeholder changelog entry for bad merge
Adam Miller b77f6c7
Adam Miller b77f6c7
* Tue Aug 20 2013 Adam Miller <maxamillion@fedoraproject.org> - 1.1.2-1
Adam Miller bd6aa3a
- Update to latest upstream
Adam Miller bd6aa3a
Adam Miller b77f6c7
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-7
Adam Miller b77f6c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
Adam Miller b77f6c7
Adam Miller b77f6c7
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 1.1.1-6
Adam Miller b77f6c7
- Perl 5.18 rebuild
Adam Miller b054c12
03e9b35
* Wed Jul 10 2013 Adam Goode <adam@spicenitz.org> - 1.1.1-5
03e9b35
- Blacklist testdata files from prelink
03e9b35
- Again try to fix #973842
03e9b35
c9b9b2a
* Fri Jul  5 2013 Adam Goode <adam@spicenitz.org> - 1.1.1-4
c9b9b2a
- Move src to libdir for now (#973842) (upstream issue https://code.google.com/p/go/issues/detail?id=5830)
c9b9b2a
- Eliminate noarch data package to work around RPM bug (#975909)
c9b9b2a
- Try to add runtime-gdb.py to the gdb safe-path (#981356)
467dc85
5863470
* Wed Jun 19 2013 Adam Goode <adam@spicenitz.org> - 1.1.1-3
5863470
- Use lua for pretrans (http://fedoraproject.org/wiki/Packaging:Guidelines#The_.25pretrans_scriptlet)
5863470
7e281b5
* Mon Jun 17 2013 Adam Goode <adam@spicenitz.org> - 1.1.1-2
7e281b5
- Hopefully really fix #973842
7e281b5
- Fix update from pre-1.1.1 (#974840)
7e281b5
cc50719
* Thu Jun 13 2013 Adam Goode <adam@spicenitz.org> - 1.1.1-1
cc50719
- Update to 1.1.1
cc50719
- Fix basically useless package (#973842)
cc50719
45f1244
* Sat May 25 2013 Dan Horák <dan[at]danny.cz> - 1.1-3
45f1244
- set ExclusiveArch
45f1244
420db8c
* Fri May 24 2013 Adam Goode <adam@spicenitz.org> - 1.1-2
420db8c
- Fix noarch package discrepancies
420db8c
c56eb06
* Fri May 24 2013 Adam Goode <adam@spicenitz.org> - 1.1-1
c56eb06
- Initial Fedora release.
c56eb06
- Update to 1.1
c56eb06
c56eb06
* Thu May  9 2013 Adam Goode <adam@spicenitz.org> - 1.1-0.3.rc3
c56eb06
- Update to rc3
c56eb06
c56eb06
* Thu Apr 11 2013 Adam Goode <adam@spicenitz.org> - 1.1-0.2.beta2
c56eb06
- Update to beta2
c56eb06
c56eb06
* Tue Apr  9 2013 Adam Goode <adam@spicenitz.org> - 1.1-0.1.beta1
c56eb06
- Initial packaging.