[arch-commits] Commit in soapysdr/repos (3 files)
Felix Yan
felixonmars at gemini.archlinux.org
Tue Nov 30 21:43:35 UTC 2021
Date: Tuesday, November 30, 2021 @ 21:43:35
Author: felixonmars
Revision: 1058975
archrelease: copy trunk to community-staging-x86_64
Added:
soapysdr/repos/community-staging-x86_64/
soapysdr/repos/community-staging-x86_64/PKGBUILD
(from rev 1058971, soapysdr/trunk/PKGBUILD)
soapysdr/repos/community-staging-x86_64/python-3.8.patch
(from rev 1058972, soapysdr/trunk/python-3.8.patch)
------------------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
python-3.8.patch | 30 ++++++++++++++++++++++++++++++
2 files changed, 75 insertions(+)
Copied: soapysdr/repos/community-staging-x86_64/PKGBUILD (from rev 1058971, soapysdr/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-11-30 21:43:35 UTC (rev 1058975)
@@ -0,0 +1,45 @@
+# Maintainer: Filipe Laíns (FFY00) <filipe.lains at gmail.com>
+
+pkgname=soapysdr
+_pkgname=SoapySDR
+pkgver=0.8.1
+_gitver=soapy-sdr-$pkgver
+pkgrel=2
+pkgdesc='Vendor and platform neutral SDR support library'
+arch=('x86_64')
+url='https://github.com/pothosware/SoapySDR'
+license=('Boost')
+depends=('python')
+makedepends=('cmake' 'swig' 'doxygen' 'graphviz')
+optdepends=('soapyairspy: Airspy backend'
+ 'soapyaudio: Audio devices backend'
+ 'soapybladerf: BladeRF backend'
+ 'soapyhackrf: HackRF backend'
+ 'soapynetsdr: NetSDR backend'
+ 'soapyosmo: OsmoSDR backend'
+ 'soapyremote: SoapySDR remote support'
+ 'soapyrtlsdr: rtl-sdr backend'
+ 'soapyuhd: UHD backend')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$_gitver.tar.gz")
+sha512sums=('50c8f1652bf9ca09215f9c4115175427ca7b5338add7591e31ca0e627093c94b73e7cf7f84fa71ff419cc010d3c1263931506c728bbaa00413a7915d56a87787')
+
+build() {
+ mkdir -p $_pkgname-$_gitver/build
+ cd $_pkgname-$_gitver/build
+
+ cmake .. \
+ -DSOAPY_SDR_EXTVER=ARCH \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release
+
+ make
+}
+
+package() {
+ cd $_pkgname-$_gitver/build
+
+ make DESTDIR="$pkgdir" install
+
+ install -dm 755 "$pkgdir"/usr/share/doc/$pkgname
+ cp -r -a --no-preserve=ownership docs/html "$pkgdir"/usr/share/doc/$pkgname
+}
Copied: soapysdr/repos/community-staging-x86_64/python-3.8.patch (from rev 1058972, soapysdr/trunk/python-3.8.patch)
===================================================================
--- community-staging-x86_64/python-3.8.patch (rev 0)
+++ community-staging-x86_64/python-3.8.patch 2021-11-30 21:43:35 UTC (rev 1058975)
@@ -0,0 +1,30 @@
+From 4dcd956d1a79fbb346303e786ac2d9448f191ba3 Mon Sep 17 00:00:00 2001
+From: Josh Blum <josh at joshknows.com>
+Date: Mon, 3 Jun 2019 23:27:16 -0500
+Subject: [PATCH] Remove --no-undefined linker flag for python 3.8
+
+The -Wl,--no-undefined linker flag cannot be consistently applied for
+all projects linked against SoapySDR because starting in python3.8 the
+--ldflags no longer include the python library, and there are supposed
+to be missing symbols which will be provided at runtime by the
+interpreter.
+---
+ Changelog.txt | 1 +
+ cmake/Modules/SoapySDRConfig.cmake | 4 ----
+ 2 files changed, 1 insertion(+), 4 deletions(-)
+
+diff --git a/cmake/Modules/SoapySDRConfig.cmake b/cmake/Modules/SoapySDRConfig.cmake
+index 95a751c..f74d6c9 100644
+--- a/cmake/Modules/SoapySDRConfig.cmake
++++ b/cmake/Modules/SoapySDRConfig.cmake
+@@ -74,10 +74,6 @@ if(CMAKE_COMPILER_IS_GNUCXX)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
+ endif()
+
+- #force a compile-time error when symbols are missing
+- set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")
+- set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined")
+-
+ #common warnings to help encourage good coding practices
+ add_compile_options(-Wall)
+ add_compile_options(-Wextra)
More information about the arch-commits
mailing list