Bug 134863

Summary: [PATCH] math/eigen: use malloc instead of posix_memalign, fix on 6.x
Product: Ports & Packages Reporter: Dmitry Marakasov <amdmi3>
Component: Individual Port(s)Assignee: freebsd-kde (group) <kde>
Status: Closed FIXED    
Severity: Affects Only Me CC: kde
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
eigen-2.0.0_3.patch none

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!