reopen 1013554
found 1013554 0.0~git20210309.652d3b4-1
fixed 1013554 0.0~git20210309.652d3b4-2
thanks
Hello. Please consider an upload for bullseye, as packages in stable
must build in stable.
The attached debdiff may help (I've merely applied the patch from
bookworm and added a changelog entry with your name), but Release
Managers require a bug against release.debian.org first for approval.
Thanks.
diff -Nru
golang-github-valyala-tcplisten-0.0~git20161114.ceec8f9/debian/changelog
golang-github-valyala-tcplisten-0.0~git20161114.ceec8f9/debian/changelog
--- golang-github-valyala-tcplisten-0.0~git20161114.ceec8f9/debian/changelog
2020-12-17 14:32:15.000000000 +0100
+++ golang-github-valyala-tcplisten-0.0~git20161114.ceec8f9/debian/changelog
2022-12-08 19:20:00.000000000 +0100
@@ -1,3 +1,10 @@
+golang-github-valyala-tcplisten (0.0~git20161114.ceec8f9-2+deb11u1) bullseye;
urgency=medium
+
+ * Add a patch to hopefully fix test errors if "ip6-localhost" isn't
+ defined in the build environment (Closes: #1013554)
+
+ -- Mathias Gibbens <math...@calenhad.com> Thu, 08 Dec 2022 19:20:00 +0100
+
golang-github-valyala-tcplisten (0.0~git20161114.ceec8f9-2) unstable;
urgency=medium
* d/control:
diff -Nru
golang-github-valyala-tcplisten-0.0~git20161114.ceec8f9/debian/patches/000-fix-test-ip6-localhost.patch
golang-github-valyala-tcplisten-0.0~git20161114.ceec8f9/debian/patches/000-fix-test-ip6-localhost.patch
---
golang-github-valyala-tcplisten-0.0~git20161114.ceec8f9/debian/patches/000-fix-test-ip6-localhost.patch
1970-01-01 01:00:00.000000000 +0100
+++
golang-github-valyala-tcplisten-0.0~git20161114.ceec8f9/debian/patches/000-fix-test-ip6-localhost.patch
2022-12-08 19:18:45.000000000 +0100
@@ -0,0 +1,16 @@
+From: Mathias Gibbens <math...@calenhad.com>
+Description: Use IP addresses rather than host names so tests will pass in
environments where "ip6-localhost" isn't defined (see #1013554)
+
+--- a/tcplisten_test.go
++++ b/tcplisten_test.go
+@@ -37,8 +37,8 @@
+ }
+
+ func testConfig(t *testing.T, cfg Config) {
+- testConfigV(t, cfg, "tcp4", "localhost:10081")
+- testConfigV(t, cfg, "tcp6", "ip6-localhost:10081")
++ testConfigV(t, cfg, "tcp4", "127.0.0.1:10081")
++ testConfigV(t, cfg, "tcp6", "[::1]:10081")
+ }
+
+ func testConfigV(t *testing.T, cfg Config, network, addr string) {
diff -Nru
golang-github-valyala-tcplisten-0.0~git20161114.ceec8f9/debian/patches/series
golang-github-valyala-tcplisten-0.0~git20161114.ceec8f9/debian/patches/series
---
golang-github-valyala-tcplisten-0.0~git20161114.ceec8f9/debian/patches/series
1970-01-01 01:00:00.000000000 +0100
+++
golang-github-valyala-tcplisten-0.0~git20161114.ceec8f9/debian/patches/series
2022-12-08 19:18:45.000000000 +0100
@@ -0,0 +1 @@
+000-fix-test-ip6-localhost.patch