Description: Allow go 1.19 Old rules prevented it, but it works fine. . golang-inet-netstack (0.0~git20211120.8aa80cf2-6) unstable; urgency=medium . * Allow building on go 1.19. Closes: #1017246. Author: John Goerzen Bug-Debian: https://bugs.debian.org/1017246 --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: , Bug: Bug-Debian: https://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: 2022-09-09 --- golang-inet-netstack-0.0~git20211120.8aa80cf2.orig/gohacks/gohacks_unsafe.go +++ golang-inet-netstack-0.0~git20211120.8aa80cf2/gohacks/gohacks_unsafe.go @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -//go:build go1.13 && !go1.19 -// +build go1.13,!go1.19 +//go:build go1.13 +// +build go1.13 // //go:linkname directives type-checked by checklinkname. Any other // non-linkname assumptions outside the Go 1 compatibility guarantee should --- golang-inet-netstack-0.0~git20211120.8aa80cf2.orig/goid/goid.go +++ golang-inet-netstack-0.0~git20211120.8aa80cf2/goid/goid.go @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -//go:build go1.12 && !go1.19 -// +build go1.12,!go1.19 +//go:build go1.12 +// +build go1.12 // Check type signatures when updating Go version. --- golang-inet-netstack-0.0~git20211120.8aa80cf2.orig/sync/mutex_unsafe.go +++ golang-inet-netstack-0.0~git20211120.8aa80cf2/sync/mutex_unsafe.go @@ -3,8 +3,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build go1.13 && !go1.19 -// +build go1.13,!go1.19 +//go:build go1.13 +// +build go1.13 // When updating the build constraint (above), check that syncMutex matches the // standard library sync.Mutex definition. --- golang-inet-netstack-0.0~git20211120.8aa80cf2.orig/sync/runtime_unsafe.go +++ golang-inet-netstack-0.0~git20211120.8aa80cf2/sync/runtime_unsafe.go @@ -3,8 +3,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build go1.13 && !go1.19 -// +build go1.13,!go1.19 +//go:build go1.13 +// +build go1.13 // //go:linkname directives type-checked by checklinkname. Any other // non-linkname assumptions outside the Go 1 compatibility guarantee should