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
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL: https://gitlab.com/lramage94/gentoo/i...
Whiteboard:
Keywords: EBUILD, PATCH
Depends on:
Blocks: 692496
  Show dependency tree
 
Reported: 2018-11-16 22:12 UTC by Remy Blank
Modified: 2021-01-25 21:46 UTC (History)
3 users (show)

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


Attachments
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.
Comment 6 Larry the Git Cow gentoo-dev 2021-01-25 21:15:45 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c859fcb16318235b1d16e95d8d693bc2aec348e

commit 2c859fcb16318235b1d16e95d8d693bc2aec348e
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2021-01-25 21:15:36 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2021-01-25 21:15:43 +0000

    net-misc/zerotier: Bump to version 1.6.2
    
    Closes: https://bugs.gentoo.org/755908
    Closes: https://bugs.gentoo.org/671298
    Package-Manager: Portage-3.0.14, Repoman-3.0.2
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 net-misc/zerotier/Manifest               |  1 +
 net-misc/zerotier/files/zerotier.init-r1 | 12 +++++
 net-misc/zerotier/zerotier-1.6.2.ebuild  | 80 ++++++++++++++++++++++++++++++++
 3 files changed, 93 insertions(+)