summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Beierlein <tomjbe@gentoo.org>2024-05-30 20:44:52 +0200
committerThomas Beierlein <tomjbe@gentoo.org>2024-05-30 20:46:26 +0200
commit5b8424a69b3a6930852f6a333d508fb5741f2fc9 (patch)
treed0f9ce78f6d7dbb8e4e0b23217e43d2b6b23e23a
parentdev-libs/simdjson: Stabilize 3.9.1 amd64, #933204 (diff)
downloadgentoo-5b8424a69b3a6930852f6a333d508fb5741f2fc9.tar.gz
gentoo-5b8424a69b3a6930852f6a333d508fb5741f2fc9.tar.bz2
gentoo-5b8424a69b3a6930852f6a333d508fb5741f2fc9.zip
net-wireless/gnuradio: Fix test failures
- Drop an empty test case - Move away from deprecated statements for actual numpy versions Closes: https://bugs.gentoo.org/931651 Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>
-rw-r--r--net-wireless/gnuradio/gnuradio-3.10.9.2-r3.ebuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/net-wireless/gnuradio/gnuradio-3.10.9.2-r3.ebuild b/net-wireless/gnuradio/gnuradio-3.10.9.2-r3.ebuild
index 1d0d5c8bffb7..4bfd82679765 100644
--- a/net-wireless/gnuradio/gnuradio-3.10.9.2-r3.ebuild
+++ b/net-wireless/gnuradio/gnuradio-3.10.9.2-r3.ebuild
@@ -78,7 +78,6 @@ RDEPEND="${PYTHON_DEPS}
iio? (
net-libs/libiio:=
net-libs/libad9361-iio:=
- !net-wireless/gr-iio
)
jack? ( virtual/jack )
portaudio? ( >=media-libs/portaudio-19_pre )
@@ -142,6 +141,13 @@ src_prepare() {
use !oss && sed -i 's#soundcard.h#oss-nonexistent.h#g' cmake/Modules/FindOSS.cmake
use !portaudio && sed -i 's#portaudio.h#portaudio-nonexistent.h#g' cmake/Modules/FindPORTAUDIO.cmake
+ # remove empty test case (see https://github.com/gnuradio/gnuradio/commit/21df528)
+ # fails with Python 3.12
+ rm "${S}"/gr-digital/python/digital/qa_digital.py || die
+ # fix test failure due to deprecated syntax for numpy
+ # see https://github.com/gnuradio/gnuradio/commit/a306e11
+ sed -i -e "s/np.alltrue/np.all/g" \
+ "${S}"/gnuradio-runtime/python/pmt/qa_pmt_to_python.py || die
cmake_src_prepare
}