From 8cf556d8dbf12055143bef7dcb27feb84995ce57 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 17 May 2022 05:13:59 -0400 Subject: [PATCH] import debugedit-5.0-3.el9 --- .debugedit.metadata | 2 + .gitignore | 2 + ...o-directory-entry-in-.debug_line-DWA.patch | 130 ++++++++++++++++++ SOURCES/debugedit-5.0.tar.xz.sig | Bin 0 -> 310 bytes SPECS/debugedit.spec | 114 +++++++++++++++ 5 files changed, 248 insertions(+) create mode 100644 .debugedit.metadata create mode 100644 .gitignore create mode 100644 SOURCES/0001-tests-Handle-zero-directory-entry-in-.debug_line-DWA.patch create mode 100644 SOURCES/debugedit-5.0.tar.xz.sig create mode 100644 SPECS/debugedit.spec diff --git a/.debugedit.metadata b/.debugedit.metadata new file mode 100644 index 0000000..2f1f6e0 --- /dev/null +++ b/.debugedit.metadata @@ -0,0 +1,2 @@ +e15e23409266e2a0be8b3748235b126bedbc7b6b SOURCES/debugedit-5.0.tar.xz +4c6ca620f5b14e24492616195f7848df0029451c SOURCES/gpgkey-5C1D1AA44BE649DE760A.gpg diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..12a5671 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/debugedit-5.0.tar.xz +SOURCES/gpgkey-5C1D1AA44BE649DE760A.gpg diff --git a/SOURCES/0001-tests-Handle-zero-directory-entry-in-.debug_line-DWA.patch b/SOURCES/0001-tests-Handle-zero-directory-entry-in-.debug_line-DWA.patch new file mode 100644 index 0000000..2cadab2 --- /dev/null +++ b/SOURCES/0001-tests-Handle-zero-directory-entry-in-.debug_line-DWA.patch @@ -0,0 +1,130 @@ +From ae27211cbbfb63a0ad3c141cd1310d7f583ec40e Mon Sep 17 00:00:00 2001 +From: Mark Wielaard +Date: Fri, 30 Jul 2021 18:09:46 +0200 +Subject: [PATCH] tests: Handle zero directory entry in .debug_line DWARF5 + debugedit.at + +We were skipping the zero directory entry, because it was always +the same as the directory entry at position one. But that isn't +true anymore with gcc 11.2.1. There the zero dir entry is unique. +Fix the debugedit.at .debug_line testcases using DWARF5 to also +include dir entry zero. + +Signed-off-by: Mark Wielaard +--- + configure.ac | 14 ++++++++++++++ + tests/atlocal.in | 1 + + tests/debugedit.at | 18 ++++++++++++------ + 3 files changed, 27 insertions(+), 6 deletions(-) + +diff --git a/configure.ac b/configure.ac +index e5c9230..6a53365 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -87,6 +87,20 @@ CFLAGS="$save_CFLAGS" + GDWARF_5_FLAG=$ac_cv_gdwarf_5 + AC_SUBST([GDWARF_5_FLAG]) + ++AC_CACHE_CHECK([whether -gdwarf-5 produced DWARF5 .debug_line], ac_cv_dwarf_5_debugline, [dnl ++save_CFLAGS="$CFLAGS" ++CFLAGS="-gdwarf-5" ++AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int i=0;]],[[/* empty main */]])], ++ [if readelf --debug-dump=line conftest.o 2>&1 | \ ++ grep "DWARF Version:" 2>&1 | grep "5" > /dev/null 2>&1; \ ++ then ac_cv_dwarf_5_debugline=yes; \ ++ else ac_cv_dwarf_5_debugline=no; fi], ++ ac_cv_dwarf_5_debugline=no) ++CFLAGS="$save_CFLAGS" ++]) ++DWARF_5_DEBUGLINE=$ac_cv_dwarf_5_debugline ++AC_SUBST([DWARF_5_DEBUGLINE]) ++ + AC_CACHE_CHECK([whether gcc supports -gz=none], ac_cv_gz_none, [dnl + save_CFLAGS="$CFLAGS" + CFLAGS="-gz=none" +diff --git a/tests/atlocal.in b/tests/atlocal.in +index 8399f8d..d916301 100644 +--- a/tests/atlocal.in ++++ b/tests/atlocal.in +@@ -13,3 +13,4 @@ READELF="@READELF@" + + GDWARF_5_FLAG=@GDWARF_5_FLAG@ + GZ_NONE_FLAG=@GZ_NONE_FLAG@ ++DWARF_5_DEBUGLINE=@DWARF_5_DEBUGLINE@ +diff --git a/tests/debugedit.at b/tests/debugedit.at +index 0311d26..725e68e 100644 +--- a/tests/debugedit.at ++++ b/tests/debugedit.at +@@ -488,10 +488,12 @@ AT_CLEANUP + AT_SETUP([debugedit .debug_line objects DWARF5]) + AT_KEYWORDS([debuginfo] [debugedit]) + AT_SKIP_IF([test "$GDWARF_5_FLAG" = "no"]) ++AT_SKIP_IF([test "$DWARF_5_DEBUGLINE" = "no"]) + DEBUGEDIT_SETUP([-gdwarf-5]) + + AT_DATA([expout], + [foo/bar/baz ++foo/bar/baz/subdir_bar + foo/bar/baz/subdir_headers + ]) + +@@ -500,8 +502,8 @@ AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./subdir_bar/bar.o]]) + AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./baz.o]]) + AT_CHECK([[ + readelf --debug-dump=line foo.o subdir_bar/bar.o baz.o \ +- | grep -A5 "The Directory Table" | grep "^ [123]" \ +- | cut -f2- -d/ | grep ^foo/ | sort ++ | grep -A5 "The Directory Table" | grep "^ [0123]" \ ++ | cut -f2- -d/ | grep ^foo/ | sort -u + ]],[0],[expout]) + + AT_CLEANUP +@@ -535,18 +537,20 @@ AT_CLEANUP + AT_SETUP([debugedit .debug_line partial DWARF5]) + AT_KEYWORDS([debuginfo] [debugedit]) + AT_SKIP_IF([test "$GDWARF_5_FLAG" = "no"]) ++AT_SKIP_IF([test "$DWARF_5_DEBUGLINE" = "no"]) + DEBUGEDIT_SETUP([-gdwarf-5]) + + AT_DATA([expout], + [foo/bar/baz ++foo/bar/baz/subdir_bar + foo/bar/baz/subdir_headers + ]) + + AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foobarbaz.part.o]]) + AT_CHECK([[ + readelf --debug-dump=line ./foobarbaz.part.o \ +- | grep -A5 "The Directory Table" | grep "^ [123]" \ +- | cut -f2- -d/ | grep ^foo/ | sort ++ | grep -A5 "The Directory Table" | grep "^ [0123]" \ ++ | cut -f2- -d/ | grep ^foo/ | sort -u + ]],[0],[expout]) + + AT_CLEANUP +@@ -580,18 +584,20 @@ AT_CLEANUP + AT_SETUP([debugedit .debug_line exe DWARF5]) + AT_KEYWORDS([debuginfo] [debugedit]) + AT_SKIP_IF([test "$GDWARF_5_FLAG" = "no"]) ++AT_SKIP_IF([test "$DWARF_5_DEBUGLINE" = "no"]) + DEBUGEDIT_SETUP([-gdwarf-5]) + + AT_DATA([expout], + [foo/bar/baz ++foo/bar/baz/subdir_bar + foo/bar/baz/subdir_headers + ]) + + AT_CHECK([[debugedit -b $(pwd) -d /foo/bar/baz ./foobarbaz.exe]]) + AT_CHECK([[ + readelf --debug-dump=line ./foobarbaz.exe \ +- | grep -A5 "The Directory Table" | grep "^ [123]" \ +- | cut -f2- -d/ | grep ^foo/ | sort ++ | grep -A5 "The Directory Table" | grep "^ [0123]" \ ++ | cut -f2- -d/ | grep ^foo/ | sort -u + ]],[0],[expout]) + + AT_CLEANUP +-- +2.27.0 + diff --git a/SOURCES/debugedit-5.0.tar.xz.sig b/SOURCES/debugedit-5.0.tar.xz.sig new file mode 100644 index 0000000000000000000000000000000000000000..ee8c7be7faa6fa8e41dd49af381755fae48fc91d GIT binary patch literal 310 zcmV-60m=S}0W$;u0SEvc79j)@c8ZpHS&$HV4KLsPSL4jA*_wC-0$~3@B>)Nu5d2r; z%&gg(csU6N|7oJ<+IM~{BVe4G`PRHX?9D}Pp|9lMKdnN|zg8u*|KSVveef(pJRt2& zrS$GJYd~R`-u#+Rx?k5XOF6j8QR@p(Kc?84el=P*KGbPaMl)~Rs_+D#eV9%N!4*Z& zxD_nC$|$jU5~DinRn+_IIP zt|(`9jTPCk_W4(y$;yge*Tbe0PMYFozLFm@TR#Ws?M=CLNGD?>+%trzE1%v0^|pA2 zXsL-c$^Y49?;mnxq0|~S?yzDkh~5c+*#ah84GRy1;DWutV_BZ - 5.0-3 +- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags + Related: rhbz#1991688 + +* Tue Aug 3 2021 Mark Wielaard - 5.0-2 +- Add testsuite fix for GCC 11.2.1 + +* Mon Jul 26 2021 Mark Wielaard - 5.0-1 +- Upgrade to upstream 5.0 release. + - Removes find-debuginfo .sh suffix. + - This release still has a find-debuginfo.sh -> find-debuginfo symlink. + +* Wed May 5 2021 Mark Wielaard - 0.2-1 +- Update to upstream 0.2 pre-release. Adds documentation. + +* Wed Apr 28 2021 Mark Wielaard - 0.1-5 +- Add dist to Release. Use file dependency for /usr/bin/gdb-add-index. + +* Tue Apr 27 2021 Mark Wielaard - 0.1-4 +- Use numbered Sources and https. + +* Mon Apr 26 2021 Mark Wielaard - 0.1-3 +- Fix some rpmlint issues, add comments, add license and doc, + gpg verification, use pkgconfig BuildRequires, enable _hardened_build + +* Mon Mar 29 2021 Panu Matilainen +- Add pile of missing runtime utility dependencies + +* Tue Mar 23 2021 Panu Matilainen +- Initial packaging