Bug 153299 - [patch] ports/py-mlpy doesn't run because of lacking cpow() function in FreeBSD.
Summary: [patch] ports/py-mlpy doesn't run because of lacking cpow() function in FreeBSD.
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-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-20 02:40 UTC by ginga-freebsd
Modified: 2010-12-21 01:30 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (738 bytes, patch)
2010-12-20 02:40 UTC, ginga-freebsd
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ginga-freebsd 2010-12-20 02:40:05 UTC
	Doing ports/py-mlpy "make install" seems to work successfully,
	but when running, it fails. (can't import mlpy-library from python)

	Since FreeBSD lacks C99 spec's cpow(), some alternative function/library 
	needs to be assigned.

Fix: Apply the following patch. I'm not sure if this is a true final solution,
	but at the least it solves the "cannot import problem".

	(gsl's function is used instead of the lacking cpow().
	GNU gsl is already installed by dependency)
How-To-Repeat: 
 	As described above, just "import" from python interpreter fails.

% python
Python 2.6.4 (r264:75706, May  7 2010, 09:17:16) 
[GCC 4.2.1 20070719  [FreeBSD]] on freebsd8
Type "help", "copyright", "credits" or "license" for more information.
Comment 1 dfilter service freebsd_committer freebsd_triage 2010-12-21 01:22:36 UTC
wen         2010-12-21 01:22:30 UTC

  FreeBSD ports repository

  Modified files:
    science/py-mlpy      Makefile distinfo 
  Added files:
    science/py-mlpy/files patch-mlpy-cwt-cwb.c 
  Log:
  - Fix run error because of lacking cpow() function in FreeBSD.
  - Remove MD5
  
  PR:             ports/153299
  Submitted by:   Kawaguti Ginga <ginga-freebsd@ginganet.org>
  
  Revision  Changes    Path
  1.7       +1 -0      ports/science/py-mlpy/Makefile
  1.5       +0 -1      ports/science/py-mlpy/distinfo
  1.1       +17 -0     ports/science/py-mlpy/files/patch-mlpy-cwt-cwb.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"
Comment 2 Wen Heping freebsd_committer freebsd_triage 2010-12-21 01:23:35 UTC
State Changed
From-To: open->closed

Committed. Thanks!