From 023890e3d64b2a22aead58e625a2193ad023d470 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Wed, 19 Jan 2022 21:19:28 +0000 Subject: [PATCH] import git-lfs-2.13.3-2.el8 --- SPECS/git-lfs.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/SPECS/git-lfs.spec b/SPECS/git-lfs.spec index 6a14e9f..29fe637 100644 --- a/SPECS/git-lfs.spec +++ b/SPECS/git-lfs.spec @@ -14,8 +14,12 @@ Version: 2.13.3 %global gobuilddir %{_builddir}/%{name}-%{version}/_build +# define gobuild macro to not lose hardening, because of macro conflict +# https://bugzilla.redhat.com/show_bug.cgi?id=1919348 +%global gobuild CGO_CPPFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-all" go build -compiler gc -buildmode pie '-tags=rpm_crashtraceback libtrust_openssl ' -ldflags "-linkmode=external -compressdwarf=false ${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v -x %{?**} + Name: git-lfs -Release: 1%{?dist} +Release: 2%{?dist} Summary: Git extension for versioning large files License: MIT @@ -155,6 +159,10 @@ PATH=%{buildroot}%{_bindir}:%{gobuilddir}/bin:$PATH \ %changelog +* Mon Jan 17 2022 Ondrej Pohorelsky - 2.13.3-2 +- Define %%gobuild macro with proper ldflags +- Related: rhbz#2021549 + * Tue Nov 23 2021 Ondrej Pohorelsky - 2.13.3-1 - Update to version 2.13.3 - Fixed round brackets in Provides