From owner-freebsd-amd64@FreeBSD.ORG Sat Dec 4 14:00:47 2004 Return-Path: Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 200E516A4CE for ; Sat, 4 Dec 2004 14:00:47 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4B9B43D6A for ; Sat, 4 Dec 2004 14:00:45 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iB4E0jTO036276 for ; Sat, 4 Dec 2004 14:00:45 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iB4E0j9H036268; Sat, 4 Dec 2004 14:00:45 GMT (envelope-from gnats) Resent-Date: Sat, 4 Dec 2004 14:00:45 GMT Resent-Message-Id: <200412041400.iB4E0j9H036268@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Roland Smith Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 501F116A4CE for ; Sat, 4 Dec 2004 13:54:09 +0000 (GMT) Received: from smtp-vbr11.xs4all.nl (smtp-vbr11.xs4all.nl [194.109.24.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id AFCAC43D62 for ; Sat, 4 Dec 2004 13:54:08 +0000 (GMT) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) iB4Ds7hx024778 for ; Sat, 4 Dec 2004 14:54:07 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 75EC1635E; Sat, 4 Dec 2004 14:54:23 +0100 (CET) Message-Id: <20041204135423.75EC1635E@slackbox.xs4all.nl> Date: Sat, 4 Dec 2004 14:54:23 +0100 (CET) From: Roland Smith To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: amd64/74669: The port math/octave is marked BROKEN on amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Roland Smith List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Dec 2004 14:00:47 -0000 >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 -.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@slackbox.xs4all.nl:/usr/src/sys/amd64/compile/RFS_1 amd64