Package: golang-golang-x-tools
Severity: important
Tags: patch
User: [email protected]
Usertags: origin-ubuntu jammy ubuntu-patch
Dear Maintainer,
golang-golang-x-tools currently FTBFS with Go 1.18
In Ubuntu, the attached patch was applied to achieve the following:
* Fix FTBFS with Go 1.18
Thanks for considering the patch.
-- System Information:
Debian Release: bookworm/sid
APT prefers jammy
APT policy: (500, 'jammy')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.15.0-22-generic (SMP w/32 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru
golang-golang-x-tools-0.1.9+ds/debian/patches/0010-fix-ftbfs-with-go-1.18.patch
golang-golang-x-tools-0.1.9+ds/debian/patches/0010-fix-ftbfs-with-go-1.18.patch
---
golang-golang-x-tools-0.1.9+ds/debian/patches/0010-fix-ftbfs-with-go-1.18.patch
1969-12-31 18:00:00.000000000 -0600
+++
golang-golang-x-tools-0.1.9+ds/debian/patches/0010-fix-ftbfs-with-go-1.18.patch
2022-03-16 18:36:11.000000000 -0500
@@ -0,0 +1,21 @@
+Description: Fix FTBFS with Go 1.18
+ At the time of this package upload, there was still a change
+ required for one of the test cases to succeed with Go 1.18.
+Origin: upstream,
https://github.com/golang/tools/commit/845bb90a1df4ce4789c794479a29a4ea07e12414
+Applied-Upstream:
https://github.com/golang/tools/commit/845bb90a1df4ce4789c794479a29a4ea07e12414
+Last-Update: 2022-03-16
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index:
golang-golang-x-tools-0.1.9+ds/go/types/objectpath/objectpath_go118_test.go
+===================================================================
+---
golang-golang-x-tools-0.1.9+ds.orig/go/types/objectpath/objectpath_go118_test.go
++++ golang-golang-x-tools-0.1.9+ds/go/types/objectpath/objectpath_go118_test.go
+@@ -79,7 +79,7 @@
+ wantErr string
+ }{
+ {types.Universe.Lookup("any"), "predeclared type any =
interface{} has no path"},
+- {types.Universe.Lookup("comparable"), "predeclared type
comparable interface{} has no path"},
++ {types.Universe.Lookup("comparable"), "predeclared type
comparable interface{comparable} has no path"},
+ } {
+ path, err := objectpath.For(test.obj)
+ if err == nil {
diff -Nru golang-golang-x-tools-0.1.9+ds/debian/patches/series
golang-golang-x-tools-0.1.9+ds/debian/patches/series
--- golang-golang-x-tools-0.1.9+ds/debian/patches/series 2022-02-23
09:11:16.000000000 -0600
+++ golang-golang-x-tools-0.1.9+ds/debian/patches/series 2022-03-16
18:32:47.000000000 -0500
@@ -7,3 +7,4 @@
0007-skip-tests-that-run-go-build.patch
0008-skip-test-needs-go-mod.patch
0009-skip-license-testing.patch
+0010-fix-ftbfs-with-go-1.18.patch