Package: release.debian.org
Severity: normal
User: release.debian....@packages.debian.org
Usertags: unblock

Please unblock package slirp4netns

Upstream author Akihiro Suda has reached out to me privately
about the slirp4netns package in Debian. Among others, he
(rightfully) pointed out that ipv6 is not working in the current
package due to an oversight. The remeidy is an easy to review pathc

[ Reason ]
Fix an oversight that restores ipv6

[ Impact ]
Users of podman, buildah, etc. that want to run rootless will get
unpleasently suprises when they try rootless networking that involves
ipv6

[ Tests ]
There are no automated tests

[ Risks ]
The patch seems trivial and safe. A non-functional slirp4netns has the
risk of breaking rootless podman.


unblock slirp4netns/1.0.1-2


diff --git a/debian/changelog b/debian/changelog
index 6f89392..20a2903 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+slirp4netns (1.0.1-2) unstable; urgency=medium
+
+  * Apply patch from upstrema to make ipv6 usable (Closes: #985780)
+
+ -- Reinhard Tartler <siret...@tauware.de>  Wed, 24 Mar 2021 07:43:48 -0400
+
 slirp4netns (1.0.1-1) unstable; urgency=medium

   * New upstream version 1.0.1
diff --git a/debian/patches/ipv6.patch b/debian/patches/ipv6.patch
new file mode 100644
index 0000000..f585f21
--- /dev/null
+++ b/debian/patches/ipv6.patch
@@ -0,0 +1,21 @@
+From 8d2aefecce7cca696f44d0792e196ecdd22072e4 Mon Sep 17 00:00:00 2001
+From: Ralf Haferkamp <rha...@suse.com>
+Date: Fri, 3 Jul 2020 11:35:52 +0200
+Subject: [PATCH] Fix config_from_options() to correctly enable ipv6
+
+Signed-off-by: Ralf Haferkamp <rha...@suse.com>
+---
+ main.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/main.c
++++ b/main.c
+@@ -680,7 +680,7 @@
+     if (rc < 0) {
+         goto finish;
+     }
+-    cfg->enable_ipv6 = cfg->enable_ipv6;
++    cfg->enable_ipv6 = opt->enable_ipv6;
+     cfg->disable_host_loopback = opt->disable_host_loopback;
+     cfg->enable_sandbox = opt->enable_sandbox;
+     cfg->enable_seccomp = opt->enable_seccomp;
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..b5b92c7
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+ipv6.patch

Reply via email to