Package: scalapack
Version: 1.8.0-1
Severity: important
Tags: patch
User: [EMAIL PROTECTED]
Usertags: gfortran

Hi!

I would request you to please shift Build-Depends to use the new
gfortran based Lapack, lam, mpich and Blas packages in order to phase
out packages dependent on the old g2c (g77). In this regard, I would
request you to refer to:

http://wiki.debian.org/GfortranTransition

You may wish to rename the package in order to provide for parallel
installability of the g77 and gfortran based scalapack packages, if
you choose to upload to unstable.

Attached is a patch which does the needful, which you may use to base
your change.

Also, please check whether using Add_ is correct. I presume something
like that is needed due to gfortran's new calling conventions.

Thank you.

Kumar
-- 
Kumar Appaiah,
458, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036
diff -u scalapack-1.8.0/debian/control scalapack-1.8.0/debian/control
--- scalapack-1.8.0/debian/control
+++ scalapack-1.8.0/debian/control
@@ -3,7 +3,7 @@
 Priority: extra
 Maintainer: Muammar El Khatib <[EMAIL PROTECTED]>
 Standards-Version: 3.7.2
-Build-Depends: libmpich1.0-dev (>= 1.2.7-1), lam4-dev (>= 7.1.1-3.2), pvm-dev, blacs-mpich-dev (>= 1.1-25), blacs-lam-dev, blacs-pvm-dev, g77, lapack3-dev | liblapack-3.so, refblas3-dev | libblas-3.so, debhelper (>= 5)
+Build-Depends: libmpich1.0-dev (>= 1.2.7-1), lam4-dev (>= 7.1.1-3.2), pvm-dev, blacs-mpich-dev (>= 1.1-25), blacs-lam-dev, blacs-pvm-dev, gfortran, liblapack-dev | liblapack.so.3gf , libblas-dev | libblas.so.3gf, debhelper (>= 5)
 
 Package: scalapack1-mpich
 Architecture: any
diff -u scalapack-1.8.0/debian/rules scalapack-1.8.0/debian/rules
--- scalapack-1.8.0/debian/rules
+++ scalapack-1.8.0/debian/rules
@@ -41,7 +41,7 @@
 	  ar x ../$${i}_lam.a ;\
 	  cd .. ;\
 	  gcc -shared -Wl,-soname=lib$$i-lam.so.$(version_major) -o \
-	    lib$$i-lam.so.$(version) tmp/*.o -lblas-3 -llapack-3 -lblacsCinit-lam -lblacs-lam -llam -lg2c;\
+	    lib$$i-lam.so.$(version) tmp/*.o -lblas-3 -llapack-3 -lblacsCinit-lam -lblacs-lam -llam -lgfortran;\
 	  ln -snf lib$$i-lam.so.$(version) lib$$i-lam.so.$(version_major) ;\
 	  ln -snf lib$$i-lam.so.$(version_major) lib$$i-lam.so ;\
 	  rm tmp/* ;\
@@ -90,7 +90,7 @@
 	  ar x ../$${i}_mpich.a ;\
 	  cd .. ;\
 	  gcc -shared -Wl,-soname=lib$$i-mpich.so.$(version_major) -o \
-	    lib$$i-mpich.so.$(version) tmp/*.o -lblas-3 -llapack-3 -lblacsCinit-mpich -lblacs-mpich -L /usr/lib/mpich/lib/shared -lmpich -lg2c;\
+	    lib$$i-mpich.so.$(version) tmp/*.o -lblas-3 -llapack-3 -lblacsCinit-mpich -lblacs-mpich -L /usr/lib/mpich/lib/shared -lmpich -lgfortran;\
 	  ln -snf lib$$i-mpich.so.$(version) lib$$i-mpich.so.$(version_major) ;\
 	  ln -snf lib$$i-mpich.so.$(version_major) lib$$i-mpich.so ;\
 	  rm tmp/* ;\
@@ -133,7 +133,7 @@
 	  ar x ../$${i}_pvm.a ;\
 	  cd .. ;\
 	  gcc -shared -Wl,-soname=lib$$i-pvm.so.$(version_major) -o \
-	    lib$$i-pvm.so.$(version) tmp/*.o -lblas-3 -llapack-3 -lblacs-pvm -lpvm3 -lg2c;\
+	    lib$$i-pvm.so.$(version) tmp/*.o -lblas-3 -llapack-3 -lblacs-pvm -lpvm3 -lgfortran;\
 	  ln -snf lib$$i-pvm.so.$(version) lib$$i-pvm.so.$(version_major) ;\
 	  ln -snf lib$$i-pvm.so.$(version_major) lib$$i-pvm.so ;\
 	  rm tmp/* ;\
only in patch2:
unchanged:
--- scalapack-1.8.0.orig/SLmake.inc
+++ scalapack-1.8.0/SLmake.inc
@@ -96,10 +96,10 @@
 #
 #  The fortran and C compilers, loaders, and their flags
 #
-F77           = g77
+F77           = gfortran
 #F77           = /usr/local/pgi/linux86/bin/pgf77
 CC            = gcc
-NOOPT         = -w -fno-globals -fno-f90 -fugly-complex $(FPIC)
+NOOPT         = -w $(FPIC)
 F77FLAGS      = -Wall -O6 -funroll-all-loops -ffast-math $(NOOPT)
 CCFLAGS       = -Wall $(FPIC) -O6 -funroll-all-loops -ffast-math
 SRCFLAG       =
@@ -117,7 +117,7 @@
 #  C preprocessor defs for compilation 
 #  (-DNoChange, -DAdd_, -DUpCase, or -Df77IsF2C)
 #
-CDEFS         = -Df77IsF2C -DNO_IEEE $(USEMPI)
+CDEFS         = -DAdd_ -DNO_IEEE $(USEMPI)
 #
 #  The archiver and the flag(s) to use when building archive (library)
 #  Also the ranlib routine.  If your system has no ranlib, set RANLIB = echo

Attachment: signature.asc
Description: Digital signature

Reply via email to