* [gentoo-user] virtual eselect - how to
@ 2019-06-26 13:05 Helmut Jarausch
2019-06-26 13:51 ` Mick
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Helmut Jarausch @ 2019-06-26 13:05 UTC (permalink / raw
To: gentoo-user
Hi,
what is the relationship of a virtual package and eselect.
E.g.
I have installed openblas but 'eselect blas list' doesn't know about
this.
I have even modified virtual/blas to include openblas.
How does eselect get the list of alternatives?
Many thanks for a hint,
Helmut
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] virtual eselect - how to
2019-06-26 13:05 [gentoo-user] virtual eselect - how to Helmut Jarausch
@ 2019-06-26 13:51 ` Mick
2019-06-26 15:45 ` [gentoo-user] " Ian Zimmerman
2019-06-27 20:27 ` [gentoo-user] " Marc Joliet
2019-06-29 1:20 ` Hasan Ç.
2 siblings, 1 reply; 9+ messages in thread
From: Mick @ 2019-06-26 13:51 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1268 bytes --]
On Wednesday, 26 June 2019 14:05:27 BST Helmut Jarausch wrote:
> Hi,
> what is the relationship of a virtual package and eselect.
> E.g.
> I have installed openblas but 'eselect blas list' doesn't know about
> this.
I assume it doesn't know about it because there is no eselect module for blas.
> I have even modified virtual/blas to include openblas.
Virtual packages are there to make sure at least one of alternative packages
satisfying dependency requirements will be installed. So, some package you
installed requires a database. A virtual/<database_required> will be
installed to make sure at least one of the database packages to satisfy the
dependency requirement is installed.
> How does eselect get the list of alternatives?
>
> Many thanks for a hint,
> Helmut
My understanding is package devs will have to create a corresponding eselect
module, in order manage the symlinks for the various versions of said package
which are available in the tree at any time.
In absence of an eselect module, you can create any desired symlinks yourself.
I often forget there are so many eselect modules these days. I found myself
using rm and 'ln -s' to change profiles, only to recall eselect does this in a
single incantation.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* [gentoo-user] Re: virtual eselect - how to
2019-06-26 13:51 ` Mick
@ 2019-06-26 15:45 ` Ian Zimmerman
2019-06-26 21:13 ` David Haller
0 siblings, 1 reply; 9+ messages in thread
From: Ian Zimmerman @ 2019-06-26 15:45 UTC (permalink / raw
To: gentoo-user
On 2019-06-26 14:51, Mick wrote:
> > I have installed openblas but 'eselect blas list' doesn't know about
> > this.
>
> I assume it doesn't know about it because there is no eselect module
> for blas.
There definitely is, I have run across this problem as well.
--
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
To reply privately _only_ on Usenet and on broken lists
which rewrite From, fetch the TXT record for no-use.mooo.com.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Re: virtual eselect - how to
2019-06-26 15:45 ` [gentoo-user] " Ian Zimmerman
@ 2019-06-26 21:13 ` David Haller
2019-06-27 7:51 ` Mick
0 siblings, 1 reply; 9+ messages in thread
From: David Haller @ 2019-06-26 21:13 UTC (permalink / raw
To: gentoo-user
Hello,
On Wed, 26 Jun 2019, Ian Zimmerman wrote:
>On 2019-06-26 14:51, Mick wrote:
>
>> > I have installed openblas but 'eselect blas list' doesn't know about
>> > this.
>>
>> I assume it doesn't know about it because there is no eselect module
>> for blas.
>
>There definitely is, I have run across this problem as well.
# eix app-eselect/ |grep blas
[I] app-eselect/eselect-blas
[I] app-eselect/eselect-cblas
HTH,
-dnh
--
sh -c 'set 2 1 0 / . - + ^ : , ! %;y=70;for a in $* $*;do x=54;while [ \
${#s} -lt 79 ];do r=0;i=0;for b in % $*;do [ $(((q=r*r)+(t=i*i))) -ge 9\
999 ]&&break;i=$((y+(r*i)/32));r=$((x+(q-t)/64));done;s=$b$s;x=$((x-2))\
;done;y=$((y-6));echo $s;s=;done;'
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Re: virtual eselect - how to
2019-06-26 21:13 ` David Haller
@ 2019-06-27 7:51 ` Mick
2019-06-27 8:54 ` Dale
0 siblings, 1 reply; 9+ messages in thread
From: Mick @ 2019-06-27 7:51 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 672 bytes --]
On Wednesday, 26 June 2019 22:13:30 BST David Haller wrote:
> Hello,
>
> On Wed, 26 Jun 2019, Ian Zimmerman wrote:
> >On 2019-06-26 14:51, Mick wrote:
> >> > I have installed openblas but 'eselect blas list' doesn't know about
> >> > this.
> >>
> >> I assume it doesn't know about it because there is no eselect module
> >> for blas.
> >
> >There definitely is, I have run across this problem as well.
>
> # eix app-eselect/ |grep blas
> [I] app-eselect/eselect-blas
> [I] app-eselect/eselect-cblas
In this case, if neither of the above set up a link to openblas (I don't have
blas here to check) it's time for a chat with the package maintainer.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] Re: virtual eselect - how to
2019-06-27 7:51 ` Mick
@ 2019-06-27 8:54 ` Dale
0 siblings, 0 replies; 9+ messages in thread
From: Dale @ 2019-06-27 8:54 UTC (permalink / raw
To: gentoo-user
Mick wrote:
> On Wednesday, 26 June 2019 22:13:30 BST David Haller wrote:
>> Hello,
>>
>> On Wed, 26 Jun 2019, Ian Zimmerman wrote:
>>> On 2019-06-26 14:51, Mick wrote:
>>>>> I have installed openblas but 'eselect blas list' doesn't know about
>>>>> this.
>>>> I assume it doesn't know about it because there is no eselect module
>>>> for blas.
>>> There definitely is, I have run across this problem as well.
>> # eix app-eselect/ |grep blas
>> [I] app-eselect/eselect-blas
>> [I] app-eselect/eselect-cblas
> In this case, if neither of the above set up a link to openblas (I don't have
> blas here to check) it's time for a chat with the package maintainer.
>
I just saw a thread on -dev mentioning blas. The title is:
[gentoo-dev] [PATCH 0/2] RFC: Introducing ldso switching to BLAS/LAPACK
It mentions switching which is what eselect does but reading it, I'm not
sure if it is related or not.
Dale
:-) :-)
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] virtual eselect - how to
2019-06-26 13:05 [gentoo-user] virtual eselect - how to Helmut Jarausch
2019-06-26 13:51 ` Mick
@ 2019-06-27 20:27 ` Marc Joliet
2019-06-29 1:20 ` Hasan Ç.
2 siblings, 0 replies; 9+ messages in thread
From: Marc Joliet @ 2019-06-27 20:27 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1307 bytes --]
Am Mittwoch, 26. Juni 2019, 15:05:27 CEST schrieb Helmut Jarausch:
> Hi,
> what is the relationship of a virtual package and eselect.
> E.g.
> I have installed openblas but 'eselect blas list' doesn't know about
> this.
> I have even modified virtual/blas to include openblas.
I have the feeling you're mixing ::science and ::gentoo packages. Since
openblas is only in the ::science overlay, I presume you are using that. The
version of virtual/blas in ::science *does* include openblas already, so you
shouldn't have needed to modify it, and you should be using eselect::science,
too. eselect-blas is *not* enough (and I don't even have it installed).
If you want to be sure to use packages from ::science, append "::science" to
packages in your world file or set definition(s).
> How does eselect get the list of alternatives?
I don't know, sorry.
> Many thanks for a hint,
> Helmut
BTW, the thread Dale mentioned is part of an effort to get the BLAS/LAPACK
alternatives handling done properly (or at least more robustly). The way it's
handled in the ::science overlay currently will likely not be merged into the
main portage tree.
HTH
--
Marc Joliet
--
"People who think they know everything really annoy those of us who know we
don't" - Bjarne Stroustrup
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] virtual eselect - how to
2019-06-26 13:05 [gentoo-user] virtual eselect - how to Helmut Jarausch
2019-06-26 13:51 ` Mick
2019-06-27 20:27 ` [gentoo-user] " Marc Joliet
@ 2019-06-29 1:20 ` Hasan Ç.
2019-06-29 1:21 ` Hasan Ç.
2 siblings, 1 reply; 9+ messages in thread
From: Hasan Ç. @ 2019-06-29 1:20 UTC (permalink / raw
To: gentoo-user; +Cc: gentoo-dev, gentoo-science, perfinion
[-- Attachment #1: Type: text/plain, Size: 1915 bytes --]
Hi All,
I mentioned my active PR a few times on dev-lists that covers *openblas
ebuild (for main gentoo tree ~amd64)* + *integrated switch script between
openblas and gentoo reference set* {c,}blas, lapack and gsl (gnu scientific
library) *system-wide.* It seems i could not announce it enough.
Here is the complete openblas PR + system-wide switch script, if someone
interested in -->
https://github.com/gentoo/gentoo/pull/11700
*Here is the code who want to inspect switch script before use it -->*
https://github.com/gentoo/gentoo/blob/04b5fc9c117571ce040a94f63c6d09e0ce15c5f8/sci-libs/openblas/files/openblas
- I believe the proper way is eselect instead of this script but
openblas switch script is my quick fix until openblas fully integrated to
main tree and eselect.
- After switching to openblas system wide with script i tested it
with *numpy
& scipy, *both of them compiled with openblas support without any issue.
- *This is not officially merged PR and maybe it never will.Also switch
script not reviewed deeply by gentoo devs and may need improvement.This is
my own solution.Please consider this before use it.*
Screenshot's of the openblas switch script -->
*openblas --status*
[image: 56973125-e55d8300-6b74-11e9-99c7-142bfc4b2b11.png]
*openblas --openblas*
[image: 56973077-d1198600-6b74-11e9-97a0-315e789142cd.png]
*openblas --help*
[image: 56973043-c3640080-6b74-11e9-9415-90b3fa01ee9f.png]
Hasan Calisir | Proxy Maint
Helmut Jarausch <jarausch@skynet.be>, 26 Haz 2019 Çar, 16:05 tarihinde şunu
yazdı:
> Hi,
> what is the relationship of a virtual package and eselect.
> E.g.
> I have installed openblas but 'eselect blas list' doesn't know about
> this.
> I have even modified virtual/blas to include openblas.
>
> How does eselect get the list of alternatives?
>
> Many thanks for a hint,
> Helmut
>
>
[-- Attachment #2: Type: text/html, Size: 3010 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] virtual eselect - how to
2019-06-29 1:20 ` Hasan Ç.
@ 2019-06-29 1:21 ` Hasan Ç.
0 siblings, 0 replies; 9+ messages in thread
From: Hasan Ç. @ 2019-06-29 1:21 UTC (permalink / raw
To: gentoo-user; +Cc: gentoo-dev, gentoo-science, perfinion
[-- Attachment #1.1: Type: text/plain, Size: 2272 bytes --]
[image: 56973125-e55d8300-6b74-11e9-99c7-142bfc4b2b11.png]
[image: 56973077-d1198600-6b74-11e9-97a0-315e789142cd.png]
[image: 56973043-c3640080-6b74-11e9-9415-90b3fa01ee9f.png]
Hasan Ç. <hsntgm@gmail.com>, 29 Haz 2019 Cmt, 04:20 tarihinde şunu yazdı:
> Hi All,
>
> I mentioned my active PR a few times on dev-lists that covers *openblas
> ebuild (for main gentoo tree ~amd64)* + *integrated switch script between
> openblas and gentoo reference set* {c,}blas, lapack and gsl (gnu
> scientific library) *system-wide.* It seems i could not announce it
> enough.
>
> Here is the complete openblas PR + system-wide switch script, if someone
> interested in -->
> https://github.com/gentoo/gentoo/pull/11700
>
> *Here is the code who want to inspect switch script before use it -->*
>
> https://github.com/gentoo/gentoo/blob/04b5fc9c117571ce040a94f63c6d09e0ce15c5f8/sci-libs/openblas/files/openblas
>
> - I believe the proper way is eselect instead of this script but
> openblas switch script is my quick fix until openblas fully integrated to
> main tree and eselect.
> - After switching to openblas system wide with script i tested it with *numpy
> & scipy, *both of them compiled with openblas support without any
> issue.
> - *This is not officially merged PR and maybe it never will.Also
> switch script not reviewed deeply by gentoo devs and may need
> improvement.This is my own solution.Please consider this before use it.*
>
> Screenshot's of the openblas switch script -->
>
> *openblas --status*
> [image: 56973125-e55d8300-6b74-11e9-99c7-142bfc4b2b11.png]
>
> *openblas --openblas*
> [image: 56973077-d1198600-6b74-11e9-97a0-315e789142cd.png]
>
> *openblas --help*
> [image: 56973043-c3640080-6b74-11e9-9415-90b3fa01ee9f.png]
>
> Hasan Calisir | Proxy Maint
>
> Helmut Jarausch <jarausch@skynet.be>, 26 Haz 2019 Çar, 16:05 tarihinde
> şunu yazdı:
>
>> Hi,
>> what is the relationship of a virtual package and eselect.
>> E.g.
>> I have installed openblas but 'eselect blas list' doesn't know about
>> this.
>> I have even modified virtual/blas to include openblas.
>>
>> How does eselect get the list of alternatives?
>>
>> Many thanks for a hint,
>> Helmut
>>
>>
[-- Attachment #1.2: Type: text/html, Size: 3757 bytes --]
[-- Attachment #2: 56973125-e55d8300-6b74-11e9-99c7-142bfc4b2b11.png --]
[-- Type: image/png, Size: 46670 bytes --]
[-- Attachment #3: 56973077-d1198600-6b74-11e9-97a0-315e789142cd.png --]
[-- Type: image/png, Size: 17643 bytes --]
[-- Attachment #4: 56973043-c3640080-6b74-11e9-9415-90b3fa01ee9f.png --]
[-- Type: image/png, Size: 37533 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2019-06-29 1:22 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-26 13:05 [gentoo-user] virtual eselect - how to Helmut Jarausch
2019-06-26 13:51 ` Mick
2019-06-26 15:45 ` [gentoo-user] " Ian Zimmerman
2019-06-26 21:13 ` David Haller
2019-06-27 7:51 ` Mick
2019-06-27 8:54 ` Dale
2019-06-27 20:27 ` [gentoo-user] " Marc Joliet
2019-06-29 1:20 ` Hasan Ç.
2019-06-29 1:21 ` Hasan Ç.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox