Advertisement
Guest User

Untitled

a guest
Oct 15th, 2018
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 4.14 KB | None | 0 0
  1.  
  2.  
  3. [prev in list] [next in list] [prev in thread] [next in thread]
  4.  
  5. List:       fedora-extras-commits
  6. Subject:    [scalapack] build shared library properly
  7. From:       Tom Callaway <spot () fedoraproject ! org>
  8. Date:       2014-07-02 20:05:33
  9. Message-ID: 20140702200533.97305312C2 () pkgs01 ! phx2 ! fedoraproject ! org
  10. [Download message RAW]
  11.  
  12. commit 0db18cbebab23b7dafc912af0ccb7bff55b7cc76
  13. Author: Tom Callaway <spot@fedoraproject.org>
  14. Date:   Wed Jul 2 16:05:40 2014 -0400
  15.  
  16.     build shared library properly
  17.  
  18.  scalapack-2.0.2-fedora.patch       |    2 +-
  19.  scalapack-2.0.2-shared-blacs.patch |    2 +-
  20.  scalapack.spec                     |    9 ++++++---
  21.  3 files changed, 8 insertions(+), 5 deletions(-)
  22. ---
  23. diff --git a/scalapack-2.0.2-fedora.patch b/scalapack-2.0.2-fedora.patch
  24. index 2a385a6..ac0f0e8 100644
  25. --- a/scalapack-2.0.2-fedora.patch
  26. +++ b/scalapack-2.0.2-fedora.patch
  27. @@ -15,7 +15,7 @@ diff -up scalapack-2.0.2/scalapack-2.0.2/Makefile.fedora \
  28. scalapack-2.0.2/scalapa  ( cd EXAMPLE; $(MAKE) clean )
  29.  
  30.  +shared: scalapacklib
  31. -+  ( mkdir tmp ; cp $(SCALAPACKLIB) tmp ; cd tmp ; ar x $(SCALAPACKLIB) ; $(CC) \
  32. -shared -o ../libscalapack.so.2.0.0 *.o -Wl,-soname=libscalapack.so.2 ; cd .. ) ++  ( \
  33. mkdir tmp ; cp $(SCALAPACKLIB) tmp ; cd tmp ; ar x $(SCALAPACKLIB) ; $(CC) -shared -o \
  34. ../libscalapack.so.2.0.0 *.o -Wl,-soname=libscalapack.so.2 -lblas -llapack -L.. \
  35. -lmpiblacs -lm -lgfortran ; cd .. )  diff -up \
  36. scalapack-2.0.2/scalapack-2.0.2/SLmake.inc.fedora \
  37.                 scalapack-2.0.2/scalapack-2.0.2/SLmake.inc
  38.  --- scalapack-2.0.2/scalapack-2.0.2/SLmake.inc.fedora  2014-02-12 11:19:04.618179216 \
  39. -0500  +++ scalapack-2.0.2/scalapack-2.0.2/SLmake.inc   2014-02-12 11:19:00.675184482 \
  40.                 -0500
  41. diff --git a/scalapack-2.0.2-shared-blacs.patch b/scalapack-2.0.2-shared-blacs.patch
  42. index 1695137..cbd2bfc 100644
  43. --- a/scalapack-2.0.2-shared-blacs.patch
  44. +++ b/scalapack-2.0.2-shared-blacs.patch
  45. @@ -6,7 +6,7 @@ diff -up scalapack-2.0.2/scalapack-2.0.2/BLACS/SRC/Makefile.shared \
  46. scalapack-2.0  $(ARCH) $(ARCHFLAGS) ../../$(SCALAPACKLIB) $(internal) $(Fintobj) \
  47. $(Cintobj)  $(RANLIB) ../../$(SCALAPACKLIB)
  48.  +  cp -a ../../$(SCALAPACKLIB) ../../libmpiblacs.a
  49. -+  ( mkdir tmp ; cp ../../$(SCALAPACKLIB) tmp ; cd tmp ; ar x $(SCALAPACKLIB) ; \
  50. mpif77 -shared -o ../../../libmpiblacs.so.2.0.0 *.o *.oo -Wl,-soname=libmpiblacs.so.2 \
  51. ; cd .. ) ++    ( mkdir tmp ; cp ../../$(SCALAPACKLIB) tmp ; cd tmp ; ar x \
  52. $(SCALAPACKLIB) ; mpif77 -shared -o ../../../libmpiblacs.so.2.0.0 *.o *.oo \
  53. -Wl,-soname=libmpiblacs.so.2 ; ln -s libmpiblacs.so.2.0.0 ../../../libmpiblacs.so.2 ; \
  54. ln -s libmpiblacs.so.2.0.0 ../../../libmpiblacs.so ; cd .. )  
  55.   #  -----------------------
  56.   #  Delete the object files
  57. diff --git a/scalapack.spec b/scalapack.spec
  58. index 742f980..a38af38 100644
  59. --- a/scalapack.spec
  60. +++ b/scalapack.spec
  61. @@ -8,7 +8,7 @@
  62.  Summary: A subset of LAPACK routines redesigned for heterogeneous computing
  63.  Name: scalapack
  64.  Version: 2.0.2
  65. -Release: 2%{?dist}
  66. +Release: 3%{?dist}
  67.  # This is freely distributable without any restrictions.
  68.  License: Public Domain
  69.  Group: Development/Libraries
  70. @@ -341,8 +341,8 @@ for i in mpich %{?with_openmpi:openmpi}; do
  71.    pushd %{buildroot}%{_libdir}/$i/lib/
  72.    ln -fs libscalapack.so.2.0.0 libscalapack.so.2
  73.    ln -s libscalapack.so.2.0.0 libscalapack.so
  74. -  ln -fs libmpiblacs.so.2.0.0 libmpiblacs.so.2
  75. -  ln -s libmpiblacs.so.2.0.0 libmpiblacs.so
  76. +  # ln -fs libmpiblacs.so.2.0.0 libmpiblacs.so.2
  77. +  # ln -s libmpiblacs.so.2.0.0 libmpiblacs.so
  78.    popd
  79.  done
  80.  
  81. @@ -397,6 +397,9 @@ cp -f README ../
  82.  %endif
  83.  
  84.  %changelog
  85. +* Tue Jul  1 2014 Tom Callaway <spot@fedoraproject.org> - 2.0.2-3
  86. +- explictly link to other dependent libs
  87. +
  88.  * Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - \
  89.                 2.0.2-2
  90.  - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  91.  
  92. --
  93. scm-commits mailing list
  94. scm-commits@lists.fedoraproject.org
  95. https://admin.fedoraproject.org/mailman/listinfo/scm-commits
  96.  
  97.  
  98. [prev in list] [next in list] [prev in thread] [next in thread]
  99.  
  100.  
  101. Configure | About | News | Add a list | Sponsored by KoreLogic
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement