Date: Thu, 02 Jun 2011 19:55:06 -0500 From: Zhihao Yuan <lichray@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/157549: graphics/graphviz: Fix sincos() link error Message-ID: <4de830ed.43b9ec0a.4b93.495e@mx.google.com> Resent-Message-ID: <201106030100.p5310KK9078580@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 157549 >Category: ports >Synopsis: graphics/graphviz: Fix sincos() link error >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jun 03 01:00:19 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Zhihao Yuan >Release: FreeBSD 8.2-STABLE amd64 >Organization: Northern Illinois University >Environment: System: FreeBSD compaq.yuetime 8.2-STABLE FreeBSD 8.2-STABLE #1 r221793M: Wed May 11 21:44:19 CDT 2011 lichray@compaq.yuetime:/home/lichray/temp/obj/home/lichray/devel/freebsd-stable/sys/HOUKAGO amd64 >Description: FreeBSD's libm does not have a sincos function (maybe available on -CURRENT). Anyway, this port does not build. I hacked post-configure to undefine the HAVE_SINCOS macro. >How-To-Repeat: >Fix: --- graphviz_1.patch begins here --- diff -ruN --exclude=CVS /usr/ports/graphics/graphviz.orig/Makefile /usr/ports/graphics/graphviz/Makefile --- /usr/ports/graphics/graphviz.orig/Makefile 2011-05-20 03:31:01.000000000 -0500 +++ /usr/ports/graphics/graphviz/Makefile 2011-06-02 17:27:26.254781960 -0500 @@ -7,6 +7,7 @@ PORTNAME= graphviz PORTVERSION= 2.28.0 +PORTREVISION= 1 CATEGORIES= graphics tk MASTER_SITES= http://www.graphviz.org/pub/graphviz/ARCHIVE/ @@ -431,6 +432,10 @@ ${WRKSRC}/Makefile.in .endif +post-configure: + @${REINPLACE_CMD} -e 's|^#.*HAVE_SINCOS.*$$|#undef HAVE_SINCOS|' \ + ${WRKSRC}/config.h + post-install: install-ldconfig-file cd ${WRKSRC}/lib/expr && \ ${MAKE} ${INSTALL_TARGET} --- graphviz_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4de830ed.43b9ec0a.4b93.495e>