From 6f840d29b8ba903d62edd38b924edaf9918ff702 Mon Sep 17 00:00:00 2001 From: Sohan Kunkerkar Date: Thu, 26 Aug 2021 10:31:55 -0400 Subject: [PATCH] Disable compressdwarf flag to avoid build failures on RHEL/CentOS --- ignition.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ignition.spec b/ignition.spec index 2c05f51..84befc5 100644 --- a/ignition.spec +++ b/ignition.spec @@ -232,7 +232,8 @@ Ignition project's Github releases page. %build export LDFLAGS="-X github.com/coreos/ignition/v2/internal/version.Raw=%{version} -X github.com/coreos/ignition/v2/internal/distro.selinuxRelabel=true " %if 0%{?rhel} || 0%{?centos} -LDFLAGS+=' -X github.com/coreos/ignition/v2/internal/distro.writeAuthorizedKeysFragment=false ' +# Need uncompressed debug symbols for debuginfo extraction +LDFLAGS+=' -X github.com/coreos/ignition/v2/internal/distro.writeAuthorizedKeysFragment=false -compressdwarf=false ' %endif export GOFLAGS="-mod=vendor" @@ -292,6 +293,7 @@ install -p -m 0755 ./ignition %{buildroot}/%{dracutlibdir}/modules.d/30ignition %changelog * Thu Aug 26 2021 Sohan Kunkerkar - 2.12.0-2 - Disable file fragment writing logic for SSH authorized_keys on RHEL/CentOS +- Disable compressdwarf flag to avoid build failures on RHEL/CentOS * Fri Aug 6 2021 Sohan Kunkerkar - 2.12.0-1 - New release