Fix typo in add-gobuild-and-gotest.patch
Resolves: RHEL-7437
This commit is contained in:
parent
a1d5513e1f
commit
a057ca193d
@ -25,7 +25,7 @@ index a46f81f..05cd6c9 100644
|
|||||||
+# Define commands for building
|
+# Define commands for building
|
||||||
+# BUILD_ID can be generated for golang build no matter of debuginfo
|
+# BUILD_ID can be generated for golang build no matter of debuginfo
|
||||||
+%gobuild(o:) \
|
+%gobuild(o:) \
|
||||||
+GOPPC64=power9 GOAMD64=v2 CGO_CPPFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-all" go build -compiler gc -buildmode pie '-tags=rpm_crashtraceback libtrust_openssl {GO_BUILDTAGS-${BUILDTAGS-}}' -ldflags "-linkmode=external -compressdwarf=false ${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v -x %{?**};\
|
+GOPPC64=power9 GOAMD64=v2 CGO_CPPFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-all" go build -compiler gc -buildmode pie -tags="rpm_crashtraceback libtrust_openssl ${GO_BUILDTAGS-${BUILDTAGS-}}" -ldflags "-linkmode=external -compressdwarf=false ${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v -x %{?**};\
|
||||||
+
|
+
|
||||||
+# Define commands for testing
|
+# Define commands for testing
|
||||||
+%gotest() go test -compiler gc -ldflags "${LDFLAGS:-}" %{?**};
|
+%gotest() go test -compiler gc -ldflags "${LDFLAGS:-}" %{?**};
|
||||||
|
@ -36,7 +36,7 @@ Version: 3.6.0
|
|||||||
ExclusiveArch: %{golang_arches} %{gccgo_arches}
|
ExclusiveArch: %{golang_arches} %{gccgo_arches}
|
||||||
|
|
||||||
Name: go-rpm-macros
|
Name: go-rpm-macros
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: Build-stage rpm automation for Go packages
|
Summary: Build-stage rpm automation for Go packages
|
||||||
|
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
@ -257,6 +257,10 @@ install -m 0755 -vp %{golist_builddir}/bin/* %{buildroot}%{golist_execdir}/
|
|||||||
%{_spectemplatedir}/*.spec
|
%{_spectemplatedir}/*.spec
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jul 31 2024 Alejandro Sáez <asm@redhat.com> - 3.6.0-3
|
||||||
|
- Fix typo in add-gobuild-and-gotest.patch
|
||||||
|
- Resolves: RHEL-7437
|
||||||
|
|
||||||
* Wed Jul 31 2024 Alejandro Sáez <asm@redhat.com> - 3.6.0-2
|
* Wed Jul 31 2024 Alejandro Sáez <asm@redhat.com> - 3.6.0-2
|
||||||
- Remove rpm.isdefined function
|
- Remove rpm.isdefined function
|
||||||
- Resolves: RHEL-51368
|
- Resolves: RHEL-51368
|
||||||
|
Loading…
Reference in New Issue
Block a user