pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/ham/uhd uhd: fix unportable test operator in example s...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f6e97d378879
branches:  trunk
changeset: 385659:f6e97d378879
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Fri Sep 23 10:01:03 2022 +0000

description:
uhd: fix unportable test operator in example script

diffstat:

 ham/uhd/distinfo                                                                |   3 +-
 ham/uhd/patches/patch-examples_rfnoc-example_cmake_Modules_run__testbench.sh.in |  35 ++++++++++
 2 files changed, 37 insertions(+), 1 deletions(-)

diffs (56 lines):

diff -r 0be5d0b1cf29 -r f6e97d378879 ham/uhd/distinfo
--- a/ham/uhd/distinfo  Fri Sep 23 09:59:55 2022 +0000
+++ b/ham/uhd/distinfo  Fri Sep 23 10:01:03 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.32 2022/04/12 20:10:46 tnn Exp $
+$NetBSD: distinfo,v 1.33 2022/09/23 10:01:03 wiz Exp $
 
 BLAKE2s (uhd-4.1.0.5.tar.gz) = f172a3e30a7e6b81cf79ead0b7a7bb2f34ea55777b94152c2fec267b2f68586a
 SHA512 (uhd-4.1.0.5.tar.gz) = 4929ebc8a12bcc0acfe4a64ceafe17387420e2f056e7bb7284a8d7b60d14aba05484b3c033ce63b00c6d9115f570b056df4e2b36e11a2b25079a8c34b1d084af
@@ -6,6 +6,7 @@
 SHA1 (patch-CMakeLists.txt) = 16cc883a0bffdb6c3a4733dda7060bd206928d68
 SHA1 (patch-examples_getopt_getopt.c) = f9c7297cb1dcc9438baed9dcdaf0f52b83297e01
 SHA1 (patch-examples_getopt_getopt.h) = 7f01c9385644dbf2b61dfd8bebac8016b46000c5
+SHA1 (patch-examples_rfnoc-example_cmake_Modules_run__testbench.sh.in) = f3c5c350abc82e0821eff45f00f4d1a0a1c7472b
 SHA1 (patch-lib_rfnoc_vector__iir__block__control.cpp) = d0bc32f888a6cfc30f1eb57d7f2d71bb86cdc284
 SHA1 (patch-lib_transport_nirio_lvbitx_process-lvbitx.py) = 5117c7593c4e92ed6bfb86388cc366c41a1dead7
 SHA1 (patch-lib_usrp_common_lmx2592.cpp) = 2828dcf989f1fc43c70e10b8de1e34485066842d
diff -r 0be5d0b1cf29 -r f6e97d378879 ham/uhd/patches/patch-examples_rfnoc-example_cmake_Modules_run__testbench.sh.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/ham/uhd/patches/patch-examples_rfnoc-example_cmake_Modules_run__testbench.sh.in   Fri Sep 23 10:01:03 2022 +0000
@@ -0,0 +1,35 @@
+$NetBSD: patch-examples_rfnoc-example_cmake_Modules_run__testbench.sh.in,v 1.1 2022/09/23 10:01:03 wiz Exp $
+
+Fix unportable test(1) operator.
+
+--- examples/rfnoc-example/cmake/Modules/run_testbench.sh.in.orig      2021-12-14 18:37:20.000000000 +0000
++++ examples/rfnoc-example/cmake/Modules/run_testbench.sh.in
+@@ -24,22 +24,22 @@ shift
+ 
+ # Need to convert device types to directory names
+ device_dir=$test_device
+-if [ $device_dir == "x310" ]; then
++if [ $device_dir = "x310" ]; then
+       device_dir=x300
+ fi
+-if [ $device_dir == "n300" ]; then
++if [ $device_dir = "n300" ]; then
+       device_dir=n3xx
+ fi
+-if [ $device_dir == "n310" ]; then
++if [ $device_dir = "n310" ]; then
+       device_dir=n3xx
+ fi
+-if [ $device_dir == "n320" ]; then
++if [ $device_dir = "n320" ]; then
+       device_dir=n3xx
+ fi
+-if [ $device_dir == "e310" ]; then
++if [ $device_dir = "e310" ]; then
+       device_dir=e31x
+ fi
+-if [ $device_dir == "x410" ]; then
++if [ $device_dir = "x410" ]; then
+       device_dir=x400
+ fi
+ 



Home | Main Index | Thread Index | Old Index