Source: golang-1.22
Severity: normal
X-Debbugs-Cc: [email protected]
Hi,
I'm trying to build golang-1.22 in a bookworm+backports environment, and
cannot satisfy the build dependencies, because golang-go (>= 1.20) is
provided only by the golang-go metapackage built from golang-defaults
1.22, creating a circular loop.
If the Build-Depends were to use
golang-1.22-go | golang-1.21-go | golang-1.20-go
then I could use the just-built golang-1.21 compiler to bootstrap 1.22,
and this would be future-proof even when 1.23 is made the default (then,
1.23 would be required to build 1.22, as only 1.19 and 1.23 are
available, and 1.19 does not fulfull the version requirement).
The OpenJDK packages use a similar bootstrap method, with the previous
major version being the minimum requirement, this works well using the
method above.
The same applies to other golang compiler packages (1.19, 1.20, 1.21) as
well, but for now only 1.22 fails to build because of this.
Simon
-- System Information:
Debian Release: 12.7
APT prefers stable-security
APT policy: (500, 'stable-security'), (500, 'proposed-updates'), (500,
'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.1.0-25-amd64 (SMP w/20 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled