pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/smpeg smpeg: Fix build with GCC >= 6, from ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8609fc67cd81
branches:  trunk
changeset: 370574:8609fc67cd81
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Oct 19 15:59:22 2017 +0000

description:
smpeg: Fix build with GCC >= 6, from various.

diffstat:

 multimedia/smpeg/distinfo                             |   3 +-
 multimedia/smpeg/patches/patch-audio_huffmantable.cpp |  37 +++++++++++++++++++
 2 files changed, 39 insertions(+), 1 deletions(-)

diffs (55 lines):

diff -r 40bb03539663 -r 8609fc67cd81 multimedia/smpeg/distinfo
--- a/multimedia/smpeg/distinfo Thu Oct 19 15:28:45 2017 +0000
+++ b/multimedia/smpeg/distinfo Thu Oct 19 15:59:22 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2015/11/03 23:54:32 agc Exp $
+$NetBSD: distinfo,v 1.9 2017/10/19 15:59:22 jperkin Exp $
 
 SHA1 (smpeg-0.4.4.tar.gz) = 6d7f4449472e6270ab435b2224f3fad951c35259
 RMD160 (smpeg-0.4.4.tar.gz) = d55249ad53417fa0df3d925aed0e83d2204e28b7
@@ -9,3 +9,4 @@
 SHA1 (patch-ac) = 6f0cdeb9864db4db6730c8137287a073172a09ab
 SHA1 (patch-ad) = 021ffc5024723173c8a6cda04ae6f70add974faa
 SHA1 (patch-ae) = 0c7646ec3ce331b6991d59d96efa1ba07fbb91e5
+SHA1 (patch-audio_huffmantable.cpp) = 4bde79539a6fe488bc6be7092f23fac18efa362e
diff -r 40bb03539663 -r 8609fc67cd81 multimedia/smpeg/patches/patch-audio_huffmantable.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/smpeg/patches/patch-audio_huffmantable.cpp     Thu Oct 19 15:59:22 2017 +0000
@@ -0,0 +1,37 @@
+$NetBSD: patch-audio_huffmantable.cpp,v 1.1 2017/10/19 15:59:22 jperkin Exp $
+
+Fix build with GCC >= 6.
+
+--- audio/huffmantable.cpp.orig        1999-08-26 04:37:52.000000000 +0000
++++ audio/huffmantable.cpp
+@@ -9,6 +9,7 @@
+ #include "config.h"
+ #endif
+ 
++#include <climits>
+ #include "MPEGaudio.h"
+ 
+ static const unsigned int
+@@ -550,11 +551,11 @@ htd33[ 31][2]={{ 16,  1},{  8,  1},{  4,
+ 
+ const HUFFMANCODETABLE MPEGaudio::ht[HTN]=
+ {
+-  { 0, 0-1, 0-1, 0,  0, htd33},
++  { 0, UINT_MAX, UINT_MAX, 0,  0, htd33},
+   { 1, 2-1, 2-1, 0,  7,htd01},
+   { 2, 3-1, 3-1, 0, 17,htd02},
+   { 3, 3-1, 3-1, 0, 17,htd03},
+-  { 4, 0-1, 0-1, 0,  0, htd33},
++  { 4, UINT_MAX, UINT_MAX, 0,  0, htd33},
+   { 5, 4-1, 4-1, 0, 31,htd05},
+   { 6, 4-1, 4-1, 0, 31,htd06},
+   { 7, 6-1, 6-1, 0, 71,htd07},
+@@ -564,7 +565,7 @@ const HUFFMANCODETABLE MPEGaudio::ht[HTN
+   {11, 8-1, 8-1, 0,127,htd11},
+   {12, 8-1, 8-1, 0,127,htd12},
+   {13,16-1,16-1, 0,511,htd13},
+-  {14, 0-1, 0-1, 0,  0, htd33},
++  {14, UINT_MAX, UINT_MAX, 0,  0, htd33},
+   {15,16-1,16-1, 0,511,htd15},
+   {16,16-1,16-1, 1,511,htd16},
+   {17,16-1,16-1, 2,511,htd16},



Home | Main Index | Thread Index | Old Index