Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 498144 - dev-python/cvxopt cannot be compiled with acml or any other blas/lapack installed under /opt
Summary: dev-python/cvxopt cannot be compiled with acml or any other blas/lapack insta...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Mathematics related packages
Depends on:
Reported: 2014-01-15 10:02 UTC by François Bissey
Modified: 2014-01-16 18:46 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

proposed ebuild fixing the problem (cvxopt-1.1.6.ebuild,2.02 KB, text/plain)
2014-01-15 10:06 UTC, François Bissey
patch to cvxopt-1.1.6.ebuild (cvxopt.patch,539 bytes, patch)
2014-01-16 00:36 UTC, François Bissey
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description François Bissey 2014-01-15 10:02:04 UTC
The cvxopt ebuild cannot cope with a blas/lapack not installed under /usr/lib{64}. 
See the thread on the gentoo-science mailing list:

This is because the ebuild is only interested in the library against which to compile by calling "pkg-config --libs-only-l" unfortunately for acml and probably mkl one also need to set the location of the library "pkg-config --libs-only-L".
cvxopt's has variables for directory locations. Blas and lapack are supposed to live in the same directory according to (BLAS_LIB_DIR) which isn't a bad assumption and I would be hard pressed to give one were it would matter.

Reproducible: Always
Comment 1 François Bissey 2014-01-15 10:06:29 UTC
Created attachment 367892 [details]
proposed ebuild fixing the problem

Here is a proposed ebuild fixing the problem. It has been tested by the original reporter of the problem with success.
Comment 2 Alex Xu (Hello71) 2014-01-16 00:28:17 UTC
Please attach a patch against the existing ebuild.
Comment 3 François Bissey 2014-01-16 00:36:22 UTC
Created attachment 367922 [details, diff]
patch to cvxopt-1.1.6.ebuild

Here is the patch against 1.1.6. Note that 1.1.5-r2 has exactly the same problem and that the patch should apply there too.
Comment 4 Sébastien Fabbro (RETIRED) gentoo-dev 2014-01-16 18:46:05 UTC
  16 Jan 2014; Sébastien Fabbro <>
  +files/cvxopt-1.1.6-glpk.patch, -cvxopt-1.1.5-r2.ebuild,
  -files/cvxopt-1.1.5-setup.patch, cvxopt-1.1.6.ebuild, metadata.xml:
  Fixed for glpk versions > 4.49 (bug #473454), fixed for blas/lapck under /opt
  (bug #498144, thanks kiwifb), removed old (bug #404427, #450992)