Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 171203 - app-admin/eselect-[c]blas fails to find installed atlas on amd64
Summary: app-admin/eselect-[c]blas fails to find installed atlas on amd64
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-16 23:23 UTC by Chris Foster
Modified: 2007-03-26 07:35 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Foster 2007-03-16 23:23:43 UTC
Running the command:

$ eselect cblas list

shows up empty on my amd64 machine, even though I have atlas installed.


I had a poke around, and found the reason.  What happens is the following:

1) eselect-cblas uses the file /usr/share/eselect/libs/skel.bash to search for installed implementations.

2) skel.bash considers all library directories from $(get_libdir) which are lib, lib32 and lib64 on my machine.  However, it considers only library directories which are *not* symlinks

3) On my machine, /usr/lib64 is a symlink to /usr/lib, therefore lib64 is ignored.

4) When atlas is installed, it installs configuration files into /etc/env.d/cblas/lib64 and /etc/env.d/blas/lib64.  However, these aren't scanned, since /usr/lib64 is discarded as being a symlink.


My (temporary) solution is to symlink /etc/env.d/cblas/lib to /etc/env.d/cblas/lib64.
Comment 1 Chris Foster 2007-03-16 23:30:58 UTC
I should add that exactly the same problem is apparent for eselect-blas, for the same reasons, and with the analgous temporary fix.
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2007-03-21 17:57:46 UTC
I think you're using an old profile with the lib64 symlink the wrong way around. Could the amd64 team respond to this?

"3) On my machine, /usr/lib64 is a symlink to /usr/lib, therefore lib64 is
ignored."
Comment 3 Simon Stelling (RETIRED) gentoo-dev 2007-03-24 10:11:01 UTC
(In reply to comment #2)
> I think you're using an old profile with the lib64 symlink the wrong way
> around. Could the amd64 team respond to this?
> 
> "3) On my machine, /usr/lib64 is a symlink to /usr/lib, therefore lib64 is
> ignored."

Yes, it's supposed to be /usr/lib -> ../lib64
Comment 4 Donnie Berkholz (RETIRED) gentoo-dev 2007-03-26 07:35:44 UTC
We don't support that old setup. I'm not sure what migration mechanism exists, although you could move it around by hand if you want.