diff --git a/SPECS/runc.spec b/SPECS/runc.spec index f7d65df..da39a35 100644 --- a/SPECS/runc.spec +++ b/SPECS/runc.spec @@ -1,17 +1,15 @@ -%global with_debug 1 -%global with_bundled 1 %global with_check 0 -%if 0%{?with_debug} %global _find_debuginfo_dwz_opts %{nil} %global _dwz_low_mem_die_limit 0 -%else -%global debug_package %{nil} -%endif %if 0%{?rhel} > 7 && ! 0%{?fedora} %define gobuild(o:) \ -go build -buildmode pie -compiler gc -tags="rpm_crashtraceback no_openssl ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-} -compressdwarf=false -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v -x %{?**}; +go build -buildmode pie -compiler gc -tags="rpm_crashtraceback libtrust_openssl ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-} -linkmode=external -compressdwarf=false -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v %{?**}; +%else +%if ! 0%{?gobuild:1} +%define gobuild(o:) GO111MODULE=off go build -buildmode pie -compiler gc -tags="rpm_crashtraceback ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-} -linkmode=external -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '" -a -v %{?**}; +%endif %endif %global provider github @@ -25,8 +23,12 @@ go build -buildmode pie -compiler gc -tags="rpm_crashtraceback no_openssl ${BUIL Name: %{repo} Version: 1.0.0 -Release: 68.%{release_candidate}%{?dist} +Release: 69.%{release_candidate}%{?dist} Summary: CLI for running Open Containers +# https://fedoraproject.org/wiki/PackagingDrafts/Go#Go_Language_Architectures +#ExclusiveArch: %%{go_arches} +# still use arch exclude as the macro above still refers %%{ix86} in RHEL8.4: +# https://bugzilla.redhat.com/show_bug.cgi?id=1905383 ExcludeArch: %{ix86} License: ASL 2.0 URL: %{git0} @@ -88,6 +90,10 @@ install -p -m 0644 contrib/completions/bash/%{name} %{buildroot}%{_datadir}/bash %{_datadir}/bash-completion/completions/%{name} %changelog +* Tue Dec 08 2020 Jindrich Novy - 1.0.0-69.rc92 +- still use ExcludeArch as go_arches macro is broken for 8.4 +- Related: #1888571 + * Tue Aug 11 2020 Jindrich Novy - 1.0.0-68.rc92 - update to https://github.com/opencontainers/runc/releases/tag/v1.0.0-rc92 - propagate proper CFLAGS to CGO_CFLAGS to assure code hardening and optimization