[packages/sox] fix missing includes

atler atler at pld-linux.org
Wed Feb 12 21:29:03 CET 2025


commit 79609a70fa05fb59776260f00aa194154f6f4dfd
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Feb 12 21:13:50 2025 +0100

    fix missing includes

 includes.patch | 10 ++++++++++
 sox.spec       |  2 ++
 2 files changed, 12 insertions(+)
---
diff --git a/sox.spec b/sox.spec
index 7b21afe..095c0dd 100644
--- a/sox.spec
+++ b/sox.spec
@@ -30,6 +30,7 @@ Source0:	https://downloads.sourceforge.net/sox/%{name}-%{version}.tar.bz2
 Patch0:		%{name}-system-lpc10.patch
 Patch1:		%{name}-dyn.patch
 Patch2:		%{name}-link.patch
+Patch3:		includes.patch
 URL:		http://sox.sourceforge.net/
 %{?with_alsa:BuildRequires:	alsa-lib-devel}
 BuildRequires:	autoconf >= 2.62
@@ -186,6 +187,7 @@ bibliotekę opusfile.
 %patch -P0 -p1
 %patch -P1 -p1
 %patch -P2 -p1
+%patch -P3 -p1
 
 %build
 %{__libtoolize}
diff --git a/includes.patch b/includes.patch
new file mode 100644
index 0000000..d1e86af
--- /dev/null
+++ b/includes.patch
@@ -0,0 +1,10 @@
+--- sox-14.4.2/src/sox_sample_test.h.orig	2012-01-23 23:27:33.000000000 +0100
++++ sox-14.4.2/src/sox_sample_test.h	2025-02-12 21:10:18.186928198 +0100
+@@ -19,6 +19,7 @@
+ #undef NDEBUG /* Must undef above assert.h or other that might include it. */
+ #endif
+ #include <assert.h>
++#include <math.h>
+ #include "sox.h"
+ 
+ #define TEST_UINT(bits) \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/sox.git/commitdiff/79609a70fa05fb59776260f00aa194154f6f4dfd



More information about the pld-cvs-commit mailing list