summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-16 19:35:39 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-16 19:35:39 +0000
commit5085af7eacbd584571664be9e16c4741862382c5 (patch)
tree45d37dc19ad21ebff57e2a8ef1ef6131887d1bdd /debian
parentMerging upstream version 2:1.21~1. (diff)
downloadgolang-defaults-5085af7eacbd584571664be9e16c4741862382c5.tar.xz
golang-defaults-5085af7eacbd584571664be9e16c4741862382c5.zip
Adding debian version 2:1.21~1.debian/2%1.21_1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog8
-rw-r--r--debian/control10
-rwxr-xr-xdebian/helpers/getdefault.pl15
-rwxr-xr-xdebian/rules3
4 files changed, 30 insertions, 6 deletions
diff --git a/debian/changelog b/debian/changelog
index f714f46..221016e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+golang-defaults (2:1.21~1) experimental; urgency=medium
+
+ * Team upload
+ * Make golang-any depends on determinate package (Closes: #1031351)
+ * Update to Go 1.21 (src:golang-1.21)
+
+ -- Shengjing Zhu <zhsj@debian.org> Wed, 09 Aug 2023 16:45:21 +0800
+
golang-defaults (2:1.20~2) unstable; urgency=medium
* Team upload
diff --git a/debian/control b/debian/control
index 012c447..f904b34 100644
--- a/debian/control
+++ b/debian/control
@@ -20,7 +20,7 @@ Homepage: https://golang.org
Package: golang-go
Architecture: amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64el riscv64 s390x
Multi-Arch: same
-Depends: golang-${golang:GOVER}-go,
+Depends: golang-${golang:Version}-go,
golang-src (>= ${source:Version}),
${misc:Depends}
Suggests: git
@@ -69,7 +69,7 @@ Description: Go programming language compiler, linker, compiled stdlib
Package: golang-any
Architecture: any
Multi-Arch: same
-Depends: golang-go (>= ${source:Version}) | gccgo-go (>= ${source:Version}),
+Depends: ${golang:Default} (>= ${source:Version}),
${misc:Depends}
Description: Go programming language -- gccgo on "non-Go" platforms
The Go programming language is an open source project to make programmers more
@@ -111,7 +111,7 @@ Description: Go programming language -- gccgo
Package: golang-src
Architecture: all
Multi-Arch: foreign
-Depends: golang-${golang:GOVER}-src,
+Depends: golang-${golang:Version}-src,
${misc:Depends}
Description: Go programming language - source files
The Go programming language is an open source project to make programmers more
@@ -130,7 +130,7 @@ Package: golang-doc
Architecture: all
Multi-Arch: foreign
Section: doc
-Depends: golang-${golang:GOVER}-doc,
+Depends: golang-${golang:Version}-doc,
golang-go (>= ${source:Version}),
${misc:Depends}
Description: Go programming language - documentation
@@ -152,7 +152,7 @@ Description: Go programming language - documentation
Package: golang
Architecture: amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64el riscv64 s390x
Multi-Arch: same
-Depends: golang-${golang:GOVER},
+Depends: golang-${golang:Version},
golang-doc (>= ${source:Version}),
golang-go (>= ${source:Version}),
golang-src (>= ${source:Version}),
diff --git a/debian/helpers/getdefault.pl b/debian/helpers/getdefault.pl
new file mode 100755
index 0000000..0c12743
--- /dev/null
+++ b/debian/helpers/getdefault.pl
@@ -0,0 +1,15 @@
+#!/usr/bin/perl
+
+# Get default Go implementation.
+
+use warnings;
+use strict;
+
+use Debian::Debhelper::Dh_Lib;
+
+my %known_packages = map { $_ => 1 } getpackages('arch');
+if (exists($known_packages{'golang-go'})) {
+ printf("golang-go\n");
+} else {
+ printf("gccgo-go\n");
+}
diff --git a/debian/rules b/debian/rules
index 53e0bc5..cbb55fa 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,9 +2,10 @@
# -*- makefile -*-
export GOVER := $(shell debian/helpers/getver.pl)
+export GODEFAULT := $(shell debian/helpers/getdefault.pl)
%:
dh $@
override_dh_gencontrol:
- dh_gencontrol -- -Vgolang:GOVER=$(GOVER)
+ dh_gencontrol -- -Vgolang:Version=$(GOVER) -Vgolang:Default=$(GODEFAULT)