| 1 |
Description: Allow go 1.19 |
| 2 |
Old rules prevented it, but it works fine. |
| 3 |
. |
| 4 |
golang-inet-netstack (0.0~git20211120.8aa80cf2-6) unstable; urgency=medium |
| 5 |
. |
| 6 |
* Allow building on go 1.19. Closes: #1017246. |
| 7 |
Author: John Goerzen <[email protected]> |
| 8 |
Bug-Debian: https://bugs.debian.org/1017246 |
| 9 |
|
| 10 |
--- |
| 11 |
The information above should follow the Patch Tagging Guidelines, please |
| 12 |
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here |
| 13 |
are templates for supplementary fields that you might want to add: |
| 14 |
|
| 15 |
Origin: <vendor|upstream|other>, <url of original patch> |
| 16 |
Bug: <url in upstream bugtracker> |
| 17 |
Bug-Debian: https://bugs.debian.org/<bugnumber> |
| 18 |
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber> |
| 19 |
Forwarded: <no|not-needed|url proving that it has been forwarded> |
| 20 |
Reviewed-By: <name and email of someone who approved the patch> |
| 21 |
Last-Update: 2022-09-09 |
| 22 |
|
| 23 |
--- golang-inet-netstack-0.0~git20211120.8aa80cf2.orig/gohacks/gohacks_unsafe.go |
| 24 |
+++ golang-inet-netstack-0.0~git20211120.8aa80cf2/gohacks/gohacks_unsafe.go |
| 25 |
@@ -12,8 +12,8 @@ |
| 26 |
// See the License for the specific language governing permissions and |
| 27 |
// limitations under the License. |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
+//go:build go1.13 |
| 32 |
+// +build go1.13 |
| 33 |
|
| 34 |
// //go:linkname directives type-checked by checklinkname. Any other |
| 35 |
// non-linkname assumptions outside the Go 1 compatibility guarantee should |
| 36 |
--- golang-inet-netstack-0.0~git20211120.8aa80cf2.orig/goid/goid.go |
| 37 |
+++ golang-inet-netstack-0.0~git20211120.8aa80cf2/goid/goid.go |
| 38 |
@@ -12,8 +12,8 @@ |
| 39 |
// See the License for the specific language governing permissions and |
| 40 |
// limitations under the License. |
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
+//go:build go1.12 |
| 45 |
+// +build go1.12 |
| 46 |
|
| 47 |
// Check type signatures when updating Go version. |
| 48 |
|
| 49 |
--- golang-inet-netstack-0.0~git20211120.8aa80cf2.orig/sync/mutex_unsafe.go |
| 50 |
+++ golang-inet-netstack-0.0~git20211120.8aa80cf2/sync/mutex_unsafe.go |
| 51 |
@@ -3,8 +3,8 @@ |
| 52 |
// Use of this source code is governed by a BSD-style |
| 53 |
// license that can be found in the LICENSE file. |
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
+//go:build go1.13 |
| 58 |
+// +build go1.13 |
| 59 |
|
| 60 |
// When updating the build constraint (above), check that syncMutex matches the |
| 61 |
// standard library sync.Mutex definition. |
| 62 |
--- golang-inet-netstack-0.0~git20211120.8aa80cf2.orig/sync/runtime_unsafe.go |
| 63 |
+++ golang-inet-netstack-0.0~git20211120.8aa80cf2/sync/runtime_unsafe.go |
| 64 |
@@ -3,8 +3,8 @@ |
| 65 |
// Use of this source code is governed by a BSD-style |
| 66 |
// license that can be found in the LICENSE file. |
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
+//go:build go1.13 |
| 71 |
+// +build go1.13 |
| 72 |
|
| 73 |
// //go:linkname directives type-checked by checklinkname. Any other |
| 74 |
// non-linkname assumptions outside the Go 1 compatibility guarantee should |