Skip to content

Commit

Permalink
deb: Disable dh_dwz which can cause issues for go
Browse files Browse the repository at this point in the history
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 <cpuguy83@gmail.com>
  • Loading branch information
cpuguy83 committed Nov 7, 2024
1 parent 4b0fa43 commit 5eb9144
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/deb/templates/debian_rules.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ fix_sources:
override_dh_auto_configure: fix_sources
@# Stop debhelper from running auto configure, which should be part of the build steps

# dh_dwz is problematic for (some) go builds and causes the build to error out.
override_dh_dwz:
@# https://salsa.debian.org/go-team/packages/dh-golang/-/commit/831f3a9dccc14f63f21d3dfac0c0d0e0c25b4084

{{ .OverridePerms }}

{{ .OverrideSystemd }}
Expand Down

0 comments on commit 5eb9144

Please sign in to comment.