Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 501868 - dev-lang/julia-0.2 blas fixups
Summary: dev-lang/julia-0.2 blas fixups
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-20 07:40 UTC by Dmitry S. Kulyabov
Modified: 2014-02-26 10:01 UTC (History)
1 user (show)

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


Attachments
dev-lang/julia-0.2.0.ebuild (julia-0.2.0.ebuild,2.71 KB, text/plain)
2014-02-20 07:40 UTC, Dmitry S. Kulyabov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry S. Kulyabov 2014-02-20 07:40:13 UTC
Created attachment 370856 [details]
dev-lang/julia-0.2.0.ebuild

dev-lang/julia-0.2 don't find blas
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-02-20 12:57:46 UTC
Comment on attachment 370856 [details]
dev-lang/julia-0.2.0.ebuild

--- julia-0.2.0.ebuild  2014-01-09 15:05:50.559089368 +0100
+++ -   2014-02-20 13:57:28.218937317 +0100
@@ -63,8 +63,11 @@
        cp "${DISTDIR}/dsfmt-2.2.tar.gz" deps/random/
        cp "${DISTDIR}/double-conversion-1.1.1.tar.gz" deps/
        # Some cleanups to avoid an OpenBlas dep, and remove some useless git errors
-       sed -e "s|-lblas|$($(tc-getPKG_CONFIG) --libs blas)|" Make.inc || die
-       sed -e 's/$(shell git rev-parse --short=10 HEAD)/v0.2.0/' Make.inc || die
+       blas_lib=$($(tc-getPKG_CONFIG) --libs blas)
+       blas_name=`echo ${blas_lib} | sed -e "s:-l:lib:g"`
+       sed -i -e "s|-lblas|$($(tc-getPKG_CONFIG) --libs blas)|" Make.inc || die
+       sed -i -e "s|libblas|${blas_name}|" Make.inc || die
+       sed -i -e 's/$(shell git rev-parse --short=10 HEAD)/v0.2.0/' Make.inc || die
 }
 
 src_compile() {
Comment 2 Patrick Lauer gentoo-dev 2014-02-21 04:00:08 UTC
graphics.jl
profile.jl
LoadError("sysimg.jl",231,ErrorException("error compiling _start: error compiling check_blas: error compiling blas_vendor: could not load module -L/usr/lib64/blas/reference libblas: -L/usr/lib64/blas/reference libblas: cannot open shared object file: No such file or directory"))
Makefile:69: recipe for target '/var/tmp/portage/dev-lang/julia-0.2.0-r1/work/usr/lib/julia/sys0.ji' failed
make[1]: *** [/var/tmp/portage/dev-lang/julia-0.2.0-r1/work/usr/lib/julia/sys0.ji] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-lang/julia-0.2.0-r1/work'
Makefile:34: recipe for target 'release' failed
make: *** [release] Error 2
 * ERROR: dev-lang/julia-0.2.0-r1::gentoo failed (compile phase):
 *   emake failed

I disagree with that patch :)
Comment 3 Patrick Lauer gentoo-dev 2014-02-26 02:59:30 UTC
Seems to have been fixed by Calchan
Comment 4 Patrick Lauer gentoo-dev 2014-02-26 03:38:18 UTC
+  26 Feb 2014; Patrick Lauer <patrick@gentoo.org> julia-0.2.0.ebuild:
+  Revert changes that break build #501868

Well, uhm, it's more fun when it's actually installable.

Also, when doing such changes it helps to do a revision bump (think binpkgs) or certain people get mildly unhappy.
Comment 5 Patrick Lauer gentoo-dev 2014-02-26 03:40:13 UTC
could not load module -L/usr/lib64/blas/reference.so: -L/usr/lib64/blas/reference.so: cannot open shared object file: No such file or directory

# ls /usr/lib64/blas/reference/
blas.pc           libblas.a         libblas.la        libblas.so        libblas.so.0      libblas.so.0.0.0

Spot the difference ...
Comment 6 Mark Wright gentoo-dev 2014-02-26 10:01:21 UTC
sci-libs/blas-reference-20070226-r2 has:

$ pkg-config --libs blas
-L/usr/lib64/blas/reference -lblas 
$

Which was breaking the seds, fixed by using pkg-config --libs-only-l blas
in julia-0.2.0-r1