Re: [gentoo-user] virtual eselect - how to

2019-06-28 Thread Hasan Ç .
[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 Ç. , 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 , 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
>>
>>


Re: [gentoo-user] virtual eselect - how to

2019-06-28 Thread Hasan Ç .
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 , 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
>
>


Re: [gentoo-user] virtual eselect - how to

2019-06-27 Thread Marc Joliet
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


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] virtual eselect - how to

2019-06-26 Thread Mick
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/ 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

signature.asc
Description: This is a digitally signed message part.


[gentoo-user] virtual eselect - how to

2019-06-26 Thread 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.

How does eselect get the list of alternatives?

Many thanks for a hint,
Helmut