Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Nov 2016 11:30:20 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r427419 - head/multimedia/sabbu/files
Message-ID:  <201611301130.uAUBUKLk098732@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Wed Nov 30 11:30:20 2016
New Revision: 427419
URL: https://svnweb.freebsd.org/changeset/ports/427419

Log:
  multimedia/sabbu: unbreak with libc++ 3.9
  
  util.cpp:526:12: error: assigning to 'char *' from incompatible type 'const char *'
      msgval = strrchr (msgid, '|');
             ^ ~~~~~~~~~~~~~~~~~~~~
  util.cpp:539:9: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *'
    char *msgval = strrchr(msgid, '|');
          ^        ~~~~~~~~~~~~~~~~~~~
  
  PR:		214652
  Approved by:	portmgr blanket

Added:
  head/multimedia/sabbu/files/patch-Source_util.cpp   (contents, props changed)

Added: head/multimedia/sabbu/files/patch-Source_util.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/sabbu/files/patch-Source_util.cpp	Wed Nov 30 11:30:20 2016	(r427419)
@@ -0,0 +1,20 @@
+--- Source/util.cpp.orig	2005-08-11 14:32:00 UTC
++++ Source/util.cpp
+@@ -523,7 +523,7 @@ char *sgettext (const char *msgid)
+   char *msgval = gettext (msgid);
+   if (msgval == msgid)
+   {
+-    msgval = strrchr (msgid, '|');
++    msgval = strrchr ((char *) msgid, '|');
+     if(!msgval)
+       msgval = (char *) msgid;
+     else
+@@ -536,7 +536,7 @@ char *sgettext (const char *msgid)
+ 
+ char *sgettext_strip(const char *msgid)
+ {
+-  char *msgval = strrchr(msgid, '|');
++  char *msgval = strrchr((char *) msgid, '|');
+   if(!msgval)
+     return (char *) msgid;
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611301130.uAUBUKLk098732>