Bug 214647

Summary: games/toycars: fails to build with libc++ 3.9
Product: Ports & Packages Reporter: Jan Beich <jbeich>
Component: Individual Port(s)Assignee: Dmitry Marakasov <amdmi3>
Status: Closed FIXED    
Severity: Affects Only Me Keywords: easy, needs-patch
Priority: --- Flags: bugzilla: maintainer-feedback? (amdmi3)
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 2016-11-19 01:02:43 UTC
TrackView.cxx:92:10: error: cannot initialize a variable of type 'char *' with an rvalue of type 'con
st char *'
   char *suffix = strrchr(filename, '.');
         ^        ~~~~~~~~~~~~~~~~~~~~~~
TrackView.cxx:972:9: error: assigning to 'char *' from incompatible type 'const char *'
   temp = strrchr(name, '.');
        ^ ~~~~~~~~~~~~~~~~~~
TrackView.cxx:978:9: error: assigning to 'char *' from incompatible type 'const char *'
   temp = strrchr(name, '/');
        ^ ~~~~~~~~~~~~~~~~~~
TrackView.cxx:1047:9: error: assigning to 'char *' from incompatible type 'const char *'
   temp = strrchr(name, '.');
        ^ ~~~~~~~~~~~~~~~~~~
TrackView.cxx:1053:9: error: assigning to 'char *' from incompatible type 'const char *'
   temp = strrchr(name, '/');
        ^ ~~~~~~~~~~~~~~~~~~

http://package18.nyi.freebsd.org/data/headi386PR212343-default/2016-09-11_07h04m19s/logs/errors/toycars-0.3.10_7.log
http://package18.nyi.freebsd.org/data/headamd64PR212343-default/2016-09-13_07h18m01s/logs/errors/toycars-0.3.10_7.log
Comment 1 commit-hook freebsd_committer 2016-11-25 09:26:14 UTC
A commit references this bug:

Author: amdmi3
Date: Fri Nov 25 09:25:41 UTC 2016
New revision: 427090
URL: https://svnweb.freebsd.org/changeset/ports/427090

Log:
  - Add LICENSE
  - Switch to USES=localbase
  - Switch to options helpers
  - Fix build with clang 3.9
  - Regenerate patches

  PR:		214647

Changes:
  head/games/toycars/Makefile
  head/games/toycars/files/patch-toycars__track_editor_src_TrackView.cxx
  head/games/toycars/files/patch-toycars__vehicle__editor_src_VehicleObject.cpp
  head/games/toycars/files/patch-toycars__vehicle_editor_src_LoadSpriteFromImage.cpp
  head/games/toycars/files/patch-toycars__vehicle_editor_src_VehicleObject.cpp