diff options
| -rw-r--r-- | meta-multimedia/recipes-multimedia/sox/sox/0001-tests-Include-math.h-for-fabs-definition.patch | 33 | ||||
| -rw-r--r-- | meta-multimedia/recipes-multimedia/sox/sox_14.4.2.bb | 1 |
2 files changed, 34 insertions, 0 deletions
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 new file mode 100644 index 0000000000..5f9135a0ee --- /dev/null +++ b/meta-multimedia/recipes-multimedia/sox/sox/0001-tests-Include-math.h-for-fabs-definition.patch | |||
| @@ -0,0 +1,33 @@ | |||
| 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 011cbc2a9d..800fcad2c9 100644 --- a/meta-multimedia/recipes-multimedia/sox/sox_14.4.2.bb +++ b/meta-multimedia/recipes-multimedia/sox/sox_14.4.2.bb | |||
| @@ -30,6 +30,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.GPL;md5=751419260aa954499f7abaabaa882bbe \ | |||
| 30 | SRC_URI = "${SOURCEFORGE_MIRROR}/sox/sox-${PV}.tar.gz \ | 30 | SRC_URI = "${SOURCEFORGE_MIRROR}/sox/sox-${PV}.tar.gz \ |
| 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 \ | 32 | file://0001-Update-exported-symbol-list.patch \ |
| 33 | file://0001-tests-Include-math.h-for-fabs-definition.patch \ | ||
| 33 | " | 34 | " |
| 34 | SRC_URI[md5sum] = "d04fba2d9245e661f245de0577f48a33" | 35 | SRC_URI[md5sum] = "d04fba2d9245e661f245de0577f48a33" |
| 35 | SRC_URI[sha256sum] = "b45f598643ffbd8e363ff24d61166ccec4836fea6d3888881b8df53e3bb55f6c" | 36 | SRC_URI[sha256sum] = "b45f598643ffbd8e363ff24d61166ccec4836fea6d3888881b8df53e3bb55f6c" |
