diff options
Diffstat (limited to 'net-wireless')
-rw-r--r-- | net-wireless/bladerf/bladerf-2019.07.ebuild | 6 | ||||
-rw-r--r-- | net-wireless/bladerf/files/bladerf-2019.07-gcc10.patch | 23 |
2 files changed, 28 insertions, 1 deletions
diff --git a/net-wireless/bladerf/bladerf-2019.07.ebuild b/net-wireless/bladerf/bladerf-2019.07.ebuild index 3672b069b037..675b62ecbef4 100644 --- a/net-wireless/bladerf/bladerf-2019.07.ebuild +++ b/net-wireless/bladerf/bladerf-2019.07.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 @@ -41,6 +41,10 @@ RDEPEND="${CDEPEND}" PDEPEND=">=net-wireless/bladerf-firmware-2.3.2 >=net-wireless/bladerf-fpga-0.11.0" +PATCHES=( + "${FILESDIR}/${P}-gcc10.patch" +) + src_unpack() { if [ "${PV}" = "9999" ]; then git-r3_src_unpack diff --git a/net-wireless/bladerf/files/bladerf-2019.07-gcc10.patch b/net-wireless/bladerf/files/bladerf-2019.07-gcc10.patch new file mode 100644 index 000000000000..bdd99c5cadcc --- /dev/null +++ b/net-wireless/bladerf/files/bladerf-2019.07-gcc10.patch @@ -0,0 +1,23 @@ +From 5cf9fd299a396a5ae5b4402215713fd2a84e607b Mon Sep 17 00:00:00 2001 +From: Robert Ghilduta <robert.ghilduta@nuand.com> +Date: Mon, 25 May 2020 21:36:50 -0500 +Subject: [PATCH] libbladeRF: define bladerf2_state_to_string as extern in + header + +--- + host/libraries/libbladeRF/src/board/bladerf2/common.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/host/libraries/libbladeRF/src/board/bladerf2/common.h b/host/libraries/libbladeRF/src/board/bladerf2/common.h +index 23187ba6c..efbebc867 100644 +--- a/host/libraries/libbladeRF/src/board/bladerf2/common.h ++++ b/host/libraries/libbladeRF/src/board/bladerf2/common.h +@@ -207,7 +207,7 @@ extern const float ina219_r_shunt; + /* Constants */ + /******************************************************************************/ + +-char const *bladerf2_state_to_string[4]; ++extern char const *bladerf2_state_to_string[4]; + + + /******************************************************************************/ |