Package: lam
Severity: important
Tags: patch
lam build-depends on g77, which has been dropped from gcc suite
after gcc 3.4. It appears to only use it for examples and/or test
programs.
A patch is attached which changes the build depends and configure
scripts from g77 to gfortran (some of which appeared to be already
done). However when attempting a build on lenny/testing the build aborts
with the following error:
===========================================================================
Installation of LAM/MPI 7.1.2 is complete.
Be sure to visit the LAM/MPI web page: http://www.lam-mpi.org/
The FAQ and LAM mailing list archives (both accessable from the web page)
contain much information about getting started with LAM/MPI, as well as
solutions to common problems.
===========================================================================
make[4]: Leaving directory `/home/colin/lam/lam-7.1.2'
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/colin/lam/lam-7.1.2'
make[2]: Leaving directory `/home/colin/lam/lam-7.1.2'
make[1]: Leaving directory `/home/colin/lam/lam-7.1.2'
mkdir -p $(dirname $(dirname debian/tmp/usr/share/man/man3))
rm -rf $(dirname debian/tmp/usr/share/man/man3)
cp -af $(dirname debian/static/usr/lib/lam/man/man3) $(dirname
debian/tmp/usr/share/man/man3)
rm debian/tmp/usr/share/man/man3/../man1/wipe.1
rm: cannot remove `debian/tmp/usr/share/man/man3/../man1/wipe.1': No such file
or directory
make: *** [debian/tmp/usr/share/man/man3/MPI_Wtime.3] Error 1
dpkg-buildpackage: failure: fakeroot debian/rules binary gave error exit status
2
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (990, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-3-k7 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
diff -ur lam-7.1.2/config/lam_prog_f77.m4 lam-new/config/lam_prog_f77.m4
--- lam-7.1.2/config/lam_prog_f77.m4 2006-02-23 23:27:17.000000000 +0000
+++ lam-new/config/lam_prog_f77.m4 2007-12-15 10:42:05.608101629 +0000
@@ -58,7 +58,7 @@
# If the user did not specify one, look for all the common names
- AC_CHECK_PROGS(F77, [g77 f77 fort77 f90], no)
+ AC_CHECK_PROGS(F77, [gfortran g77 f77 fort77 f90], no)
if test -z "$F77" -o "$F77" = "no"; then
AC_MSG_WARN([*** Could not find FORTRAN compiler. Either use])
AC_MSG_WARN([*** --with-fc to specify the FORTRAN compiler, or])
diff -ur lam-7.1.2/configure lam-new/configure
--- lam-7.1.2/configure 2006-03-10 21:31:14.000000000 +0000
+++ lam-new/configure 2007-12-15 10:59:44.669093142 +0000
@@ -9311,7 +10281,7 @@
# If the user did not specify one, look for all the common names
- for ac_prog in g77 f77 fort77 f90
+ for ac_prog in gfortran g77 f77 fort77 f90
do
# Extract the first word of "$ac_prog", so it can be a program name with
args.
set dummy $ac_prog; ac_word=$2
diff -ur lam-7.1.2/debian/control lam-new/debian/control
--- lam-7.1.2/debian/control 2007-12-15 13:14:53.000000000 +0000
+++ lam-new/debian/control 2007-12-15 10:36:32.089003549 +0000
@@ -2,7 +2,7 @@
Section: devel
Priority: extra
Maintainer: Camm Maguire <[EMAIL PROTECTED]>
-Build-Depends: autoconf,automake1.9,debhelper (>=
4.1.16),g77,texinfo,autotools-dev,help2man, findutils ( >= 4.2.25-1)
+Build-Depends: autoconf,automake1.9,debhelper (>=
4.1.16),gfortran,texinfo,autotools-dev,help2man, findutils ( >= 4.2.25-1)
Standards-Version: 3.6.2
Package: lam-mpidoc
diff -ur lam-7.1.2/debian/rules lam-new/debian/rules
--- lam-7.1.2/debian/rules 2007-12-15 13:14:53.000000000 +0000
+++ lam-new/debian/rules 2007-12-15 10:45:17.119112044 +0000
@@ -102,7 +102,7 @@
-$(MAKE) clean
- CC="gcc" CXX="g++" F77="g77" FC="g77" \
+ CC="gcc" CXX="g++" F77="gfortran" FC="gfortran" \
CFLAGS="$(OPTFLAGS)" CXXFLAGS="$(OPTFLAGS)" FFLAGS="$(OPTFLAGS)" \
./configure --prefix=/$(LAMV) \
--build=$(DEB_BUILD_GNU_TYPE) \
@@ -122,7 +122,7 @@
-$(MAKE) clean
- CC="gcc" CXX="g++" F77="g77" FC="g77" \
+ CC="gcc" CXX="g++" F77="gfortran" FC="gfortran" \
CFLAGS="$(OPTFLAGS) -fPIC" CXXFLAGS="$(OPTFLAGS) -fPIC" FFLAGS="$(OPTFLAGS)
-fPIC" \
./configure --prefix=/$(LAMV) \
--build=$(DEB_BUILD_GNU_TYPE) \