I’ve found https://gist.github.com/nogweii/7761427?permalink_comment_id=4281073#gistcomment-4281073 :
zypper packages -i 2>/dev/null | tail -n +5 | cut -d'|' -f3 | sort -u | sed -n 's/^ \([^ ]*\)\s\+/\1-debuginfo/p' | xargs zypper search -u -t package | tail -n +5 | cut -d'|' -f2 | sed -n 's/^\s//;s/\s\+$//gp' | xargs sudo zypper install
but am surprised that there appears to be no obvious documented native method of instructing zypper
to install the debuginfo
package corresponding to all packages in a dup
and install
action.
Does anyone know whether this exists, and if not, whether it is deliberate?
@arvidjaar , indeed, I’ve been using that. However, installing the debug packages means that invocation is a lot quicker because it doesn’t JIT-install debug dependencies.
andrei@tumbleweed:~> eu-readelf -n /usr/bin/zypper
Note section [ 2] '.note.gnu.property' of 64 bytes at offset 0x370:
Owner Data size Type
GNU 48 GNU_PROPERTY_TYPE_0
X86 0xc0008002 data: 01 00 00 00
X86 0xc0010001 data: 09 00 00 00
X86 0xc0010002 data: 01 00 00 00
Note section [ 3] '.note.gnu.build-id' of 36 bytes at offset 0x3b0:
Owner Data size Type
GNU 20 GNU_BUILD_ID
Build ID: 92a36f374cc9d47ba7060c41f4908304f25abf86
Note section [ 4] '.note.ABI-tag' of 32 bytes at offset 0x3d4:
Owner Data size Type
GNU 16 GNU_ABI_TAG
OS: Linux, ABI: 3.2.0
andrei@tumbleweed:~> zypper se --provides 'debuginfo(build-id)=92a36f374cc9d47ba7060c41f4908304f25abf86'
Loading repository data...
Reading installed packages...
S | Name | Type | Version | Arch | Repository
--+------------------+---------+-------------+--------+--------------------------
| zypper-debuginfo | package | 1.14.68-1.4 | x86_64 | openSUSE-Tumbleweed-Debug
andrei@tumbleweed:~>
How to automatically install corresponding debuginfo package during installation and update? - #4 by arvidjaar
@arvidjaar , try as I might, I’m unable to understand what that output demonstrates, although I expect that it contradicts
If it does, why do the *.-debuginfo
packages continue to be offered, and why does gdb
nag me for them even with debuginfod
enabled?
system
Closed
April 24, 2024, 10:55pm
6
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.