Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 172571

Summary: SYNC host selection with(out) ipv6
Product: Portage Development Reporter: Thomas Matthijs (RETIRED) <axxo>
Component: Core - External InteractionAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: trivial Keywords: InVCS
Priority: Lowest    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 172589    
Attachments: use socket.AF_INET as the default family for socket.getaddrinfo

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 2.1.2.3.