Bug 93520 - Patch for astro/libnova to relieve gcc33 dependency
Summary: Patch for astro/libnova to relieve gcc33 dependency
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Marcus Alves Grando
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-18 10:10 UTC by Frank W. Josellis
Modified: 2006-02-18 21:25 UTC (History)
0 users

See Also:


Attachments
libnova.patch (1.33 KB, patch)
2006-02-18 10:10 UTC, Frank W. Josellis
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Frank W. Josellis 2006-02-18 10:10:04 UTC
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
Comment 1 Marcus Alves Grando freebsd_committer freebsd_triage 2006-02-18 18:39:54 UTC
Responsible Changed
From-To: freebsd-ports-bugs->mnag

I'll take it.
Comment 2 Marcus Alves Grando freebsd_committer freebsd_triage 2006-02-18 21:25:20 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!