Bug 1215402

Summary: golang-packaging produces packages with broken debuginfo
Product: [openSUSE] openSUSE Tumbleweed Reporter: Bruno Pitrus <brunopitrus>
Component: DevelopmentAssignee: Jeff Kowalczyk <jkowalczyk>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: asarai, dmueller, fcastelli
Version: Current   
Target Milestone: ---   
Hardware: All   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

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