Skip to content

Commit 01d29a4

Browse files
committed
deb: Disable dh_dwz which can cause issues for go
debbuild will automatically execute this `dh_dwz` target which, for some go builds, will error out like: 0.69 dwz: debian/msft-golang/usr/lib/msft-golang/bin/go: Found compressed .debug_abbrev section, not attempting dwz compression 40.69 dwz: debian/msft-golang/usr/lib/msft-golang/bin/gofmt: Found compressed .debug_abbrev section, not attempting dwz compression 40.69 dwz: Too few files for multifile optimization This does what dh_golang does and overrides this so the target doesn't do anything. We may want to make this opt-in in the future somehow (or scope it down to just go builds?). Not really sure what a good approach will be here, but for now this is blocking being able to build certain packages. Signed-off-by: Brian Goff <[email protected]>
1 parent 9d65fb2 commit 01d29a4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

frontend/deb/templates/debian_rules.tmpl

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ fix_sources:
2626
override_dh_auto_configure: fix_sources
2727
@# Stop debhelper from running auto configure, which should be part of the build steps
2828

29+
# dh_dwz is problematic for (some) go builds and causes the build to error out.
30+
override_dh_dwz:
31+
@# https://salsa.debian.org/go-team/packages/dh-golang/-/commit/831f3a9dccc14f63f21d3dfac0c0d0e0c25b4084
32+
2933
{{ .OverridePerms }}
3034

3135
{{ .OverrideSystemd }}

0 commit comments

Comments
 (0)