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

Bug 331999

Summary: net-misc/dhcp-4* needs to check for CONFIG_IPV6 if USE="ipv6"
Product: Gentoo Linux Reporter: Rick Harris <rickfharris>
Component: New packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Rick Harris 2010-08-10 09:28:10 UTC
dhclient will fail always with the following error if the 'ipv6' USE flag is enabled and CONFIG_IPV6 kernel support has not been enabled.

dhclient: Error opening '/proc/net/if_inet6' to list IPv6 interfaces; No such file or directory
dhclient: Can't get list of interfaces.
dhclient: exiting.

Recommend a check be inserted into the ebuild, something like:

+inherit eutils flag-o-matic autotools linux-mod

+pkg_setup() {
+        if use ipv6; then
+                CONFIG_CHECK="IPV6"
+        fi
+        linux-mod_pkg_setup
+}
Comment 1 SpanKY gentoo-dev 2011-03-05 23:31:10 UTC
i dont see any real value in this.  plenty of packages will fail like this.