276.1. gnuradio-3.10.12.0
Signal-processing blocks for software radio, and GNU Radio Companion to wire them into flow graphs
The build-state snapshot was taken from 3.10.12.0-4; this recipe is 3.10.12.0-5, so the size, time and contents below describe the earlier build.
| Version | 3.10.12.0, release 5 |
| Shelf | sdr — SDR DSP libraries, GNU Radio and its blocks, receivers, decoders and signal analysis |
| Phase | 43_toolkits (Toolkits), 313 of 344 in build order |
| Licence | GPL-3.0-or-later |
| Homepage | https://www.gnuradio.org/ |
| Build time | 17.7 SBU |
| Installed size | 50.4 MiB in 2837 files |
| Recipe | ports/core/sdr/gnuradio/kpkgbuild |
About
GNU Radio is a library of signal-processing blocks for software-defined radio, with Python bindings for every block and GNU Radio Companion (gnuradio-companion, GRC), a graphical editor that wires blocks into a flow graph and generates the Python program that runs it. In KDOS it is the base the other GNU Radio ports build on, gr-osmosdr among them, and it reaches radio hardware through SoapySDR, UHD and libiio.
Sources
gnuradio-3.10.12.0.tar.gz(4.7 MiB)
sha256fe78ad9f74c8ebf93d5c8ad6fa2c13236af330f3c67149d91a0647b3dc6f3958
upstream: https://github.com/gnuradio/gnuradio/archive/refs/tags/v3.10.12.0.tar.gz
archive copy: sources-4/sdr--gnuradio-3.10.12.0.tar.gz
Dependencies
Depends on: cmake, ninja, pkgconf, xmlto, docbook-xml, docbook-xsl, python3, python3-packaging, python3-pybind11, python3-mako, python3-yaml, python3-click, python3-gobject, python3-cairo, numpy, scipy, boost, gmp, spdlog, fmt, libvolk, fftw, gsl, libsndfile, alsa-lib, portaudio, soapysdr, uhd, libiio, libad9361, zeromq, cppzmq, thrift, gsm, codec2, libunwind-nongnu, gtk3, pango, gobject-introspection, python3-jsonschema, qt5-qtbase, qt5-qtsvg, qt5-qtwayland, qwt-qt5, python3-pyqt5, python3-pyqtgraph, python3-networkx, castxml, python3-pygccxml, konsole.
Required by (4): gqrx, gr-funcube, gr-iqbal, gr-osmosdr.
Installation
From the repository root, inside the build container, this is the line kdosbuild runs for the port:
script/chroot/exec.sh bash -c 'source script/phases/43_toolkits/phase.env && kpkg install gnuradio'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/sdr/gnuradio.
1. Verify every declared source. Each file a sha256 = line names, found in the port directory or in /var/cache/kpkg/sources, must hash to its line; a mismatch stops the build before anything is unpacked.
cd /ports/core/sdr/gnuradio
echo 'fe78ad9f74c8ebf93d5c8ad6fa2c13236af330f3c67149d91a0647b3dc6f3958 gnuradio-3.10.12.0.tar.gz' | sha256sum -c -
2. Unpack. The work directory is emptied and the first source is unpacked into $SRC with its top directory stripped; any later tarball lands unstripped beside it in $SRC_ROOT, and a file that is not a tarball is copied into $SRC.
SRC_ROOT=/var/cache/kpkg/work/gnuradio
SRC=$SRC_ROOT/gnuradio-3.10.12.0
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf gnuradio-3.10.12.0.tar.gz -C "$SRC" --strip-components=1
Every config.guess and config.sub older than automake’s is then replaced with automake’s, so a configure script recognises the musl target.
3. Build. build.sh is sourced in a subshell under set -e, from $SRC, with name, version, release and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:
_pyinc=$(python3 -c 'import sysconfig; print(sysconfig.get_path("include"))')
_pylib=$(python3 -c 'import sysconfig; print(sysconfig.get_config_var("LIBDIR") + "/" + sysconfig.get_config_var("LDLIBRARY"))')
cmake -B build -G Ninja \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
-DCMAKE_POLICY_DEFAULT_CMP0167=NEW \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DPYTHON_EXECUTABLE=/usr/bin/python3 \
-DPYTHON_INCLUDE_DIR="$_pyinc" \
-DPYTHON_LIBRARY="$_pylib" \
-Dpybind11_DIR="$(python3 -m pybind11 --cmakedir)" \
-DENABLE_DEFAULT=OFF \
-DENABLE_TESTING=OFF \
-DENABLE_EXAMPLES=ON \
-DENABLE_NATIVE=OFF \
-DENABLE_PYTHON=ON \
-DENABLE_POSTINSTALL=OFF \
-DENABLE_DOXYGEN=OFF \
-DENABLE_MANPAGES=ON \
-DENABLE_GNURADIO_RUNTIME=ON \
-DENABLE_COMMON_PCH=OFF \
-DENABLE_GR_CTRLPORT=ON \
-DENABLE_CTRLPORT_THRIFT=ON \
-DENABLE_GRC=ON \
-DGRC_XTERM_EXE=/usr/bin/konsole \
-DENABLE_JSONYAML_BLOCKS=ON \
-DENABLE_GR_BLOCKS=ON \
-DENABLE_GR_FEC=ON \
-DENABLE_GR_FFT=ON \
-DENABLE_GR_FILTER=ON \
-DENABLE_GR_ANALOG=ON \
-DENABLE_GR_DIGITAL=ON \
-DENABLE_GR_DTV=ON \
-DENABLE_GR_AUDIO=ON \
-DENABLE_GR_CHANNELS=ON \
-DENABLE_GR_PDU=ON \
-DENABLE_GR_TRELLIS=ON \
-DENABLE_GR_UTILS=ON \
-DENABLE_GR_MODTOOL=ON \
-DENABLE_GR_BLOCKTOOL=ON \
-DENABLE_GR_VOCODER=ON \
-DENABLE_GR_WAVELET=ON \
-DENABLE_GR_NETWORK=ON \
-DENABLE_GR_SOAPY=ON \
-DENABLE_GR_QTGUI=ON \
-DENABLE_GR_UHD=ON \
-DENABLE_UHD_RFNOC=ON \
-DENABLE_GR_IIO=ON \
-DENABLE_GR_ZEROMQ=ON \
-DENABLE_GR_VIDEO_SDL=OFF \
-DCMAKE_DISABLE_FIND_PACKAGE_JACK=ON \
-DCMAKE_DISABLE_FIND_PACKAGE_OSS=ON \
-Wno-dev
ninja -C build
DESTDIR=$PKG ninja -C build install
for m in "$PKG"/usr/share/man/man1/*.1; do
[ -e "$PKG/usr/bin/$(basename "$m" .1)" ] || rm -f "$m"
done
_fd=grc/scripts/freedesktop
install -Dm644 $_fd/gnuradio-grc.desktop \
"$PKG/usr/share/applications/gnuradio-grc.desktop"
install -Dm644 $_fd/gnuradio-grc.xml \
"$PKG/usr/share/mime/packages/gnuradio-grc.xml"
install -Dm644 $_fd/org.gnuradio.grc.metainfo.xml \
"$PKG/usr/share/metainfo/org.gnuradio.grc.metainfo.xml"
for s in 16 24 32 48 64 128 256; do
install -Dm644 $_fd/grc-icon-$s.png \
"$PKG/usr/share/icons/hicolor/${s}x${s}/apps/gnuradio-grc.png"
install -Dm644 $_fd/grc-icon-$s.png \
"$PKG/usr/share/icons/hicolor/${s}x${s}/mimetypes/application-gnuradio-grc.png"
done
_site=$(python3 -c 'import sysconfig; print(sysconfig.get_path("purelib"))')
install -d "$PKG$_site"
printf 'from PyQt5.sip import *\n' > "$PKG$_site/sip.py"
chmod 644 "$PKG$_site/sip.py"
test -x "$PKG/usr/bin/gnuradio-companion"
grep -qx 'xterm_executable = /usr/bin/konsole' "$PKG/etc/gnuradio/conf.d/grc.conf"
test -n "$(find "$PKG"/usr/lib/python3*/site-packages/gnuradio/gr -name '*.so' | head -1)"
test -n "$(find "$PKG"/usr/lib/python3*/site-packages/gnuradio/qtgui -name '*.so' | head -1)"
The switches, and why each is set:
-DENABLE_DEFAULT=OFF— start with every component off, so that only the components the recipe names are built. Upstream’s default turns on every component whose dependencies configure finds. A component namedONwhose dependency is missing stops configure (“user force-enabled …”), so a missing dependency fails the build instead of producing a smaller GNU Radio.-DENABLE_GR_QTGUI=ON— and the otherENABLE_GR_*components afterENABLE_GNURADIO_RUNTIME: each block library by name. gr-qtgui is the Qt 5 widget set (qt5-qtbase, qwt-qt5, python3-pyqt5); GRC itself is a GTK 3 program. gr-uhd reaches Ettus radios, gr-iio the Analog Devices ones through libad9361, gr-soapy everything SoapySDR drives, gr-zeromq sends streams and messages over ZeroMQ, and gr-vocoder builds the codec2, FreeDV and GSM 06.10 blocks.-DENABLE_UHD_RFNOC=ON— build gr-uhd’s RFNoC blocks, which need UHD 4.0 or later.-DENABLE_GR_VIDEO_SDL=OFF— leave out gr-video-sdl, the video sink written to the SDL 1.2 API.-DENABLE_GR_CTRLPORT=ON— with-DENABLE_CTRLPORT_THRIFT=ON: ControlPort, the interface through which a running flow graph’s parameters are read and set from outside it, carried over thrift. The ControlPort clients import Thrift’s Python module.-DENABLE_JSONYAML_BLOCKS=ON— the JSON and YAML configuration blocks, which validate their input with python3-jsonschema; configure turns the component on only whenimport jsonschemasucceeds.-DGRC_XTERM_EXE=/usr/bin/konsole— the terminal GRC runs a flow graph with no graphical interface in, written into/etc/gnuradio/conf.d/grc.confasxterm_executable. Left to configure, it is the first ofx-terminal-emulator,gnome-terminal,konsoleand the rest found on the build’sPATH, or the namex-terminal-emulatorwhen none is, a command KDOS does not have. Konsole takes the-eGRC passes, and is independs.-DCMAKE_DISABLE_FIND_PACKAGE_JACK=ON— with-DCMAKE_DISABLE_FIND_PACKAGE_OSS=ON: gr-audio never looks for JACK or OSS, so its backends are ALSA and PortAudio, both carried to PipeWire, and do not change with whatever the build root holds.-DENABLE_POSTINSTALL=OFF— skip the install step that runsxdg-utilsto register the desktop entry, icons and MIME type on the machine doing the build.build.shinstalls those files itself.-DENABLE_MANPAGES=ON— with-DENABLE_DOXYGEN=OFF: the manual pages, which configure fills in from the.1.intemplates indocs/man, and no Doxygen HTML reference.-DENABLE_NATIVE=OFF— no-march=native, which would tie the libraries to the build machine’s processor. Upstream’s default, named (see-marchmeasured per machine).-DENABLE_COMMON_PCH=OFF— build without the shared precompiled-header library the block libraries can be compiled against.-DENABLE_EXAMPLES=ON— install the example flow graphs, which GRC’sexamples_pathpoints at. Upstream’s default, named.-DCMAKE_POLICY_DEFAULT_CMP0167=NEW— makefind_package(Boost)read Boost’s own CMake package. The oldFindBoostmodule looks for alibboost_systemlibrary, and Boost.System is header-only.-DPYTHON_INCLUDE_DIR— with-DPYTHON_LIBRARY: Python’s header directory and shared library, assysconfigreports them for/usr/bin/python3.GrPython.cmakecallsfind_package(PythonLibs … EXACT)for the interpreter’s version, and with both cache variables set CMake’sFindPythonLibstakes these paths instead of searching for them.-Dpybind11_DIR— the CMake package directory of python3-pybind11, aspython3 -m pybind11 --cmakedirprints it; the Python bindings are built with it.
The common switches of each build system are explained in the Flag glossary.
4. Package. kpkg removes libtool archives, the info directory index, mimeinfo.cache and every fonts.dir from $PKG, copies the source’s licence files into /usr/share/licenses/gnuradio, prunes what the image does not ship, lints the tree and rolls it reproducibly:
tar --sort=name --format=gnu --numeric-owner --owner=0 --group=0 \
--mtime=@$SOURCE_DATE_EPOCH \
--use-compress-program='xz -9 -T0 --block-size=32MiB --no-adjust' \
-cf gnuradio-3.10.12.0-5.tar.xz -C "$PKG" .
5. Adopt. kpkgadd installs the package’s files over the root, refusing a path another package owns, records the file list in /var/lib/kpkg/db/gnuradio, and runs the triggers its paths call for.
Contents
Installed programs: gnuradio-companion, gnuradio-config-info, gr-ctrlport-monitor, gr-perf-monitorx, gr_filter_design, gr_modtool, gr_plot, gr_plot_const, gr_plot_fft, gr_plot_iq, gr_plot_psd, gr_plot_qt, gr_read_file_metadata, grcc, polar_channel_construction, uhd_fft, uhd_rx_cfile, uhd_rx_nogui, uhd_siggen, uhd_siggen_gui.
Installed libraries: libgnuradio-analog.so, libgnuradio-audio.so, libgnuradio-blocks.so, libgnuradio-channels.so, libgnuradio-digital.so, libgnuradio-dtv.so, libgnuradio-fec.so, libgnuradio-fft.so, libgnuradio-filter.so, libgnuradio-iio.so, libgnuradio-network.so, libgnuradio-pdu.so, libgnuradio-pmt.so, libgnuradio-qtgui.so, libgnuradio-runtime.so, libgnuradio-soapy.so, libgnuradio-trellis.so, libgnuradio-uhd.so, libgnuradio-vocoder.so, libgnuradio-wavelet.so, libgnuradio-zeromq.so.
Installed directories: /etc/gnuradio, /usr/include/gnuradio/analog, /usr/include/gnuradio/audio, /usr/include/gnuradio/blocks, /usr/include/gnuradio/channels, /usr/include/gnuradio/digital, /usr/include/gnuradio/dtv, /usr/include/gnuradio/fec, /usr/include/gnuradio/fft, /usr/include/gnuradio/filter, /usr/include/gnuradio/iio, /usr/include/gnuradio/messages, /usr/include/gnuradio/network, /usr/include/gnuradio/pdu, /usr/include/gnuradio/qtgui, /usr/include/gnuradio/soapy, /usr/include/gnuradio/thread, /usr/include/gnuradio/trellis, /usr/include/gnuradio/uhd, /usr/include/gnuradio/vocoder, /usr/include/gnuradio/wavelet, /usr/include/gnuradio/zeromq, /usr/include/pmt, /usr/lib/python3.14/site-packages/gnuradio/__pycache__, /usr/lib/python3.14/site-packages/gnuradio/analog, /usr/lib/python3.14/site-packages/gnuradio/audio, /usr/lib/python3.14/site-packages/gnuradio/bindtool, /usr/lib/python3.14/site-packages/gnuradio/blocks, /usr/lib/python3.14/site-packages/gnuradio/blocktool, /usr/lib/python3.14/site-packages/gnuradio/channels, /usr/lib/python3.14/site-packages/gnuradio/ctrlport, /usr/lib/python3.14/site-packages/gnuradio/digital, /usr/lib/python3.14/site-packages/gnuradio/dtv, /usr/lib/python3.14/site-packages/gnuradio/fec, /usr/lib/python3.14/site-packages/gnuradio/fft, /usr/lib/python3.14/site-packages/gnuradio/filter, /usr/lib/python3.14/site-packages/gnuradio/gr, /usr/lib/python3.14/site-packages/gnuradio/grc, /usr/lib/python3.14/site-packages/gnuradio/iio, /usr/lib/python3.14/site-packages/gnuradio/modtool, /usr/lib/python3.14/site-packages/gnuradio/network, /usr/lib/python3.14/site-packages/gnuradio/pdu, /usr/lib/python3.14/site-packages/gnuradio/qtgui, /usr/lib/python3.14/site-packages/gnuradio/soapy, /usr/lib/python3.14/site-packages/gnuradio/trellis, /usr/lib/python3.14/site-packages/gnuradio/uhd, /usr/lib/python3.14/site-packages/gnuradio/vocoder, /usr/lib/python3.14/site-packages/gnuradio/wavelet, /usr/lib/python3.14/site-packages/gnuradio/zeromq, /usr/lib/python3.14/site-packages/pmt, /usr/share/doc/gnuradio-3.10.12.0, /usr/share/gnuradio/__pycache__, /usr/share/gnuradio/examples, /usr/share/gnuradio/fec, /usr/share/gnuradio/modtool, /usr/share/gnuradio/themes, /usr/share/licenses/gnuradio.
Short descriptions
gnuradio-companion |
GNU Radio Companion (GRC) is a graphical tool for creating GNU Radio signal flowgraphs. |
gnuradio-config-info |
show details on installed GNU radio |
gr-ctrlport-monitor |
gnuradio control port gui |
gr_filter_design |
GUI for creating filters for GNU Radio |
gr_modtool |
The swiss army knife of module editing |
gr_plot_const |
constellation plot of I&Q data using GNU Radio |
gr_plot_fft |
Frequency domain GNU Radio plotting |
gr_plot_iq |
plot complex binary I&Q data versus time using GNU Radio |
gr_plot_psd |
GNU Radio power spectrum plotting |
gr_plot_qt |
plot data using Qt graphics and GNU Radio |
gr_read_file_metadata |
a Gnu Radio Utility |
grcc |
Gnu Radio Companion Compiler |
polar_channel_construction |
Gnu Radio Polar Configurator |
uhd_fft |
Display spectrum from UHD receiver |
uhd_rx_cfile |
Save UHD received data |
uhd_rx_nogui |
GNU Radio receiver |
uhd_siggen |
Signal Generator using UHD hardware |
uhd_siggen_gui |
GNU Radio signal generator using UHD hardware |
gnuradio-analog.pc |
GNU Radio blocks for analog communications |
gnuradio-audio.pc |
The GNU Radio block for all supported audio sound systems |
gnuradio-blocks.pc |
GNU Radio basic block library |
gnuradio-channels.pc |
GNU Radio's channel model blocks |
gnuradio-digital.pc |
GNU Radio blocks for digital communications |
gnuradio-dtv.pc |
GNU Radio's digital TV signal processing blocks |
gnuradio-fec.pc |
GNU Radio's FEC signal processing blocks |
gnuradio-fft.pc |
GNU Radio's FFT signal processing blocks |
gnuradio-filter.pc |
GNU Radio's filter signal processing blocks |
gnuradio-iio.pc |
GNU Radio blocks for IIO devices |
gnuradio-network.pc |
GNU Radio network block library |
gnuradio-pdu.pc |
GNU Radio blocks for PDU based processing |
gnuradio-qtgui.pc |
GNU Radio blocks for QT GUI |
gnuradio-runtime.pc |
GNU Radio core runtime infrastructure |
gnuradio-soapy.pc |
GNU Radio blocks for SoapySDR |
gnuradio-trellis.pc |
GNU Radio blocks for trellis-based processing |
gnuradio-uhd.pc |
GNU Radio blocks for UHD |
gnuradio-vocoder.pc |
GNU Radio blocks implementing voice codecs |
gnuradio-wavelet.pc |
Wavelet signal processing blocks for GNU Radio |
gnuradio-zeromq.pc |
GNU Radio blocks to interface with ZeroMQ |
Notes
docs/man installs one fixed list of manual pages whichever components are built, so build.sh removes each page whose command is not in the package.
With the post-install step off, the desktop entry, the .grc MIME type, the AppStream file and the icons are copied from grc/scripts/freedesktop by build.sh, and kpkg rebuilds the MIME database on the installed system. GRC’s window’s app_id is the script’s name, gnuradio-companion, which the entry’s StartupWMClass names.
gr-qtgui’s auto-correlator sink, ControlPort’s plotter and the code GRC generates for a flow graph with a Qt sink each run import sip, a top-level module. PyQt5 carries it only as PyQt5.sip, and no port installs a top-level sip module, so build.sh writes a one-line sip.py into site-packages that re-exports PyQt5.sip. Without it such a flow graph stops at its imports.
The last lines of build.sh stop the build when gnuradio-companion, the konsole line in grc.conf, or the compiled Python modules of gnuradio.gr and gnuradio.qtgui are missing from the package.
runtime = python3-mako: GRC renders every block’s generated code from Mako templates, and grc/core/blocks/_templates.py imports mako when gnuradio-companion starts. The import sits in a submodule, which the run-time needs record does not read, and python3-mako is a build-only port, so without the runtime = word a prebuilt install would leave it out and GRC would stop at start with No module named 'mako'.