public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Bipin B Narayan <bbnaraya@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/ignition] f45: spec: backport patch to keep butane debug info
Date: Tue, 13 Oct 2026 13:19:30 GMT	[thread overview]
Message-ID: <179189757006.1.901997162790094349.rpms-ignition-64e4a82c684a@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/ignition
            Branch : f45
            Commit : 64e4a82c684a4cc13fc4e3dd01bdaa56befdb5c6
            Author : Bipin B Narayan <bbnaraya@redhat.com>
            Date   : 2026-10-12T20:45:22+05:30
            Stats  : +50/-0 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/ignition/c/64e4a82c684a4cc13fc4e3dd01bdaa56befdb5c6?branch=f45

            Log:
            spec: backport patch to keep butane debug info

Add Patch2 (upstream coreos/ignition#2341) removing the Go linker '-w'
flag from the butane build so the butane-debuginfo subpackage contains
valid .debug_info, fixing the rpminspect/rpmlint 'Missing: .debug_info'
failures.

---
diff --git a/0003-build-don-t-strip-DWARF-debug-info-from-butane.patch b/0003-build-don-t-strip-DWARF-debug-info-from-butane.patch
new file mode 100644
index 0000000..00dbaba
--- /dev/null
+++ b/0003-build-don-t-strip-DWARF-debug-info-from-butane.patch
@@ -0,0 +1,44 @@
+From 21cc98857057175d3d17a6e4b1f39855c9d8b317 Mon Sep 17 00:00:00 2001
+From: Steven Presti <spresti@redhat.com>
+Date: Fri, 9 Oct 2026 12:52:01 -0400
+Subject: [PATCH] build: don't strip DWARF debug info from butane
+
+The butane and cross-butane builds passed '-w' to the Go linker, which
+omits the DWARF debug info from the resulting binaries. This diverges
+from the ignition and ignition-validate builds, which keep debug info,
+and leaves downstream debuginfo packages without usable debug symbols.
+
+Drop '-w' so butane produces debuggable binaries consistent with the
+other build targets. Distro packaging still splits debug symbols into a
+separate debuginfo package, so the shipped binary remains stripped.
+
+Signed-off-by: Steven Presti <spresti@redhat.com>
+---
+ build | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/build b/build
+index 4c96bd99..20e08739 100755
+--- a/build
++++ b/build
+@@ -67,7 +67,7 @@ ignition_validate_cross() {
+ 
+ butane() {
+ 	local name="butane"
+-	local butane_ldflags="-w -X github.com/coreos/ignition/v2/butane/internal/version.Raw=${VERSION}"
++	local butane_ldflags="-X github.com/coreos/ignition/v2/butane/internal/version.Raw=${VERSION}"
+ 
+ 	echo "Building ${name}..."
+ 	CGO_ENABLED=0 go build -ldflags "${butane_ldflags}" -o "${BIN_PATH}/${name}" ${REPO_PATH}/butane/internal
+@@ -75,7 +75,7 @@ butane() {
+ 
+ build_cross_butane() {
+ 	local goos=$1 goarch=$2 output=$3
+-	local butane_ldflags="-w -X github.com/coreos/ignition/v2/butane/internal/version.Raw=${VERSION}"
++	local butane_ldflags="-X github.com/coreos/ignition/v2/butane/internal/version.Raw=${VERSION}"
+ 	echo "Building ${output}..."
+ 	CGO_ENABLED=0 GOARCH=${goarch} GOOS=${goos} go build -ldflags "${butane_ldflags}" -a -v -x -o "${BIN_PATH}/${output}" ${REPO_PATH}/butane/internal
+ }
+-- 
+2.54.0
+

diff --git a/ignition.spec b/ignition.spec
index 311ecab..ffc866f 100644
--- a/ignition.spec
+++ b/ignition.spec
@@ -40,6 +40,10 @@ Patch0:         0001-internal-exec-stages-files-resolve-intermediate-syml.patch
 # Install /usr/bin/fcct as a symlink to butane.
 Patch1:         0002-Makefile-install-usr-bin-fcct-as-symlink-to-butane.patch
 
+# Don't strip DWARF debug info from butane so butane-debuginfo is valid
+# Merged upstream: https://github.com/coreos/ignition/pull/2341
+Patch2:         0003-build-don-t-strip-DWARF-debug-info-from-butane.patch
+
 BuildRequires: libblkid-devel
 BuildRequires: systemd-rpm-macros
 
@@ -417,6 +421,8 @@ make install-butane-cross BIN_PATH=bin DESTDIR=%{buildroot}
 * Tue Sep 29 2026 Bipin B Narayan <bbnaraya@redhat.com> - 2.27.0-4
 - Use makefile from ignition repo for building and installing the files.
 - Backport build: install /usr/bin/fcct as symlink to butane
+- Backport build: keep DWARF debug info in butane for valid butane-debuginfo
+  https://github.com/coreos/ignition/pull/2341
 
 * Mon Sep 14 2026 Rolv Apneseth <rapneset@redhat.com> - 2.27.0-3
 - Backport fix for SELinux relabelling failures when specifying a symlink for home_dir

                 reply	other threads:[~2026-10-13 13:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179189757006.1.901997162790094349.rpms-ignition-64e4a82c684a@fedoraproject.org \
    --to=bbnaraya@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox