Package: mpb
Version: 1.4.2-11
Severity: normal
Tags: patch

You will find attached below a patch for making the mpb package switch from
g77 to gfortran.  It does it by setting the environment variable
F77=gfortran when calling configure.  Also, the libatlas and liblapack
build-dependencies are adjusted for the packages built against gfortran.

After this bug is fixed, please update the gfortran transition wiki page
http://wiki.debian.org/GfortranTransition

-- 
Rafael Laboissiere

diff -u mpb-1.4.2/debian/changelog mpb-1.4.2/debian/changelog
--- mpb-1.4.2/debian/changelog
+++ mpb-1.4.2/debian/changelog
@@ -1,9 +1,3 @@
-mpb (1.4.2-11.1) UNRELEASED; urgency=low
-
-  * g77 -> gfortran
-
- -- Rafael Laboissiere <[EMAIL PROTECTED]>  Sun, 24 Feb 2008 20:36:11 +0100
-
 mpb (1.4.2-11) unstable; urgency=low
 
   * New Maintainer (Closes: #393107)
diff -u mpb-1.4.2/debian/rules mpb-1.4.2/debian/rules
--- mpb-1.4.2/debian/rules
+++ mpb-1.4.2/debian/rules
@@ -28,7 +28,7 @@
 
 plop = $(shell test -f /usr/lib/atlas/liblapack.so && echo plop)
 ifeq ($(plop),plop)
-  CONFIG_OPTS += --with-lapack=/usr/lib/atlas/liblapack.so.3gf
+  CONFIG_OPTS += --with-lapack=/usr/lib/atlas/liblapack.so
 endif
 
 clean:
@@ -54,22 +54,22 @@
 configure-normal-stamp: autotools-stamp
        dh_testdir
        mkdir -p $(BUILD_DIR)
-       ( cd $(BUILD_DIR) && F77=gfortran ../../configure $(CONFIG_OPTS) )
+       ( cd $(BUILD_DIR) && ../../configure $(CONFIG_OPTS) )
        touch configure-normal-stamp
 configure-inv-stamp: autotools-stamp
        dh_testdir
        mkdir -p $(BUILD_DIR_INV)
-       ( cd $(BUILD_DIR_INV) && F77=gfortran ../../configure 
--with-inv-symmetry $(CONFIG_OPTS) )
+       ( cd $(BUILD_DIR_INV) && ../../configure --with-inv-symmetry 
$(CONFIG_OPTS) )
        touch configure-inv-stamp
 configure-mpi-stamp: autotools-stamp
        dh_testdir
        mkdir -p $(BUILD_DIR_MPI)
-       ( cd $(BUILD_DIR_MPI) && F77=gfortran ../../configure --with-mpi 
$(CONFIG_OPTS) )
+       ( cd $(BUILD_DIR_MPI) && ../../configure --with-mpi $(CONFIG_OPTS) )
        touch configure-mpi-stamp
 configure-mpi-inv-stamp: autotools-stamp
        dh_testdir
        mkdir -p $(BUILD_DIR_MPI_INV)
-       ( cd $(BUILD_DIR_MPI_INV) && F77=gfortran ../../configure --with-mpi 
--with-inv-symmetry $(CONFIG_OPTS) )
+       ( cd $(BUILD_DIR_MPI_INV) && ../../configure --with-mpi 
--with-inv-symmetry $(CONFIG_OPTS) )
        touch configure-mpi-inv-stamp
 
 # Build
diff -u mpb-1.4.2/debian/control mpb-1.4.2/debian/control
--- mpb-1.4.2/debian/control
+++ mpb-1.4.2/debian/control
@@ -2,7 +2,7 @@
 Section: science
 Priority: optional
 Maintainer: Loïc Le Guyader <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>= 5), autotools-dev, libatlas-base-dev | 
liblapack-dev, fftw-dev, libctl-dev, guile-1.6-dev, libhdf5-serial-dev, 
zlib1g-dev, gfortran, libmpich1.0-dev
+Build-Depends: debhelper (>= 5), autotools-dev, atlas3-base-dev | lapack3-dev, 
fftw-dev, libctl-dev, guile-1.6-dev, libhdf5-serial-dev, zlib1g-dev, gfortran, 
libmpich1.0-dev
 Build-Conflicts: lam-dev
 Standards-Version: 3.7.2
 

Reply via email to