* [gentoo-commits] repo/gentoo:master commit in: sys-apps/iproute2/
@ 2018-02-01 22:36 99% Mike Frysinger
0 siblings, 0 replies; 1+ results
From: Mike Frysinger @ 2018-02-01 22:36 UTC (permalink / raw
To: gentoo-commits
commit: cd534eb17c94864a155a6e80b44f8b42ca90480b
Author: Mike Frysinger <vapier <AT> chromium <DOT> org>
AuthorDate: Thu Feb 1 22:35:03 2018 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Thu Feb 1 22:35:03 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd534eb1
sys-apps/iproute2: make libelf usage optional
This dep is only needed to load eBPF filters out of ELFs compiled
(usually) by LLVM's eBPF backend. There's no need to make this a
hard dep on everyone's system.
sys-apps/iproute2/iproute2-4.15.0.ebuild | 7 ++++---
sys-apps/iproute2/metadata.xml | 1 +
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/sys-apps/iproute2/iproute2-4.15.0.ebuild b/sys-apps/iproute2/iproute2-4.15.0.ebuild
index f38e3db1ff8..15efa9acf6c 100644
--- a/sys-apps/iproute2/iproute2-4.15.0.ebuild
+++ b/sys-apps/iproute2/iproute2-4.15.0.ebuild
@@ -18,12 +18,13 @@ HOMEPAGE="https://wiki.linuxfoundation.org/networking/iproute2"
LICENSE="GPL-2"
SLOT="0"
-IUSE="atm berkdb +iptables ipv6 minimal selinux"
+IUSE="atm berkdb elf +iptables ipv6 minimal selinux"
# We could make libmnl optional, but it's tiny, so eh
RDEPEND="
!net-misc/arpd
- !minimal? ( net-libs/libmnl virtual/libelf )
+ !minimal? ( net-libs/libmnl )
+ elf? ( virtual/libelf )
iptables? ( >=net-firewall/iptables-1.4.20:= )
berkdb? ( sys-libs/db:= )
atm? ( net-dialup/linux-atm )
@@ -101,7 +102,7 @@ src_configure() {
TC_CONFIG_IPSET := y
HAVE_BERKELEY_DB := $(usex berkdb y n)
HAVE_MNL := $(usex minimal n y)
- HAVE_ELF := $(usex minimal n y)
+ HAVE_ELF := $(usex elf y n)
HAVE_SELINUX := $(usex selinux y n)
IP_CONFIG_SETNS := ${setns}
# Use correct iptables dir, #144265 #293709
diff --git a/sys-apps/iproute2/metadata.xml b/sys-apps/iproute2/metadata.xml
index 2605d5fd7ce..ad652efcf7e 100644
--- a/sys-apps/iproute2/metadata.xml
+++ b/sys-apps/iproute2/metadata.xml
@@ -7,6 +7,7 @@
</maintainer>
<use>
<flag name="berkdb">build programs that use berkdb (just arpd)</flag>
+ <flag name="elf">support loading eBPF programs from ELFs (e.g. LLVM's eBPF backend)</flag>
<flag name="iptables">include support for iptables filtering</flag>
<flag name="minimal">only install ip and tc programs, without eBPF support</flag>
</use>
^ permalink raw reply related [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2018-02-01 22:36 99% [gentoo-commits] repo/gentoo:master commit in: sys-apps/iproute2/ Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox