From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Jul 16 09:40:21 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B41F16A4CE for ; Fri, 16 Jul 2004 09:40:21 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C19343D48 for ; Fri, 16 Jul 2004 09:40:21 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i6G9eKd0094965 for ; Fri, 16 Jul 2004 09:40:21 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i6G9eKiN094954; Fri, 16 Jul 2004 09:40:20 GMT (envelope-from gnats) Resent-Date: Fri, 16 Jul 2004 09:40:20 GMT Resent-Message-Id: <200407160940.i6G9eKiN094954@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, NAKAJI Hiroyuki Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9ED1716A4CE for ; Fri, 16 Jul 2004 09:33:34 +0000 (GMT) Received: from blade100.tutrp.tut.ac.jp (blade100.tutrp.tut.ac.jp [133.15.67.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 987AA43D3F for ; Fri, 16 Jul 2004 09:33:31 +0000 (GMT) (envelope-from nakaji@roddy.acest.tutrp.tut.ac.jp) Received: from roddy.acest.tutrp.tut.ac.jp (roddy.acest.tutrp.tut.ac.jp [133.15.67.28])i6G9XKDD022728 for ; Fri, 16 Jul 2004 18:33:20 +0900 (JST) Received: from roddy.acest.tutrp.tut.ac.jp (localhost.acest.tutrp.tut.ac.jp [127.0.0.1])i6G9XKPO059947 for ; Fri, 16 Jul 2004 18:33:20 +0900 (JST) (envelope-from nakaji@roddy.acest.tutrp.tut.ac.jp) Received: (from nakaji@localhost)i6G9XJCe059946; Fri, 16 Jul 2004 18:33:19 +0900 (JST) (envelope-from nakaji) Message-Id: <200407160933.i6G9XJCe059946@roddy.acest.tutrp.tut.ac.jp> Date: Fri, 16 Jul 2004 18:33:19 +0900 (JST) From: NAKAJI Hiroyuki To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/69143: [math/gnuplot+] fix amd64 build failure X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: NAKAJI Hiroyuki List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jul 2004 09:40:21 -0000 >Number: 69143 >Category: ports >Synopsis: [math/gnuplot+] fix amd64 build failure >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Fri Jul 16 09:40:18 GMT 2004 >Closed-Date: >Last-Modified: >Originator: User & >Release: FreeBSD 5.2-CURRENT i386 >Organization: >Environment: System: FreeBSD roddy.acest.tutrp.tut.ac.jp 5.2-CURRENT FreeBSD 5.2-CURRENT #7: Tue Jun 15 13:55:42 JST 2004 root@roddy.acest.tutrp.tut.ac.jp:/usr/obj/usr/src/sys/RODDY i386 >Description: It is marked BROKEN on amd64 because FreeBSD/amd64 does not have some IEEE FP functions like fpresetsticky(). The build failure log is now available at http://pointyhat.freebsd.org/errorlogs/amd64-5-full/gnuplot371+-1.2.0_1.log I found file/patch-za causes the problem. The feature of this patch as reported in ports/16120 can take effect only on FreeBSD/i386. >How-To-Repeat: >Fix: Now files/patch-za has influence only on i386. Index: Makefile =================================================================== RCS file: /net/boggy/home/ncvs/ports/math/gnuplot+/Makefile,v retrieving revision 1.25 diff -u -r1.25 Makefile --- Makefile 25 May 2004 00:39:32 -0000 1.25 +++ Makefile 16 Jul 2004 08:52:47 -0000 @@ -7,7 +7,7 @@ PORTNAME= gnuplot371+ PORTVERSION= 1.2.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= math japanese graphics MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ http://www.yama-ga.com/gnuplot/:patch \ @@ -54,10 +54,6 @@ .include -.if ${ARCH} == "amd64" -BROKEN= "Does not compile on amd64" -.endif - post-extract: ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/gnuplot3.7.1+${PORTVERSION}.patch.tar.gz ${EXTRACT_AFTER_ARGS} -C ${WRKSRC} Index: files/patch-za =================================================================== RCS file: /net/boggy/home/ncvs/ports/math/gnuplot+/files/patch-za,v retrieving revision 1.2 diff -u -r1.2 patch-za --- files/patch-za 19 Jun 2003 12:24:21 -0000 1.2 +++ files/patch-za 16 Jul 2004 08:55:38 -0000 @@ -1,10 +1,10 @@ ---- gplt_x11.c.orig Wed May 7 14:21:25 2003 -+++ gplt_x11.c Wed May 7 14:55:22 2003 +--- gplt_x11.c.orig Fri Jul 16 17:52:57 2004 ++++ gplt_x11.c Fri Jul 16 17:54:38 2004 @@ -169,6 +169,10 @@ # define EINTR E_ILLFNC #endif -+#if defined(__FreeBSD__) && ( defined(__i386__) || defined(__amd64__) ) ++#if defined(__FreeBSD__) && defined(__i386__) +# include +#endif + @@ -15,7 +15,7 @@ int argc; char *argv[]; { -+#if defined(__FreeBSD__) && ( defined(__i386__) || defined(__amd64__) ) ++#if defined(__FreeBSD__) && defined(__i386__) + /* allow divide by zero -- Inf */ + fpsetmask(fpgetmask() & ~(FP_X_DZ | FP_X_INV)); +#endif @@ -27,7 +27,7 @@ } XCloseDisplay(dpy); + -+#if defined(__FreeBSD__) && ( defined(__i386__) || defined(__amd64__) ) ++#if defined(__FreeBSD__) && defined(__i386__) + fpresetsticky(FP_X_DZ | FP_X_INV); + fpsetmask(fpgetmask() | (FP_X_DZ | FP_X_INV)); +#endif @@ -35,13 +35,13 @@ FPRINTF((stderr, "exiting\n")); ---- plot.c.orig Wed May 7 14:21:25 2003 -+++ plot.c Wed May 7 14:45:09 2003 +--- plot.c.orig Fri Jul 16 17:52:57 2004 ++++ plot.c Fri Jul 16 17:54:08 2004 @@ -73,6 +73,10 @@ # endif #endif /* _Windows */ -+#if defined(__FreeBSD__) && ( defined(__i386__) || defined(__amd64__) ) ++#if defined(__FreeBSD__) && defined(__i386__) +# include +#endif + @@ -52,7 +52,7 @@ _control87(MCW_EM, MCW_EM); #endif -+#if defined(__FreeBSD__) && ( defined(__i386__) || defined(__amd64__) ) ++#if defined(__FreeBSD__) && defined(__i386__) + /* allow divide by zero -- Inf */ + fpsetmask(fpgetmask() & ~(FP_X_DZ | FP_X_INV)); +#endif @@ -66,7 +66,7 @@ RexxDeregisterSubcom("GNUPLOT", NULL); +#endif + -+#if defined(__FreeBSD__) && ( defined(__i386__) || defined(__amd64__) ) ++#if defined(__FreeBSD__) && defined(__i386__) + fpresetsticky(FP_X_DZ | FP_X_INV); + fpsetmask(fpgetmask() | (FP_X_DZ | FP_X_INV)); #endif >Release-Note: >Audit-Trail: >Unformatted: