Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 818022 - net-misc/iputils-20210722-r1: stabilisation (was: ping tries to use ipv6 when ipv6 disabled)
Summary: net-misc/iputils-20210722-r1: stabilisation (was: ping tries to use ipv6 when...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Stabilization (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL: https://github.com/iputils/iputils/pu...
Whiteboard:
Keywords: CC-ARCHES
Depends on:
Blocks:
 
Reported: 2021-10-13 22:14 UTC by Daniel Frey
Modified: 2021-10-20 10:34 UTC (History)
1 user (show)

See Also:
Package list:
net-misc/iputils-20210722-r1
Runtime testing required: ---
nattka: sanity-check+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Frey 2021-10-13 22:14:16 UTC
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.)
Comment 1 Daniel Frey 2021-10-13 22:15:27 UTC
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.
Comment 2 Larry the Git Cow gentoo-dev 2021-10-14 03:16:42 UTC
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(+)
Comment 3 Daniel Frey 2021-10-15 16:23:44 UTC
I just unmasked 20210722-r1 and installed it, the problem I reported is fixed.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-20 10:30:06 UTC
(In reply to Daniel Frey from comment #3)
> I just unmasked 20210722-r1 and installed it, the problem I reported is
> fixed.

Thanks!
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-20 10:34:41 UTC
amd64 done
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-20 10:34:42 UTC
x86 done
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-20 10:34:44 UTC
arm done
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-20 10:34:45 UTC
arm64 done
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-20 10:34:47 UTC
ppc done
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-20 10:34:48 UTC
ppc64 done
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-20 10:34:50 UTC
hppa done
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-20 10:34:51 UTC
sparc done

all arches done