summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-multimedia/recipes-multimedia/sox/sox/0001-Update-exported-symbol-list.patch34
-rw-r--r--meta-multimedia/recipes-multimedia/sox/sox/0001-remove-the-error-line-and-live-without-file-type-det.patch2
-rw-r--r--meta-multimedia/recipes-multimedia/sox/sox/0001-tests-Include-math.h-for-fabs-definition.patch33
-rw-r--r--meta-multimedia/recipes-multimedia/sox/sox_14.4.2.bb26
4 files changed, 14 insertions, 81 deletions
diff --git a/meta-multimedia/recipes-multimedia/sox/sox/0001-Update-exported-symbol-list.patch b/meta-multimedia/recipes-multimedia/sox/sox/0001-Update-exported-symbol-list.patch
deleted file mode 100644
index 44c6b19be0..0000000000
--- a/meta-multimedia/recipes-multimedia/sox/sox/0001-Update-exported-symbol-list.patch
+++ /dev/null
@@ -1,34 +0,0 @@
1From b1809d82031aa7c5bcaad58bcb4b59e082e0446e Mon Sep 17 00:00:00 2001
2From: Mans Rullgard <mans@mansr.com>
3Date: Sun, 5 Nov 2017 15:40:16 +0000
4Subject: [PATCH] Update exported symbol list
5
6commit 5c58413544 ("Don't export (most) internal libsox symbols")
7breaks dynamic flac builds as flac.c references lsx.error, so add it
8to the list of exceptions.
9
10| .libs/flac.o: In function `decoder_read_callback':
11| /usr/src/debug/sox/14.4.2-r0/sox-14.4.2/src/flac.c:63: undefined reference to `lsx_error'
12
13Upstream-Status: Backport [https://bogomips.org/sox.git ("pu" branch)]
14
15---
16 src/Makefile.am | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/src/Makefile.am b/src/Makefile.am
20index 7cceaafd..a3a04ed1 100644
21--- a/src/Makefile.am
22+++ b/src/Makefile.am
23@@ -95,7 +95,7 @@ libsox_la_LIBADD += @GOMP_LIBS@
24
25 libsox_la_CFLAGS = @WARN_CFLAGS@
26 libsox_la_LDFLAGS = @APP_LDFLAGS@ -version-info @SHLIB_VERSION@ \
27- -export-symbols-regex '^(sox_.*|lsx_(check_read_params|(close|open)_dllibrary|(debug(_more|_most)?|fail|report|warn)_impl|eof|fail_errno|filelength|find_(enum_(text|value)|file_extension)|getopt(_init)?|lpc10_(create_(de|en)coder_state|(de|en)code)|raw(read|write)|read(_b_buf|buf|chars)|realloc|rewind|seeki|sigfigs3p?|strcasecmp|tell|unreadb|write(b|_b_buf|buf|s)))$$'
28+ -export-symbols-regex '^(sox_.*|lsx_(([cm]|re)alloc|check_read_params|(close|open)_dllibrary|(debug(_more|_most)?|fail|report|warn)_impl|eof|error|fail_errno|filelength|find_(enum_(text|value)|file_extension)|flush|getopt(_init)?|id3_read_tag|lpc10_(create_(de|en)coder_state|(de|en)code)|raw(read|write)|read(_b_buf|buf|chars)|rewind|seeki|sigfigs3p?|strcasecmp|strdup|tell|unreadb|write(b|_b_buf|buf|s)))$$'
29
30 if HAVE_WIN32_LTDL
31 libsox_la_SOURCES += win32-ltdl.c win32-ltdl.h
32--
332.16.2
34
diff --git a/meta-multimedia/recipes-multimedia/sox/sox/0001-remove-the-error-line-and-live-without-file-type-det.patch b/meta-multimedia/recipes-multimedia/sox/sox/0001-remove-the-error-line-and-live-without-file-type-det.patch
index 3085bd495c..15c429e515 100644
--- a/meta-multimedia/recipes-multimedia/sox/sox/0001-remove-the-error-line-and-live-without-file-type-det.patch
+++ b/meta-multimedia/recipes-multimedia/sox/sox/0001-remove-the-error-line-and-live-without-file-type-det.patch
@@ -15,7 +15,7 @@ diff --git a/src/formats.c b/src/formats.c
15index 724a4cda..f683a922 100644 15index 724a4cda..f683a922 100644
16--- a/src/formats.c 16--- a/src/formats.c
17+++ b/src/formats.c 17+++ b/src/formats.c
18@@ -422,7 +422,6 @@ static void UNUSED rewind_pipe(FILE * fp) 18@@ -477,7 +477,6 @@ static void UNUSED rewind_pipe(FILE * fp)
19 /* To fix this #error, either simply remove the #error line and live without 19 /* To fix this #error, either simply remove the #error line and live without
20 * file-type detection with pipes, or add support for your compiler in the 20 * file-type detection with pipes, or add support for your compiler in the
21 * lines above. Test with cat monkey.wav | ./sox --info - */ 21 * lines above. Test with cat monkey.wav | ./sox --info - */
diff --git a/meta-multimedia/recipes-multimedia/sox/sox/0001-tests-Include-math.h-for-fabs-definition.patch b/meta-multimedia/recipes-multimedia/sox/sox/0001-tests-Include-math.h-for-fabs-definition.patch
deleted file mode 100644
index 5f9135a0ee..0000000000
--- a/meta-multimedia/recipes-multimedia/sox/sox/0001-tests-Include-math.h-for-fabs-definition.patch
+++ /dev/null
@@ -1,33 +0,0 @@
1From afe336ab63ff9b64ef759255de6b03b897dc4453 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 19 May 2024 09:09:46 -0700
4Subject: [PATCH] tests: Include math.h for fabs() definition
5
6Fixes build with gcc-14
7
8../../sox-14.4.2/src/sox_sample_test.h:190:3: error: implicit declaration of function 'fabs' [-Wimplicit-function-declaration]
9 190 | assert(fabs(d - 1) < 1e-9 && clips == 0);
10 | ^~~~~~
11 ../../sox-14.4.2/src/sox_sample_test.h:23:1: note: include '<math.h>' or provide a declaration of 'fabs'
12
13Upstream-Status: Pending
14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15---
16 src/sox_sample_test.h | 1 +
17 1 file changed, 1 insertion(+)
18
19diff --git a/src/sox_sample_test.h b/src/sox_sample_test.h
20index 62b55e4..17f0069 100644
21--- a/src/sox_sample_test.h
22+++ b/src/sox_sample_test.h
23@@ -19,6 +19,7 @@
24 #undef NDEBUG /* Must undef above assert.h or other that might include it. */
25 #endif
26 #include <assert.h>
27+#include <math.h>
28 #include "sox.h"
29
30 #define TEST_UINT(bits) \
31--
322.45.1
33
diff --git a/meta-multimedia/recipes-multimedia/sox/sox_14.4.2.bb b/meta-multimedia/recipes-multimedia/sox/sox_14.4.2.bb
index 48dba45420..e3c228858c 100644
--- a/meta-multimedia/recipes-multimedia/sox/sox_14.4.2.bb
+++ b/meta-multimedia/recipes-multimedia/sox/sox_14.4.2.bb
@@ -4,24 +4,24 @@ and can apply different effects and filters to the audio data."
4HOMEPAGE = "http://sox.sourceforge.net" 4HOMEPAGE = "http://sox.sourceforge.net"
5SECTION = "audio" 5SECTION = "audio"
6 6
7DEPENDS = "libpng libsndfile1 libtool" 7DEPENDS = "autoconf-archive-native libpng libsndfile1 libtool"
8 8
9PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'alsa pulseaudio', d)} \ 9PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'alsa pulseaudio', d)} \
10 magic \ 10 magic \
11" 11"
12PACKAGECONFIG[pulseaudio] = "--with-pulseaudio=dyn,--with-pulseaudio=no,pulseaudio," 12PACKAGECONFIG[pulseaudio] = "--enable-pulseaudio=dyn,--disable-pulseaudio,pulseaudio,"
13PACKAGECONFIG[alsa] = "--with-alsa=dyn,--with-alsa=no,alsa-lib," 13PACKAGECONFIG[alsa] = "--enable-alsa=dyn,--disable-alsa,alsa-lib,"
14PACKAGECONFIG[wavpack] = "--with-wavpack=dyn,--with-wavpack=no,wavpack," 14PACKAGECONFIG[wavpack] = "--enable-wavpack=dyn,--disable-wavpack,wavpack,"
15PACKAGECONFIG[flac] = "--with-flac=dyn,--with-flac=no,flac," 15PACKAGECONFIG[flac] = "--enable-flac=dyn,--disable-flac,flac,"
16PACKAGECONFIG[amrwb] = "--with-amrwb=dyn,--with-amrwb=no,opencore-amr," 16PACKAGECONFIG[amrwb] = "--enable-amrwb=dyn,--disable-amrwb,opencore-amr,"
17PACKAGECONFIG[amrnb] = "--with-amrnb=dyn,--with-amrnb=no,opencore-amr," 17PACKAGECONFIG[amrnb] = "--enable-amrnb=dyn,--disable-amrnb,opencore-amr,"
18PACKAGECONFIG[oggvorbis] = "--with-oggvorbis=dyn,--with-oggvorbis=no,libvorbis" 18PACKAGECONFIG[oggvorbis] = "--enable-oggvorbis=dyn,--disable-oggvorbis,libvorbis"
19PACKAGECONFIG[opus] = "--with-opus=dyn,--with-opus=no,opusfile" 19PACKAGECONFIG[opus] = "--enable-opus=dyn,--disable-opus,opusfile"
20PACKAGECONFIG[magic] = "--with-magic,--without-magic,file," 20PACKAGECONFIG[magic] = "--with-magic,--without-magic,file,"
21PACKAGECONFIG[mad] = "--with-mad,--without-mad,libmad," 21PACKAGECONFIG[mad] = "--with-mad,--without-mad,libmad,"
22PACKAGECONFIG[id3tag] = "--with-id3tag,--without-id3tag,libid3tag," 22PACKAGECONFIG[id3tag] = "--with-id3tag,--without-id3tag,libid3tag,"
23PACKAGECONFIG[lame] = "--with-lame,--without-lame,lame," 23PACKAGECONFIG[lame] = "--with-lame,--without-lame,lame,"
24PACKAGECONFIG[ao] = "--with-ao,--without-ao,libao," 24PACKAGECONFIG[ao] = "--enable-ao,--disable-ao,libao,"
25 25
26LICENSE = "GPL-2.0-only & LGPL-2.1-only" 26LICENSE = "GPL-2.0-only & LGPL-2.1-only"
27LIC_FILES_CHKSUM = "file://LICENSE.GPL;md5=751419260aa954499f7abaabaa882bbe \ 27LIC_FILES_CHKSUM = "file://LICENSE.GPL;md5=751419260aa954499f7abaabaa882bbe \
@@ -29,11 +29,11 @@ LIC_FILES_CHKSUM = "file://LICENSE.GPL;md5=751419260aa954499f7abaabaa882bbe \
29 29
30SRC_URI = "git://git.code.sf.net/p/sox/code;protocol=https;branch=master \ 30SRC_URI = "git://git.code.sf.net/p/sox/code;protocol=https;branch=master \
31 file://0001-remove-the-error-line-and-live-without-file-type-det.patch \ 31 file://0001-remove-the-error-line-and-live-without-file-type-det.patch \
32 file://0001-Update-exported-symbol-list.patch \
33 file://0001-tests-Include-math.h-for-fabs-definition.patch \
34 " 32 "
35 33
36SRCREV = "45b161d73ec087a8e003747b1aed07cd33589bca" 34# last release was in 2015, use latest hash from 2024-05-30
35PV .= "+git"
36SRCREV = "f3094754a7c2a7e55c35621d20fa9945736e72df"
37S = "${WORKDIR}/git" 37S = "${WORKDIR}/git"
38 38
39CVE_PRODUCT:append = " libsox_project:libsox sound_exchange_project:sound_exchange" 39CVE_PRODUCT:append = " libsox_project:libsox sound_exchange_project:sound_exchange"