commit: b13ad6350738f22961f02af13a2608d5494e936c Author: Rick Farina <zerochaos <AT> gentoo <DOT> org> AuthorDate: Tue Apr 28 17:19:42 2020 +0000 Commit: Rick Farina <zerochaos <AT> gentoo <DOT> org> CommitDate: Tue Apr 28 17:19:42 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b13ad635
net-wireless/rtl-sdr: add zerocopy use flag Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Rick Farina <zerochaos <AT> gentoo.org> net-wireless/rtl-sdr/metadata.xml | 3 +++ net-wireless/rtl-sdr/rtl-sdr-9999.ebuild | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/net-wireless/rtl-sdr/metadata.xml b/net-wireless/rtl-sdr/metadata.xml index 1570f891c6a..0fd1a19caca 100644 --- a/net-wireless/rtl-sdr/metadata.xml +++ b/net-wireless/rtl-sdr/metadata.xml @@ -5,4 +5,7 @@ <email>ra...@gentoo.org</email> <name>Radio</name> </maintainer> + <use> + <flag name="zerocopy">may cause a bus error on some ARM systems</flag> + </use> </pkgmetadata> diff --git a/net-wireless/rtl-sdr/rtl-sdr-9999.ebuild b/net-wireless/rtl-sdr/rtl-sdr-9999.ebuild index 5b9fb0899d3..2f3140b29d2 100644 --- a/net-wireless/rtl-sdr/rtl-sdr-9999.ebuild +++ b/net-wireless/rtl-sdr/rtl-sdr-9999.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 inherit cmake-utils multilib @@ -23,7 +23,7 @@ fi LICENSE="GPL-2" SLOT="0" -IUSE="" +IUSE="+zerocopy" DEPEND="virtual/libusb:1" RDEPEND="${DEPEND}" @@ -41,6 +41,7 @@ src_configure() { mycmakeargs=( -DINSTALL_UDEV_RULES=OFF -DDETACH_KERNEL_DRIVER=ON + -DENABLE_ZEROCOPY="$(usex zerocopy)" -DLIB_INSTALL_DIR=$(get_libdir) ) cmake-utils_src_configure