Skip to content

Commit 4108291

Browse files
committed
Switch to Static-Built-Using field and substvar
This field was introduced in dpkg 1.21.3 to replace the Built-Using field for languages that work primarily by statically linking, where this embedding has no concerns due to license terms. The substvar was introduced in dh-golang 1.55, which is already part of the current Debian stable release (bookworm).
1 parent 300c63b commit 4108291

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: check_depends_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ Architecture: any
3636
Depends:
3737
${misc:Depends},
3838
${shlibs:Depends},
39-
Built-Using:
40-
${misc:Built-Using},
39+
Static-Built-Using:
40+
${misc:Static-Built-Using},
4141
Description: read your RSS feeds from your terminal
4242
Terminews is a terminal based application (TUI)
4343
that allows you to manage RSS resources and display their news feeds.

Diff for: template.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ func addProgramPackage(f *os.File, gopkg, debProg string) {
177177
fmt.Fprintf(f, "Architecture: any\n")
178178
deps := []string{"${misc:Depends}", "${shlibs:Depends}"}
179179
fprintfControlField(f, "Depends", deps)
180-
fmt.Fprintf(f, "Built-Using: ${misc:Built-Using}\n")
180+
fmt.Fprintf(f, "Static-Built-Using: ${misc:Static-Built-Using}\n")
181181
addDescription(f, gopkg, "(program)")
182182
}
183183

0 commit comments

Comments
 (0)