[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fedora-devel-list
Subject:    Re: DNF vs YUM, $pkg, $pkg-mpi, $pkg-openmpi having same provides
From:       Sandro Mani <manisandro () gmail ! com>
Date:       2015-06-14 22:02:16
Message-ID: 557DF9E8.70603 () gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On 14.06.2015 16:28, Sandro Mani wrote:
>
> I was rather thinking, is there an obvious disadvantage in having a 
> {mpich,openmpi}-find-requires.sh script which encodes the mpi flavour 
> in the provides/requires? I.e.
>
> libfoo.so.0()(64bit)(openmpi)
>
> Rules to generate such requires/provides:
> * Provides: if the path of the library starts with $MPI_LIB, append 
> the (openmpi) resp (mpich) to the provides string
> * Requires: if the path of the scanned object starts with $MPI_LIB and 
> the required library exists in $MPI_LIB, add (openmpi) resp (mpich) to 
> the requires string
>
> Overriding the find-requires.sh could be done with a 
> %{?openmpi_package_header}.
Concrete examples:

https://smani.fedorapeople.org/mpi-find-provides
https://smani.fedorapeople.org/mpi-find-requires

Konsole output
$ echo -e 
"/usr/lib64/openmpi/lib/libnglib-5.3.1.so\n/usr/lib64/libnglib-5.3.1.so" 
| ./mpi-find-provides
libnglib-5.3.1.so()(64bit)(openmpi-x86_64)
libnglib-5.3.1.so()(64bit)

Konsole output
$ echo /usr/lib64/openmpi/lib/libGmsh.so.2.9.3 | ./mpi-find-requires
[...]
libm.so.6()(64bit)
libm.so.6(GLIBC_2.2.5)(64bit)
libmathex.so.0()(64bit)
libmed.so.1()(64bit)
libmmg3d4.so.4()(64bit)
libmpi.so.1()(64bit)(openmpi-x86_64)
libmpi_cxx.so.1()(64bit)(openmpi-x86_64)
libngcsg.so.0()(64bit)(openmpi-x86_64)
libngmesh.so.0()(64bit)(openmpi-x86_64)
libngocc.so.0()(64bit)(openmpi-x86_64)
libpng16.so.16()(64bit)
libpng16.so.16(PNG16_0)(64bit)
libpthread.so.0()(64bit)
[...]

Sounds like a plan?

[Attachment #5 (text/html)]

<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <br>
    <div class="moz-cite-prefix">On 14.06.2015 16:28, Sandro Mani wrote:<br>
    </div>
    <blockquote cite="mid:557D8F91.1010109@gmail.com" type="cite">
      <br>
      I was rather thinking, is there an obvious disadvantage in having
      a {mpich,openmpi}-find-requires.sh script which encodes the mpi
      flavour in the provides/requires? I.e.
      <br>
      <br>
      libfoo.so.0()(64bit)(openmpi)
      <br>
      <br>
      Rules to generate such requires/provides:
      <br>
      * Provides: if the path of the library starts with $MPI_LIB,
      append the (openmpi) resp (mpich) to the provides string
      <br>
      * Requires: if the path of the scanned object starts with $MPI_LIB
      and the required library exists in $MPI_LIB, add (openmpi) resp
      (mpich) to the requires string
      <br>
      <br>
      Overriding the find-requires.sh could be done with a
      %{?openmpi_package_header}.
      <br>
    </blockquote>
    Concrete examples:<br>
    <br>
    <a class="moz-txt-link-freetext" \
href="https://smani.fedorapeople.org/mpi-find-provides">https://smani.fedorapeople.org/mpi-find-provides</a><br>
  <a class="moz-txt-link-freetext" \
href="https://smani.fedorapeople.org/mpi-find-requires">https://smani.fedorapeople.org/mpi-find-requires</a><br>
  <br>
    <title>Konsole output</title>
    <div>
      <span style="font-family:monospace"><span
          style="color:#000000;background-color:#ffffff;">$ echo -e
          "/usr/lib64/openmpi/lib/libnglib-5.3.1.so\n/usr/lib64/libnglib-5.3.1.so"
          | ./mpi-find-provides          </span><br>
        libnglib-5.3.1.so()(64bit)(openmpi-x86_64)
        <br>
        libnglib-5.3.1.so()(64bit)<br>
        <br>
      </span></div>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Konsole output</title>
    <div>
      <span style="font-family:monospace"><span
          style="color:#000000;background-color:#ffffff;">$ echo
          /usr/lib64/openmpi/lib/libGmsh.so.2.9.3 | ./mpi-find-requires<br>
          [...]</span><br>
        libm.so.6()(64bit)
        <br>
        libm.so.6(GLIBC_2.2.5)(64bit)
        <br>
        libmathex.so.0()(64bit)
        <br>
        libmed.so.1()(64bit)
        <br>
        libmmg3d4.so.4()(64bit)
        <br>
        libmpi.so.1()(64bit)(openmpi-x86_64)
        <br>
        libmpi_cxx.so.1()(64bit)(openmpi-x86_64)
        <br>
        libngcsg.so.0()(64bit)(openmpi-x86_64)
        <br>
        libngmesh.so.0()(64bit)(openmpi-x86_64)
        <br>
        libngocc.so.0()(64bit)(openmpi-x86_64)
        <br>
        libpng16.so.16()(64bit)
        <br>
        libpng16.so.16(PNG16_0)(64bit)
        <br>
        libpthread.so.0()(64bit) <br>
        [...]<br>
        <br>
        Sounds like a plan?<br>
      </span></div>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </body>
</html>


[Attachment #6 (text/plain)]

-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic