Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 582508 - app-portage/mirrorselect: `mirrorselect -s10 -b10 -6 -o > /etc/portage/mirrors6' returns IPv4 mirrors
Summary: app-portage/mirrorselect: `mirrorselect -s10 -b10 -6 -o > /etc/portage/mirror...
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage Tools Team
Keywords: InVCS
Depends on:
Reported: 2016-05-09 08:30 UTC by Roy Bamford
Modified: 2019-06-17 19:55 UTC (History)
1 user (show)

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

netselect: use -4/-6 options (netselect-use-4-6-options-bug-582508.patch,1.41 KB, patch)
2019-05-27 17:08 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Roy Bamford gentoo-dev 2016-05-09 08:30:54 UTC
app-portage/mirrorselect-2.2.2-r2 run as mirrorselect -s10 -b10 -6 -o > /etc/portage/mirrors6 returns 

Notice the rsync://, which is not IPv6
Tested on amd64 and arm64

Reproducible: Always

Steps to Reproduce:
1.emerge mirrorselect it with the -6 option
3.notice IPv4 servers in the output.
Actual Results:  
Output includes rsync:// which is not IPv6

Expected Results:  
No IPv4 servers listed in the output.  
Servers listed by IP address, should use an IPv6 address.

emerge --info
Portage 2.2.28 (python 3.4.3-final-0, default/linux/amd64/13.0/no-multilib, gcc-5.3.0, glibc-2.22-r4, 4.4.5-gentoo x86_64)
System uname: Linux-4.4.5-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1090T_Processor-with-gentoo-2.2
KiB Mem:    16411200 total,  15278100 free
KiB Swap:    2088432 total,   2088432 free
Timestamp of repository gentoo: Sat, 07 May 2016 01:15:01 +0000
sh bash 4.3_p42-r2
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.3_p42-r2::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.3-r7::gentoo
dev-util/cmake:           3.5.2::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.5::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo

    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://
    priority: -1000
    sync-rsync-extra-opts: --exclude=metadata/cache

    location: /usr/local/gentoo-static
    masters: gentoo
    priority: 0

    location: /usr/local/portage
    masters: gentoo
    priority: 1

    location: /var/lib/layman/palemoon
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1 AdobeFlash-10.3 AdobeFlash-11.x Google-TOS Oracle-BCLA-JavaSE PUEL dlj-1.1 googleearth teamspeak3"
CFLAGS="-march=native -O2 -pipe"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="                                                                                                                             "
INSTALL_MASK=" /usr/lib/systemd *.la"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
USE="3dnow 3dnowext X a52 acl alsa amd64 amr ao apng berkdb bluray bzip2 cairo caps cdda cddb cdio cdparanoia cli cracklib crypt cups curl cxx device-mapper dri dvd dvdnav dvdr egl encode ffmpeg flac fortran fuse gdbm geoip gif gimp gles2 gpg gpm graphite gtk guidexml iconv icu introspection ipv6 jpeg jpeg2k ladspa lock lzma lzo mad minizip mmx mmxext modules mp3 mplayer mtp ncurses nfs nls nptl nsplugin odf ogg opengl openmp pam pcre pcre16 pdf png popcnt postproc postscript python raw readline sdl seccomp session smpeg sse sse2 sse3 sse4a ssl startup-notification svg sysfs tcpd theora threads thunar tiff tools twolame unicode usb v4l vaapi vdpau video vorbis wav wavpack x264 xattr xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="pdfimport presenter-console presenter-minimizer" LINGUAS="en en_GB en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="i386 x86_64 ppc64 sparc sparc64 arm" QEMU_USER_TARGETS="i386 x86_64 ppc64 sparc sparc64 arm" RUBY_TARGETS="ruby20 ruby21" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="fbdev vesa nv nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2017-06-10 11:09:57 UTC
I have added =net-analyzer/netselect-0.4 with USE=ipv6. It should be quite easy to use options.ipv6 now to add `-6` to the netselect call.

USE=ipv6 might make this a bit awkward, but my plan is to remove it once the patch that adds IPv6 support is deemed stable and apply the patch by default.
Comment 2 Zac Medico gentoo-dev 2019-05-27 17:08:57 UTC
Created attachment 577888 [details, diff]
netselect: use -4/-6 options
Comment 3 Larry the Git Cow gentoo-dev 2019-05-27 17:17:50 UTC
The bug has been referenced in the following commit(s):

commit 36f0964f90395d1a018b2e82def0b4b4d624ac73
Author:     Zac Medico <>
AuthorDate: 2019-05-27 17:15:13 +0000
Commit:     Zac Medico <>
CommitDate: 2019-05-27 17:16:50 +0000

    app-portage/mirrorselect: require netselect[ipv6] for 9999 (bug 582508)
    Package-Manager: Portage-2.3.67, Repoman-2.3.13
    Signed-off-by: Zac Medico <>

 app-portage/mirrorselect/mirrorselect-9999.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 4 Larry the Git Cow gentoo-dev 2019-05-27 17:22:07 UTC
The bug has been referenced in the following commit(s):

commit 195781b8fbfe3ee52ceb478de5058e2745d24aa2
Author:     Zac Medico <>
AuthorDate: 2019-05-27 17:02:02 +0000
Commit:     Zac Medico <>
CommitDate: 2019-05-27 17:07:45 +0000

    netselect: use -4/-6 options (bug 582508)
    Requires >=net-analyzer/netselect-0.4[ipv6(+)].
    Signed-off-by: Zac Medico <>

 mirrorselect/ | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)
Comment 5 Larry the Git Cow gentoo-dev 2019-05-27 18:11:09 UTC
The bug has been referenced in the following commit(s):

commit 82bbe253084208ac9216f8a5a822e8e15361d7f4
Author:     Zac Medico <>
AuthorDate: 2019-05-27 17:47:08 +0000
Commit:     Zac Medico <>
CommitDate: 2019-05-27 18:10:57 +0000

    app-portage/mirrorselect: version bump to 2.2.5
    Package-Manager: Portage-2.3.67, Repoman-2.3.13
    Signed-off-by: Zac Medico <>

 app-portage/mirrorselect/Manifest                  |  1 +
 app-portage/mirrorselect/mirrorselect-2.2.5.ebuild | 39 ++++++++++++++++++++++
 2 files changed, 40 insertions(+)