Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jan 2018 14:31:17 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r459176 - head/astro/celestia
Message-ID:  <201801161431.w0GEVH5a002618@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801161431.w0GEVH5a002618>