Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 425330 - app-emulation/playonlinux lacks IPv6 support.
Summary: app-emulation/playonlinux lacks IPv6 support.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-08 14:33 UTC by Michael Mol
Modified: 2012-07-14 18:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to correct issue (do-not-exclude-ipv6.patch,976 bytes, patch)
2012-07-11 04:06 UTC, Michael Mol
Details | Diff
ebuild pulling in patch (playonlinux-4.1.1-r1.ebuild,3.14 KB, text/plain)
2012-07-11 15:34 UTC, Michael Mol
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Mol 2012-07-08 14:33:15 UTC
I have http_proxy pointed at my proxy server via hostname, but my DNS records only include a AAAA record. Consequentially, any app which resolves that hostname needs to understand IPv6 in order to use that proxy server.

app-emulation/playonlinux does not. Instead, it complains that it does not have network connectivity.
Comment 1 Michael Mol 2012-07-09 20:36:36 UTC
Chatting with upstream about the issue. Turns out it's flags they pass to wget to cope with poor IPv6 configurations on some systems. Working with them to find a reasonable solution. I'll be digging into the source...
Comment 2 Michael Mol 2012-07-10 15:29:59 UTC
Found a fix for upstream, which they've committed. I'll come up with a patch for this version this evening, and file a version bump request when upstream next releases.
Comment 3 Michael Mol 2012-07-11 04:06:11 UTC
Created attachment 317886 [details, diff]
Patch to correct issue

The problem stems from POL's passing '-4' to wget. Upstream has done this as a workaround for reported cases where users have poor IPv6 configurations. Since POL's servers are IPv4-only, sticking with IPv4 improves their users' latency experience.

This patch replaces '-4' with '--prefer-family=IPv4', which causes wget to attempt to use IPv4 where A records are available for a hostname, and fallback to IPv6 if IPv4 doesn't work and if there are AAAA records available. This maintain's upstream's preference for IPv4, but enables use cases such as DNS64 and proxy servers with only AAAA records.

I've tested the patch. It appears to work properly on my system.
Comment 4 Michael Mol 2012-07-11 15:34:17 UTC
Created attachment 317934 [details]
ebuild pulling in patch

This ebuild is a modification of the 4.1.1 ebuild, pulling in the patch in src_prepare. Special thanks to Mike Gilbert, who walked me through local overlays and ebuild modifications in #gentoo-chat last night.
Comment 5 Markos Chandras (RETIRED) gentoo-dev 2012-07-14 18:23:00 UTC
Hi, thanks for the patch. A couple of comments though

1) It's better if you include the $package_name-$package_version in the patch filename

2) Create patches in unified format (diff -Naur)


This is now in portage. I've added you as maintainer. Thank you for your contribution.

+*playonlinux-4.1.1-r1 (14 Jul 2012)
+
+  14 Jul 2012; Markos Chandras <hwoarang@gentoo.org>
+  +files/playonlinux-4.1.1-not-exclude-ipv6.patch, +playonlinux-4.1.1-r1.ebuild,
+  metadata.xml:
+  Add Ipv6 support thanks to Michael Mol <mikemol@gmail.com>. Bug #425330
+