Bug 1215402 - golang-packaging produces packages with broken debuginfo
Summary: golang-packaging produces packages with broken debuginfo
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Development (show other bugs)
Version: Current
Hardware: All openSUSE Tumbleweed
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Jeff Kowalczyk
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-16 10:12 UTC by Bruno Pitrus
Modified: 2023-10-23 16:05 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno Pitrus 2023-09-16 10:12:17 UTC
The `go` build tool as called by golang-packaging produces binaries which make debugedit (called at the end of build) choke and unable to find the source files:

[   21s] + /usr/lib/rpm/find-debuginfo -j4 -n --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /home/abuild/rpmbuild/BUILD/app-builder-4e2aa6a12e2bc3d31ec0d01d661fb3a4d65248ff
[   21s] extracting debug info from /home/abuild/rpmbuild/BUILDROOT/app-builder-3.4.2^20220309g4e2aa6a1-5.118.x86_64/usr/bin/app-builder
[   21s] /usr/lib/rpm/debugedit: /home/abuild/rpmbuild/BUILDROOT/app-builder-3.4.2^20220309g4e2aa6a1-5.118.x86_64/usr/bin/app-builder: DWARF version 0 unhandled
[   21s] *** WARNING: No build ID note found in /home/abuild/rpmbuild/BUILDROOT/app-builder-3.4.2^20220309g4e2aa6a1-5.118.x86_64/usr/bin/app-builder
[   21s] dwz: ./usr/bin/app-builder.debug: Found compressed .debug_abbrev section, not attempting dwz compression
[   21s] original debug info size: 6428kB, size after compression: 6432kB
[   21s] /usr/lib/rpm/sepdebugcrcfix: Updated 0 CRC32s, 1 CRC32s did match.

Adding `-ldflags=-compressdwarf=false` — either to commandline (that's what Fedora does, but the structure of the macro makes packagers unable to do this manually) — or manually to $GOFLAGS before calling %gobuild — fixes this problem.
Comment 1 OBSbugzilla Bot 2023-10-19 11:55:01 UTC
This is an autogenerated message for OBS integration:
This bug (1215402) was mentioned in
https://build.opensuse.org/request/show/1118895 Backports:SLE-15-SP5 / app-builder
Comment 2 Marcus Meissner 2023-10-23 16:05:01 UTC
openSUSE-RU-2023:0321-1: An update that has one recommended fix can now be installed.

Category: recommended (moderate)
Bug References: 1215402
CVE References: 
JIRA References: 
Sources used:
openSUSE Backports SLE-15-SP5 (src):    app-builder-3.4.2^20220309g4e2aa6a1-bp155.2.3.1