Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/smpeg/files/, media-libs/smpeg/
Date: Thu, 29 Dec 2016 14:18:12
Message-Id: 1483021052.ef5af0ae93adbe5f549ad922756f3f566244d274.aballier@gentoo
1 commit: ef5af0ae93adbe5f549ad922756f3f566244d274
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 29 14:17:32 2016 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 29 14:17:32 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef5af0ae
7
8 media-libs/smpeg: fix build with gcc6, bug #592450, patch by Peter Levine.
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 media-libs/smpeg/files/smpeg-0.4.4-gcc6.patch | 25 +++++++++++++++++++++++++
13 media-libs/smpeg/smpeg-0.4.4-r10.ebuild | 5 +++--
14 2 files changed, 28 insertions(+), 2 deletions(-)
15
16 diff --git a/media-libs/smpeg/files/smpeg-0.4.4-gcc6.patch b/media-libs/smpeg/files/smpeg-0.4.4-gcc6.patch
17 new file mode 100644
18 index 00000000..4419bec
19 --- /dev/null
20 +++ b/media-libs/smpeg/files/smpeg-0.4.4-gcc6.patch
21 @@ -0,0 +1,25 @@
22 +--- smpeg-0.4.4/audio/huffmantable.cpp.old 2016-09-21 17:28:34.497031221 -0400
23 ++++ smpeg-0.4.4/audio/huffmantable.cpp 2016-09-21 17:30:24.346141555 -0400
24 +@@ -550,11 +550,11 @@
25 +
26 + const HUFFMANCODETABLE MPEGaudio::ht[HTN]=
27 + {
28 +- { 0, 0-1, 0-1, 0, 0, htd33},
29 ++ { 0, (unsigned) 0-1, (unsigned) 0-1, 0, 0, htd33},
30 + { 1, 2-1, 2-1, 0, 7,htd01},
31 + { 2, 3-1, 3-1, 0, 17,htd02},
32 + { 3, 3-1, 3-1, 0, 17,htd03},
33 +- { 4, 0-1, 0-1, 0, 0, htd33},
34 ++ { 4, (unsigned) 0-1, (unsigned) 0-1, 0, 0, htd33},
35 + { 5, 4-1, 4-1, 0, 31,htd05},
36 + { 6, 4-1, 4-1, 0, 31,htd06},
37 + { 7, 6-1, 6-1, 0, 71,htd07},
38 +@@ -564,7 +564,7 @@
39 + {11, 8-1, 8-1, 0,127,htd11},
40 + {12, 8-1, 8-1, 0,127,htd12},
41 + {13,16-1,16-1, 0,511,htd13},
42 +- {14, 0-1, 0-1, 0, 0, htd33},
43 ++ {14, (unsigned) 0-1, (unsigned) 0-1, 0, 0, htd33},
44 + {15,16-1,16-1, 0,511,htd15},
45 + {16,16-1,16-1, 1,511,htd16},
46 + {17,16-1,16-1, 2,511,htd16},
47
48 diff --git a/media-libs/smpeg/smpeg-0.4.4-r10.ebuild b/media-libs/smpeg/smpeg-0.4.4-r10.ebuild
49 index c7dd365..4f4dba1 100644
50 --- a/media-libs/smpeg/smpeg-0.4.4-r10.ebuild
51 +++ b/media-libs/smpeg/smpeg-0.4.4-r10.ebuild
52 @@ -1,4 +1,4 @@
53 -# Copyright 1999-2015 Gentoo Foundation
54 +# Copyright 1999-2016 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Id$
57
58 @@ -45,7 +45,8 @@ src_prepare() {
59 "${FILESDIR}"/${P}-mmx.patch \
60 "${FILESDIR}"/${P}-malloc.patch \
61 "${FILESDIR}"/${P}-format.patch \
62 - "${FILESDIR}"/${P}-missing-init.patch
63 + "${FILESDIR}"/${P}-missing-init.patch \
64 + "${FILESDIR}"/${P}-gcc6.patch
65
66 cd "${WORKDIR}"
67 epatch "${DISTDIR}"/${P}-gtkm4.patch.bz2