public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Mark Wielaard <mjw@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: find-debuginfo.sh: Handle application/x-pie-executable
Date: Mon, 23 Nov 2026 09:31:51 GMT [thread overview]
Message-ID: <179542631162.1.6543175405825266808.rpms-rpm-43ea916f2fc8@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rpm
Branch : pmatilai-v6
Commit : 43ea916f2fc8a6a5146f5a4fdfd9f10c95d05110
Author : Mark Wielaard <mjw@fedoraproject.org>
Date : 2018-05-22T23:01:41+02:00
Stats : +38/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/rpm/c/43ea916f2fc8a6a5146f5a4fdfd9f10c95d05110?branch=pmatilai-v6
Log:
find-debuginfo.sh: Handle application/x-pie-executable
Resolves: #1581224
---
diff --git a/4.14.1-find-debuginfo-pie.patch b/4.14.1-find-debuginfo-pie.patch
new file mode 100644
index 0000000..b92c6b1
--- /dev/null
+++ b/4.14.1-find-debuginfo-pie.patch
@@ -0,0 +1,29 @@
+commit 7145bd4d6edd1622585d7b18b8bba9a71cd41e2b
+Author: Mark Wielaard <mark@klomp.org>
+Date: Tue May 22 22:12:11 2018 +0200
+
+ find-debuginfo.sh: Handle application/x-pie-executable (file 5.33 output).
+
+ A new version of file (5.33) changed the output for PIE executables.
+ Which are now represented as application/x-pie-executable; charset=binary.
+
+ The following change simply recognizes that binary format as one for
+ which -g applies. This fixes accidental stripping of the .symtab in
+ glibc (which use -g to keep that symbol table).
+
+ https://bugzilla.redhat.com/show_bug.cgi?id=1581224
+
+ Signed-off-by: Mark Wielaard <mark@klomp.org>
+
+diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh
+index a7c2db0..90a4494 100755
+--- a/scripts/find-debuginfo.sh
++++ b/scripts/find-debuginfo.sh
+@@ -235,6 +235,7 @@ strip_to_debug()
+ $strip_g && case "$(file -bi "$2")" in
+ application/x-sharedlib*) g=-g ;;
+ application/x-executable*) g=-g ;;
++ application/x-pie-executable*) g=-g ;;
+ esac
+ eu-strip --remove-comment $r $g ${keep_remove_args} -f "$1" "$2" || exit
+ chmod 444 "$1" || exit
diff --git a/rpm.spec b/rpm.spec
index 9c05a38..b91b2f5 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -23,7 +23,7 @@
%global rpmver 4.14.1
#global snapver rc2
-%global rel 8
+%global rel 9
%global srcver %{version}%{?snapver:-%{snapver}}
%global srcdir %{?snapver:testing}%{!?snapver:%{name}-%(echo %{version} | cut -d'.' -f1-2).x}
@@ -67,6 +67,11 @@ Patch6: rpm-4.14.1-python-brp-bytecompile.patch
# - https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build
Patch7: rpm-4.14.1-Add-envvar-that-will-be-present-during-RPM-build.patch
+# find-debuginfo.sh: Handle application/x-pie-executable (file 5.33 output).
+# http://lists.rpm.org/pipermail/rpm-maint/2018-May/007976.html
+# https://bugzilla.redhat.com/show_bug.cgi?id=1581224
+Patch8: 4.14.1-find-debuginfo-pie.patch
+
# Patches already upstream:
# These are not yet upstream
@@ -600,6 +605,9 @@ make check || cat tests/rpmtests.log
%doc doc/librpm/html/*
%changelog
+* Tue May 22 2018 Mark Wielaard <mjw@fedoraproject.org> - 4.14.1-9
+- find-debuginfo.sh: Handle application/x-pie-executable (#1581224)
+
* Tue Feb 20 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.14.1-8
- Split rpm-build-libs to one more subpackage rpm-sign-libs
reply other threads:[~2026-11-23 9:31 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=179542631162.1.6543175405825266808.rpms-rpm-43ea916f2fc8@fedoraproject.org \
--to=mjw@fedoraproject.org \
--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