Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 582696 Details for
Bug 688214
app-portage/mirrorselect: USE=ipv6 request
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
mirrorselect: make netselect ipv6 support optional
netselect-make-netselect-ipv6-support-optional.patch (text/plain), 1.61 KB, created by
Zac Medico
on 2019-07-13 05:12:33 UTC
(
hide
)
Description:
mirrorselect: make netselect ipv6 support optional
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2019-07-13 05:12:33 UTC
Size:
1.61 KB
patch
obsolete
>From 95ba3ca5e8db2a6b360e4abdcee026076652551d Mon Sep 17 00:00:00 2001 >From: Zac Medico <zmedico@gentoo.org> >Date: Fri, 12 Jul 2019 22:00:33 -0700 >Subject: [PATCH] netselect: make netselect ipv6 support optional > >Since netselect with ipv6 support does not work on a system where >ipv6 is disabled, use a NETSELECT_SUPPORTS_IPV4_IPV6 variable to >optionally enable the use of netselect -4/-6 options. The ebuild >will use sed to set NETSELECT_SUPPORTS_IPV4_IPV6 = True when >USE=ipv6 is enabled, and will have a dependency like >RDEPEND=">=net-analyzer/netselect-0.4[ipv6(+)?]". > >Bug: https://bugs.gentoo.org/688214 >Signed-off-by: Zac Medico <zmedico@gentoo.org> >--- > mirrorselect/selectors.py | 15 +++++++++++---- > 1 file changed, 11 insertions(+), 4 deletions(-) > >diff --git a/mirrorselect/selectors.py b/mirrorselect/selectors.py >index e3f718c..4564f11 100644 >--- a/mirrorselect/selectors.py >+++ b/mirrorselect/selectors.py >@@ -61,6 +61,11 @@ else: > from mirrorselect.output import encoder, get_encoding, decode_selection > > >+# The netselect --ipv4 and --ipv6 options are supported only >+# with >=net-analyzer/netselect-0.4[ipv6(+)]. >+NETSELECT_SUPPORTS_IPV4_IPV6 = False >+ >+ > class Shallow(object): > """handles rapid server selection via netselect""" > >@@ -96,10 +101,12 @@ class Shallow(object): > host_string = ' '.join(hosts) > > cmd = ['netselect', '-s%d' % (number,)] >- if self._options.ipv4: >- cmd.append('-4') >- elif self._options.ipv6: >- cmd.append('-6') >+ >+ if NETSELECT_SUPPORTS_IPV4_IPV6: >+ if self._options.ipv4: >+ cmd.append('-4') >+ elif self._options.ipv6: >+ cmd.append('-6') > > cmd.extend(hosts) > >-- >2.21.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 688214
: 582696