]> git.pld-linux.org Git - packages/musepack-tools.git/commitdiff
fix build with gcc 10 (from gentoo) master
authorJan Palus <atler@pld-linux.org>
Sat, 17 Oct 2020 19:30:34 +0000 (21:30 +0200)
committerJan Palus <atler@pld-linux.org>
Sat, 17 Oct 2020 19:30:34 +0000 (21:30 +0200)
musepack-tools-fno-common.patch [new file with mode: 0644]
musepack-tools.spec

diff --git a/musepack-tools-fno-common.patch b/musepack-tools-fno-common.patch
new file mode 100644 (file)
index 0000000..0fb9f5e
--- /dev/null
@@ -0,0 +1,16 @@
+https://bugs.gentoo.org/706992
+--- a/libmpcdec/requant.h
++++ b/libmpcdec/requant.h
+@@ -47,9 +47,9 @@
+ /* C O N S T A N T S */
+-const mpc_uint8_t      Res_bit [18];     ///< Bits per sample for chosen quantizer
+-const MPC_SAMPLE_FORMAT __Cc    [1 + 18]; ///< Requantization coefficients
+-const mpc_int16_t       __Dc    [1 + 18]; ///< Requantization offset
++extern const mpc_uint8_t      Res_bit [18];     ///< Bits per sample for chosen quantizer
++extern const MPC_SAMPLE_FORMAT __Cc    [1 + 18]; ///< Requantization coefficients
++extern const mpc_int16_t       __Dc    [1 + 18]; ///< Requantization offset
+ #define Cc (__Cc + 1)
+ #define Dc (__Dc + 1)
index 7ee60e73628fdebd385b25216b8075c6ab8d3edf..190bdc7f2817f958f1fcb94bbdb7ee373b301da6 100644 (file)
@@ -14,6 +14,7 @@ Group:                Libraries
 Source0:       http://files.musepack.net/source/musepack_src_r%{rev}.tar.gz
 # Source0-md5: 754d67be67f713e54baf70fcfdb2817e
 Patch0:                %{name}-libs.patch
+Patch1:                %{name}-fno-common.patch
 URL:           http://www.musepack.net/
 BuildRequires: cmake >= 2.4
 BuildRequires: libcuefile-devel
@@ -65,6 +66,7 @@ Statyczna wersja biblioteki Musepack SV8.
 %prep
 %setup -q -n musepack_src_r%{rev}
 %patch0 -p0
+%patch1 -p1
 
 %{__rm} -r include/mpc/.svn
 
This page took 0.083793 seconds and 4 git commands to generate.