From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-science+bounces-1678-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 1264A138010
	for <garchives@archives.gentoo.org>; Wed, 26 Sep 2012 12:02:27 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 5FF1821C0CB
	for <garchives@archives.gentoo.org>; Wed, 26 Sep 2012 12:02:26 +0000 (UTC)
Received: from mxi2.callplus.net.nz (mx194.callplus.net.nz [202.180.66.194])
	by pigeon.gentoo.org (Postfix) with ESMTP id 52DFF21C072
	for <gentoo-science@lists.gentoo.org>; Wed, 26 Sep 2012 11:20:17 +0000 (UTC)
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: ApIBAK3kYlB34Adh/2dsb2JhbAANOMIBAQEBAQN4EQsYCRYPCQMCAQIBRRMIAQGuMZQFixiCaYMgA5Z+khI
X-IronPort-AV: E=Sophos;i="4.80,490,1344168000"; 
   d="scan'208";a="298998451"
Received: from 119-224-7-97.callplus.net.nz (HELO [192.168.1.5]) ([119.224.7.97])
  by ismtp2.tranzpeer.net with ESMTP/TLS/DHE-RSA-CAMELLIA256-SHA; 26 Sep 2012 23:20:16 +1200
Message-ID: <5062E508.6080905@slingshot.co.nz>
Date: Wed, 26 Sep 2012 23:20:40 +1200
From: Francois Bissey <fbissey@slingshot.co.nz>
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120729 Thunderbird/14.0
Precedence: bulk
List-Post: <mailto:gentoo-science@lists.gentoo.org>
List-Help: <mailto:gentoo-science+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-science+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-science+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-science.gentoo.org>
X-BeenThere: gentoo-science@lists.gentoo.org
Reply-to: gentoo-science@lists.gentoo.org
MIME-Version: 1.0
To: gentoo-science@lists.gentoo.org
Subject: Re: [gentoo-science] blas/lapack stuff
References: <alpine.LRH.1.10.1110111136210.3652@star.inp.nsk.su> <CAPtnn5H-okYenrzNYSMgnY34pV=fjCOGBVhVP4S7qZcm6ZqF-w@mail.gmail.com> <alpine.LRH.1.10.1209261001200.14663@star.inp.nsk.su> <50629808.7060604@gentoo.org>
In-Reply-To: <50629808.7060604@gentoo.org>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Archives-Salt: e93f6d88-cf43-44d1-9d3c-4534f9a2060a
X-Archives-Hash: a07119ffdc2e2bc43782c231ae49bc2c

On 26/09/12 17:52, Kacper Kowalik wrote:
> On 09/26/2012 05:09 AM, Andrey G. Grozin wrote:
>> Hello *,
>>
>> I don't understand how the blas stuff (from the science overlay) works.
>> I have blas-reference and atlas (and also eigen) installed, atlas
>> eselected. But /usr/lib/libblas.so is a file (not symlink) owned by
>> blas-reference. So, a program demanding -lblas will be linked to this
>> library from blas-reference, right? And what eselect blas then is doing?
>>
>> This question is related to the new gsl-shell package. Its Makefile just
>> says -lblas. It works on my computer (linking to /usr/lib/libblas.so
>> from blas-reference, I suppose). But what should I write as the
>> dependency? virtual/blas? (docs say that atlas should be OK).
> Change -lblas into $(pkg-config --libs blas)
> Cheers,
> Kacper
> 
Just to add to Kacper's answer. eselect changes the link to the blas
pkg-config file. Any ebuild using blas/cblas/lapack should be configured
using the values from pkg-config.
If Sebastian had pushed it a little bit more we could have had
/usr/lib(64)/libblas-reference.so and no libblas whatsoever. Which may
be an idea just to catch packages that just do -lblas.

Francois