public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Mark Wielaard <mjw@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/dwz] rawhide: 0.17-3 - Add 0001-dwz-cleanup-allocatable-section-after-non-allocatabl.patch
Date: Sun, 19 Jul 2026 19:41:55 GMT	[thread overview]
Message-ID: <178449011566.1.15601969633131169893.rpms-dwz-a5acbbc80674@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/dwz
Branch : rawhide
Commit : a5acbbc80674cbf9c0cd564ea15b82576f3fe1df
Author : Mark Wielaard <mjw@redhat.com>
Date   : 2026-07-19T19:14:15+02:00
Stats  : +38/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/dwz/c/a5acbbc80674cbf9c0cd564ea15b82576f3fe1df?branch=rawhide

Log:
0.17-3 - Add 0001-dwz-cleanup-allocatable-section-after-non-allocatabl.patch

---
diff --git a/0001-dwz-cleanup-allocatable-section-after-non-allocatabl.patch b/0001-dwz-cleanup-allocatable-section-after-non-allocatabl.patch
new file mode 100644
index 0000000..75a86db
--- /dev/null
+++ b/0001-dwz-cleanup-allocatable-section-after-non-allocatabl.patch
@@ -0,0 +1,33 @@
+From 4d8f3bb6cabf28d7b4842971e8c117a4beebf720 Mon Sep 17 00:00:00 2001
+From: Mark Wielaard <mark@klomp.org>
+Date: Sun, 19 Jul 2026 18:45:56 +0200
+Subject: [PATCH] dwz: cleanup allocatable section after non-allocatable error
+
+In dso_write all errors, except the allocatable section one, unlink
+the (temp) output file, end the elf and close the fd.
+
+	* dwz.c (write_dso): Always unlink, elf_end and close after
+	error.
+
+Signed-off-by: Mark Wielaard <mark@klomp.org>
+---
+ dwz.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/dwz.c b/dwz.c
+index a5ce8f867a05..4fe960d5d39e 100644
+--- a/dwz.c
++++ b/dwz.c
+@@ -14492,6 +14492,9 @@ write_dso (DSO *dso, const char *file, struct stat *st, bool save_to_temp)
+ 		{
+ 		  error (0, 0, "Allocatable section in %s after "
+ 			 "non-allocatable ones", dso->filename);
++		  unlink (file);
++		  elf_end (elf);
++		  close (fd);
+ 		  return 1;
+ 		}
+ 	      else
+-- 
+2.55.0
+

diff --git a/dwz.spec b/dwz.spec
index fc0828d..74fc2f6 100644
--- a/dwz.spec
+++ b/dwz.spec
@@ -1,7 +1,7 @@
 Summary: DWARF optimization and duplicate removal tool
 Name: dwz
 Version: 0.17
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: GPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND GPL-2.0-or-later AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND LGPL-2.0-or-later
 URL: https://sourceware.org/dwz/
 Source: https://sourceware.org/ftp/dwz/releases/%{name}-%{version}.tar.xz
@@ -10,6 +10,7 @@ BuildRequires: gcc, gcc-c++, gdb, elfutils-libelf-devel, dejagnu
 BuildRequires: make elfutils xxhash-devel xxhash-static
 
 # Patches
+Patch1: 0001-dwz-cleanup-allocatable-section-after-non-allocatabl.patch
 
 %description
 The dwz package contains a program that attempts to optimize DWARF
@@ -40,6 +41,9 @@ CFLAGS="" LDFLAGS="" srcdir=$(pwd) make check
 %{_mandir}/man1/dwz.1*
 
 %changelog
+* Sun Jul 19 2026 Mark Wielaard <mjw@fedoraproject.org> - 0.17-3
+- Add 0001-dwz-cleanup-allocatable-section-after-non-allocatabl.patch
+
 * Wed Jul 15 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.17-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

                 reply	other threads:[~2026-07-19 19:41 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=178449011566.1.15601969633131169893.rpms-dwz-a5acbbc80674@fedoraproject.org \
    --to=mjw@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