amd64/74669: The port math/octave is marked BROKEN on amd64

Roland Smith rsmith at xs4all.nl
Sat Dec 4 06:00:47 PST 2004


>Number:         74669
>Category:       amd64
>Synopsis:       The port math/octave is marked BROKEN on amd64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-amd64
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 04 14:00:45 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Roland Smith
>Release:        FreeBSD 5.3-RELEASE amd64
>Organization:
none
>Environment:
>Description:
The port math/octave is marked BROKEN on amd64. 

>How-To-Repeat:
>Fix:
	This patch works around the breakage by configuring octave with
	--disable-shared. This makes for a large executable, but the
	program works.

--- octave-mak.patch begins here ---
--- Makefile.orig	Fri Dec  3 20:36:40 2004
+++ Makefile	Sat Dec  4 10:43:13 2004
@@ -23,10 +23,6 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${ARCH} == "amd64"
-BROKEN=		"Does not build on amd64 (Shared libraries must be compiled with -fPIC)"
-.endif
-
 .if ${PORTOBJFORMAT} == "elf"
 GNU_HOST=	${ARCH}-portbld-freebsd${OSREL}
 .else
@@ -38,11 +34,16 @@
 BLAS_LIBS=	"-L${LOCALBASE}/lib -lf77blas -lcblas -latlas"
 USE_GMAKE=	yes
 GNU_CONFIGURE=	yes
-USE_REINPLACE=	yes
 
-CONFIGURE_ARGS=	--host=${GNU_HOST} \
-		--with-fftw --with-blas=${BLAS_LIBS} --with-lapack=-lalapack \
-		--enable-shared
+CONIGURE_ARGS=  --host=${GNU_HOST} \
+		--with-fftw --with-blas=${BLAS_LIBS} --with-lapack=-lalapack
+.if ${ARCH} == "amd64"
+CONFIGURE_ARGS+= --disable-shared
+.else
+CONFIGURE_ARGS+= --enable-shared
+USE_REINPLACE=  yes
+.endif
+
 CONFIGURE_ENV=	CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
 		LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" \
 		CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
@@ -62,12 +63,14 @@
 	@${RM} -f ${WRKSRC}/doc/interpreter/octave.info*
 	@${RM} -f ${WRKSRC}/doc/liboctave/liboctave.info*
 post-install:
+.if ${ARCH} != "amd64"
 	${RM} ${PREFIX}/bin/octave
 	@${CP} ${FILESDIR}/octave ${WRKDIR}
 	@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g ; \
 			      s,%%OCTAVE_VERSION%%,${OCTAVE_VERSION},g' \
 			      ${WRKDIR}/octave
 	${INSTALL_SCRIPT} ${WRKDIR}/octave ${PREFIX}/bin
+.endif
 	${INSTALL_DATA} ${WRKSRC}/doc/liboctave/liboctave.info ${PREFIX}/info
 	install-info --entry='* Octave: (octave).	Interactive language for numerical computations.' $(PREFIX)/info/octave.info $(PREFIX)/info/dir
 	install-info --entry='* LibOctave: (liboctave).	C++ class library for Octave.' $(PREFIX)/info/liboctave.info $(PREFIX)/info/dir
--- octave-mak.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:
 >System: FreeBSD slackbox.xs4all.nl 5.3-RELEASE FreeBSD 5.3-RELEASE #8: Wed Dec 1 22:24:03 CET 2004 rsmith at slackbox.xs4all.nl:/usr/src/sys/amd64/compile/RFS_1 amd64
 


More information about the freebsd-amd64 mailing list