void-linux / void-packages

The Void source packages collection
https://voidlinux.org
Other
2.59k stars 2.16k forks source link

Package request: SDR++ #38200

Closed BT-Justice closed 1 year ago

BT-Justice commented 2 years ago

Package name

sdr++

Package homepage

https://github.com/AlexandreRouma/SDRPlusPlus

Description

SDR++, The bloat-free SDR software.

Does the requested package meet the quality requirements?

System

Is the requested package released?

Yes

classabbyamp commented 2 years ago

would you mind testing #38202? I don't have any airspy hardware but I tested it briefly with another sdr.

Steps:

git clone https://github.com/void-linux/void-packages.git
cd void-packages
git fetch origin pull/38202/head:SDRPlusPlus
git checkout SDRPlusPlus
./xbps-src binary-bootstrap
./xbps-src pkg SDRPlusPlus
xi SDRPlusPlus
BT-Justice commented 2 years ago

I am able to do all the steps except for the very last one:

$ xi SDRPlusPlus
bash: xi: command not found
$ sudo xbps-install xi
Package 'xi' not found in repository pool.
classabbyamp commented 2 years ago

ah install xtools for that

BT-Justice commented 2 years ago

Do you need any output logs such as from ./xbps-src pkg SDRPlusPlus?

classabbyamp commented 2 years ago

nope, just whether the software works (especially the airspyhf package, because you have that hardware)

BT-Justice commented 2 years ago

Thank you very much for adding both SDR++ and Airspy HF+ to Void :+1:

SDRPlusPlus is working perfectly fine after a reboot.

airshyhf is working, but it appears to be missing airspyhf_info which is a program that tells the user information about the AirSpy unit. The current airspy package for Void has this as airspy_info (I have one Airspy unit and one Airspy HF+ unit):

$ airspy_info
airspy_lib_version: 1.0.10

Found AirSpy board 1
Board ID Number: 0 (AIRSPY)
Firmware Version: AirSpy MINI v1.0.0-rc10-6-g4008185 2020-05-08
Part ID Number: 0x6906002B 0x00000030
Serial Number: REMOVED FROM THIS POST
Supported sample rates:
        6.000000 MSPS
        3.000000 MSPS
Close board 1

$ airspyhf_info
bash: airspyhf_info: command not found

Here is airspy_info and airspyhf_info from my Fedora 36 KDE Spin desktop:

$ airspy_info
airspy_lib_version: 1.0.10

Found AirSpy board 1
Board ID Number: 0 (AIRSPY)
Firmware Version: AirSpy MINI v1.0.0-rc10-6-g4008185 2020-05-08
Part ID Number: 0x6906002B 0x00000030
Serial Number: REMOVED FROM THIS POST
Supported sample rates:
        6.000000 MSPS
        3.000000 MSPS
Close board 1

$ airspyhf_info
AirSpy HF library version: 1.6.8

S/N: REMOVED FROM THIS POST
Part ID: 0x00000002
Firmware Version: R3.0.7-CD
Available sample rates: 912 kS/s 768 kS/s 456 kS/s 384 kS/s 256 kS/s 192 kS/s

For clarification, airspy_info is part of the airspy package and airspyhf_info is part of the airspyhf package.

classabbyamp commented 2 years ago

airspyhf_info is part of the airspyhf package in that PR. If you just installed sdr++, you probably only got libairspyhf installed.

$ xls airspyhf
/usr/bin/airspyhf_calibrate
/usr/bin/airspyhf_gpio
/usr/bin/airspyhf_info
/usr/bin/airspyhf_lib_version
/usr/bin/airspyhf_rx
BT-Justice commented 2 years ago

I'm not sure how to get the airspyhf package:

$ xls airspyhf
$ cd void-packages
[void-packages]$ git fetch origin pull/38202/head:airspyhf
fatal: unable to access 'https://github.com/void-linux/void-packages.git/': Could not resolve host: github.com
[void-packages]$ git fetch origin pull/38202/head:airspyhf
fatal: bad object refs/heads/airspyhf
error: https://github.com/void-linux/void-packages.git did not send all necessary objects

I'll keep trying--assuming it is a GitHub issue.

classabbyamp commented 2 years ago

it's on the same branch as the sdrplusplus PR, just check out the SDRPlusPlus branch again and use xi (or install manually with xbps-install --repository=hostdir/binpkgs/SDRPlusPlus airspyhf, that's what xi is doing behind the scenes)

BT-Justice commented 2 years ago
$ cd void-packages
[void-packages]$ git checkout airspyhf
warning: ignoring broken ref refs/heads/airspyhf
error: pathspec 'airspyhf' did not match any file(s) known to git
[void-packages]$ sudo xbps-install airspyhf --repository=hostdir/binpkgs/SDRPlusPlus airspyhf

Name     Action    Version           New version            Download size
airspyhf install   -                 1.6.8_1                - 

Size required on disk:          79KB
Space available on disk:        94GB

Do you want to continue? [Y/n] y

[*] Verifying package integrity
airspyhf-1.6.8_1: verifying SHA256 hash...

[*] Collecting package files
airspyhf-1.6.8_1: collecting files...

[*] Unpacking packages
airspyhf-1.6.8_1: unpacking ...

[*] Configuring unpacked packages
airspyhf-1.6.8_1: configuring ...
airspyhf-1.6.8_1: installed successfully.

0 downloaded, 1 installed, 0 updated, 1 configured, 0 removed.
[void-packages]$ airspyhf_info
AirSpy HF library version: 1.6.8

S/N: REMOVED FROM THIS POST
Part ID: 0x00000002
Firmware Version: R3.0.7-CD
Available sample rates: 912 kS/s 768 kS/s 456 kS/s 384 kS/s 256 kS/s 192 kS/s

There we go! Thanks!

BT-Justice commented 2 years ago

Everything working fine. Thanks again!