forked from pool/bladeRF
Compare commits
5 Commits
Author | SHA256 | Date | |
---|---|---|---|
7085041202 | |||
|
ca98ccf711 | ||
7efda79cb4 | |||
|
134cee3334 | ||
|
a399cc1aff |
@@ -1,3 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 20 23:53:09 UTC 2025 - Shawn Dunn <sfalken@opensuse.org>
|
||||||
|
|
||||||
|
- Add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to fix FTBFS with cmake4
|
||||||
|
- Added %check section
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Nov 2 19:56:06 UTC 2024 - Martin Hauke <mardnh@gmx.de>
|
||||||
|
|
||||||
|
- Add patch:
|
||||||
|
* gcc14-fix-calloc-arg-order.patch
|
||||||
|
https://github.com/Nuand/bladeRF/commit/b55af91f6b0ccb9afd09dcd3a42b9110c7e5be6f
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Apr 8 15:39:13 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
|
Mon Apr 8 15:39:13 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>
|
||||||
|
|
||||||
|
11
bladeRF.spec
11
bladeRF.spec
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package bladeRF
|
# spec file for package bladeRF
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
# Copyright (c) 2013-2015 Wojciech Kazubski, wk@ire.pw.edu.pl
|
# Copyright (c) 2013-2015 Wojciech Kazubski, wk@ire.pw.edu.pl
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@@ -34,7 +34,8 @@ URL: https://nuand.com/
|
|||||||
Source0: https://github.com/Nuand/bladeRF/archive/%{release_name}.tar.gz#/%{name}-%{release_name}.tar.xz
|
Source0: https://github.com/Nuand/bladeRF/archive/%{release_name}.tar.gz#/%{name}-%{release_name}.tar.xz
|
||||||
Source1: ad9361.tar.xz
|
Source1: ad9361.tar.xz
|
||||||
Patch0: bladeRF-doxygen-no-timestamp.patch
|
Patch0: bladeRF-doxygen-no-timestamp.patch
|
||||||
BuildRequires: cmake >= 2.8.4
|
Patch1: gcc14-fix-calloc-arg-order.patch
|
||||||
|
BuildRequires: cmake >= 3.5
|
||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
@@ -103,13 +104,17 @@ cd host
|
|||||||
-DENABLE_LIBBLADERF_SYSLOG=ON \
|
-DENABLE_LIBBLADERF_SYSLOG=ON \
|
||||||
%endif
|
%endif
|
||||||
-DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/lib%{name} \
|
-DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/lib%{name} \
|
||||||
-DBUILD_DOCUMENTATION=ON
|
-DBUILD_DOCUMENTATION=ON \
|
||||||
|
-DCMAKE_POLICY_VERSION_MINIMUM=3.5
|
||||||
%cmake_build
|
%cmake_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd host
|
cd host
|
||||||
%cmake_install
|
%cmake_install
|
||||||
|
|
||||||
|
%check
|
||||||
|
%ctest
|
||||||
|
|
||||||
%post -n %{libname} -p /sbin/ldconfig
|
%post -n %{libname} -p /sbin/ldconfig
|
||||||
%postun -n %{libname} -p /sbin/ldconfig
|
%postun -n %{libname} -p /sbin/ldconfig
|
||||||
|
|
||||||
|
26
gcc14-fix-calloc-arg-order.patch
Normal file
26
gcc14-fix-calloc-arg-order.patch
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
Source: https://github.com/Nuand/bladeRF/commit/b55af91f6b0ccb9afd09dcd3a42b9110c7e5be6f
|
||||||
|
|
||||||
|
--- bladeRF-2023.02-origin/host/utilities/bladeRF-fsk/c/src/fir_filter.c
|
||||||
|
+++ bladeRF-2023.02/host/utilities/bladeRF-fsk/c/src/fir_filter.c
|
||||||
|
@@ -213,18 +213,18 @@
|
||||||
|
return EXIT_FAILURE;
|
||||||
|
}
|
||||||
|
|
||||||
|
- inbuf = calloc(2*sizeof(int16_t), chunk_size);
|
||||||
|
+ inbuf = calloc(chunk_size, 2*sizeof(int16_t));
|
||||||
|
if (!inbuf) {
|
||||||
|
perror("calloc");
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
- tempbuf = calloc(2*sizeof(int16_t), chunk_size);
|
||||||
|
+ tempbuf = calloc(chunk_size, 2*sizeof(int16_t));
|
||||||
|
if (!tempbuf) {
|
||||||
|
perror("calloc");
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
|
- outbuf = calloc(sizeof(struct complex_sample), chunk_size);
|
||||||
|
+ outbuf = calloc(chunk_size, sizeof(struct complex_sample));
|
||||||
|
if (!outbuf) {
|
||||||
|
perror("calloc");
|
||||||
|
goto out;
|
Reference in New Issue
Block a user