Bug 108855 - please apply two patches for libgmp4
Summary: please apply two patches for libgmp4
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: Alex Dupre
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-07 01:30 UTC by Maho Nakata
Modified: 2007-02-07 07:10 UTC (History)
0 users

See Also:


Attachments
file.diff (36.59 KB, patch)
2007-02-07 01:30 UTC, Maho Nakata
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maho Nakata freebsd_committer freebsd_triage 2007-02-07 01:30:18 UTC
ports/math/libgmp4 (4.2.1) is known to have some bugs after the release:

http://www.swox.com/gmp/#STATUS
There are two bugs which are official fix and affect for FreeBSD, and 
not yet applied for FreeBSD ports.

1. [2006-11-30] With the C++ wrapper, ternary operations such as a=c+b*a where the desination variable is also used as a source, will compute garbage.
2. [2006-09-23] In mpz_set_d, arguments smaller than 1e-19 will trigger undefined behaviour, typically a crash. Note that this is a somewhat deegnerate use of mpz_set_d that should not normally happen, since any arguments < 1 will yield 0.

Fix: Here is the patch.

1. applying two patches.
2. bump port revision.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-02-07 01:35:16 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer
Comment 2 Alex Dupre freebsd_committer freebsd_triage 2007-02-07 07:00:39 UTC
State Changed
From-To: open->closed

Committed, thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2007-02-07 07:00:40 UTC
ale         2007-02-07 07:00:22 UTC

  FreeBSD ports repository

  Modified files:
    math/libgmp4         Makefile 
  Added files:
    math/libgmp4/files   patch-gmpxx.h patch-mpz_set_d.c 
  Log:
  Add two upstream patches.
  
  PR:             ports/108855
  Submitted by:   maho
  
  Revision  Changes    Path
  1.31      +2 -2      ports/math/libgmp4/Makefile
  1.1       +513 -0    ports/math/libgmp4/files/patch-gmpxx.h (new)
  1.1       +12 -0     ports/math/libgmp4/files/patch-mpz_set_d.c (new)
_______________________________________________
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"