Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 172571 - SYNC host selection with(out) ipv6
Summary: SYNC host selection with(out) ipv6
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - External Interaction (show other bugs)
Hardware: All Linux
: Lowest trivial (vote)
Assignee: Portage team
Keywords: InVCS
Depends on:
Blocks: 172589
  Show dependency tree
Reported: 2007-03-28 16:00 UTC by Thomas Matthijs (RETIRED)
Modified: 2007-03-29 22:38 UTC (History)
0 users

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

use socket.AF_INET as the default family for socket.getaddrinfo (af_inet.patch,462 bytes, patch)
2007-03-28 19:36 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Matthijs (RETIRED) gentoo-dev 2007-03-28 16:00:16 UTC
Around line 3938 in emerge
a random ip is chosen from the host you have in SYNC
if the host has an ipv6 ip and you do not have python merged with the ipv6 useflag it will return an invalid entry and try to sync to it

The 'addrinfo' prints as (10, 1, 6, '', ('2001:6a8:3c80:0:203:baff:fe39:f931', 0, 0, 0)) under python +ipv6
and as (10, 1, 6, '', (10, '\x00\x00\x00\x00\x00\x00 \x01\x06\xa8<\x80\x00\x00')) under python -ipv6

Making it add '10' as the host ip in that case
Comment 1 Zac Medico gentoo-dev 2007-03-28 19:36:43 UTC
Created attachment 114809 [details, diff]
use socket.AF_INET as the default family for socket.getaddrinfo

I think that this patch might solve the problem.  Could you please test it?
Comment 2 Thomas Matthijs (RETIRED) gentoo-dev 2007-03-28 20:50:44 UTC
solves the problem
Comment 3 Zac Medico gentoo-dev 2007-03-28 22:41:26 UTC
Thanks, this is fixed in svn r6322.
Comment 4 Zac Medico gentoo-dev 2007-03-29 22:38:13 UTC
This has been released in