pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/multimedia/libmp4v2 Some -fpermissive fixes.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ddab4ddb24ac
branches:  trunk
changeset: 362469:ddab4ddb24ac
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Tue May 16 09:25:10 2017 +0000

description:
Some -fpermissive fixes.

diffstat:

 multimedia/libmp4v2/distinfo                                  |   4 +-
 multimedia/libmp4v2/patches/patch-lib_utils_config__opts.cpp  |  18 +++++++++++
 multimedia/libmp4v2/patches/patch-player_src_media__utils.cpp |  15 +++++++++
 3 files changed, 36 insertions(+), 1 deletions(-)

diffs (59 lines):

diff -r 25a784e72103 -r ddab4ddb24ac multimedia/libmp4v2/distinfo
--- a/multimedia/libmp4v2/distinfo      Tue May 16 08:37:59 2017 +0000
+++ b/multimedia/libmp4v2/distinfo      Tue May 16 09:25:10 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.15 2017/05/06 18:12:00 maya Exp $
+$NetBSD: distinfo,v 1.16 2017/05/16 09:25:10 jperkin Exp $
 
 SHA1 (mpeg4ip-1.6.1.tar.gz) = 2af97fc0da6a5c0bcb7b433c6715967487b80e38
 RMD160 (mpeg4ip-1.6.1.tar.gz) = ee8375d9581cccbbf685f730bb36f3866eaf12f7
@@ -40,6 +40,8 @@
 SHA1 (patch-lib_mp4v2_atom__standard.cpp) = 27a2bac270ac4a1fd5169d89d312690a4dcb58ab
 SHA1 (patch-lib_mp4v2_mp4atom.cpp) = ad0a1006293d8bea250de695919d8cdc59a7a4fa
 SHA1 (patch-lib_rtp_net__udp.c) = 3250d0ebcc0899ec4521eb20bc83f6e8a8bce3c9
+SHA1 (patch-lib_utils_config__opts.cpp) = 15a385df3635b9441ceacf898031ce0a94d1cd0e
 SHA1 (patch-player_lib_audio_faad_config.c) = 6448e02ed9f95fc94bca986958ac61c0bf0ec752
 SHA1 (patch-player_lib_audio_faad_huffdec.c) = 1106e902c3fe95cb76009613ae6641339580adac
 SHA1 (patch-player_lib_audio_faad_monopred.c) = 0833f17e10f91b69c63c896c15e98471c62f3025
+SHA1 (patch-player_src_media__utils.cpp) = d11bcfe9ade690e14686e1091b7f5c834068cd3c
diff -r 25a784e72103 -r ddab4ddb24ac multimedia/libmp4v2/patches/patch-lib_utils_config__opts.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/libmp4v2/patches/patch-lib_utils_config__opts.cpp      Tue May 16 09:25:10 2017 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-lib_utils_config__opts.cpp,v 1.1 2017/05/16 09:25:10 jperkin Exp $
+
+Handle SunOS getopt.
+
+--- lib/utils/config_opts.cpp.orig     2004-05-05 23:36:25.000000000 +0000
++++ lib/utils/config_opts.cpp
+@@ -22,7 +22,11 @@ struct option *create_long_opts_from_con
+   memset(long_options, 0, opts_size);
+   
+   for (ix = 0; ix < max_vars; ix++) {
++#ifdef __sun
++    long_options[ix].name = (char *)pConfig->GetNameFromIndex(ix);
++#else
+     long_options[ix].name = pConfig->GetNameFromIndex(ix);
++#endif
+     long_options[ix].has_arg = pConfig->GetTypeFromIndex(ix) == CONFIG_TYPE_BOOL ? 2 : 1;
+     long_options[ix].val = base_offset + ix;
+   }
diff -r 25a784e72103 -r ddab4ddb24ac multimedia/libmp4v2/patches/patch-player_src_media__utils.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/libmp4v2/patches/patch-player_src_media__utils.cpp     Tue May 16 09:25:10 2017 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-player_src_media__utils.cpp,v 1.1 2017/05/16 09:25:10 jperkin Exp $
+
+C++ strchr() reeturns const char *.
+
+--- player/src/media_utils.cpp.orig    2007-03-29 18:52:19.000000000 +0000
++++ player/src/media_utils.cpp
+@@ -610,7 +610,7 @@ static int create_media_for_iptv (CPlaye
+   session_desc_t *sdp;
+ 
+   name += strlen("iptv://");
+-  slash = strchr(name, '/');
++  slash = (char *)strchr(name, '/');
+   if (slash == NULL || slash == name) {
+     psptr->set_message("Invalid iptv content manager");
+     return -1;



Home | Main Index | Thread Index | Old Index