From 41082910a118087a4f10f6f1ced311c3b58147f2 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Thu, 29 Aug 2024 18:37:38 +0200 Subject: [PATCH 1/2] 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). --- check_depends_test.go | 4 ++-- template.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/check_depends_test.go b/check_depends_test.go index 4f89b12..b15bd10 100644 --- a/check_depends_test.go +++ b/check_depends_test.go @@ -36,8 +36,8 @@ Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends}, -Built-Using: - ${misc:Built-Using}, +Static-Built-Using: + ${misc:Static-Built-Using}, Description: read your RSS feeds from your terminal Terminews is a terminal based application (TUI) that allows you to manage RSS resources and display their news feeds. diff --git a/template.go b/template.go index 4c87c7d..bbf31d9 100644 --- a/template.go +++ b/template.go @@ -177,7 +177,7 @@ func addProgramPackage(f *os.File, gopkg, debProg string) { fmt.Fprintf(f, "Architecture: any\n") deps := []string{"${misc:Depends}", "${shlibs:Depends}"} fprintfControlField(f, "Depends", deps) - fmt.Fprintf(f, "Built-Using: ${misc:Built-Using}\n") + fmt.Fprintf(f, "Static-Built-Using: ${misc:Static-Built-Using}\n") addDescription(f, gopkg, "(program)") } From 7aa69adfea888a7177322c2e748bf64f2642a1f2 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Thu, 29 Aug 2024 18:42:36 +0200 Subject: [PATCH 2/2] Bump emitted Standards-Version to 4.7.0 --- check_depends_test.go | 2 +- template.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/check_depends_test.go b/check_depends_test.go index b15bd10..5e96835 100644 --- a/check_depends_test.go +++ b/check_depends_test.go @@ -24,7 +24,7 @@ Build-Depends: golang-github-jroimartin-gocui-dev, golang-github-mattn-go-sqlite3-dev, golang-github-mmcdole-gofeed-dev, -Standards-Version: 4.5.1 +Standards-Version: 4.7.0 Vcs-Browser: https://salsa.debian.org/go-team/packages/terminews Vcs-Git: https://salsa.debian.org/go-team/packages/terminews.git Homepage: https://github.com/antavelos/terminews diff --git a/template.go b/template.go index bbf31d9..a1a1687 100644 --- a/template.go +++ b/template.go @@ -206,7 +206,7 @@ func writeDebianControl(dir, gopkg, debsrc, debLib, debProg string, pkgType pack fprintfControlField(f, "Build-Depends", builddeps) fmt.Fprintf(f, "Testsuite: autopkgtest-pkg-go\n") - fmt.Fprintf(f, "Standards-Version: 4.6.2\n") + fmt.Fprintf(f, "Standards-Version: 4.7.0\n") fmt.Fprintf(f, "Vcs-Browser: https://salsa.debian.org/go-team/packages/%s\n", debsrc) fmt.Fprintf(f, "Vcs-Git: https://salsa.debian.org/go-team/packages/%s.git\n", debsrc) fmt.Fprintf(f, "Homepage: %s\n", getHomepageForGopkg(gopkg))