ports/155105: Port vis5d+ does not build.

Stephen Montgomery-Smith stephen at missouri.edu
Sun Feb 27 23:30:11 UTC 2011


>Number:         155105
>Category:       ports
>Synopsis:       Port vis5d+ does not build.
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 27 23:30:06 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Stephen Montgomery-Smith
>Release:        FreeBSD 7.4-PRERELEASE i386
>Organization:
>Environment:
FreeBSD hub2.gateway.2wire.net 8.2-STABLE FreeBSD 8.2-STABLE #0: Fri Feb 25 18:38:27 CST 2011     stephen at hub2.gateway.2wire.net:/usr/obj/usr/src/sys/GENERIC  i386

	
>Description:

http://pointyhat.freebsd.org/errorlogs/i386-errorlogs/a.8.20110223062852/vis5d+-1.2.1_15.log

The bug seems to be in libtool.  If I run a command like

libtool -mode=link g++45 stuff stuff

libtool uses c++ instead of g++45.

	
>How-To-Repeat:
	
>Fix:

	

This proposed solution is a terrible hack.  It would be better to fix libtool.  But it does work, and if someone isn't going to fix libtool soon, this will do as a bandaid.

diff -ur /usr/ports/science/vis5d+/Makefile vis5d+/Makefile
--- /usr/ports/science/vis5d+/Makefile	2010-12-05 03:23:05.000000000 +0000
+++ vis5d+/Makefile	2011-02-27 23:08:34.000000000 +0000
@@ -33,6 +33,7 @@
 CONFIGURE_ARGS=	--enable-gtk --enable-threads --with-netcdf \
 		--with-mixkit=${LOCALBASE}/lib/libmix.a --with-x
 USE_LDCONFIG=	yes
+MAKE_ENV+=	PATH=${WRKDIR}:$$PATH
 
 CPPFLAGS=	-I${LOCALBASE}/include ${PTHREAD_CFLAGS}
 LDFLAGS=	-L${LOCALBASE}/lib ${PTHREAD_LIBS}
@@ -41,6 +42,10 @@
 
 .include <bsd.port.pre.mk>
 
+post-patch:
+	${LN} -s ${PREFIX}/bin/gcc45 ${WRKDIR}/cc
+	${LN} -s ${PREFIX}/bin/g++45 ${WRKDIR}/c++
+
 .if ${ARCH} == "sparc64"
 BROKEN=		Does not compile on sparc64
 .endif


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list