--- libmesh-0.6.3.dfsg~rc1.orig/debian/source.dfsg.patch +++ libmesh-0.6.3.dfsg~rc1/debian/source.dfsg.patch @@ -0,0 +1,77 @@ +diff -Naru libmesh-0.6.2/contrib/Makefile ../libmesh-0.6.2.dfsg/contrib/Makefile +--- libmesh-0.6.2/contrib/Makefile 2007-12-03 11:10:44.000000000 -0300 ++++ ../libmesh-0.6.2.dfsg/contrib/Makefile 2008-03-26 13:09:54.000000000 -0300 +@@ -3,30 +3,12 @@ + # + all: + @echo "----------------------------------------------" +- @echo "------- Building Contributed Packages --------" ++ @echo "------- Building Contributed Packages (DFSG) -" + @echo "----------------------------------------------" + @echo "" +- @echo "--- Building LASPACK -------------------------" +- @$(MAKE) -C laspack $(MAKECMDGOALS) +- @echo "" +- @echo "--- Building Metis ---------------------------" +- @$(MAKE) -C metis/Lib $(MAKECMDGOALS) +- @echo "" +- @echo "--- Building Parmetis ------------------------" +- @$(MAKE) -C parmetis/Lib $(MAKECMDGOALS) +- @echo "" +- @echo "--- Building sfcurves ------------------------" +- @$(MAKE) -C sfcurves $(MAKECMDGOALS) +- @echo "" + @echo "--- Building libgzstream ---------------------" + @$(MAKE) -C gzstream $(MAKECMDGOALS) + @echo "" +- @echo "--- Building TetGen ---------------------" +- @$(MAKE) -C tetgen $(MAKECMDGOALS) +- @echo "" +- @echo "--- Building triangle ---------------------" +- @$(MAKE) -C triangle $(MAKECMDGOALS) +- @echo "" + @echo "--- Building gmv ---------------------" + @$(MAKE) -C gmv $(MAKECMDGOALS) + @echo "" +@@ -53,13 +35,7 @@ + # + clean: + @rm -f *~ +- @$(MAKE) -C laspack $(MAKECMDGOALS) +- @$(MAKE) -C metis/Lib $(MAKECMDGOALS) +- @$(MAKE) -C parmetis/Lib $(MAKECMDGOALS) +- @$(MAKE) -C sfcurves $(MAKECMDGOALS) + @$(MAKE) -C gzstream $(MAKECMDGOALS) +- @$(MAKE) -C tetgen $(MAKECMDGOALS) +- @$(MAKE) -C triangle $(MAKECMDGOALS) + @$(MAKE) -C gmv $(MAKECMDGOALS) + @$(MAKE) -C netcdf/Lib $(MAKECMDGOALS) + @$(MAKE) -C exodusii/Lib/src $(MAKECMDGOALS) +@@ -71,13 +47,7 @@ + # + clobber: + @$(MAKE) clean +- @$(MAKE) -C laspack $(MAKECMDGOALS) +- @$(MAKE) -C metis/Lib $(MAKECMDGOALS) +- @$(MAKE) -C parmetis/Lib $(MAKECMDGOALS) +- @$(MAKE) -C sfcurves $(MAKECMDGOALS) + @$(MAKE) -C gzstream $(MAKECMDGOALS) +- @$(MAKE) -C tetgen $(MAKECMDGOALS) +- @$(MAKE) -C triangle $(MAKECMDGOALS) + @$(MAKE) -C gmv $(MAKECMDGOALS) + @$(MAKE) -C netcdf/Lib $(MAKECMDGOALS) + @$(MAKE) -C exodusii/Lib/src $(MAKECMDGOALS) +@@ -89,13 +59,7 @@ + # + distclean: + @$(MAKE) clobber +- @$(MAKE) -C laspack $(MAKECMDGOALS) +- @$(MAKE) -C metis/Lib $(MAKECMDGOALS) +- @$(MAKE) -C parmetis/Lib $(MAKECMDGOALS) +- @$(MAKE) -C sfcurves $(MAKECMDGOALS) + @$(MAKE) -C gzstream $(MAKECMDGOALS) +- @$(MAKE) -C tetgen $(MAKECMDGOALS) +- @$(MAKE) -C triangle $(MAKECMDGOALS) + @$(MAKE) -C gmv $(MAKECMDGOALS) + @$(MAKE) -C netcdf/Lib $(MAKECMDGOALS) + @$(MAKE) -C exodusii/Lib/src $(MAKECMDGOALS) --- libmesh-0.6.3.dfsg~rc1.orig/debian/changelog +++ libmesh-0.6.3.dfsg~rc1/debian/changelog @@ -0,0 +1,133 @@ +libmesh (0.6.3.dfsg~rc1-1ubuntu1) karmic; urgency=low + + * ftbfs_allgather.patch: From upstream, fix missing argument from + function call. + * petsc3.patch: From upstream, fix building with libpetsc3.0.0-dev + * debian/control: Build against petsc3, fixing uninstallability + due to petsc2 no longer being available. LP: #429101 + + -- Michael Terry Wed, 14 Oct 2009 10:40:57 -0400 + +libmesh (0.6.3.dfsg~rc1-1) unstable; urgency=low + + * New upstream release candidate. + * Fixes slow matrix insertion (closes: #). + * Package reorg: removed -pure packages, renamed 0.6.3-dev to -dev because + there's no way to install multiple -dev packages simultaneously. + + -- Adam C. Powell, IV Fri, 22 Aug 2008 14:02:08 -0400 + +libmesh (0.6.2.dfsg-2) unstable; urgency=low + + * Completed scotch shared lib transition (closes: #470418). + * Added conflicts to -dev packages (closes: #486706, #486708). + * Added --enable-perflog to configure lines (closes: #491379). + * Added VTK support (closes: #491380). + * Added working example makefiles, and modified README.Debian + (closes: #491381). + * Added infinite finite element support (closes: #491744). + + -- Adam C. Powell, IV Tue, 22 Jul 2008 08:12:30 -0400 + +libmesh (0.6.2.dfsg-1) unstable; urgency=low + + * Added Adam Powell to Uploaders. + * Upload of unreleased fixes (closes: #450500, #455670, #468550) + * Turned on --enable-metis to use scotch metis compatibility. + * Removed petscts libs from LDFLAGS because libmesh doesn't use it. + * Removed a bunch of conflicts: only the -dev packages conflict with each + other. + * Changed -dev packages to arch all because they are. + * Edited README.Debian removing petsc libraries from example link command + because they're linked from libmesh (scotch too when 470422 is fixed). + + -- Adam C. Powell, IV Wed, 11 Jun 2008 09:11:27 -0400 + +libmesh (0.6.2.dfsg-0.1) UNRELEASED; urgency=low + + * Non Maintainer Upload. + * New upstream release (Closes: #450500) + * Added second derivative support, passing --enable-second to the configure + call (Closes: #468550) + * Added support for scotchmetis with scotchmetis_support.patch. + * Disabled metis, exodus and netcdf support, due to them needing libraries + that weren't being installed. + * Fixed gcc-4.3 issues with gcc-4.3_support.patch (Closes: #455670) + * Modified dfsg version so it does clean nicely. + + -- Maximiliano Curia Wed, 26 Mar 2008 21:56:46 -0300 + +libmesh (0.6.1.dfsg-3) unstable; urgency=low + + * Patches moved under the quilt control + * Homepage moved to the Homepage field + * Standards-Version bumped to 3.7.3 + + -- Ondrej Certik Sat, 16 Feb 2008 14:07:56 +0100 + +libmesh (0.6.1.dfsg-2) unstable; urgency=low + + * Rebuild against latest openmpi, that works + + -- Ondrej Certik Sat, 15 Dec 2007 13:50:16 +0100 + +libmesh (0.6.1.dfsg-1) unstable; urgency=low + + [Ondrej Certik] + * New upstream version + * Ondrej Certik and Alan Woodland added to Uploaders. + * Patch applied, so that libmesh-pure works with ExplicitSystem + + [ Christophe Prud'homme ] + * debian/control: set XS-DM-Upload-Allowed to yes + -- Christophe Prud'homme Fri, 30 Nov 2007 11:09:35 +0100 + +libmesh (0.6.0~rc2.dfsg-3) unstable; urgency=low + + [Ondrej Certik] + * Built against libpetsc2.3.3, which is now in Debian (Closes: #435532) + + [ Christophe Prud'homme ] + * debian/control: modified maintainer and uploader fields + + -- Christophe Prud'homme Mon, 03 Sep 2007 22:11:32 +0200 + +libmesh (0.6.0~rc2.dfsg-2oc1) unstable; urgency=low + + * Build against libpetsc2.3.3 + + -- Ondrej Certik Sun, 22 Jul 2007 16:26:55 +0200 + +libmesh (0.6.0~rc2.dfsg-2) unstable; urgency=low + + * Upload of unofficial revisions 1oc1, 1oc2, 1oc3 into Debian + + -- Ondrej Certik Fri, 13 Jul 2007 12:15:25 +0200 + +libmesh (0.6.0~rc2.dfsg-1oc3) unstable; urgency=low + + * Build two libraries - one with petsc, the other without (libmesh0.6.0-pure) + + -- Ondrej Certik Sat, 07 Jul 2007 19:42:14 +0200 + +libmesh (0.6.0~rc2.dfsg-1oc2) unstable; urgency=low + + * build without petsc + + -- Ondrej Certik Sat, 07 Jul 2007 17:49:12 +0200 + +libmesh (0.6.0~rc2.dfsg-1oc1) unstable; urgency=low + + * unofficial revision + * Use the petsc built against LAM + * try to fix some problems with PETSc + * use make -j2 - this needs to be reverted in the official revision + + -- Ondrej Certik Thu, 21 Jun 2007 18:43:29 +0200 + +libmesh (0.6.0~rc2.dfsg-1) unstable; urgency=low + + * Initial release (Closes: #426734) + + -- Ondrej Certik Tue, 29 May 2007 11:47:45 +0200 + --- libmesh-0.6.3.dfsg~rc1.orig/debian/control +++ libmesh-0.6.3.dfsg~rc1/debian/control @@ -0,0 +1,44 @@ +Source: libmesh +Priority: extra +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Debian Scientific Computing Team +Uploaders: Christophe Prud'homme , Ondrej Certik , Alan Woodland , "Adam C. Powell, IV" +XS-DM-Upload-Allowed: yes +Build-Depends: debhelper (>= 5), autotools-dev (>= 20070306.1), libpetsc3.0.0-dev, quilt (>= 0.46-4), autoconf, libscotchmetis-dev (>= 5.0.6-2), libvtk5-dev +Standards-Version: 3.7.3 +Section: libs +Homepage: http://libmesh.sourceforge.net/ + +Package: libmesh-dev +Section: libdevel +Architecture: all +Depends: libmesh0.6.3 (>= ${source:Version}), libpetsc3.0.0-dev, libscotchmetis-dev (>= 5.0.6-2), libvtk5-dev +Conflicts: libmesh0.6.1-dev, libmesh0.6.1-pure-dev, libmesh0.6.2-dev, libmesh0.6.2-pure-dev +Replaces: libmesh0.6.1-dev, libmesh0.6.1-pure-dev, libmesh0.6.2-dev, libmesh0.6.2-pure-dev +Suggests: make +Description: libMesh - A C++ Finite Element Library + The libMesh library is a C++ framework for the numerical simulation of partial + differential equations on serial and parallel platforms. Development began in + March 2002 with the intent of providing a friendly interface to a number of + high-quality software packages that are publicly available. Currently the + library supports 1D, 2D, and 3D steady and transient finite element and finite + volume simulations. PETSc is currently used for the solution of linear systems + on both serial and parallel platforms. + . + This package contains the C++ header files (only needed for developing + programs with libmesh). + +Package: libmesh0.6.3 +Section: libs +Architecture: any +Depends: ${shlibs:Depends} +Description: libMesh - A C++ Finite Element Library + The libMesh library is a C++ framework for the numerical simulation of partial + differential equations on serial and parallel platforms. Development began in + March 2002 with the intent of providing a friendly interface to a number of + high-quality software packages that are publicly available. Currently the + library supports 1D, 2D, and 3D steady and transient finite element and finite + volume simulations. PETSc is currently used for the solution of linear systems + on both serial and parallel platforms. + . + This package contains the dynamic libMesh library. --- libmesh-0.6.3.dfsg~rc1.orig/debian/watch +++ libmesh-0.6.3.dfsg~rc1/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts=dversionmangle=s/\.dfsg.*$//,uversionmangle=s/-(rc\d+)/~$1/ \ + http://sf.net/libmesh/libmesh-([\d\.rc-]+)\.tar\.gz --- libmesh-0.6.3.dfsg~rc1.orig/debian/compat +++ libmesh-0.6.3.dfsg~rc1/debian/compat @@ -0,0 +1 @@ +5 --- libmesh-0.6.3.dfsg~rc1.orig/debian/copyright +++ libmesh-0.6.3.dfsg~rc1/debian/copyright @@ -0,0 +1,91 @@ +This package was debianized by Ondrej Certik on +Tue, 29 May 2007 11:47:45 +0200. + +It was downloaded from http://libmesh.sourceforge.net/, +the file: libmesh_0.6.0-rc2.tar.gz was unpacked, these directories were +deleted (all of the packages have a non-free license): + +contrib/laspack, +contrib/metis, +contrib/parmetis, +contrib/sfcurves, +contrib/tecplot, +contrib/tetgen, +contrib/triangle + +and then it was packed into the file: libmesh_0.6.0~rc2.dfsg.orig.tar.gz. You +can repeat this process by executing "debian/rules get-orig-source" in any +directory - it will create the libmesh_0.6.0~rc2.dfsg.orig.tar.gz for you. + +Upstream Authors: + + Benjamin S. Kirk + John W. Peterson + Roy Stogner + Steffen Petersen + +Copyright: + + Copyright (C) 2002-2007 Benjamin S. Kirk, John W. Peterson + +License of all files in the package (unless stated otherwise, see below): + + GNU LESSER GENERAL PUBLIC LICENSE + +The Debian packaging is (C) 2007, Ondrej Certik and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. + +The file install-sh has the following copyright and license: + +# Copyright 1991 by the Massachusetts Institute of Technology +# +# Permission to use, copy, modify, distribute, and sell this software and its +# documentation for any purpose is hereby granted without fee, provided that +# the above copyright notice appear in all copies and that both that +# copyright notice and this permission notice appear in supporting +# documentation, and that the name of M.I.T. not be used in advertising or +# publicity pertaining to distribution of the software without specific, +# written prior permission. M.I.T. makes no representations about the +# suitability of this software for any purpose. It is provided "as is" +# without express or implied warranty. +# +# Calling this script install-sh is preferred over install.sh, to prevent +# `make' implicit rules from creating a file called install from it +# when there is no Makefile. + +the package contrib/gzstream is LGPL and has the following copyright: + +Copyright (C) 2001 Deepak Bandyopadhyay, Lutz Kettner + +the file contrib/bin/make_dependencies.pl is: + +Copyright W. Bangerth, University of Heidelberg, 1998, 1999, 2000, 2001, 2002 + +and using the license QPL (http://www.opensource.org/licenses/qtpl.php). + +the file contrib/bin/cvs2html is GPL and copyright: + +# Copyright under GPL 1997 - 2002 by +# Peter Toft (pto@sslug.dk) + the persons above + +the files contrib/bin/program2html.pl and contrib/bin/stripcomments.pl are: + +Copyright (C) 1999, 2000, 2001, 2002 by Wolfgang Bangerth, University of +Heidelberg +With modifications for libmesh by John W. Peterson, 2003. + +and are using the license QPL (http://www.opensource.org/licenses/qtpl.php). + +the contrib/boost library is + +// Copyright (c) 2001, 2002 Peter Dimov and Multi Media Ltd. +// Copyright (c) 1999, 2000, 2001, 2002 boost.org +// Copyright (c) 2002, 2003 Peter Dimov +// Copyright (c) 2003 Daniel Frey +// Copyright (c) 2003 Howard Hinnant +// (C) Copyright Boost.org 2001. +// +// Permission to copy, use, modify, sell and distribute this software +// is granted provided this copyright notice appears in all copies. +// This software is provided "as is" without express or implied +// warranty, and with no claim as to its suitability for any purpose. --- libmesh-0.6.3.dfsg~rc1.orig/debian/README.Debian +++ libmesh-0.6.3.dfsg~rc1/debian/README.Debian @@ -0,0 +1,24 @@ +libmesh for Debian +================== + +When developing with the libmesh library, install the +"libmesh-dev" package. + +How to compile your first project +--------------------------------- + +The upstream compilation documentation is not suited for Debian (they use +non-standard ways to compile things). On Debian, you can use the following +procedure: + + - Install "libmesh-dev" + - Copy the example directory ex2 (for instance) from + /usr/share/doc/libmesh-dev/examples/ into your working directory + - Run "make" + +It should just work (if not, please file a bug report using the reportbug). +In many cases, it will run the compiled program, generating output. + +Unfortunately, most of these examples come with post-processing output for +the non-free GMV viewer. This package also has support compiled-in for +VTK, and the free Paraview viewer can use that format. --- libmesh-0.6.3.dfsg~rc1.orig/debian/examples +++ libmesh-0.6.3.dfsg~rc1/debian/examples @@ -0,0 +1 @@ +examples/* --- libmesh-0.6.3.dfsg~rc1.orig/debian/rules +++ libmesh-0.6.3.dfsg~rc1/debian/rules @@ -0,0 +1,109 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +LIBMESH_VERSION=0.6.3 + +# shared library versions, option 1 +version=2.0.5 +major=2 + +config.status: configure.in + dh_testdir + cp /usr/share/misc/config.guess . + cp /usr/share/misc/config.sub . + QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2 + autoconf + PETSC_DIR=/usr/lib/petsc PETSC_ARCH=linux-gnu-c-opt LDFLAGS=-Wl,-soname,libmesh.so.$(LIBMESH_VERSION),-lpetsc,-lpetscdm,-lpetscksp,-lpetscmat,-lpetscsnes,-lpetscvec,-lscotchmetis,-lvtkIO ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --disable-laspack --disable-slepc --disable-sfc --disable-gzstreams --disable-tecplot --disable-parmetis --disable-tetgen --disable-triangle --disable-gmv --disable-exodus --disable-netcdf --disable-libHilbert --with-mpi=/usr --with-cxx=mpicxx --with-cc=mpicc --with-f77=mpif77 --enable-second --enable-ifem --enable-metis --enable-perflog --enable-vtk --with-vtk-include=/usr/include/vtk-5.0 + +build: build-stamp +build-stamp: config.status + dh_testdir + + $(MAKE) + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + QUILT_PATCHES=debian/patches quilt pop -a -R || test $$? = 2 + + [ ! -f Make.common ] || $(MAKE) distclean + rm -f config.sub config.guess config.log + find -type f -name '.*' -exec '{}' ';' + + dh_clean --exclude ./contrib/triangle/makefile.orig --exclude ./contrib/tetgen/makefile.orig + +meshbin = $(CURDIR)/debian/libmesh$(LIBMESH_VERSION) +meshdev = $(CURDIR)/debian/libmesh-dev + +install: build + dh_testdir + dh_testroot + dh_clean -k --exclude ./contrib/triangle/makefile.orig --exclude ./contrib/tetgen/makefile.orig + dh_installdirs + + mkdir -p $(meshbin)/usr/lib + mkdir -p $(meshdev)/usr/lib + libdir=`grep "hosttype " Make.common | cut -d "=" -f 2 | cut -c 2-`; \ + cp lib/$${libdir}_opt/libmesh.so $(meshbin)/usr/lib/libmesh.so.$(LIBMESH_VERSION) + ln -s /usr/lib/libmesh.so.$(LIBMESH_VERSION) $(meshdev)/usr/lib/libmesh.so + mkdir -p $(meshdev)/usr/include/libmesh + cp include/base/* include/enums/* include/error_estimation/* include/fe/* include/geom/* include/mesh/* include/numerics/* include/parallel/* include/partitioning/* include/quadrature/* include/solvers/* include/utils/* $(meshdev)/usr/include/libmesh + rm $(meshdev)/usr/include/libmesh/libmesh_config.h.in + rm $(meshdev)/usr/include/libmesh/libmesh_contrib_config.h.in + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + dh_installexamples "--exclude=.depend" + for exmake in `ls debian/exmake/Makefile.ex* | sed 's/debian\/exmake\/Makefile.//'`; do \ + cp -f debian/exmake/Makefile.$$exmake \ + $(meshdev)/usr/share/doc/libmesh-dev/examples/$$exmake/Makefile; \ + done + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install + +get-orig-source: + wget http://qa.debian.org/watch/sf.php/libmesh/libmesh-0.6.3.tar.gz + tar xzf libmesh-0.6.3.tar.gz + cd libmesh-0.6.3; \ + rm -r contrib/laspack; \ + rm -r contrib/metis; \ + rm -r contrib/parmetis; \ + rm -r contrib/sfcurves; \ + rm -r contrib/tecplot; \ + rm -r contrib/tetgen; \ + rm -r contrib/triangle; \ + find -type f -name '.*' -exec rm '{}' ';' ;\ + patch -p1 < $(CURDIR)/debian/source.dfsg.patch + mv libmesh-0.6.3 libmesh-0.6.3.dfsg + tar czf libmesh_0.6.3.dfsg.orig.tar.gz libmesh-0.6.3.dfsg + rm -r libmesh-0.6.3.dfsg libmesh-0.6.3.tar.gz --- libmesh-0.6.3.dfsg~rc1.orig/debian/exmake/Makefile.ex5 +++ libmesh-0.6.3.dfsg~rc1/debian/exmake/Makefile.ex5 @@ -0,0 +1,25 @@ +INCLUDES = -I/usr/include/mpi -I/usr/include/petsc -I/usr/include/libmesh +LIBS = -lmesh + +all: out_0.gmv out_3.gmv out_4.gmv + +out_0.gmv: ex5 + ./ex5 -q 0 + +out_3.gmv: ex5 + ./ex5 -q 3 + +out_4.gmv: ex5 + ./ex5 -q 4 + +ex5: ex5.o ../ex3/exact_solution.o + g++ $^ $(LIBS) -o $@ + +.C.o: + g++ $< $(INCLUDES) -c -o $@ + +ex5.C: ex5.C.gz + gunzip -c $< > $@ + +clean: + rm -f *.o ex5 *~ out_* --- libmesh-0.6.3.dfsg~rc1.orig/debian/exmake/Makefile.ex17 +++ libmesh-0.6.3.dfsg~rc1/debian/exmake/Makefile.ex17 @@ -0,0 +1,17 @@ +INCLUDES = -I/usr/include/mpi -I/usr/include/petsc -I/usr/include/libmesh +LIBS = -lmesh + +out.gmv: ex17 + ./ex17 + +ex17: ex17.o + g++ $^ $(LIBS) -o $@ + +.C.o: + g++ $< $(INCLUDES) -c -o $@ + +ex17.C: ex17.C.gz + gunzip -c $< > $@ + +clean: + rm -f *.o ex17 *~ *.gmv --- libmesh-0.6.3.dfsg~rc1.orig/debian/exmake/Makefile.ex10 +++ libmesh-0.6.3.dfsg~rc1/debian/exmake/Makefile.ex10 @@ -0,0 +1,17 @@ +INCLUDES = -I/usr/include/mpi -I/usr/include/petsc -I/usr/include/libmesh +LIBS = -lmesh + +out.gmv.050: ex10 mesh.xda + ./ex10 -init_timestep 0 -n_timesteps 50 + +ex10: ex10.o ../ex9/exact_solution.o + g++ $^ $(LIBS) -o $@ + +.C.o: + g++ $< $(INCLUDES) -c -o $@ + +ex10.C: ex10.C.gz + gunzip -c $< > $@ + +clean: + rm -f *.o ex10 *~ *.gmv.* saved_* --- libmesh-0.6.3.dfsg~rc1.orig/debian/exmake/Makefile.ex16 +++ libmesh-0.6.3.dfsg~rc1/debian/exmake/Makefile.ex16 @@ -0,0 +1,17 @@ +INCLUDES = -I/usr/include/mpi -I/usr/include/petsc -I/usr/include/libmesh +LIBS = -lmesh + +out.gmv: ex16 + ./ex16 + +ex16: ex16.o + g++ $^ $(LIBS) -o $@ + +.C.o: + g++ $< $(INCLUDES) -c -o $@ + +ex16.C: ex16.C.gz + gunzip -c $< > $@ + +clean: + rm -f *.o ex16 *~ *.gmv --- libmesh-0.6.3.dfsg~rc1.orig/debian/exmake/Makefile.ex2 +++ libmesh-0.6.3.dfsg~rc1/debian/exmake/Makefile.ex2 @@ -0,0 +1,14 @@ +INCLUDES = -I/usr/include/mpi -I/usr/include/petsc -I/usr/include/libmesh +LIBS = -lmesh + +ex2: ex2.o + g++ $^ $(LIBS) -o $@ + +.C.o: + g++ $< $(INCLUDES) -c -o $@ + +ex2.C: ex2.C.gz + gunzip -c $< > $@ + +clean: + rm -f *.o ex2 *~ --- libmesh-0.6.3.dfsg~rc1.orig/debian/exmake/Makefile.ex9 +++ libmesh-0.6.3.dfsg~rc1/debian/exmake/Makefile.ex9 @@ -0,0 +1,17 @@ +INCLUDES = -I/usr/include/mpi -I/usr/include/petsc -I/usr/include/libmesh +LIBS = -lmesh + +out_050.gmv: ex9 ../ex10/mesh.xda + ./ex9 + +ex9: ex9.o exact_solution.o + g++ $^ $(LIBS) -o $@ + +.C.o: + g++ $< $(INCLUDES) -c -o $@ + +ex9.C: ex9.C.gz + gunzip -c $< > $@ + +clean: + rm -f *.o ex9 *~ *.gmv --- libmesh-0.6.3.dfsg~rc1.orig/debian/exmake/Makefile.ex15 +++ libmesh-0.6.3.dfsg~rc1/debian/exmake/Makefile.ex15 @@ -0,0 +1,17 @@ +INCLUDES = -I/usr/include/mpi -I/usr/include/petsc -I/usr/include/libmesh +LIBS = -lmesh + +2D_hermite_uniform.gmv: ex15 ex15.in + ./ex15 + +ex15: ex15.o + g++ $^ $(LIBS) -o $@ + +.C.o: + g++ $< $(INCLUDES) -c -o $@ + +ex15.C: ex15.C.gz + gunzip -c $< > $@ + +clean: + rm -f *.o ex15 *~ *.gmv *.m --- libmesh-0.6.3.dfsg~rc1.orig/debian/exmake/Makefile.ex4 +++ libmesh-0.6.3.dfsg~rc1/debian/exmake/Makefile.ex4 @@ -0,0 +1,22 @@ +INCLUDES = -I/usr/include/mpi -I/usr/include/petsc -I/usr/include/libmesh +LIBS = -lmesh + +all: out_2.gmv out_3.gmv + +out_2.gmv: ex4 + ./ex4 -d 2 -n 15 + +out_3.gmv: ex4 + ./ex4 -d 3 -n 6 + +ex4: ex4.o ../ex3/exact_solution.o + g++ $^ $(LIBS) -o $@ + +.C.o: + g++ $< $(INCLUDES) -c -o $@ + +ex4.C: ex4.C.gz + gunzip -c $< > $@ + +clean: + rm -f *.o ex4 *~ out_* --- libmesh-0.6.3.dfsg~rc1.orig/debian/exmake/Makefile.ex1 +++ libmesh-0.6.3.dfsg~rc1/debian/exmake/Makefile.ex1 @@ -0,0 +1,11 @@ +INCLUDES = -I/usr/include/mpi -I/usr/include/petsc -I/usr/include/libmesh +LIBS = -lmesh + +ex1: ex1.o + g++ $< $(LIBS) -o $@ + +.C.o: + g++ $< $(INCLUDES) -c -o $@ + +clean: + rm -f *.o ex1 *~ --- libmesh-0.6.3.dfsg~rc1.orig/debian/exmake/Makefile.ex13 +++ libmesh-0.6.3.dfsg~rc1/debian/exmake/Makefile.ex13 @@ -0,0 +1,20 @@ +INCLUDES = -I/usr/include/mpi -I/usr/include/petsc -I/usr/include/libmesh +LIBS = -lmesh + +out.gmv.015: ex13 gmv_attributes.attr + ./ex13 + +ex13: ex13.o + g++ $^ $(LIBS) -o $@ + +.C.o: + g++ $< $(INCLUDES) -c -o $@ + +ex13.C: ex13.C.gz + gunzip -c $< > $@ + +gmv_attributes.attr: gmv_attributes.attr.gz + gunzip -c $< > $@ + +clean: + rm -f *.o ex13 *~ *.gmv.* --- libmesh-0.6.3.dfsg~rc1.orig/debian/exmake/Makefile.ex12 +++ libmesh-0.6.3.dfsg~rc1/debian/exmake/Makefile.ex12 @@ -0,0 +1,14 @@ +INCLUDES = -I/usr/include/mpi -I/usr/include/petsc -I/usr/include/libmesh +LIBS = -lmesh + +ex12: ex12.o + g++ $^ $(LIBS) -o $@ + +.C.o: + g++ $< $(INCLUDES) -c -o $@ + +ex12.C: ex12.C.gz + gunzip -c $< > $@ + +clean: + rm -f *.o ex12 *~ *.gmv *.dat --- libmesh-0.6.3.dfsg~rc1.orig/debian/exmake/Makefile.ex3 +++ libmesh-0.6.3.dfsg~rc1/debian/exmake/Makefile.ex3 @@ -0,0 +1,17 @@ +INCLUDES = -I/usr/include/mpi -I/usr/include/petsc -I/usr/include/libmesh +LIBS = -lmesh + +out.gmv: ex3 + ./ex3 + +ex3: ex3.o exact_solution.o + g++ $^ $(LIBS) -o $@ + +.C.o: + g++ $< $(INCLUDES) -c -o $@ + +ex3.C: ex3.C.gz + gunzip -c $< > $@ + +clean: + rm -f *.o ex3 *~ out.gmv --- libmesh-0.6.3.dfsg~rc1.orig/debian/exmake/Makefile.ex0 +++ libmesh-0.6.3.dfsg~rc1/debian/exmake/Makefile.ex0 @@ -0,0 +1,17 @@ +INCLUDES = -I/usr/include/mpi -I/usr/include/petsc -I/usr/include/libmesh +LIBS = -lmesh + +gnuplot_script_data: ex0 + ./ex0 + +ex0: ex0.o + g++ $< $(LIBS) -o $@ + +.C.o: + g++ $< $(INCLUDES) -c -o $@ + +ex0.C: ex0.C.gz + gunzip -c $< > $@ + +clean: + rm -f *.o ex0 gnuplot* *~ --- libmesh-0.6.3.dfsg~rc1.orig/debian/exmake/Makefile.ex18 +++ libmesh-0.6.3.dfsg~rc1/debian/exmake/Makefile.ex18 @@ -0,0 +1,20 @@ +INCLUDES = -I/usr/include/mpi -I/usr/include/petsc -I/usr/include/libmesh +LIBS = -lmesh + +out.gmv.015: ex18 ex18.in navier.in + ./ex18 + +ex18: ex18.o naviersystem.o + g++ $^ $(LIBS) -o $@ + +.C.o: + g++ $< $(INCLUDES) -c -o $@ + +ex18.C: ex18.C.gz + gunzip -c $< > $@ + +naviersystem.C: naviersystem.C.gz + gunzip -c $< > $@ + +clean: + rm -f *.o ex18 *~ *.gmv.* --- libmesh-0.6.3.dfsg~rc1.orig/debian/exmake/Makefile.ex6 +++ libmesh-0.6.3.dfsg~rc1/debian/exmake/Makefile.ex6 @@ -0,0 +1,17 @@ +INCLUDES = -I/usr/include/mpi -I/usr/include/petsc -I/usr/include/libmesh +LIBS = -lmesh + +ifems_added.gmv: ex6 + ./ex6 + +ex6: ex6.o + g++ $^ $(LIBS) -o $@ + +.C.o: + g++ $< $(INCLUDES) -c -o $@ + +ex6.C: ex6.C.gz + gunzip -c $< > $@ + +clean: + rm -f *.o ex6 *~ *.gmv *.dat --- libmesh-0.6.3.dfsg~rc1.orig/debian/exmake/Makefile.ex11 +++ libmesh-0.6.3.dfsg~rc1/debian/exmake/Makefile.ex11 @@ -0,0 +1,17 @@ +INCLUDES = -I/usr/include/mpi -I/usr/include/petsc -I/usr/include/libmesh +LIBS = -lmesh + +out.gmv: ex11 + ./ex11 + +ex11: ex11.o + g++ $^ $(LIBS) -o $@ + +.C.o: + g++ $< $(INCLUDES) -c -o $@ + +ex11.C: ex11.C.gz + gunzip -c $< > $@ + +clean: + rm -f *.o ex11 *~ *.gmv --- libmesh-0.6.3.dfsg~rc1.orig/debian/exmake/Makefile.ex8 +++ libmesh-0.6.3.dfsg~rc1/debian/exmake/Makefile.ex8 @@ -0,0 +1,20 @@ +INCLUDES = -I/usr/include/mpi -I/usr/include/petsc -I/usr/include/libmesh +LIBS = -lmesh + +out.030.gmv: ex8 pipe-mesh.unv + ./ex8 pipe-mesh.unv + +ex8: ex8.o + g++ $^ $(LIBS) -o $@ + +.C.o: + g++ $< $(INCLUDES) -c -o $@ + +ex8.C: ex8.C.gz + gunzip -c $< > $@ + +pipe-mesh.unv: pipe-mesh.unv.gz + gunzip -c $< > $@ + +clean: + rm -f *.o ex8 *~ *.gmv *.res --- libmesh-0.6.3.dfsg~rc1.orig/debian/exmake/Makefile.ex14 +++ libmesh-0.6.3.dfsg~rc1/debian/exmake/Makefile.ex14 @@ -0,0 +1,17 @@ +INCLUDES = -I/usr/include/mpi -I/usr/include/petsc -I/usr/include/libmesh +LIBS = -lmesh + +lshaped.gmv: ex14 ex14.in lshaped.xda + ./ex14 + +ex14: ex14.o + g++ $^ $(LIBS) -o $@ + +.C.o: + g++ $< $(INCLUDES) -c -o $@ + +ex14.C: ex14.C.gz + gunzip -c $< > $@ + +clean: + rm -f *.o ex14 *~ *.gmv *.m --- libmesh-0.6.3.dfsg~rc1.orig/debian/exmake/Makefile.ex7 +++ libmesh-0.6.3.dfsg~rc1/debian/exmake/Makefile.ex7 @@ -0,0 +1,23 @@ +INCLUDES = -I/usr/include/mpi -I/usr/include/petsc -I/usr/include/libmesh +LIBS = -lmesh + +lshaped.gmv: ex7 lshape.unv lshape_data.unv + ./ex7 + +ex7: ex7.o + g++ $^ $(LIBS) -o $@ + +.C.o: + g++ $< $(INCLUDES) -c -o $@ + +ex7.C: ex7.C.gz + gunzip -c $< > $@ + +lshape.unv: lshape.unv.gz + gunzip -c $< > $@ + +lshape_data.unv: lshape_data.unv.gz + gunzip -c $< > $@ + +clean: + rm -f *.o ex7 *~ *.gmv *.m --- libmesh-0.6.3.dfsg~rc1.orig/debian/patches/netcdf_support.patch +++ libmesh-0.6.3.dfsg~rc1/debian/patches/netcdf_support.patch @@ -0,0 +1,13 @@ +--- libmesh-0.6.2.dfsg/aclocal.m4~ 2008-06-10 22:34:12.000000000 +0000 ++++ libmesh-0.6.2.dfsg/aclocal.m4 2008-06-10 22:36:20.000000000 +0000 +@@ -1375,8 +1375,8 @@ + dnl where it might be installed... + + if (test $enablenetcdf = yes); then +- NETCDF_INCLUDE="-I$PWD/contrib/netcdf/Lib" +- NETCDF_LIBRARY="\$(EXTERNAL_LIBDIR)/libnetcdf\$(libext)" ++ NETCDF_INCLUDE="" ++ NETCDF_LIBRARY="-lnetcdf" + AC_DEFINE(HAVE_NETCDF, 1, [Flag indicating whether the library will be compiled with Netcdf support]) + AC_MSG_RESULT(<<< Configuring library with Netcdf support >>>) + have_netcdf=yes --- libmesh-0.6.3.dfsg~rc1.orig/debian/patches/series +++ libmesh-0.6.3.dfsg~rc1/debian/patches/series @@ -0,0 +1,4 @@ +scotchmetis_support.patch +netcdf_support.patch +petsc3.patch +ftbfs_allgather.patch --- libmesh-0.6.3.dfsg~rc1.orig/debian/patches/petsc3.patch +++ libmesh-0.6.3.dfsg~rc1/debian/patches/petsc3.patch @@ -0,0 +1,72 @@ +Index: libmesh-0.6.3.dfsg~rc1/Make.common.in +=================================================================== +--- libmesh-0.6.3.dfsg~rc1.orig/Make.common.in 2009-10-14 09:16:20.000000000 -0400 ++++ libmesh-0.6.3.dfsg~rc1/Make.common.in 2009-10-14 09:21:39.000000000 -0400 +@@ -368,16 +368,24 @@ + ifeq ($(petsc-major-minor),2.3.x) # 2.3.x & newer style + include $(SLEPC_DIR)/bmake/$(PETSC_ARCH)/slepcconf + else +- include $(SLEPC_DIR)/bmake/$(PETSC_ARCH)/packages ++ ifeq ($(petsc-major-minor),3.0.x) # 3.0.x ++ include ${SLEPC_DIR}/conf/slepc_common_variables ++ else ++ include $(SLEPC_DIR)/bmake/$(PETSC_ARCH)/packages ++ endif + endif + + libmesh_INCLUDE += -I$(SLEPC_DIR)/include + + # Depending on petsc version, libs live in different locations +- ifneq (,$(findstring 2.3.x, $(petsc-major-minor))) # 2.3.x & newer does not use BOPT +- SLEPC_LIB = $(SLEPC_DIR)/lib/$(PETSC_ARCH) ++ ifeq ($(petsc-major-minor),2.3.x) # 2.3.x & newer does not use BOPT, has lib/ARCH/... ++ PETSC_LIB = $(PETSC_DIR)/lib/$(PETSC_ARCH) + else +- SLEPC_LIB = $(SLEPC_DIR)/lib/lib$(BOPT)/$(PETSC_ARCH) ++ ifeq ($(petsc-major-minor),3.0.x) # 3.0.x & newer does not use BOPT, has ARCH/lib/... ++ PETSC_LIB = $(PETSC_DIR)/$(PETSC_ARCH)/lib ++ else ++ PETSC_LIB = $(PETSC_DIR)/lib/lib$(BOPT)/$(PETSC_ARCH) ++ endif + endif + + libs-SLEPC = -L$(SLEPC_LIB) \ +@@ -417,10 +425,12 @@ + C_CLINKER_SLFLAG = $(libmesh_RPATHFLAG)# necessary for PETSc >= 2.1.6 + ifeq ($(petsc-major-minor),2.3.x) # 2.3.x & newer style + include $(PETSC_DIR)/bmake/$(PETSC_ARCH)/petscconf # 2.3.0 or later style +- + else +- include $(PETSC_DIR)/bmake/$(PETSC_ARCH)/packages # 2.1.1 or later style +- ++ ifeq ($(petsc-major-minor),3.0.x) # 3.0.x & newer style ++ include $(PETSC_DIR)/$(PETSC_ARCH)/conf/petscvariables # 3.0.0 or later style ++ else ++ include $(PETSC_DIR)/bmake/$(PETSC_ARCH)/packages # 2.1.1 or later style ++ endif + endif + endif + +@@ -430,14 +440,19 @@ + # INCLUDE += `$(MAKE) -C $(PETSC_DIR) BOPT=$(BOPT) getincludedirs` + + +- libmesh_INCLUDE += -I$(PETSC_DIR)/include -I$(PETSC_DIR)/bmake/$(PETSC_ARCH) \ ++ # (needed by all petsc) (needed by versions <= 2.3.3) (needed by versions >= 3.0.0) ++ libmesh_INCLUDE += -I$(PETSC_DIR)/include -I$(PETSC_DIR)/bmake/$(PETSC_ARCH) -I$(PETSC_DIR)/$(PETSC_ARCH)/include \ + $(BLOCKSOLVE_INCLUDE) $(HYPRE_INCLUDE) + + # Depending on petsc version, libs live in different locations +- ifneq (,$(findstring 2.3.x, $(petsc-major-minor))) # 2.3.x & newer does not use BOPT ++ ifeq ($(petsc-major-minor),2.3.x) # 2.3.x & newer does not use BOPT, has lib/ARCH/... + PETSC_LIB = $(PETSC_DIR)/lib/$(PETSC_ARCH) + else +- PETSC_LIB = $(PETSC_DIR)/lib/lib$(BOPT)/$(PETSC_ARCH) ++ ifeq ($(petsc-major-minor),3.0.x) # 3.0.x & newer does not use BOPT, has ARCH/lib/... ++ PETSC_LIB = $(PETSC_DIR)/$(PETSC_ARCH)/lib ++ else # old-schol lib/lib$BOPT/ARCH format ++ PETSC_LIB = $(PETSC_DIR)/lib/lib$(BOPT)/$(PETSC_ARCH) ++ endif + endif + + ifeq ($(enable-shared),yes) --- libmesh-0.6.3.dfsg~rc1.orig/debian/patches/scotchmetis_support.patch +++ libmesh-0.6.3.dfsg~rc1/debian/patches/scotchmetis_support.patch @@ -0,0 +1,17 @@ +--- libmesh-0.6.3.dfsg~rc1/aclocal.m4~ 2008-08-15 21:32:24.000000000 +0000 ++++ libmesh-0.6.3.dfsg~rc1/aclocal.m4 2008-08-22 19:11:31.000000000 +0000 +@@ -1120,11 +1120,11 @@ + dnl ------------------------------------------------------------- + AC_DEFUN(CONFIGURE_METIS, + [ +- AC_CHECK_FILE(./contrib/metis/Lib/metis.h, ++ AC_CHECK_FILE(/usr/include/metis/metis.h, + [ +- METIS_INCLUDE_PATH=$PWD/contrib/metis/Lib ++ METIS_INCLUDE_PATH=/usr/include/metis + METIS_INCLUDE=-I$METIS_INCLUDE_PATH +- METIS_LIB="\$(EXTERNAL_LIBDIR)/libmetis\$(libext)" ++ METIS_LIB="-lscotchmetis" + AC_SUBST(METIS_INCLUDE) + AC_SUBST(METIS_LIB) + AC_DEFINE(HAVE_METIS, 1, --- libmesh-0.6.3.dfsg~rc1.orig/debian/patches/ftbfs_allgather.patch +++ libmesh-0.6.3.dfsg~rc1/debian/patches/ftbfs_allgather.patch @@ -0,0 +1,12 @@ +Index: libmesh-0.6.3.dfsg~rc1/include/parallel/parallel.h +=================================================================== +--- libmesh-0.6.3.dfsg~rc1.orig/include/parallel/parallel.h 2009-10-14 09:45:51.000000000 -0400 ++++ libmesh-0.6.3.dfsg~rc1/include/parallel/parallel.h 2009-10-14 09:46:04.000000000 -0400 +@@ -1509,6 +1509,7 @@ + datatype(), + &recv[0], + 2, ++ datatype(), + libMesh::COMM_WORLD); + } + else --- libmesh-0.6.3.dfsg~rc1.orig/debian/patches/disable_exodus.patch +++ libmesh-0.6.3.dfsg~rc1/debian/patches/disable_exodus.patch @@ -0,0 +1,43 @@ +--- libmesh-0.6.3.dfsg/src/mesh/exodusII_io.C~ 2008-08-05 14:17:46.000000000 +0000 ++++ libmesh-0.6.3.dfsg/src/mesh/exodusII_io.C 2008-08-06 18:48:24.000000000 +0000 +@@ -1321,8 +1321,18 @@ + + ExodusII_IO::~ExodusII_IO () + { ++#ifndef HAVE_EXODUS_API ++ ++ std::cerr << "ERROR, ExodusII API is not defined.\n" ++ << std::endl; ++ libmesh_error(); ++ ++#else ++ + if(ex_ptr) + ex_ptr->close(); ++ ++#endif + } + + void ExodusII_IO::read (const std::string& fname) +@@ -1536,11 +1546,21 @@ + const int timestep, + const double time) + { ++#ifndef HAVE_EXODUS_API ++ ++ std::cerr << "ERROR, ExodusII API is not defined.\n" ++ << std::endl; ++ libmesh_error(); ++ ++#else ++ + _timestep=timestep; + write_equation_systems(fname,es); + + if (libMesh::processor_id() == 0) + ex_ptr->write_timestep(timestep, time); ++ ++#endif + } + +