From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Feb 18 10:10:16 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org 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 28B7616A420 for ; Sat, 18 Feb 2006 10:10:16 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBE1D43D58 for ; Sat, 18 Feb 2006 10:10:04 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k1IAA4L0000284 for ; Sat, 18 Feb 2006 10:10:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1IAA4tK000283; Sat, 18 Feb 2006 10:10:04 GMT (envelope-from gnats) Resent-Date: Sat, 18 Feb 2006 10:10:04 GMT Resent-Message-Id: <200602181010.k1IAA4tK000283@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, "Frank W. Josellis" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D01D16A420 for ; Sat, 18 Feb 2006 10:02:53 +0000 (GMT) (envelope-from frank@dynamical-systems.org) Received: from mout0.freenet.de (mout0.freenet.de [194.97.50.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF8B743D45 for ; Sat, 18 Feb 2006 10:02:51 +0000 (GMT) (envelope-from frank@dynamical-systems.org) Received: from [194.97.55.242] (helo=mx9.freenet.de) by mout0.freenet.de with esmtpa (Exim 4.61) (envelope-from ) id 1FAOvT-0004dt-0D for FreeBSD-gnats-submit@freebsd.org; Sat, 18 Feb 2006 11:02:51 +0100 Received: from p508e985f.dip0.t-ipconnect.de ([80.142.152.95] helo=pollux.senax.net) by mx9.freenet.de with esmtpsa (ID jr-relay@freenet.de) (TLSv1:AES256-SHA:256) (Exim 4.61 #21) id 1FAOvS-0004kv-LS for FreeBSD-gnats-submit@freebsd.org; Sat, 18 Feb 2006 11:02:50 +0100 Received: from pollux.senax.net (localhost.senax.net [127.0.0.1]) by pollux.senax.net (8.13.5/8.13.5) with ESMTP id k1IA2mJj010544; Sat, 18 Feb 2006 11:02:48 +0100 (CET) (envelope-from frank@dynamical-systems.org) Received: (from root@localhost) by pollux.senax.net (8.13.5/8.13.5/Submit) id k1IA2jvS010543; Sat, 18 Feb 2006 11:02:45 +0100 (CET) (envelope-from frank@dynamical-systems.org) Message-Id: <200602181002.k1IA2jvS010543@pollux.senax.net> Date: Sat, 18 Feb 2006 11:02:45 +0100 (CET) From: "Frank W. Josellis" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/93520: Patch for astro/libnova to relieve gcc33 dependency X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Feb 2006 10:10:16 -0000 >Number: 93520 >Category: ports >Synopsis: Patch for astro/libnova to relieve gcc33 dependency >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Feb 18 10:10:04 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Frank W. Josellis >Release: FreeBSD 5.4-STABLE i386 >Organization: >Environment: System: FreeBSD pollux.senax.net 5.4-STABLE FreeBSD 5.4-STABLE #4: Thu Jan 26 16:06:41 CET 2006 root@pollux.senax.net:/usr/obj/usr/src/sys/POLLUX i386 >Description: Currently the port requires gcc33 to build, apparently because of a double occurrence of the nan() function call. This function is a GNU extension (conforming to C99) which came builtin with gcc33 and is otherwise not available on FreeBSD. However, according to the GNU documentation, calling `nan("chars")` is equivalent to `strtod("NAN(chars)", NULL)`. The latter form is acceptable for FreeBSD and the patch below thus simply provides a substitution of equivalent expressions. Please note that the patch would add the following file: files/patch-src_hyperbolic_motion.c >How-To-Repeat: >Fix: --- libnova.patch begins here --- diff -Nur libnova.BAK/Makefile libnova/Makefile --- libnova.BAK/Makefile Mon Nov 28 21:04:52 2005 +++ libnova/Makefile Sat Feb 18 09:05:20 2006 @@ -8,6 +8,7 @@ PORTNAME= libnova PORTVERSION= 0.11.0 +PORTREVISION= 1 CATEGORIES= astro MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -19,7 +20,6 @@ USE_REINPLACE= yes USE_AUTOTOOLS= libtool:15 INSTALLS_SHLIB= yes -USE_GCC= 3.3 .include diff -Nur libnova.BAK/files/patch-src_hyperbolic_motion.c libnova/files/patch-src_hyperbolic_motion.c --- libnova.BAK/files/patch-src_hyperbolic_motion.c Thu Jan 1 01:00:00 1970 +++ libnova/files/patch-src_hyperbolic_motion.c Sat Feb 18 09:05:20 2006 @@ -0,0 +1,17 @@ +--- src/hyperbolic_motion.c.orig Tue Jul 5 11:09:22 2005 ++++ src/hyperbolic_motion.c Sat Feb 18 02:17:12 2006 +@@ -69,12 +69,12 @@ + F = Z1 * G1; + Q3 = Q3 + F; + if (Z > 100 || fabs(F) > 10000) +- return nan("0"); ++ return strtod("NAN(0)", NULL); + if (fabs(F) > PREC) + goto next_z; + L++; + if (L > 100) +- return nan("0"); ++ return strtod("NAN(0)", NULL); + do + { + S1 = S; --- libnova.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: