Compare commits
No commits in common. "factory" and "factory" have entirely different histories.
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +0,0 @@
|
|||||||
.osc
|
|
BIN
debugedit-5.0.tar.xz
(Stored with Git LFS)
Normal file
BIN
debugedit-5.0.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
debugedit-5.0.tar.xz.sig
Normal file
BIN
debugedit-5.0.tar.xz.sig
Normal file
Binary file not shown.
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:ee9b688b2ed8fa62551c54cb5dc31aaa05853e7dedbd9e1237c77894ea5e3626
|
|
||||||
size 186320
|
|
Binary file not shown.
@ -1,18 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Mon Nov 11 08:23:09 UTC 2024 - Michal Suchanek <msuchanek@suse.de>
|
|
||||||
|
|
||||||
- Update to version 5.1 (bsc#1233156)
|
|
||||||
* Architecture support for hppa and loongarch
|
|
||||||
* Switch to xxhash for buildid recomputation (much faster!)
|
|
||||||
* find-debuginfo supports -v,--verbose and -q,--quiet
|
|
||||||
* find-debuginfo passes -j down to dwz
|
|
||||||
* debugedit now handles DWARF5
|
|
||||||
* debugedit handles compressed DWARF debug sections
|
|
||||||
- Refresh debugsubpkg.patch finddebuginfo.patch
|
|
||||||
- Remove upstreamed remove-bad-shift.patch
|
|
||||||
- Add workaround-missing-linked-file.patch (boo#1233368)
|
|
||||||
- Use -p1 with autosetup
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Nov 16 07:28:09 UTC 2022 - Ludwig Nussel <lnussel@suse.de>
|
Wed Nov 16 07:28:09 UTC 2022 - Ludwig Nussel <lnussel@suse.de>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package debugedit
|
# spec file for package debugedit
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2022 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: debugedit
|
Name: debugedit
|
||||||
Version: 5.1
|
Version: 5.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Debuginfo extraction
|
Summary: Debuginfo extraction
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
@ -32,13 +32,12 @@ Patch1: finddebuginfo-absolute-links.patch
|
|||||||
Patch2: debugsubpkg.patch
|
Patch2: debugsubpkg.patch
|
||||||
Patch3: debuglink.patch
|
Patch3: debuglink.patch
|
||||||
Patch4: debuginfo-mono.patch
|
Patch4: debuginfo-mono.patch
|
||||||
Patch5: workaround-missing-linked-file.patch
|
Patch5: remove-bad-shift.patch
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: help2man
|
BuildRequires: help2man
|
||||||
BuildRequires: pkgconfig(libdw)
|
BuildRequires: pkgconfig(libdw)
|
||||||
BuildRequires: pkgconfig(libelf)
|
BuildRequires: pkgconfig(libelf)
|
||||||
BuildRequires: pkgconfig(libxxhash)
|
|
||||||
# /usr/bin/gdb-add-index is optional
|
# /usr/bin/gdb-add-index is optional
|
||||||
Suggests: gdb
|
Suggests: gdb
|
||||||
Requires: binutils
|
Requires: binutils
|
||||||
@ -56,7 +55,7 @@ debugedit provides programs and scripts for creating debuginfo and source file d
|
|||||||
collect build-ids and rewrite source paths in DWARF data for debugging, tracing and profiling.
|
collect build-ids and rewrite source paths in DWARF data for debugging, tracing and profiling.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%autosetup -p0
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -fiv
|
autoreconf -fiv
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Index: scripts/find-debuginfo.in
|
Index: scripts/find-debuginfo.in
|
||||||
===================================================================
|
===================================================================
|
||||||
--- a/scripts/find-debuginfo.in
|
--- scripts/find-debuginfo.in.orig
|
||||||
+++ b/scripts/find-debuginfo.in
|
+++ scripts/find-debuginfo.in
|
||||||
@@ -434,6 +434,16 @@ while read nlinks inum f; do
|
@@ -434,6 +434,16 @@ while read nlinks inum f; do
|
||||||
;;
|
;;
|
||||||
*) continue ;;
|
*) continue ;;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Index: scripts/find-debuginfo.in
|
Index: scripts/find-debuginfo.in
|
||||||
===================================================================
|
===================================================================
|
||||||
--- a/scripts/find-debuginfo.in
|
--- scripts/find-debuginfo.in.orig
|
||||||
+++ b/scripts/find-debuginfo.in
|
+++ scripts/find-debuginfo.in
|
||||||
@@ -407,7 +407,7 @@ debug_link()
|
@@ -407,7 +407,7 @@ debug_link()
|
||||||
get_debugfn()
|
get_debugfn()
|
||||||
{
|
{
|
||||||
|
@ -1,14 +1,13 @@
|
|||||||
Index: scripts/find-debuginfo.in
|
Index: scripts/find-debuginfo.in
|
||||||
===================================================================
|
===================================================================
|
||||||
--- a/scripts/find-debuginfo.in
|
--- scripts/find-debuginfo.in.orig
|
||||||
+++ b/scripts/find-debuginfo.in
|
+++ scripts/find-debuginfo.in
|
||||||
@@ -684,20 +684,26 @@ if $run_dwz \
|
@@ -643,19 +643,25 @@ if $run_dwz \
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
-# For each symlink whose target has a .debug file,
|
-# For each symlink whose target has a .debug file,
|
||||||
-# make a .debug symlink to that file.
|
-# make a .debug symlink to that file.
|
||||||
-$quiet || echo "Creating .debug symlinks for symlinks to ELF files" 2>&1
|
|
||||||
-find "$RPM_BUILD_ROOT" ! -path "${debugdir}/*" -type l -print |
|
-find "$RPM_BUILD_ROOT" ! -path "${debugdir}/*" -type l -print |
|
||||||
-while read f
|
-while read f
|
||||||
-do
|
-do
|
||||||
@ -16,7 +15,7 @@ Index: scripts/find-debuginfo.in
|
|||||||
- f=${f#$RPM_BUILD_ROOT}
|
- f=${f#$RPM_BUILD_ROOT}
|
||||||
- t=${t#$RPM_BUILD_ROOT}
|
- t=${t#$RPM_BUILD_ROOT}
|
||||||
- if [ -f "$debugdir$t" ]; then
|
- if [ -f "$debugdir$t" ]; then
|
||||||
- $verbose && echo "symlinked /usr/lib/debug$t to /usr/lib/debug${f}.debug"
|
- echo "symlinked /usr/lib/debug$t to /usr/lib/debug${f}.debug"
|
||||||
- debug_link "/usr/lib/debug$t" "${f}.debug"
|
- debug_link "/usr/lib/debug$t" "${f}.debug"
|
||||||
- fi
|
- fi
|
||||||
-done
|
-done
|
||||||
@ -28,7 +27,6 @@ Index: scripts/find-debuginfo.in
|
|||||||
+
|
+
|
||||||
+## For each symlink whose target has a .debug file,
|
+## For each symlink whose target has a .debug file,
|
||||||
+## make a .debug symlink to that file.
|
+## make a .debug symlink to that file.
|
||||||
+#$quiet || echo "Creating .debug symlinks for symlinks to ELF files" 2>&1
|
|
||||||
+#find "$RPM_BUILD_ROOT" ! -path "${debugdir}/*" -type l -print |
|
+#find "$RPM_BUILD_ROOT" ! -path "${debugdir}/*" -type l -print |
|
||||||
+#while read f
|
+#while read f
|
||||||
+#do
|
+#do
|
||||||
@ -36,7 +34,7 @@ Index: scripts/find-debuginfo.in
|
|||||||
+# f=${f#$RPM_BUILD_ROOT}
|
+# f=${f#$RPM_BUILD_ROOT}
|
||||||
+# t=${t#$RPM_BUILD_ROOT}
|
+# t=${t#$RPM_BUILD_ROOT}
|
||||||
+# if [ -f "$debugdir$t" ]; then
|
+# if [ -f "$debugdir$t" ]; then
|
||||||
+# $verbose && echo "symlinked /usr/lib/debug$t to /usr/lib/debug${f}.debug"
|
+# echo "symlinked /usr/lib/debug$t to /usr/lib/debug${f}.debug"
|
||||||
+# debug_link "/usr/lib/debug$t" "${f}.debug"
|
+# debug_link "/usr/lib/debug$t" "${f}.debug"
|
||||||
+# fi
|
+# fi
|
||||||
+#done
|
+#done
|
||||||
|
@ -7,8 +7,8 @@ behavior to reflect that policy.
|
|||||||
|
|
||||||
Signed-off-by: Jan Blunck <jblunck@suse.de>
|
Signed-off-by: Jan Blunck <jblunck@suse.de>
|
||||||
|
|
||||||
--- a/scripts/find-debuginfo.in 2017-12-01 15:26:21.939199791 +0000
|
--- ./scripts/find-debuginfo.in.orig 2017-12-01 15:26:21.939199791 +0000
|
||||||
+++ b/scripts/find-debuginfo.in 2017-12-01 15:27:03.153081225 +0000
|
+++ ./scripts/find-debuginfo.in 2017-12-01 15:27:03.153081225 +0000
|
||||||
@@ -305,7 +305,17 @@ debug_link()
|
@@ -305,7 +305,17 @@ debug_link()
|
||||||
local l="/usr/lib/debug$2"
|
local l="/usr/lib/debug$2"
|
||||||
local t="$1"
|
local t="$1"
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
Index: scripts/find-debuginfo.in
|
Index: scripts/find-debuginfo.in
|
||||||
===================================================================
|
===================================================================
|
||||||
--- a/scripts/find-debuginfo.in
|
--- scripts/find-debuginfo.in.orig
|
||||||
+++ b/scripts/find-debuginfo.in
|
+++ scripts/find-debuginfo.in
|
||||||
@@ -434,12 +434,18 @@ trap 'rm -rf "$temp"' EXIT
|
@@ -412,12 +412,18 @@ trap 'rm -rf "$temp"' EXIT
|
||||||
|
|
||||||
# Build a list of unstripped ELF files and their hardlinks
|
# Build a list of unstripped ELF files and their hardlinks
|
||||||
touch "$temp/primary"
|
touch "$temp/primary"
|
||||||
@ -26,16 +26,16 @@ Index: scripts/find-debuginfo.in
|
|||||||
if [ $nlinks -gt 1 ]; then
|
if [ $nlinks -gt 1 ]; then
|
||||||
var=seen_$inum
|
var=seen_$inum
|
||||||
if test -n "${!var}"; then
|
if test -n "${!var}"; then
|
||||||
@@ -472,6 +478,8 @@ do_file()
|
@@ -450,6 +456,8 @@ do_file()
|
||||||
if [ "$no_recompute_build_id" = "true" ]; then
|
if [ "$no_recompute_build_id" = "true" ]; then
|
||||||
no_recompute="-n"
|
no_recompute="-n"
|
||||||
fi
|
fi
|
||||||
+ mode=$(stat -c %a "$f")
|
+ mode=$(stat -c %a "$f")
|
||||||
+ chmod +w "$f"
|
+ chmod +w "$f"
|
||||||
id=$(debugedit -b "$debug_base_name" -d "$debug_dest_name" \
|
id=$(${install_dir}/debugedit -b "$debug_base_name" -d "$debug_dest_name" \
|
||||||
$no_recompute -i \
|
$no_recompute -i \
|
||||||
${build_id_seed:+--build-id-seed="$build_id_seed"} \
|
${build_id_seed:+--build-id-seed="$build_id_seed"} \
|
||||||
@@ -503,17 +511,30 @@ do_file()
|
@@ -477,17 +485,30 @@ do_file()
|
||||||
# just has its file names collected and adjusted.
|
# just has its file names collected and adjusted.
|
||||||
case "$dn" in
|
case "$dn" in
|
||||||
/usr/lib/debug/*)
|
/usr/lib/debug/*)
|
||||||
@ -73,7 +73,7 @@ Index: scripts/find-debuginfo.in
|
|||||||
|
|
||||||
# strip -g implies we have full symtab, don't add mini symtab in that case.
|
# strip -g implies we have full symtab, don't add mini symtab in that case.
|
||||||
# It only makes sense to add a minisymtab for executables and shared
|
# It only makes sense to add a minisymtab for executables and shared
|
||||||
@@ -689,12 +710,14 @@ if [ -s "$SOURCEFILE" ]; then
|
@@ -646,12 +667,14 @@ if [ -s "$SOURCEFILE" ]; then
|
||||||
# and non-standard modes may be inherented from original directories, fixup
|
# and non-standard modes may be inherented from original directories, fixup
|
||||||
find "${RPM_BUILD_ROOT}${debug_dest_name}" -type d -print0 |
|
find "${RPM_BUILD_ROOT}${debug_dest_name}" -type d -print0 |
|
||||||
xargs --no-run-if-empty -0 chmod 0755
|
xargs --no-run-if-empty -0 chmod 0755
|
||||||
|
10
remove-bad-shift.patch
Normal file
10
remove-bad-shift.patch
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
--- ./scripts/find-debuginfo.in.orig 2017-12-01 15:40:27.006764372 +0000
|
||||||
|
+++ ./scripts/find-debuginfo.in 2017-12-01 15:41:17.270619182 +0000
|
||||||
|
@@ -168,7 +168,6 @@
|
||||||
|
;;
|
||||||
|
--dwz-single-file-mode)
|
||||||
|
dwz_single_file_mode=true
|
||||||
|
- shift
|
||||||
|
;;
|
||||||
|
--build-id-seed)
|
||||||
|
build_id_seed=$2
|
@ -1,20 +0,0 @@
|
|||||||
Previously this error was ignored but now return value of parallel jobs is
|
|
||||||
propagated, and missing this file fails package build.
|
|
||||||
|
|
||||||
It is not clear if this is the correct fix (ie the file accumulates link data,
|
|
||||||
and initially is missing because no data is accumulated yet) or if this should
|
|
||||||
have been created elsewhere.
|
|
||||||
|
|
||||||
Index: debugedit-5.1/scripts/find-debuginfo.in
|
|
||||||
===================================================================
|
|
||||||
--- debugedit-5.1.orig/scripts/find-debuginfo.in
|
|
||||||
+++ debugedit-5.1/scripts/find-debuginfo.in
|
|
||||||
@@ -578,7 +578,7 @@ do_file()
|
|
||||||
# If this file has multiple links, make the corresponding .debug files
|
|
||||||
# all links to one file too.
|
|
||||||
if [ $nlinks -gt 1 ]; then
|
|
||||||
- grep "^$inum " "$temp/linked" | while read inum linked; do
|
|
||||||
+ { grep -s "^$inum " "$temp/linked" ||: ; } | while read inum linked; do
|
|
||||||
link=$debugfn
|
|
||||||
get_debugfn "$linked"
|
|
||||||
$verbose && echo "hard linked $link to $debugfn"
|
|
Loading…
x
Reference in New Issue
Block a user