Bug 155446 - Port devel/ode compiled always with single precision
Summary: Port devel/ode compiled always with single precision
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: Jose Alonso Cardenas Marquez
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-10 17:30 UTC by Fernando Herrero Carrón
Modified: 2011-04-08 07:40 UTC (History)
0 users

See Also:


Attachments
file.diff (231 bytes, patch)
2011-03-10 17:30 UTC, Fernando Herrero Carrón
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fernando Herrero Carrón 2011-03-10 17:30:13 UTC
Port "devel/ode" is a rigid body physics simulation library. It allows
for single or double precision simulations by specifying the
"--enable-double-precision" to the configure script.

This option is supported in the ports infrastructre as a knob in the
configuration dialog. However, when it is selected, the configuration
(running the "configure" script) of the port prints out a strange
line:

...
checking if double precision is requested... yes
CPPFLAGS+= -DdDOUBLE: not found
checking which drawstuff lib to build... X11
...

Looking at the script:

...
if test "$precision" = yes;
then
        ODE_PRECISION=-DdDOUBLE
else
        ODE_PRECISION=-DdSINGLE
fi

CPPFLAGS+=" $ODE_PRECISION"
...

Apparently, "/bin/sh" does not support operand "+=", so this line is
interpreted as a command, instead of as a variable assignation.

Fix: The following patch should work:
How-To-Repeat: Enable double precision in the configuration dialog and compile.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-03-10 17:30:28 UTC
Responsible Changed
From-To: freebsd-ports-bugs->acm

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Jose Alonso Cardenas Marquez freebsd_committer freebsd_triage 2011-04-08 07:34:24 UTC
State Changed
From-To: open->closed

- Committed thanks!!
Comment 3 dfilter service freebsd_committer freebsd_triage 2011-04-08 07:34:27 UTC
acm         2011-04-08 06:34:13 UTC

  FreeBSD ports repository

  Modified files:
    devel/ode            Makefile distinfo 
  Log:
  - Update to 0.11.1
  - Fix double precision detection [1]
  
  PR:     155446
  Submitted by: Fernando Herrero <fhcarron _ at _terra.es> [1]
  
  Revision  Changes    Path
  1.28      +3 -3      ports/devel/ode/Makefile
  1.10      +2 -3      ports/devel/ode/distinfo
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"