Debian Patches

Status for rtl-sdr/0.6.0-4

Patch Description Author Forwarded Bugs Origin Last update
0013-lib-enable-better-UHF-reception-862MHz-for-FC0013.patch [PATCH 13/33] lib: enable better UHF reception (>862MHz) for FC0013 Benjamin Larsson <banan@ludd.ltu.se> no 2020-02-17
0002-lib-Add-workaround-for-Linux-usbfs-mmap-bug.patch [PATCH 02/33] lib: Add workaround for Linux usbfs mmap() bug
The Linux Kernel has a bug on ARM/ARM64 systems where the USB CMA
memory is incorrectly mapped to userspace, breaking zerocopy.

When the Kernel allocates the memory, it clears it with memset().
If the mapping worked correctly, we should have zeroed out buffers,
if it doesn't, we get random Kernel memory. We now check for this,
and fall back to buffers in userspace if that's the case.
Steve Markgraf <steve@steve-m.de> no 2018-10-07
0003-contrib-jenkins.sh-run-make-maintainer-clean.patch [PATCH 03/33] contrib/jenkins.sh: run "make maintainer-clean" Oliver Smith <osmith@sysmocom.de> no 2019-07-11
0004-lib-fix-memory-leak-in-rtlsdr_open.patch [PATCH 04/33] lib: fix memory leak in rtlsdr_open()
Thanks to Vincent Perrier for reporting the bug.
Steve Markgraf <steve@steve-m.de> no 2019-07-16
0005-lib-disable-usbfs-zero-copy-support-by-default.patch [PATCH 05/33] lib: disable usbfs zero-copy support by default
Although we added a detection mechanism for the presence of the Kernel
bug earlier, reading from the incorrectly mapped memory might cause a
bus error on some ARM systems.

With the overall performance benefit being rather minimal for the
data rates of rtl-sdr, disable zero-copy by default.
Steve Markgraf <steve@steve-m.de> no 2019-07-16
0006-rtl_eeprom-fix-warnings.patch [PATCH 06/33] rtl_eeprom: fix warnings
Account for \0 string terminator when calling strncpy().

Fixes the following GCC 9 warning:
bound 256 equals destination size
Steve Markgraf <steve@steve-m.de> no 2019-11-01
0007-Fix-building-librtlsdr-on-OpenBSD.patch [PATCH 07/33] Fix building librtlsdr on OpenBSD
Gets rid of librt, which doesn't exist on OpenBSD. The version of
librtlsdr in the OpenBSD ports tree is extremely old (~2013), so this
should help some users.

Tested against tag 0.6.0, but it should apply just fine to HEAD.
Brian Waters <brian@brianmwaters.net> no 2019-11-11
0008-lib-Add-GPIO-version-of-the-bias-tee-configuration-A.patch [PATCH 08/33] lib: Add GPIO version of the bias tee configuration API
rtl_biast allows for non-default GPIO pins to be used.
Add an API call which allows for that.
Adrian Chadd <adrian@freebsd.org> no 2019-08-31
0009-rtl_biast-Add-rtl_biast.patch [PATCH 09/33] rtl_biast: Add rtl_biast
This is an import of the rtl_biast command line tool from the
rtlsdrblog github repository. It's easier to include it here than
try to package up the separate application because they both
wish to install dynamic libraries.
Adrian Chadd <adrian.chadd@oculus.com> no 2019-08-31
0010-allow-building-librtlsdr-as-CMake-subproject.patch [PATCH 10/33] allow building librtlsdr as CMake subproject
Replace CMAKE_SOURCE_DIR by PROJECT_SOURCE_DIR in main CMakeLists.txt
to fix CMake errors when building librtlsdr as a subproject.
leonsal <leonel.salvadori@gmail.com> no 2019-11-12
0011-Fixed-issues-compiling-on-Windows-with-MSVC-CMake-an.patch [PATCH 11/33] Fixed issues compiling on Windows with MSVC, CMake and NMake (#61)

When trying to build a simple program which uses librtlsdr
as a subproject on Windows, CMake reported several problems
which were solved by:
- Added complete name of libusb in FindLibUSB module.
- Replaced CMAKE_SOURCE_DIR to PROJECT_SOURCE_DIR in src/CMakeLists.txt.
- Replaced header file <afxres.h> in src/rtlsdr.rc.in (only present when windows MFC is
installed) by <windows.h> which defines the same constants.
leonsal <leonsal@users.noreply.github.com> no 2019-12-03
0012-set-CMake-policy-CMP0075-if-it-exists.patch [PATCH 12/33] set CMake policy CMP0075 if it exists
Otherwise newer versions of CMake are throwing a warning.
Steve Markgraf <steve@steve-m.de> no 2020-01-19
0014-Improve-librtlsdr.pc-file.patch [PATCH 14/33] Improve librtlsdr.pc file
librtlsdr.pc should declare -lusb-1.0 in Libs.private section
to exclude usb library from dynamic linking.
References to libusb headers are not needed in Cflags, since these
headers are not used by external rtlsdr API, but this is optional.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=784912
"A. Maitland Bottoms" <bottoms@debian.org> no 2016-05-08
0015-CMake-support-for-libusb-on-GNU-Hurd.patch [PATCH 15/33] CMake: support for libusb on GNU/Hurd
Debian builds on hurd-i386 with a variant of libusb.
"A. Maitland Bottoms" <bottoms@debian.org> no 2016-07-10
0016-rtl_fm-rtl_power-Improve-scanning-range-parsing.patch [PATCH 16/33] rtl_fm/rtl_power: Improve scanning range parsing "A. Maitland Bottoms" <bottoms@debian.org> no 2017-08-24
0017-Use-udev-uaccess-rules.patch [PATCH 17/33] Use udev uaccess rules "A. Maitland Bottoms" <bottoms@debian.org> no 2017-08-24
0018-rtl_tcp-Add-IPv6-support.patch [PATCH 18/33] rtl_tcp: Add IPv6 support
I've prepared this patch in response to Debian bug #870804
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=870804

It passes the text from the -a and -p options through
getaddrinfo() and uses the first result that has a valid
socket with a successful bind.

While not a complete bind to all possible valid names, it
does appear to address the use case of the bug submitter
without completely changing the program flow.
"A. Maitland Bottoms" <bottoms@debian.org> no 2017-09-03
0019-rtl_tcp-Initialize-listensocket.patch [PATCH 19/33] rtl_tcp: Initialize listensocket
Older versions of GCC will complain that it can be used
uninitialized - which is not the case, but it breaks our Jenkins
build as we build with -Werror.
Steve Markgraf <steve@steve-m.de> no 2020-02-26
0020-Modernize-CMake.patch [PATCH 20/33] Modernize CMake
New minimum version is CMake 3.7.2.

This patch has been rebased to incorporate changes that happened
since the creation of the original patch.

Original Author: A. Maitland Bottoms <bottoms@debian.org>, 07 Sep 2018
Steve Markgraf <steve@steve-m.de> no 2020-02-26
0022-Add-missing-rtlsdrConfig.cmake.patch [PATCH 22/33] Add missing rtlsdrConfig.cmake
This file was missing in commit
849f8efca42b659bf7e8fe17156ee0aa67b47233.
Steve Markgraf <steve@steve-m.de> no 2020-02-27
0023-Fix-for-CMake-3.12.0.patch [PATCH 23/33] Fix for CMake < 3.12.0
As several current LTS distributions currently ship with CMake
< 3.12.0, add a work-around for CMake Issue 16967.

Otherwise we get:
CMake Error at
/usr/share/cmake-3.7/Modules/CheckCXXSourceCompiles.cmake:64 (try_compile):
Unknown extension ".cxx" for file

/tmp/rtl-sdr/build/CMakeFiles/CMakeTmp/src.cxx

try_compile() works only for enabled languages. Currently these are:

C
Steve Markgraf <steve@steve-m.de> no 2020-03-02
0025-tuner_r82xx-fix-short-write-in-r82xx_read.patch [PATCH 25/33] tuner_r82xx: fix short-write in r82xx_read
In r82xx_read, there is a 1-byte I2C write followed by the I2C read. If
this I2C write fails, r82xx_read correctly bails out but may return 0.
Callers that check whether (rc < 0) will assume that the buffer was written
when it has not been, e.g. in r82xx_set_tv_standard where

priv->fil_cal_code = data[4] & 0x0f;

consumes a garbage value for data[4].

This change resolves that issue by copying the error path from r82xx_write.
Derrick Pallas <derrick@pallas.us> no 2020-03-18
0026-Add-rtl_biast-as-install-target.patch [PATCH 26/33] Add rtl_biast as install target
Thanks to https://github.com/erikarn for pointing this out.
Steve Markgraf <steve@steve-m.de> no 2020-06-06
0027-cmake-populate-pkgconfig-file-with-prefix.patch [PATCH 27/33] cmake: populate pkgconfig file with prefix
Previously the prefix and related paths were not set.
Eric Wild <ewild@sysmocom.de> no 2020-08-02
0028-fix-windows-build.patch [PATCH 28/33] fix windows build
We really should not have pkgconfig as a build requirement on windows.
Eric Wild <ewild@sysmocom.de> no 2020-11-01
0029-rtl_tcp-Extracted-some-constants-out-of-printf-strin.patch [PATCH 29/33] rtl_tcp: Extracted some constants out of printf strings
The help output contained constants that should print values
based on code constants and not be hardcoded into the print strings.
David Neiss <davidaneiss@gmail.com> no 2021-08-17
0030-rtl_tcp-put-new-DEFAULT_-constants-in-defines.patch [PATCH 30/33] rtl_tcp: put new DEFAULT_* constants in defines
Fix failures with some GCC versions:
/usr/src/packages/BUILD/src/rtl_tcp.c:90:24: error: initializer element is not constant
static int llbuf_num = DEFAULT_MAX_NUM_BUFFERS;
Oliver Smith <osmith@sysmocom.de> no 2021-08-18
0031-rtl_fm-add-a-new-option-to-select-2nd-direct-samplin.patch [PATCH 31/33] rtl_fm: add a new option to select 2nd direct sampling mode Doug Hammond <doug@lon.dev> no 2021-07-29
0032-Fix-minGW-build.patch [PATCH 32/33] Fix minGW build
MinGW-w64 ships all Windows SDK headers as lowercase, which prevents
cross-compiling this code from Linux.
Martin Hauke <mardnh@gmx.de> no 2021-09-11
0033-lib-force-wait-state-after-cancel-of-usb-transfer.patch [PATCH 33/33] lib: force wait state after cancel of usb transfer
..and before handling usb events

This avoids an occasional crash when closing the device on Windows.
Also see https://github.com/libusb/libusb/issues/1043.
"jvde.github" <jvde.github@gmail.com> no 2022-01-08
remove-old-libusb-workaround To solve this problem, I've simply removed the workaround, as it should
no longer be needed.
Clayton Smith <argilo@gmail.com> no

All known versions for source package 'rtl-sdr'

Links