summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralperak <alperyasinak1@gmail.com>2024-01-09 19:42:15 +0300
committerKhem Raj <raj.khem@gmail.com>2024-01-09 10:05:02 -0800
commit03cfdf3d077be0257a6fae6adb79ee7773b19d42 (patch)
treeb10d2dbd8e38558fe1a572e1b179b15b84ecfd03
parent57f8d6e1dfea905547c89f5d5b7a95d019b79574 (diff)
downloadmeta-openembedded-03cfdf3d077be0257a6fae6adb79ee7773b19d42.tar.gz
wavpack: upgrade 5.1.0 -> 5.6.0
* Added patches to fix -> unversioned.so was causing incorrect packaging and errors. * Added openssl as a depends because trying to link with native libcrypto in some builds -> lib32-wavpack/5.6.0/recipe-sysroot-native/usr/lib/libcrypto.so: file not recognized: file format not recognized License-Update: Copyright year changes Changelog: * added: AIFF file import/export support * added: WATCOM compiler and OS/2 support * added: cmake support for mingw, builds Cooledit + Winamp plugins * added: --force-even-byte-depth option for rounding up bit depths * fixed: detect and report PCM files having non-zero padding bits * fixed: possible crash when displaying long channel assignments * fixed: big-endian-sourced "raw" files gave big-endian "wav"s * fixed: numerous minor issues * fixed: CVE-2021-44269 (encoding crafted DSD file triggers OOB read crash) * fixed: very long filenames cause stack-overflow crash in all CLI programs * fixed: the length stored in WAV headers not always corrected when using -i * fixed: attempting to encode raw DSD audio from stdin sometimes causes crash * fixed: DSD to PCM decimation: small clicks between tracks and tiny DC offset * fixed: length update in library-generated WAV headers on big-endian machines * fixed: sanitize custom extensions read from WavPack files to be alphanumeric * added: accepting brace-delimited options in the wavpack executable filename * added: "--drop" option to Windows executables for multi-file "drag-and-drop" * added" "--raw-pcm" option to wvunpack executable (does DSD --> 24-bit PCM) * added: "--no-overwrite" option to wavpack executable (to resume sessions) * improved: build system clean-up including switch to non-recursive "make" * fixed: potential security issue CVE-2020-35738 * fixed: disable A32 asm code when building for Apple silicon * fixed: issues with Adobe-style floating-point WAV files * added: -vv option to wvunpack to quickly verify using just block checksums (ideal for detecting corrupted files) * added: --normalize-floats option to wvunpack for correctly exporting un-normalized floating-point files * updated: Visual Studio 2019 for Windows builds * dropped: WinXP support in official binaries * fixed: OSS-Fuzz issues 19925, 19928, 20060, 20448 (no CVEs or vulnerabilities) * fixed: trailing garbage characters on imported ID3v2 TXXX tags * fixed: various minor undefined behavior and memory access issues * fixed: sanitize tag extraction names for length and path inclusion * improved: reformat wvunpack "help" and split into long + short versions * added: regression testing to Travis CI for OSS-Fuzz crashers * fixed: potential security issues including the following CVEs: CVE-2018-19840 CVE-2018-19841 CVE-2018-10536 CVE-2018-10537 CVE-2018-10538 CVE-2018-10539 CVE-2018-10540 CVE-2018-7254 CVE-2018-7253 CVE-2018-6767 * added: support for CMake, Travis CI, and Google's OSS-fuzz * fixed: use correction file for encode verify (pipe input, Windows) * fixed: correct WAV header with actual length (pipe input, -i option) * fixed: thumb interworking and not needing v6 architecture (ARM asm) * added: handle more ID3v2.3 tag items and from all file types * fixed: coredump on Sparc64 (changed MD5 implementation) * fixed: handle invalid ID3v2.3 tags from sacd-ripper * fixed: several corner-case memory leaks Signed-off-by: alperak <alperyasinak1@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-multimedia/wavpack/files/extract-libtool-and-convert-to-soversion.patch35
-rw-r--r--meta-oe/recipes-multimedia/wavpack/files/set-soversion-and-version.patch26
-rw-r--r--meta-oe/recipes-multimedia/wavpack/wavpack_5.1.0.bb9
-rw-r--r--meta-oe/recipes-multimedia/wavpack/wavpack_5.6.0.bb18
4 files changed, 79 insertions, 9 deletions
diff --git a/meta-oe/recipes-multimedia/wavpack/files/extract-libtool-and-convert-to-soversion.patch b/meta-oe/recipes-multimedia/wavpack/files/extract-libtool-and-convert-to-soversion.patch
new file mode 100644
index 0000000000..d66ad4f268
--- /dev/null
+++ b/meta-oe/recipes-multimedia/wavpack/files/extract-libtool-and-convert-to-soversion.patch
@@ -0,0 +1,35 @@
1From 25e12cf5918884f232cebc34c92bd548fe40c2b3 Mon Sep 17 00:00:00 2001
2From: Anonymous Maarten <anonymous.maarten@gmail.com>
3Date: Fri, 9 Dec 2022 19:13:09 +0100
4Subject: [PATCH] cmake: extract libtool from configure.ac and convert to
5 SOVERSION
6
7Upstream-Status: Backport [https://github.com/dbry/WavPack/commit/25e12cf5918884f232cebc34c92bd548fe40c2b3]
8Signed-off-by: alperak <alperyasinak1@gmail.com>
9---
10 CMakeLists.txt | 12 ++++++++++++
11 1 file changed, 12 insertions(+)
12
13diff --git a/CMakeLists.txt b/CMakeLists.txt
14index adc73b09..7ae5043f 100644
15--- a/CMakeLists.txt
16+++ b/CMakeLists.txt
17@@ -2,6 +2,18 @@ cmake_minimum_required(VERSION 3.2)
18
19 project(WavPack VERSION 5.6.0)
20
21+file(READ "${CMAKE_CURRENT_SOURCE_DIR}/configure.ac" CONFIGURE_AC)
22+string(REGEX MATCH "LT_CURRENT=([0-9]+)" LT_CURRENT "${CONFIGURE_AC}")
23+set(LT_CURRENT "${CMAKE_MATCH_1}")
24+string(REGEX MATCH "LT_REVISION=([0-9]+)" LT_REVISION "${CONFIGURE_AC}")
25+set(LT_REVISION "${CMAKE_MATCH_1}")
26+string(REGEX MATCH "LT_AGE=([0-9]+)" LT_AGE "${CONFIGURE_AC}")
27+set(LT_AGE "${CMAKE_MATCH_1}")
28+
29+math(EXPR SOVERSION_MAJOR "${LT_CURRENT}-${LT_AGE}")
30+math(EXPR SOVERSION_MINOR "${LT_AGE}")
31+math(EXPR SOVERSION_MICRO "${LT_REVISION}")
32+
33 # Languages
34
35 include(CheckLanguage)
diff --git a/meta-oe/recipes-multimedia/wavpack/files/set-soversion-and-version.patch b/meta-oe/recipes-multimedia/wavpack/files/set-soversion-and-version.patch
new file mode 100644
index 0000000000..faddb7b754
--- /dev/null
+++ b/meta-oe/recipes-multimedia/wavpack/files/set-soversion-and-version.patch
@@ -0,0 +1,26 @@
1From 7c1dd729302b7f77f65884df4e79301df1490423 Mon Sep 17 00:00:00 2001
2From: Anonymous Maarten <anonymous.maarten@gmail.com>
3Date: Fri, 9 Dec 2022 19:23:51 +0100
4Subject: [PATCH] cmake: set SOVERSION and VERSION property of wavpack
5
6This is used to version .so libraries on Linux
7
8Upstream-Status: Backport [https://github.com/dbry/WavPack/commit/7c1dd729302b7f77f65884df4e79301df1490423]
9Signed-off-by: alperak <alperyasinak1@gmail.com>
10---
11 CMakeLists.txt | 2 ++
12 1 file changed, 2 insertions(+)
13
14diff --git a/CMakeLists.txt b/CMakeLists.txt
15index 7ae5043f..285b295b 100644
16--- a/CMakeLists.txt
17+++ b/CMakeLists.txt
18@@ -361,6 +361,8 @@ if(BUILD_SHARED_LIBS)
19 target_link_directories(wavpack PRIVATE "-Wl,-exported_symbols_list,${CMAKE_CURRENT_BINARY_DIR}/libwavpack.sym")
20 endif()
21 else()
22+ set_target_properties(wavpack PROPERTIES SOVERSION "${SOVERSION_MAJOR}")
23+ set_target_properties(wavpack PROPERTIES VERSION "${SOVERSION_MAJOR}.${SOVERSION_MINOR}.${SOVERSION_MICRO}")
24 set(CONFTTEST_CONTENTS "VERS_1 {\n global: sym;\n};\n\nVERS_2 {\n global: sym;\n} VERS_1;\n")
25 file(WRITE ${PROJECT_BINARY_DIR}/${CMAKE_FILES_DIRECTORY}/conftest.map "${CONFTTEST_CONTENTS}")
26 check_c_linker_flag("-Wl,--version-script=${PROJECT_BINARY_DIR}/${CMAKE_FILES_DIRECTORY}/conftest.map" COMPILER_SUPPORTS_SYMBOL_MAPS)
diff --git a/meta-oe/recipes-multimedia/wavpack/wavpack_5.1.0.bb b/meta-oe/recipes-multimedia/wavpack/wavpack_5.1.0.bb
deleted file mode 100644
index 9096123939..0000000000
--- a/meta-oe/recipes-multimedia/wavpack/wavpack_5.1.0.bb
+++ /dev/null
@@ -1,9 +0,0 @@
1DESCRIPTION = "WavPack is a completely open audio compression format providing lossless, high-quality lossy, and a unique hybrid compression mode."
2LICENSE = "BSD-3-Clause"
3LIC_FILES_CHKSUM = "file://license.txt;md5=8c1a910e5c2a8b30ec8ffb2ffa63d9b2"
4
5SRC_URI = "git://github.com/dbry/WavPack.git;branch=master;protocol=https"
6SRCREV = "9ccc3fe4a37d069137ceabe513a4dd9b0a09c1c2"
7S = "${WORKDIR}/git"
8
9inherit autotools lib_package
diff --git a/meta-oe/recipes-multimedia/wavpack/wavpack_5.6.0.bb b/meta-oe/recipes-multimedia/wavpack/wavpack_5.6.0.bb
new file mode 100644
index 0000000000..7384d2892f
--- /dev/null
+++ b/meta-oe/recipes-multimedia/wavpack/wavpack_5.6.0.bb
@@ -0,0 +1,18 @@
1DESCRIPTION = "WavPack is a completely open audio compression format providing lossless, high-quality lossy, and a unique hybrid compression mode."
2LICENSE = "BSD-3-Clause"
3LIC_FILES_CHKSUM = "file://license.txt;md5=bb5d037e3ad41a3c84c9f2d8bb65a7b4"
4
5DEPENDS = "openssl"
6
7SRC_URI = "git://github.com/dbry/WavPack.git;branch=master;protocol=https \
8 file://set-soversion-and-version.patch \
9 file://extract-libtool-and-convert-to-soversion.patch \
10 "
11
12SRCREV = "e03e8e29dc618e08e7baba9636e57ba1254874ce"
13
14S = "${WORKDIR}/git"
15
16inherit cmake pkgconfig lib_package
17
18EXTRA_OECMAKE += "-DBUILD_SHARED_LIBS=ON"