summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-wireless/rtl-sdr/metadata.xml3
-rw-r--r--net-wireless/rtl-sdr/rtl-sdr-9999.ebuild7
2 files changed, 7 insertions, 3 deletions
diff --git a/net-wireless/rtl-sdr/metadata.xml b/net-wireless/rtl-sdr/metadata.xml
index 1570f891c6a3..0fd1a19caca6 100644
--- a/net-wireless/rtl-sdr/metadata.xml
+++ b/net-wireless/rtl-sdr/metadata.xml
@@ -5,4 +5,7 @@
<email>radio@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 5b9fb0899d30..2f3140b29d22 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