From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3A8131382C5 for ; Tue, 23 Feb 2021 14:55:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8DB4FE0827; Tue, 23 Feb 2021 14:55:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 76E74E0827 for ; Tue, 23 Feb 2021 14:55:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 18636335D5F for ; Tue, 23 Feb 2021 14:55:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 879F94C6 for ; Tue, 23 Feb 2021 14:55:39 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1614092136.2aa2ecb7efed1fe7ea4f236c63013ecf99270b63.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/iproute2/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/iproute2/iproute2-9999.ebuild X-VCS-Directories: sys-apps/iproute2/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: 2aa2ecb7efed1fe7ea4f236c63013ecf99270b63 X-VCS-Branch: master Date: Tue, 23 Feb 2021 14:55:39 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 79fa1cd7-516f-46dc-847e-2c9e010ee919 X-Archives-Hash: b44ba031f5761403e7fcdd681497d802 commit: 2aa2ecb7efed1fe7ea4f236c63013ecf99270b63 Author: Lars Wendler gentoo org> AuthorDate: Tue Feb 23 14:40:02 2021 +0000 Commit: Lars Wendler gentoo org> CommitDate: Tue Feb 23 14:55:36 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2aa2ecb7 sys-apps/iproute2: Synced live ebuild Package-Manager: Portage-3.0.15, Repoman-3.0.2 Signed-off-by: Lars Wendler gentoo.org> sys-apps/iproute2/iproute2-9999.ebuild | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/sys-apps/iproute2/iproute2-9999.ebuild b/sys-apps/iproute2/iproute2-9999.ebuild index 7dcb54c51f5..52d0ebd7e41 100644 --- a/sys-apps/iproute2/iproute2-9999.ebuild +++ b/sys-apps/iproute2/iproute2-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -18,18 +18,19 @@ HOMEPAGE="https://wiki.linuxfoundation.org/networking/iproute2" LICENSE="GPL-2" SLOT="0" -IUSE="atm berkdb caps elf +iptables ipv6 minimal selinux" +IUSE="atm berkdb bpf caps elf +iptables ipv6 libbsd minimal selinux" # We could make libmnl optional, but it's tiny, so eh RDEPEND=" !net-misc/arpd - dev-libs/libbsd !minimal? ( net-libs/libmnl ) + atm? ( net-dialup/linux-atm ) + berkdb? ( sys-libs/db:= ) + bpf? ( dev-libs/libbpf ) caps? ( sys-libs/libcap ) elf? ( virtual/libelf ) iptables? ( >=net-firewall/iptables-1.4.20:= ) - berkdb? ( sys-libs/db:= ) - atm? ( net-dialup/linux-atm ) + libbsd? ( dev-libs/libbsd ) selinux? ( sys-libs/libselinux ) " # We require newer linux-headers for ipset support #549948 and some defines #553876 @@ -46,8 +47,9 @@ BDEPEND=" PATCHES=( "${FILESDIR}"/${PN}-3.1.0-mtu.patch #291907 - "${FILESDIR}"/${PN}-4.20.0-configure-nomagic.patch # bug 643722 - "${FILESDIR}"/${PN}-5.1.0-portability.patch + "${FILESDIR}"/${PN}-5.11.0-configure-nomagic.patch # bug 643722 + #"${FILESDIR}"/${PN}-5.1.0-portability.patch + "${FILESDIR}"/${PN}-5.7.0-mix-signal.h-include.patch ) src_prepare() { @@ -59,6 +61,14 @@ src_prepare() { default + # Fix version if necessary + local versionfile="include/version.h" + if [[ "${PV}" != 9999 ]] && ! grep -Fq "${PV}" ${versionfile} ; then + elog "Fixing version string" + sed "s@\"[[:digit:]\.]\+\"@\"${PV}\"@" \ + -i ${versionfile} || die + fi + # echo -n is not POSIX compliant sed 's@echo -n@printf@' -i configure || die @@ -92,6 +102,7 @@ src_configure() { popd >/dev/null # run "configure" script first which will create "config.mk"... + LIBBPF_FORCE="$(usex bpf on off)" \ econf # ...now switch on/off requested features via USE flags @@ -109,7 +120,8 @@ src_configure() { HAVE_SELINUX := $(usex selinux y n) IP_CONFIG_SETNS := ${setns} # Use correct iptables dir, #144265 #293709 - IPT_LIB_DIR := $(use iptables && ${PKG_CONFIG} xtables --variable=xtlibdir) + IPT_LIB_DIR := $(use iptables && ${PKG_CONFIG} xtables --variable=xtlibdir) + HAVE_LIBBSD := $(usex libbsd y n) EOF }