Bug 216227

Summary: devel/godot: fails to build with clang 4.0
Product: Ports & Packages Reporter: Jan Beich <jbeich>
Component: Individual Port(s)Assignee: Jan Beich <jbeich>
Status: Closed FIXED    
Severity: Affects Only Me CC: FreeBSD
Priority: --- Keywords: needs-patch
Version: LatestFlags: bugzilla: maintainer-feedback? (FreeBSD)
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215861
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216046
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216051
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216052
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216056
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216058
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216072
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216074
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216075
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216076
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216159
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216176
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216194
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216197
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216198
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216199
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216200
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216203
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216206
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216211
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216213
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216214
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216215
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216216
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216217
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216218
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216221
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216222
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216228
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216233
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216234
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216235
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216253
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216354
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216355
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216356
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216357
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216358
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216615
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216617
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216618
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216619
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216620
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216621
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216622
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216623
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216624
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216626
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216627
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216629
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216630
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216631
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216632
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216633
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216634
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216635
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216636
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216637
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216638
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216639
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216640
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216641
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216642
Bug Depends on:    
Bug Blocks: 216008    
Attachments:
Description Flags
devel/godot maintainer update none

Description Jan Beich freebsd_committer freebsd_triage 2017-01-18 11:48:52 UTC
scene/gui/tree.cpp:1295:27: error: ordered comparison between pointer and zero
      ('TreeItem *' and 'int')
                                if (c->get_children() > 0)
                                    ~~~~~~~~~~~~~~~~~ ^ ~

build log: http://sprunge.us/AVWL (interleaved due to ALLOW_MAKE_JOBS)
regressed by: https://github.com/llvm-mirror/clang/commit/4b6ad14285f3
Comment 1 Shane 2017-01-27 21:53:34 UTC
Created attachment 179361 [details]
devel/godot maintainer update

Update devel/godot to 2.1.2, the failing code has been updated in this release.

Use of external projects that have been bundled with this project are starting to be changed. freetype and png should either both be external or both internal as mixing leads to issues. After code shuffling the internal copy of musepack and speex fail to work and adding them as external dependencies is just easier than fixing it, I think these are also planned to be used as external libs in future releases. This all leads to more changes than expected in a minor point release.
Comment 2 commit-hook freebsd_committer freebsd_triage 2017-01-28 18:34:00 UTC
A commit references this bug:

Author: jbeich
Date: Sat Jan 28 18:33:12 UTC 2017
New revision: 432641
URL: https://svnweb.freebsd.org/changeset/ports/432641

Log:
  devel/godot: update to 2.1.2

  Changes:	https://godotengine.org/article/maintenance-release-godot-2-1-1
  Changes:	https://godotengine.org/article/maintenance-release-godot-2-1-2
  PR:		216227
  Submitted by:	Shane <FreeBSD@ShaneWare.Biz> (maintainer)

Changes:
  head/devel/godot/Makefile
  head/devel/godot/distinfo
  head/devel/godot/files/patch-SConstruct
  head/devel/godot/files/patch-drivers_SCsub
  head/devel/godot/files/patch-drivers_rtaudio_RtAudio.cpp
  head/devel/godot/files/patch-drivers_rtaudio_RtAudio.h
  head/devel/godot/files/patch-main_main.cpp
  head/devel/godot/files/patch-modules_speex_audio__stream__speex.cpp
  head/devel/godot/files/patch-platform_x11_detect.py
  head/devel/godot/files/patch-thirdparty_rtaudio_RtAudio.cpp
  head/devel/godot/files/patch-thirdparty_rtaudio_RtAudio.h
Comment 3 Jan Beich freebsd_committer freebsd_triage 2017-01-28 18:34:31 UTC
Thanks. Landed.
Comment 5 Shane 2017-02-01 04:00:14 UTC
For anyone using this as reference - the relevant godot commit is https://github.com/godotengine/godot/commit/31f929caa2

the code change was 

- if (pointer > 0)
+ if (pointer != NULL)

In sys/_null.h NULL gets defined as nullptr which is defined in c++/v1/__nullptr