svn commit: r427419 - head/multimedia/sabbu/files

Jan Beich jbeich at FreeBSD.org
Wed Nov 30 11:30:22 UTC 2016


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;
+ 


More information about the svn-ports-all mailing list