atom feed2 messages in org.freebsd.freebsd-ports-bugsports/157549: graphics/graphviz: Fix ...
FromSent OnAttachments
Zhihao YuanJun 2, 2011 5:54 pm 
edw...@FreeBSD.orgJun 2, 2011 6:00 pm 
Subject:ports/157549: graphics/graphviz: Fix sincos() link error
From:Zhihao Yuan (lich@gmail.com)
Date:Jun 2, 2011 5:54:43 pm
List:org.freebsd.freebsd-ports-bugs

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: