svn commit: r459176 - head/astro/celestia

Alexey Dokuchaev danfe at FreeBSD.org
Tue Jan 16 14:31:18 UTC 2018


Author: danfe
Date: Tue Jan 16 14:31:17 2018
New Revision: 459176
URL: https://svnweb.freebsd.org/changeset/ports/459176

Log:
  Unbreak the build against new Clang version 6.0.0: struct FavoritesEntry
  defines its member `fov' of type `double'; comparing it to NULL is bogus
  and wrong, no wonder this upsets strict compilers.
  
  PR:	224989

Modified:
  head/astro/celestia/Makefile

Modified: head/astro/celestia/Makefile
==============================================================================
--- head/astro/celestia/Makefile	Tue Jan 16 14:30:04 2018	(r459175)
+++ head/astro/celestia/Makefile	Tue Jan 16 14:31:17 2018	(r459176)
@@ -75,6 +75,9 @@ PORTDOCS=	AUTHORS ChangeLog README
 OPTIONS_DEFINE=	DOCS
 
 post-patch:
+	@${REINPLACE_CMD} -E '/fav(->|\.)fov/s|NULL|0.0|' \
+		${WRKSRC}/src/celestia/celestiacore.cpp \
+		${WRKSRC}/src/celestia/favorites.cpp
 # Fix Lua discovery pkg-config(1) calls
 	@${REINPLACE_CMD} -E 's|lua5\.?|lua-5.|' ${WRKSRC}/configure
 # Remove controversial compiler options (respect our C[XX]FLAGS)


More information about the svn-ports-head mailing list