Date: Tue, 1 Oct 2019 06:00:59 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r513456 - branches/2019Q3/textproc/groff/files Message-ID: <201910010600.x9160xTh022892@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dim (src committer) Date: Tue Oct 1 06:00:59 2019 New Revision: 513456 URL: https://svnweb.freebsd.org/changeset/ports/513456 Log: MFH: r512436 Fix groff build with libc++ 9.0.0 Because libc++ 9.0.0 now includes <math.h> from <stdlib.h>, groff fails to build with an error similar to: In file included from src/libs/libgroff/assert.cpp:20: In file included from /usr/include/c++/v1/stdlib.h:100: ./lib/math.h:38:3: error: "Please include config.h first." #error "Please include config.h first." ^ ./lib/math.h:40:1: error: unknown type name '_GL_INLINE_HEADER_BEGIN' _GL_INLINE_HEADER_BEGIN ^ Fix this in the least intrusive way, by simply including config.h instead of emitting an error message. Approved by: portmgr (joneum) PR: 240701 Added: branches/2019Q3/textproc/groff/files/patch-lib_math.in.h - copied unchanged from r512436, head/textproc/groff/files/patch-lib_math.in.h Modified: Directory Properties: branches/2019Q3/ (props changed) Copied: branches/2019Q3/textproc/groff/files/patch-lib_math.in.h (from r512436, head/textproc/groff/files/patch-lib_math.in.h) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2019Q3/textproc/groff/files/patch-lib_math.in.h Tue Oct 1 06:00:59 2019 (r513456, copy of r512436, head/textproc/groff/files/patch-lib_math.in.h) @@ -0,0 +1,11 @@ +--- lib/math.in.h.orig 2018-12-23 14:34:15 UTC ++++ lib/math.in.h +@@ -34,7 +34,7 @@ + #endif + + #ifndef _GL_INLINE_HEADER_BEGIN +- #error "Please include config.h first." ++# include "config.h" + #endif + _GL_INLINE_HEADER_BEGIN + #ifndef _GL_MATH_INLINE
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910010600.x9160xTh022892>