diff options
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 @@ | |||
| 1 | From b1809d82031aa7c5bcaad58bcb4b59e082e0446e Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Mans Rullgard <mans@mansr.com> | ||
| 3 | Date: Sun, 5 Nov 2017 15:40:16 +0000 | ||
| 4 | Subject: [PATCH] Update exported symbol list | ||
| 5 | |||
| 6 | commit 5c58413544 ("Don't export (most) internal libsox symbols") | ||
| 7 | breaks dynamic flac builds as flac.c references lsx.error, so add it | ||
| 8 | to 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 | |||
| 13 | Upstream-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 | |||
| 19 | diff --git a/src/Makefile.am b/src/Makefile.am | ||
| 20 | index 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 | -- | ||
| 33 | 2.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 | |||
| 15 | index 724a4cda..f683a922 100644 | 15 | index 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 @@ | |||
| 1 | From afe336ab63ff9b64ef759255de6b03b897dc4453 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Sun, 19 May 2024 09:09:46 -0700 | ||
| 4 | Subject: [PATCH] tests: Include math.h for fabs() definition | ||
| 5 | |||
| 6 | Fixes 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 | |||
| 13 | Upstream-Status: Pending | ||
| 14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 15 | --- | ||
| 16 | src/sox_sample_test.h | 1 + | ||
| 17 | 1 file changed, 1 insertion(+) | ||
| 18 | |||
| 19 | diff --git a/src/sox_sample_test.h b/src/sox_sample_test.h | ||
| 20 | index 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 | -- | ||
| 32 | 2.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." | |||
| 4 | HOMEPAGE = "http://sox.sourceforge.net" | 4 | HOMEPAGE = "http://sox.sourceforge.net" |
| 5 | SECTION = "audio" | 5 | SECTION = "audio" |
| 6 | 6 | ||
| 7 | DEPENDS = "libpng libsndfile1 libtool" | 7 | DEPENDS = "autoconf-archive-native libpng libsndfile1 libtool" |
| 8 | 8 | ||
| 9 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'alsa pulseaudio', d)} \ | 9 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'alsa pulseaudio', d)} \ |
| 10 | magic \ | 10 | magic \ |
| 11 | " | 11 | " |
| 12 | PACKAGECONFIG[pulseaudio] = "--with-pulseaudio=dyn,--with-pulseaudio=no,pulseaudio," | 12 | PACKAGECONFIG[pulseaudio] = "--enable-pulseaudio=dyn,--disable-pulseaudio,pulseaudio," |
| 13 | PACKAGECONFIG[alsa] = "--with-alsa=dyn,--with-alsa=no,alsa-lib," | 13 | PACKAGECONFIG[alsa] = "--enable-alsa=dyn,--disable-alsa,alsa-lib," |
| 14 | PACKAGECONFIG[wavpack] = "--with-wavpack=dyn,--with-wavpack=no,wavpack," | 14 | PACKAGECONFIG[wavpack] = "--enable-wavpack=dyn,--disable-wavpack,wavpack," |
| 15 | PACKAGECONFIG[flac] = "--with-flac=dyn,--with-flac=no,flac," | 15 | PACKAGECONFIG[flac] = "--enable-flac=dyn,--disable-flac,flac," |
| 16 | PACKAGECONFIG[amrwb] = "--with-amrwb=dyn,--with-amrwb=no,opencore-amr," | 16 | PACKAGECONFIG[amrwb] = "--enable-amrwb=dyn,--disable-amrwb,opencore-amr," |
| 17 | PACKAGECONFIG[amrnb] = "--with-amrnb=dyn,--with-amrnb=no,opencore-amr," | 17 | PACKAGECONFIG[amrnb] = "--enable-amrnb=dyn,--disable-amrnb,opencore-amr," |
| 18 | PACKAGECONFIG[oggvorbis] = "--with-oggvorbis=dyn,--with-oggvorbis=no,libvorbis" | 18 | PACKAGECONFIG[oggvorbis] = "--enable-oggvorbis=dyn,--disable-oggvorbis,libvorbis" |
| 19 | PACKAGECONFIG[opus] = "--with-opus=dyn,--with-opus=no,opusfile" | 19 | PACKAGECONFIG[opus] = "--enable-opus=dyn,--disable-opus,opusfile" |
| 20 | PACKAGECONFIG[magic] = "--with-magic,--without-magic,file," | 20 | PACKAGECONFIG[magic] = "--with-magic,--without-magic,file," |
| 21 | PACKAGECONFIG[mad] = "--with-mad,--without-mad,libmad," | 21 | PACKAGECONFIG[mad] = "--with-mad,--without-mad,libmad," |
| 22 | PACKAGECONFIG[id3tag] = "--with-id3tag,--without-id3tag,libid3tag," | 22 | PACKAGECONFIG[id3tag] = "--with-id3tag,--without-id3tag,libid3tag," |
| 23 | PACKAGECONFIG[lame] = "--with-lame,--without-lame,lame," | 23 | PACKAGECONFIG[lame] = "--with-lame,--without-lame,lame," |
| 24 | PACKAGECONFIG[ao] = "--with-ao,--without-ao,libao," | 24 | PACKAGECONFIG[ao] = "--enable-ao,--disable-ao,libao," |
| 25 | 25 | ||
| 26 | LICENSE = "GPL-2.0-only & LGPL-2.1-only" | 26 | LICENSE = "GPL-2.0-only & LGPL-2.1-only" |
| 27 | LIC_FILES_CHKSUM = "file://LICENSE.GPL;md5=751419260aa954499f7abaabaa882bbe \ | 27 | LIC_FILES_CHKSUM = "file://LICENSE.GPL;md5=751419260aa954499f7abaabaa882bbe \ |
| @@ -29,11 +29,11 @@ LIC_FILES_CHKSUM = "file://LICENSE.GPL;md5=751419260aa954499f7abaabaa882bbe \ | |||
| 29 | 29 | ||
| 30 | SRC_URI = "git://git.code.sf.net/p/sox/code;protocol=https;branch=master \ | 30 | SRC_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 | ||
| 36 | SRCREV = "45b161d73ec087a8e003747b1aed07cd33589bca" | 34 | # last release was in 2015, use latest hash from 2024-05-30 |
| 35 | PV .= "+git" | ||
| 36 | SRCREV = "f3094754a7c2a7e55c35621d20fa9945736e72df" | ||
| 37 | S = "${WORKDIR}/git" | 37 | S = "${WORKDIR}/git" |
| 38 | 38 | ||
| 39 | CVE_PRODUCT:append = " libsox_project:libsox sound_exchange_project:sound_exchange" | 39 | CVE_PRODUCT:append = " libsox_project:libsox sound_exchange_project:sound_exchange" |
