Bug 134863 - [PATCH] math/eigen: use malloc instead of posix_memalign, fix on 6.x
Summary: [PATCH] math/eigen: use malloc instead of posix_memalign, fix on 6.x
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: freebsd-kde (group)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-22 16:30 UTC by Dmitry Marakasov
Modified: 2009-05-22 21:00 UTC (History)
1 user (show)

See Also:


Attachments
eigen-2.0.0_3.patch (1.20 KB, patch)
2009-05-22 16:30 UTC, Dmitry Marakasov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Marakasov 2009-05-22 16:30:04 UTC
eigen2 uses aligned malloc routine (ei_aligned_malloc), which currently relies on posix_memalign. The latter is not available on 6.x, so dependent ports may fail to build (example is upcoming science/avogadro, ports/134710).

FreeBSD malloc, however, is guaranteed to return 16-byte aligned pointers, so it may safely br used instead of posix_memalign, on 6.x as well.

The patch mekes EIGEN_MALLOC_ALREADY_ALIGNED defined on FreeBSD, so malloc is used.

Added file(s):
- files/patch-Eigen-src-Core-util-Memory.h

Port maintainer (kde@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.77
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2009-05-22 16:30:15 UTC
Responsible Changed
From-To: freebsd-ports-bugs->kde

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2009-05-22 20:54:20 UTC
makc        2009-05-22 19:54:09 UTC

  FreeBSD ports repository

  Modified files:
    math/eigen2          Makefile distinfo pkg-plist 
  Added files:
    math/eigen2/files    patch-Eigen__src__Core__util__Memory.h 
  Log:
  1) Update to 2.0.2
  2) Fix dependent ports on 6.x by using malloc instead of posix_memalign
  
  PR:             ports/134863 (2)
  Submitted by:   amdmi3
  
  Revision  Changes    Path
  1.8       +1 -2      ports/math/eigen2/Makefile
  1.5       +3 -3      ports/math/eigen2/distinfo
  1.1       +11 -0     ports/math/eigen2/files/patch-Eigen__src__Core__util__Memory.h (new)
  1.5       +0 -3      ports/math/eigen2/pkg-plist
_______________________________________________
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"
Comment 3 Max Brazhnikov freebsd_committer freebsd_triage 2009-05-22 20:54:40 UTC
State Changed
From-To: open->closed

Committed. Thanks!