Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 326849 - sys-apps/iproute2 won't compile without ipv6 support on uclibc systems
Summary: sys-apps/iproute2 won't compile without ipv6 support on uclibc systems
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-04 10:24 UTC by Sergey Popov
Modified: 2022-02-18 02:44 UTC (History)
0 users

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


Attachments
modified patch for iprout2-2.6.31 from bug #162885 (iproute2-2.6.31-no-ipv6.patch,914 bytes, patch)
2010-07-04 10:25 UTC, Sergey Popov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Popov gentoo-dev 2010-07-04 10:24:37 UTC
iproute2 can not compile with uclibc because of lack support of ipv6.

Bug #162885 is marked as resolved long time ago, but sufficient patches would not merged into portage tree.

uclibc 0.9.30.1 and iproute2-2.6.31 has still have this bug and would not compile without additional patches.
Comment 1 Sergey Popov gentoo-dev 2010-07-04 10:25:39 UTC
Created attachment 237431 [details, diff]
modified patch for iprout2-2.6.31 from bug #162885
Comment 2 SpanKY gentoo-dev 2010-08-23 02:28:59 UTC
now in the tree ... thanks !
Comment 3 Rob 2010-08-24 04:02:28 UTC
This update completely broke my system. I get the following message when trying to start my network:

net.eth2           | *     default table webserver ...
net.eth2           |Usage: inet_route [-vF] del {-host|-net} Target[/prefix] [gw Gw] [metric M] [[dev] If]
net.eth2           |       inet_route [-vF] add {-host|-net} Target[/prefix] [gw Gw] [metric M]
net.eth2           |                              [netmask N] [mss Mss] [window W] [irtt I]
net.eth2           |                              [mod] [dyn] [reinstate] [[dev] If]
net.eth2           |       inet_route [-vF] add {-host|-net} Target[/prefix] [metric M] reject
net.eth2           |       inet_route [-FC] flush      NOT supported 

and now I cannot access my computer from any network card besides eth0. I'm going to try and downgrade and hope that works.
Comment 4 SpanKY gentoo-dev 2010-08-24 04:46:10 UTC
-ENEEDINFO.  did you build it with USE=-ipv6 ?  what exactly is your net config ?
Comment 5 Sergey Popov gentoo-dev 2010-08-24 06:27:25 UTC
> This update completely broke my system.

Do you have system based on uclibc? This patch is MUST BE APPLIED only on uClibc-based systems that builded with USE="-ipv6"
Comment 6 Rob 2010-08-24 12:01:14 UTC
well, I think it's something else now, perhaps something that updated in between emerges?

#genlop iproute2
Sat Aug  7 22:43:23 2010 >>> sys-apps/iproute2-2.6.35-r1
Mon Aug 23 11:30:45 2010 >>> sys-apps/iproute2-2.6.35-r1
Mon Aug 23 22:55:19 2010 >>> sys-apps/iproute2-2.6.35-r1
Mon Aug 23 22:59:23 2010 >>> sys-apps/iproute2-2.6.35-r1
Mon Aug 23 23:04:20 2010 >>> sys-apps/iproute2-2.6.34
Mon Aug 23 23:10:57 2010 >>> sys-apps/iproute2-2.6.35-r1

I tried downgrading, I tried emerging with and without ipv6 but nothing helped. The funny thing is, if I start net.eth0 I don't get the said error, but when I start eth2, I do. The /etc/init.d/net.eth* scripts are identical.

Here is my /etc/conf.d/net, which I haven't touched since my eth1 stopped working about a year ago:

modules=( "iproute2" )

config_eth0=(
         "192.168.123.125/24 brd 192.168.123.255"
#        "dhcp"
)
config_eth1=(
        "dhcp"
)
config_eth2=(
        "dhcp"
)
routes_eth0=(
        "default via 192.168.123.254"
)
routes_eth2=(
        "127.0.0.0/8 dev lo table webserver"
        "default via 68.51.72.1 table webserver"
        "default table webserver"
)

dns_servers_eth2="8.8.8.8 8.8.4.4"
dns_servers_eth0="8.8.8.8 8.8.4.4"
Comment 7 SpanKY gentoo-dev 2010-08-24 16:12:54 UTC
if USE=ipv6 hits the same problem, then your issue is unrelated to this bug.  file a new one.
Comment 8 Larry the Git Cow gentoo-dev 2022-02-18 02:44:27 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45c658502c94a90c7290ad411ee808b648a18b07

commit 45c658502c94a90c7290ad411ee808b648a18b07
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2022-02-12 11:02:04 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-02-18 02:40:16 +0000

    sys-apps/iproute2: Remove USE=ipv6
    
    This package does intrusive patching to remove (some?) IPv6 support.
    Apparently this is a leftover from historical uclibc support.
    
    Bug: https://bugs.gentoo.org/326849
    Signed-off-by: Michał Górny <mgorny@gentoo.org>
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/iproute2/iproute2-5.16.0.ebuild | 8 +-------
 sys-apps/iproute2/iproute2-9999.ebuild   | 8 +-------
 2 files changed, 2 insertions(+), 14 deletions(-)