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

Bug 927241

Summary: emerge --sync uses ipv6 for rsync even if it is disabled
Product: Portage Development Reporter: Pavel Balaev <mail>
Component: UnclassifiedAssignee: Portage team <dev-portage>
Status: UNCONFIRMED ---    
Severity: normal CC: mail
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/portage/pull/1309
Whiteboard:
Package list:
Runtime testing required: ---

Description Pavel Balaev 2024-03-18 12:18:21 UTC
socket.has_ipv6 gives a false result:
    
$ sysctl net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.all.disable_ipv6 = 1
$ python
Python 3.11.8 (main, Feb 24 2024, 17:10:38) [GCC 13.2.1 20240210] on linux
>>> import socket
>>> socket.has_ipv6
True

Reproducible: Always

Steps to Reproduce:
1.disable ipv6
2.emerge --sync

Actual Results:  
emerge --sync use ipv6 on ipv6 disabled system configuration

Expected Results:  
emerge --sync use ipv4 if ipv6 is disabled
Comment 1 Pavel Balaev 2024-03-18 12:20:12 UTC
PR: https://github.com/gentoo/portage/pull/1309