kdePackages.drkonqi: provide eu-unstrip

This commit is contained in:
K900
2025-06-24 15:19:10 +03:00
parent ac9539cd82
commit 902aeaeb85
2 changed files with 17 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
mkKdeDerivation,
pkg-config,
systemd,
elfutils,
gdb,
python3,
replaceVars,
@@ -20,8 +21,9 @@ mkKdeDerivation {
pname = "drkonqi";
patches = [
(replaceVars ./gdb-path.patch {
(replaceVars ./hardcode-paths.patch {
gdb = "${gdb'}/bin/gdb";
eu-unstrip = "${elfutils}/bin/eu-unstrip";
})
];

View File

@@ -1,5 +1,18 @@
diff --git a/src/data/gdb_preamble/preamble.py b/src/data/gdb_preamble/preamble.py
index 4855231b5..a488025c1 100644
--- a/src/data/gdb_preamble/preamble.py
+++ b/src/data/gdb_preamble/preamble.py
@@ -773,7 +773,7 @@ def resolve_modules():
# core doesn't contain one. That makes the ids a bit unreliable but still better than nothing I suppose.
# Ultimately we'll want to use gdb here.
# https://sourceware.org/bugzilla/show_bug.cgi?id=32844
- output = get_stdout(['eu-unstrip', "--list-only", f"--core={corefile}"], env=env)
+ output = get_stdout(['@eu-unstrip@', "--list-only", f"--core={corefile}"], env=env)
for line in output.splitlines():
image = CoreImage(line)
if image.valid:
diff --git a/src/debugger.cpp b/src/debugger.cpp
index 946bdd12..5c24b371 100644
index 946bdd12e..5c24b3713 100644
--- a/src/debugger.cpp
+++ b/src/debugger.cpp
@@ -36,12 +36,12 @@ QList<Debugger> Debugger::availableInternalDebuggers(const QString &backend)