svn commit: r459192 - head/astro/stellarium-qt4

Alexey Dokuchaev danfe at FreeBSD.org
Tue Jan 16 16:03:40 UTC 2018


Author: danfe
Date: Tue Jan 16 16:03:39 2018
New Revision: 459192
URL: https://svnweb.freebsd.org/changeset/ports/459192

Log:
  Unbreak the build with new Clang version 6.0.0: compare the pointer against
  NULL, not integer (or boolean) value.
  
  PR:	224989

Modified:
  head/astro/stellarium-qt4/Makefile

Modified: head/astro/stellarium-qt4/Makefile
==============================================================================
--- head/astro/stellarium-qt4/Makefile	Tue Jan 16 15:53:33 2018	(r459191)
+++ head/astro/stellarium-qt4/Makefile	Tue Jan 16 16:03:39 2018	(r459192)
@@ -68,6 +68,9 @@ PLIST_SUB+=	SCRIPTS="@comment "
 .endif
 
 post-patch: .SILENT
+# Fix the build against Clang 6.0.0
+	${REINPLACE_CMD} -e 's,skyDrawer==false,skyDrawer==NULL,' \
+		${WRKSRC}/src/core/StelCore.cpp
 # Avoid picking up the wrong `fixx11h.h' (`x11/kdelibs3' port installs one
 # that does not handle FontChange)
 	${GREP} -Rl --null fixx11h\\.h ${WRKSRC}/src ${WRKSRC}/plugins | \


More information about the svn-ports-all mailing list