Bug 214652

Summary: multimedia/sabbu: fails to build with libc++ 3.9
Product: Ports & Packages Reporter: Jan Beich <jbeich>
Component: Individual Port(s)Assignee: Dirk Meyer <dinoex>
Status: Closed FIXED    
Severity: Affects Only Me Keywords: easy, needs-patch
Priority: --- Flags: bugzilla: maintainer-feedback? (dinoex)
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://github.com/llvm-mirror/libcxx/commit/b4aa97130b8b
Bug Depends on:    
Bug Blocks: 212343    

Description Jan Beich freebsd_committer freebsd_triage 2016-11-19 01:34:38 UTC
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, '|');
        ^        ~~~~~~~~~~~~~~~~~~~

http://package18.nyi.freebsd.org/data/headi386PR212343-default/2016-09-11_07h04m19s/logs/errors/sabbu-0.3.0_14.log
http://package18.nyi.freebsd.org/data/headamd64PR212343-default/2016-09-13_07h18m01s/logs/errors/sabbu-0.3.0_14.log
Comment 1 commit-hook freebsd_committer freebsd_triage 2016-11-30 11:31:11 UTC
A commit references this bug:

Author: jbeich
Date: Wed Nov 30 11:30:21 UTC 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

Changes:
  head/multimedia/sabbu/files/patch-Source_util.cpp