diff options
author | Ioan-Adrian Ratiu <adrian.ratiu@ni.com> | 2018-03-02 20:33:46 +0200 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2018-03-16 19:15:50 -0700 |
commit | 50ad136fe723d11e6febf1a7779ec5bdb1d12134 (patch) | |
tree | eff8c4631cb836a4ca157cef11e198339396a8d6 | |
parent | 174047b69aa0cc561e04ebf8f1d1e4f8cebc38f6 (diff) | |
download | meta-openembedded-50ad136fe723d11e6febf1a7779ec5bdb1d12134.tar.gz |
sox: backport fix for dynamically linked flac builds
The sox project upstream is dead, non-responsive, and various
developers started maintaining their own branches where they do
feature development (eg. adding DSD/DSF format support) and
bug-fixing. They don't have access to the central sox git repo.
So basically the project will eventually get forked (I started a
discussion in this direction). Until then, backport this flac build
fix which was lingering around out of tree for years.
Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | meta-multimedia/recipes-multimedia/sox/sox/0001-Update-exported-symbol-list.patch | 34 | ||||
-rw-r--r-- | meta-multimedia/recipes-multimedia/sox/sox_14.4.2.bb | 1 |
2 files changed, 35 insertions, 0 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 new file mode 100644 index 000000000..44c6b19be --- /dev/null +++ b/meta-multimedia/recipes-multimedia/sox/sox/0001-Update-exported-symbol-list.patch | |||
@@ -0,0 +1,34 @@ | |||
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_14.4.2.bb b/meta-multimedia/recipes-multimedia/sox/sox_14.4.2.bb index d1ed08a89..21fddd1e1 100644 --- a/meta-multimedia/recipes-multimedia/sox/sox_14.4.2.bb +++ b/meta-multimedia/recipes-multimedia/sox/sox_14.4.2.bb | |||
@@ -32,6 +32,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.GPL;md5=751419260aa954499f7abaabaa882bbe \ | |||
32 | 32 | ||
33 | SRC_URI = "${SOURCEFORGE_MIRROR}/sox/sox-${PV}.tar.gz \ | 33 | SRC_URI = "${SOURCEFORGE_MIRROR}/sox/sox-${PV}.tar.gz \ |
34 | file://0001-remove-the-error-line-and-live-without-file-type-det.patch \ | 34 | file://0001-remove-the-error-line-and-live-without-file-type-det.patch \ |
35 | file://0001-Update-exported-symbol-list.patch \ | ||
35 | " | 36 | " |
36 | SRC_URI[md5sum] = "d04fba2d9245e661f245de0577f48a33" | 37 | SRC_URI[md5sum] = "d04fba2d9245e661f245de0577f48a33" |
37 | SRC_URI[sha256sum] = "b45f598643ffbd8e363ff24d61166ccec4836fea6d3888881b8df53e3bb55f6c" | 38 | SRC_URI[sha256sum] = "b45f598643ffbd8e363ff24d61166ccec4836fea6d3888881b8df53e3bb55f6c" |