summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-emulation/playonlinux/files/playonlinux-4.1.1-not-exclude-ipv6.patch')
-rw-r--r--app-emulation/playonlinux/files/playonlinux-4.1.1-not-exclude-ipv6.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/app-emulation/playonlinux/files/playonlinux-4.1.1-not-exclude-ipv6.patch b/app-emulation/playonlinux/files/playonlinux-4.1.1-not-exclude-ipv6.patch
new file mode 100644
index 000000000000..c783173115c3
--- /dev/null
+++ b/app-emulation/playonlinux/files/playonlinux-4.1.1-not-exclude-ipv6.patch
@@ -0,0 +1,27 @@
+# Changes wget usage to _allow_ IPv6, but to prefer IPv4. This way, DNS64 and
+# IPv6-only http_proxy scenarios should work.
+# Patch written by Michael Mol <mikemol@gmail.com>
+# Patch based on dialog with upstream, ascertaining their purpose for using
+# -4, and coming up with an agreed-upon workaround. Upstream equivalent is
+# committed to their vcs, and will probably appear in release 4.1.4.
+
+*** python/lib/Variables.py 2012-07-10 20:43:56.968567114 -0400
+--- python/lib/Variables-patched.py 2012-07-10 20:44:21.491898941 -0400
+*************** if (os.environ["POL_OS"] == "Mac"):
+*** 26,28 ****
+ os_name = "darwin"
+! os.environ["POL_WGET"] = "wget -4 -q"
+
+--- 26,28 ----
+ os_name = "darwin"
+! os.environ["POL_WGET"] = "wget --prefer-family=IPv4 -q"
+
+*************** if (os.environ["POL_OS"] == "Linux"):
+*** 39,41 ****
+ else:
+! os.environ["POL_WGET"] = "wget -4 -q"
+
+--- 39,41 ----
+ else:
+! os.environ["POL_WGET"] = "wget --prefer-family=IPv4 -q"
+