I'm not sure when this regression happened, but using ping on a host that has no ipv6 kernel support and with "-ipv6" set in USE throws an error: $ ping dns ping: socket: Address family not supported by protocol It's trying to create an ipv6 socket when the system doesn't support it. Reproducible: Always Steps to Reproduce: 1. Install latest stable net-misc/iputils 2. Ping a host on machine with no ipv6 support Actual Results: It throws error/warning: ping: socket: Address family not supported by protocol Expected Results: It should ping with no warnings or errors Upstream noticed a regression: https://github.com/iputils/iputils/pull/370 Some applications using ping will have problems if ping throws unintended errors and they will not behave normally (or not work at all.)
Forgot to show package USE: $ emerge -pv iputils These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] net-misc/iputils-20210722::gentoo USE="arping filecaps nls ssl -caps -clockdiff -doc -gcrypt -idn -ipv6 -nettle -rarpd -rdisc -static -test -tftpd -tracepath -traceroute6" 0 KiB USE="-ipv6" is set system-wide on machine in question.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8e7cf5b4f813a24758f4d81e722df07bba85017 commit c8e7cf5b4f813a24758f4d81e722df07bba85017 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-10-14 03:15:47 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-10-14 03:15:47 +0000 net-misc/iputils: backport no-IPv6 ping patch Bug: https://bugs.gentoo.org/818022 Signed-off-by: Sam James <sam@gentoo.org> .../files/iputils-20210722-fix-no-ipv6-ping.patch | 47 +++++ net-misc/iputils/iputils-20210722-r1.ebuild | 192 +++++++++++++++++++++ 2 files changed, 239 insertions(+)
I just unmasked 20210722-r1 and installed it, the problem I reported is fixed.
(In reply to Daniel Frey from comment #3) > I just unmasked 20210722-r1 and installed it, the problem I reported is > fixed. Thanks!
amd64 done
x86 done
arm done
arm64 done
ppc done
ppc64 done
hppa done
sparc done all arches done