[packages/soxr] fix undefined symbol "lrint" on %{arm}

atler atler at pld-linux.org
Fri Dec 4 22:13:56 CET 2020


commit 87afc8086575ffdabaea8e984f81e284393647e3
Author: Jan Palus <atler at pld-linux.org>
Date:   Fri Dec 4 22:12:11 2020 +0100

    fix undefined symbol "lrint" on %{arm}

 soxr-link.patch | 11 +++++++++++
 soxr.spec       |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/soxr.spec b/soxr.spec
index feb1045..7caf408 100644
--- a/soxr.spec
+++ b/soxr.spec
@@ -11,6 +11,7 @@ License:	LGPL v2.1+
 Group:		Libraries
 Source0:	http://downloads.sourceforge.net/soxr/%{name}-%{version}-Source.tar.xz
 # Source0-md5:	3f16f4dcb35b471682d4321eda6f6c08
+Patch0:		%{name}-link.patch
 URL:		http://soxr.sourceforge.net/
 BuildRequires:	cmake >= 3.1
 %{?with_openmp:BuildRequires:	gcc >= 6:4.2}
@@ -27,7 +28,7 @@ PCM-encoded audio.
 %description -l pl.UTF-8
 Biblioteka SoX Resampler (libsoxr) wykonuje jednowymiarową konwersję
 częstotliwości próbkowania - może być używana na przykład do
-resamplowania dźwięku kodowanego PCM. 
+resamplowania dźwięku kodowanego PCM.
 
 %package devel
 Summary:	Header files for SoX Resampler library
@@ -43,6 +44,7 @@ Pliki nagłówkowe biblioteki SoX Resampler.
 
 %prep
 %setup -q -n %{name}-%{version}-Source
+%patch0 -p1
 
 %build
 %cmake . \
diff --git a/soxr-link.patch b/soxr-link.patch
new file mode 100644
index 0000000..82cdb25
--- /dev/null
+++ b/soxr-link.patch
@@ -0,0 +1,11 @@
+--- soxr-0.1.3-Source/src/CMakeLists.txt.orig	2018-02-21 07:36:46.000000000 +0000
++++ soxr-0.1.3-Source/src/CMakeLists.txt	2020-12-04 21:07:53.956469225 +0000
+@@ -101,7 +101,7 @@
+   set (LSR_SO_VERSION 0.1.9)
+   set (LSR_SO_VERSION_MAJOR 0)
+   add_library (${LSR} ${LIB_TYPE} ${LSR})
+-  target_link_libraries (${LSR} ${PROJECT_NAME})
++  target_link_libraries (${LSR} ${PROJECT_NAME} ${LIBM_LIBRARIES})
+   set_target_properties (${LSR} PROPERTIES
+     VERSION "${LSR_SO_VERSION}"
+     SOVERSION ${LSR_SO_VERSION_MAJOR}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/soxr.git/commitdiff/87afc8086575ffdabaea8e984f81e284393647e3



More information about the pld-cvs-commit mailing list