Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 671298 - net-misc/zerotier-1.4.6 fails to apply extra routes
Summary: net-misc/zerotier-1.4.6 fails to apply extra routes
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at if you want to take care of it
Depends on:
Blocks: 692496
  Show dependency tree
Reported: 2018-11-16 22:12 UTC by Remy Blank
Modified: 2020-02-28 22:30 UTC (History)
3 users (show)

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

Fix the path to the "ip" tool (zerotier-1.2.12-ip-path.patch,389 bytes, patch)
2018-11-16 22:14 UTC, Remy Blank
Details | Diff
net-misc/zerotier: fix iproute2 path (0001-net-misc-zerotier-fix-iproute2-path.patch,2.58 KB, patch)
2018-11-30 04:28 UTC, Rage <oxr463>
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Remy Blank 2018-11-16 22:12:58 UTC
When extra routes are configured for a ZeroTier network (in addition to the "local" route), these routes aren't applied in clients.

This is due to zerotier-one expecting the "ip" tool to be at /sbin/ip, but the iproute2 ebuild installs it at /bin/ip.

The attached patch fixes the issue for me.

Reproducible: Always
Comment 1 Remy Blank 2018-11-16 22:14:30 UTC
Created attachment 555366 [details, diff]
Fix the path to the "ip" tool
Comment 2 Rage <oxr463> 2018-11-18 19:02:33 UTC
Can `#define ZT_LINUX_IP_COMMAND "/bin/ip"`, be defined at build time via `emake CXX="$(tc-getCXX)" STRIP=: ZT_LINUX_IP_COMMAND="/bin/ip" one` specified in `src_compile()`?
Comment 3 Rage <oxr463> 2018-11-30 04:28:53 UTC
Created attachment 556758 [details, diff]
net-misc/zerotier: fix iproute2 path
Comment 4 Andreas Sturmlechner gentoo-dev 2020-02-26 18:43:14 UTC
should this version just be dropped then?
Comment 5 Remy Blank 2020-02-28 22:27:33 UTC
AFAICT, the patch is still necessary for 1.4.6.