Package: tnat64 Version: 0.05-1 Followup-For: Bug #967988 User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu hirsute ubuntu-patch X-Debbugs-Cc: lo...@ubuntu.com Control: tags -1 patch
Hi, In Ubuntu, the attached patch was applied to achieve the following: * d/p/glibc_2.32.patch: Use strerror() instead of sys_errlist to fix FTBFS with glibc 2.32. Thanks for considering the patch. Logan
diff -Nru tnat64-0.05/debian/control tnat64-0.05/debian/control --- tnat64-0.05/debian/control 2018-04-03 08:47:37.000000000 -0400 +++ tnat64-0.05/debian/control 2021-01-08 17:30:34.000000000 -0500 @@ -1,8 +1,7 @@ Source: tnat64 Section: net Priority: optional -Maintainer: Ubuntu Developers <ubuntu-devel-disc...@lists.ubuntu.com> -XSBC-Original-Maintainer: Andrew O. Shadura <bugzi...@tut.by> +Maintainer: Andrew O. Shadura <bugzi...@tut.by> Build-Depends: debhelper (>= 8), dh-autoreconf Standards-Version: 3.9.2 Vcs-Hg: http://hg.debian.org/hg/collab-maint/tnat64/#debian diff -Nru tnat64-0.05/debian/patches/glibc_2.32.patch tnat64-0.05/debian/patches/glibc_2.32.patch --- tnat64-0.05/debian/patches/glibc_2.32.patch 1969-12-31 19:00:00.000000000 -0500 +++ tnat64-0.05/debian/patches/glibc_2.32.patch 2021-01-08 17:30:23.000000000 -0500 @@ -0,0 +1,17 @@ +--- a/tnat64.c ++++ b/tnat64.c +@@ -251,12 +251,12 @@ + } + if (errno != ENETUNREACH) + { +- show_msg(MSGDEBUG, "Error: %d (%s)\n", errno, sys_errlist[errno]); ++ show_msg(MSGDEBUG, "Error: %d (%s)\n", errno, strerror(errno)); + return -1; + } + else + { +- show_msg(MSGDEBUG, "Error: %d (%s)\n", errno, sys_errlist[errno]); ++ show_msg(MSGDEBUG, "Error: %d (%s)\n", errno, strerror(errno)); + current_af = AF_INET6; + failed++; + } diff -Nru tnat64-0.05/debian/patches/series tnat64-0.05/debian/patches/series --- tnat64-0.05/debian/patches/series 1969-12-31 19:00:00.000000000 -0500 +++ tnat64-0.05/debian/patches/series 2021-01-08 17:30:32.000000000 -0500 @@ -0,0 +1 @@ +glibc_2.32.patch