public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] pmatilai-v6: Include upstream patch to fix find-debuginfo (http://www.rpm.org/ticket/887).
@ 2026-11-23 9:29 Richard W.M. Jones
0 siblings, 0 replies; only message in thread
From: Richard W.M. Jones @ 2026-11-23 9:29 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rpm
Branch : pmatilai-v6
Commit : 68c26ef62d0be3fc3714e9768d64180722428275
Author : Richard W.M. Jones <rjones@redhat.com>
Date : 2015-02-17T14:08:50+00:00
Stats : +44/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/rpm/c/68c26ef62d0be3fc3714e9768d64180722428275?branch=pmatilai-v6
Log:
Include upstream patch to fix find-debuginfo (http://www.rpm.org/ticket/887).
---
diff --git a/0001-Fix-find-debuginfo.sh-for-ELF-with-file-warnings.patch b/0001-Fix-find-debuginfo.sh-for-ELF-with-file-warnings.patch
new file mode 100644
index 0000000..0d93cd9
--- /dev/null
+++ b/0001-Fix-find-debuginfo.sh-for-ELF-with-file-warnings.patch
@@ -0,0 +1,37 @@
+From 4f58e5abcb336292f78bc6d54e1140b4fdded30b Mon Sep 17 00:00:00 2001
+From: Pascal Terjan <pterjan@mandriva.org>
+Date: Sat, 14 Feb 2015 21:58:19 +0000
+Subject: [PATCH] Fix find-debuginfo.sh for ELF with file warnings
+
+Since the fix for CVE-2014-9620, file will print a "warning" that it
+only processed 256 notes:
+
+$ file -N libjvm.so
+libjvm.so: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, BuildID[sha1]=63ece24db1a29f9df8231337f741664e0b10fc7f, not stripped, too many notes (256)
+
+And this leads to those messages and a failure:
+stat: cannot stat 'libjvm.so,': No such file or directory
+stat: cannot stat 'too': No such file or directory
+stat: cannot stat 'many': No such file or directory
+stat: cannot stat 'notes': No such file or directory
+stat: cannot stat '(256)': No such file or directory
+---
+ scripts/find-debuginfo.sh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh
+index 57449f7..264fad5 100644
+--- a/scripts/find-debuginfo.sh
++++ b/scripts/find-debuginfo.sh
+@@ -205,7 +205,7 @@ $strict || strict_error=WARNING
+ find "$RPM_BUILD_ROOT" ! -path "${debugdir}/*.debug" -type f \
+ \( -perm -0100 -or -perm -0010 -or -perm -0001 \) \
+ -print |
+-file -N -f - | sed -n -e 's/^\(.*\):[ ]*.*ELF.*, not stripped/\1/p' |
++file -N -f - | sed -n -e 's/^\(.*\):[ ]*.*ELF.*, not stripped.*/\1/p' |
+ xargs --no-run-if-empty stat -c '%h %D_%i %n' |
+ while read nlinks inum f; do
+ get_debugfn "$f"
+--
+2.3.0
+
diff --git a/rpm.spec b/rpm.spec
index 9ea0560..19894fb 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -27,7 +27,7 @@
Summary: The RPM package management system
Name: rpm
Version: %{rpmver}
-Release: %{?snapver:0.%{snapver}.}6%{?dist}
+Release: %{?snapver:0.%{snapver}.}7%{?dist}
Group: System Environment/Base
Url: http://www.rpm.org/
Source0: http://rpm.org/releases/rpm-4.12.x/%{name}-%{srcver}.tar.bz2
@@ -56,6 +56,9 @@ Patch100: rpm-4.12.0-tslock-nowait.patch
Patch101: rpm-4.12.0-payload-ghost.patch
# Unbreak size tag generation on big-endian systems
Patch102: rpm-4.12.0-archive-endian.patch
+# find-debuginfo.sh fails on ELF with more than 256 notes
+# http://www.rpm.org/ticket/887
+Patch103: 0001-Fix-find-debuginfo.sh-for-ELF-with-file-warnings.patch
# These are not yet upstream
Patch302: rpm-4.7.1-geode-i686.patch
@@ -540,6 +543,9 @@ exit 0
%doc doc/librpm/html/*
%changelog
+* Tue Feb 17 2015 Richard W.M. Jones <rjones@redhat.com> - 4.12.0.1-7
+- Include upstream patch to fix find-debuginfo (http://www.rpm.org/ticket/887).
+
* Fri Jan 16 2015 Tom Callaway <spot@fedoraproject.org> - 4.12.0.1-6
- rebuild against lua 5.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-23 9:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23 9:29 [rpms/rpm] pmatilai-v6: Include upstream patch to fix find-debuginfo (http://www.rpm.org/ticket/887) Richard W.M. Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox