debian/0000755000000000000000000000000011770614701007172 5ustar debian/changelog0000644000000000000000000000147311770575564011066 0ustar metis-edf (4.1-2-3) unstable; urgency=low * Update C. Trophime email address * Use of dh instead of cdbs * Add .install files * Add format-security.patch * Add symlinks to $ASTER_ROOT/outils to pmetis and kmetis (closes: #671826) -- Christophe Trophime Sun, 17 Jun 2012 10:47:04 +0200 metis-edf (4.1-2-2) unstable; urgency=low * Team upload. * FTBFS - missing link at math fixed (Closes: #650180) * FTBFS with -Werror=format-security fixed (Closes: #650178) Thanks to Leo Iannacone for the two FTBFS fixes. -- Sylvestre Ledru Sun, 27 Nov 2011 22:38:04 +0100 metis-edf (4.1-2-1) unstable; urgency=low * Initial release (Closes: #578054) -- Christophe Trophime Sun, 12 Jun 2011 21:32:58 +0200 debian/patches/0000755000000000000000000000000011770572262010626 5ustar debian/patches/configure.patch0000644000000000000000000000342611745535463013641 0ustar Index: metis-edf-4.1/CONFIG/configure =================================================================== --- metis-edf-4.1.orig/CONFIG/configure 2010-03-26 14:52:43.000000000 +0100 +++ metis-edf-4.1/CONFIG/configure 2010-03-26 14:52:43.000000000 +0100 @@ -25,7 +25,7 @@ echo " Installation failed !" exit 8 fi -echo " Configure Makefile.in for platform : $OS_TYPE" +echo " Configure Makefile.in for platform : $OS_TYPE arch: $OS_MACH" # CC : C compiler, F90 : Fortran compiler, LD : loader # COPTIONS : C compiler options @@ -41,16 +41,12 @@ AR_TEMP="ar rv" if [ $OS_TYPE = "Linux" ]; then + CC_TEMP="gcc" + F90_TEMP="gfortran" + LD_TEMP="gfortran" + COPTIONS_TEMP="-fPIC -DPIC" if [ $OS_MACH = "x86_64" ]; then - CC_TEMP="gcc" - F90_TEMP="gfortran" - LD_TEMP="gfortran" - COPTIONS_TEMP="" - FOPTIONS_TEMP="-i8 -r8" - else - CC_TEMP="gcc" - F90_TEMP="g77" - LD_TEMP="g77" + FOPTIONS_TEMP="-fdefault-double-8 -fdefault-integer-8 -fdefault-real-8" fi elif [ $OS_TYPE = "CYGWIN_NT-5.1" ]; then CC_TEMP="gcc" @@ -77,6 +73,8 @@ rm -f Makefile.in fi +echo $COPTIONS_TEMP +echo $FOPTIONS_TEMP if [ "$CC" != "" ] ; then @@ -90,9 +88,17 @@ fi if [ "$CFLAGS" != "" ] ; then COPTIONS_TEMP=$CFLAGS + if [ $OS_TYPE = "Linux" ]; then + COPTIONS_TEMP="$CFLAGS -fPIC -DPIC" + fi fi if [ "$FFLAGS" != "" ] ; then FOPTIONS_TEMP=$FFLAGS + if [ $OS_TYPE = "Linux" ]; then + if [ $OS_MACH = "x86_64" ]; then + FOPTIONS_TEMP="$FFLAGS -fdefault-double-8 -fdefault-integer-8 -fdefault-real-8" + fi + fi fi if [ "$LDFLAGS" != "" ] ; then LDOPTIONS_TEMP=$LDFLAGS @@ -103,6 +109,9 @@ LDOPTIONS_TEMP="$LDOPTIONS_TEMP -L. -L.." +echo $FOPTIONS_TEMP +echo $COPTIONS_TEMP + cat << EOF > Makefile.in # Generated by CONFIG/configure CC=$CC_TEMP debian/patches/Makefile.patch0000644000000000000000000000660511745535463013377 0ustar --- a/Makefile +++ b/Makefile @@ -5,29 +5,21 @@ SUBDIRS=Lib Programs CONFDIR=./CONFIG -default: Makefile.in onmetis.exe pmetis kmetis tests +default: Makefile.in libs programs -onmetis.exe: Makefile.in - for d in $(SUBDIRS); do \ - (cd $$d && $(MAKE)); \ - done - -pmetis: Makefile.in - for d in $(SUBDIRS); do \ - (cd $$d && $(MAKE)); \ - done +libs: Makefile.in + (cd Lib && $(MAKE)) -kmetis: Makefile.in +programs: Makefile.in for d in $(SUBDIRS); do \ (cd $$d && $(MAKE)); \ done - tests: cd Test ; make -clean: +clean: Makefile.in for d in $(SUBDIRS) Test; do \ (cd $$d && $(MAKE) $@); \ done @@ -42,5 +34,6 @@ # config : define variables depends on platform # Linux, IRIX64, SunOS (SOLARIS/SOLARIS64), OSF1 (TRU64) Makefile.in: + echo "Creating Makefile.in" sh $(CONFDIR)/configure --- a/Lib/Makefile +++ b/Lib/Makefile @@ -2,7 +2,6 @@ INCLUDES = -I. -CFLAGS = $(COPTIONS) $(INCLUDES) LD = $(CC) -L. @@ -17,14 +16,23 @@ mrefine2.o minitpart2.o mbalance2.o mfm2.o \ kvmetis.o kwayvolrefine.o kwayvolfm.o subdomains.o +all: ../libmetis-edf.a ../libmetis-edf.so + + .c.o: - $(CC) $(CFLAGS) -c $*.c + $(CC) $(COPTIONS) $(INCLUDES) -c $*.c -../libmetis.a: $(OBJS) +../libmetis-edf.a: $(OBJS) $(AR) $@ $(OBJS) +../libmetis-edf.so: $(OBJS) + $(CC) $(LDFLAGS) -shared -o $@ $(OBJS) -Wl,-soname,libmetis-edf.so.4.1 -lm + (cd .. && mv libmetis-edf.so libmetis-edf.so.4.1) + (cd .. && ln -s libmetis-edf.so.4.1 libmetis-edf.so.4) + (cd .. && ln -s libmetis-edf.so.4 libmetis-edf.so) + clean: rm -f *.o distclean: - rm -f *.o ; rm -f ../libmetis.a + rm -f *.o ; rm -f ../libmetis.a ../libmetis.so* --- a/Test/Makefile +++ b/Test/Makefile @@ -4,12 +4,12 @@ vers_check: @echo "### Test 2 : test --version option, onmetis returns :" - (../onmetis --version ; exit 0) + (export LD_LIBRARY_PATH=..; ../onmetis.exe --version ; exit 0) @echo " " fort.85 : fort.81 @echo "### Test 1 : data file produced by Code_Aster" - ../onmetis fort.81 + (export LD_LIBRARY_PATH=..; ../onmetis.exe fort.81; exit 0) @echo " " clean: --- a/Programs/Makefile +++ b/Programs/Makefile @@ -3,10 +3,8 @@ BINDIR = .. INCLUDES = -I../Lib -CFLAGS = $(COPTIONS) $(INCLUDES) -FFLAGS = $(FOPTIONS) $(INCLUDES) -LIBS = -lmetis -lm -METISLIB = ../libmetis.a +LIBS = -L.. -lmetis-edf -lm +METISLIB = ONMETISOBJS = onmetis.o io_aster.o smbfactor.o ecri11.o lect11.o lect00.o @@ -16,21 +14,21 @@ .c.o: - $(CC) $(CFLAGS) -c $*.c + $(CC) $(COPTIONS) $(INCLUDES) -c $*.c default: $(BINDIR)/onmetis.exe $(BINDIR)/pmetis $(BINDIR)/kmetis -$(BINDIR)/onmetis.exe: $(ONMETISOBJS) $(METISLIB) +$(BINDIR)/onmetis.exe: $(ONMETISOBJS) $(LD) $(LDOPTIONS) -o $@ $(ONMETISOBJS) $(LIBS) chmod 755 $@ -$(BINDIR)/pmetis: $(PMETISOBJS) $(METISLIB) +$(BINDIR)/pmetis: $(PMETISOBJS) $(LD) $(LDOPTIONS) -o $@ $(PMETISOBJS) $(LIBS) chmod 755 $@ -$(BINDIR)/kmetis: $(KMETISOBJS) $(METISLIB) +$(BINDIR)/kmetis: $(KMETISOBJS) $(LD) $(LDOPTIONS) -o $@ $(KMETISOBJS) $(LIBS) chmod 755 $@ @@ -38,11 +36,11 @@ clean: rm -f *.o ecri11.o:ecri11.f - $(F90) $(FFLAGS) -c ecri11.f + $(F90) $(FOPTIONS) $(INCLUDES) -c ecri11.f lect11.o:lect11.f - $(F90) $(FFLAGS) -c lect11.f + $(F90) $(FOPTIONS) $(INCLUDES) -c lect11.f lect00.o:lect00.f - $(F90) $(FFLAGS) -c lect00.f + $(F90) $(FOPTIONS) $(INCLUDES) -c lect00.f distclean: rm -f *.o ;\ rm -f $(BINDIR)/onmetis.exe ; debian/patches/format-security.patch0000644000000000000000000000061311770572262015004 0ustar Index: metis-edf-4.1/Lib/util.c =================================================================== --- metis-edf-4.1.orig/Lib/util.c 2009-11-24 14:09:09.000000000 +0100 +++ metis-edf-4.1/Lib/util.c 2012-06-17 11:00:31.000000000 +0200 @@ -28,7 +28,7 @@ sprintf(out2, "Error! %s", out1); - fprintf(stdout, out2); + fprintf(stdout, "%s", out2); fflush(stdout); abort(); debian/patches/series0000644000000000000000000000006511770572262012044 0ustar configure.patch Makefile.patch format-security.patch debian/libmetis-edf4.1.install0000644000000000000000000000003211770572262013351 0ustar libmetis-edf.so.* usr/lib debian/rules0000755000000000000000000000127311770572262010262 0ustar #!/usr/bin/make -f %: dh $@ CCFLAGS = $(shell ) override_dh_auto_configure: -rm -f Makefile.in sh CONFIG/configure override_dh_auto_build: make strip [pk]metis strip onmetis.exe ln -sf libmetis-edf.so.4 libmetis-edf.so override_dh_auto_install: strip [pk]metis # Add links in $ASTER_ROOT/outils mkdir -p debian/tmp/usr/bin mkdir -p debian/tmp/usr/lib/codeaster/outils dh_link usr/bin/kmetis usr/lib/codeaster/outils/kmetis dh_link usr/bin/pmetis usr/lib/codeaster/outils/pmetis dh_auto_install override_dh_auto_clean: touch Makefile.in find . -name \*.o | xargs rm -f rm -f libmetis-edf.* rm -f onmetis.exe pmetis kmetis rm -f Makefile.in rm -f .debhelper debian/README.Debian0000644000000000000000000000101111745535463011235 0ustar metis-edf for Debian -------------------- Using METIS for Code_Aster : ============================ This is onmetis binary (renamed onmetis.exe) which is called by Code_Aster through the onmetis shell-script. pmetis and kmetis are called directly. The onmetis script, pmetis and kmetis executables have to be copied (or make a symbolic link to) into Code_Aster tools directory (generally it looks like .../aster/outils). -- Christophe Trophime Fri, 26 Mar 2010 10:45:05 +0100 debian/control0000644000000000000000000000414111770572262010602 0ustar Source: metis-edf Section: non-free/math Priority: extra Maintainer: Debian Science Team Uploaders: Christophe Trophime Build-Depends: debhelper (>= 7.0.50~), quilt, gfortran Standards-Version: 3.9.3 Homepage: http://glaros.dtc.umn.edu/gkhome/metis/metis/overview Vcs-Svn: svn://svn.debian.org/svn/debian-science/packages/code-aster/metis-edf/ Vcs-Browser: http://svn.debian.org/viewsvn/debian-science/packages/code-aster/metis-edf/ Package: metis-edf Architecture: any Depends: libmetis-edf4.1 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Description: Family of Multilevel Partitioning Algorithms METIS: A Family of Multilevel Partitioning Algorithms . This is a collection of serial and parallel programs & libraries that can be used to partitioning unstructured graphs, finite element meshes, and hypergraphs, both on serial as well as on parallel computers. . Adaptation of METIS for Code_Aster purpose Package: libmetis-edf4.1 Section: non-free/libs Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Family of Multilevel Partitioning Algorithms METIS: A Family of Multilevel Partitioning Algorithms . This is a collection of serial and parallel programs & libraries that can be used to partitioning unstructured graphs, finite element meshes, and hypergraphs, both on serial as well as on parallel computers. . Adaptation of METIS for Code_Aster purpose . This package contains the shared library Package: libmetis-edf-dev Section: non-free/libdevel Architecture: any Depends: libmetis-edf4.1 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Description: Family of Multilevel Partitioning Algorithms METIS: A Family of Multilevel Partitioning Algorithms . This is a collection of serial and parallel programs & libraries that can be used to partitioning unstructured graphs, finite element meshes, and hypergraphs, both on serial as well as on parallel computers. . Adaptation of METIS for Code_Aster purpose . This package contains files needed for development debian/compat0000644000000000000000000000000211745535463010401 0ustar 7 debian/metis-edf.install0000644000000000000000000000021011770572262012435 0ustar pmetis usr/bin kmetis usr/bin onmetis usr/bin onmetis.exe usr/bin #debian/tmp/usr/lib/codeaster/outils/*metis usr/lib/codeaster/outils debian/libmetis-edf-dev.install0000644000000000000000000000005711770572262013711 0ustar libmetis-edf.so usr/lib libmetis-edf.a usr/lib debian/README.source0000644000000000000000000000617311745535463011371 0ustar metis-edf for Debian -------------------- Adaptation of METIS for Code_Aster purpose : ============================================ A warning has been included in modified files /* WARNING : This file has been modified for Code_Aster */ /* http://www.code-aster.org */ The original distribution of METIS can be found at http://www-users.cs.umn.edu/~karypis/metis/index.html Installation instructions : =========================== 1. Run : make The Makefile does : . Configure compiler and loader options : create Makefile.in (If your platform is not recognized, you must edit CONFIG/configure) . Change to Lib dir ; launch Makefile : create libmetis.a . Change to Program dir; launch Makefile : create onmetis.exe, pmetis and kmetis . Change to Test dir ; launch Makefile : run onmetis on a small test and print version label 2. Installation : If Code_Aster is already installed, add a symbolic link to onmetis script in your Code_Aster tools directory, (if not, the installation script of Code_Aster should add a such link) Using METIS for Code_Aster : ============================ This is onmetis binary (renamed onmetis.exe) which is called by Code_Aster through the onmetis shell-script. pmetis and kmetis are called directly. The onmetis script, pmetis and kmetis executables have to be copied (or make a symbolic link to) into Code_Aster tools directory (generally it looks like .../aster/outils). ======================================================================== RELEASE NOTES ======================================================================== 30/09/2008 : Version : metis-edf-4.1 1. Correction in Programs/smbfactor.c by Ch. Rose. 04/01/2005 : Version : metis-edf-4.0 1. This version includes the build of 'pmetis' and 'kmetis'. 04/11/2003 : Version : metis-edf-3.1 1. Only the run script 'onmetis' has been modified : run 'onmetis.exe' in a temporary directory and accept output filename as 3rd argument. 11/12/2002 : Version : metis-edf-3 1. The onmetis shell-script included in the distribution. '--version' argument passed to onmetis.exe. 2. onmetis binary renamed onmetis.exe 13/05/2002 : Version : metis-edf-2 1. Option --version added to check the version level during Code_Aster installation process. 19/03/2002 : 1. Correction in Lib/ometic.c and Programs/smbfactor.c by Ch. Rose. 19/04/2000 : Version : metis-edf-1 Modifications for big problems : 1. Change all int declaration into long in C sources (.c and .h) 2. Change all scanf/printf formats : %d into %ld and %nd into %nld Exception for separator.c : IFSET(ctrl->dbglvl, DBG_SEPINFO, printf("Nvtxs: %6d, [%5d %5d], Cut: %6d, SS: [%6d %6d], Cover: %6d\n", nvtxs, graph->pwgts[0], graph->pwgts [1], graph->mincut, bnvtxs[0], bnvtxs[1]-bnvtxs[0], csize)); 3. struct.h modified : #define MAXIDX (1<<8*sizeof(idxtype)-2) #define MAXIDX (((idxtype)1)<<8*sizeof(idxtype)-2) 4. Compilation options for IRIX64 : -64 -02 et -64 -i8 Link options : -64 debian/copyright0000644000000000000000000000710511745535463011141 0ustar This work was packaged for Debian by: Christophe Trophime on Fri, 26 Mar 2010 10:45:05 +0100 It was downloaded from: http://www.code-aster.org Upstream Author: George Karypis Copyright: Copyright 1997-2003, Regents of the University of Minnesota License: The ParMETIS/METIS package is copyrighted by the Regents of the University of Minnesota. It can be freely used for educational and research purposes by non-profit institutions and US government agencies only. Other organizations are allowed to use ParMETIS/METIS only for evaluation purposes, and any further uses will require prior approval. The software may not be sold or redistributed without prior approval. One may make copies of the software for their use provided that the copies, are not sold or distributed, are used under the same terms and conditions. As unestablished research software, this code is provided on an ``as is'' basis without warranty of any kind, either expressed or implied. The downloading, or executing any part of this software constitutes an implicit agreement to these terms. These terms and conditions are subject to change at any time without prior notice. Adaptation of METIS for Code_Aster purpose: A warning has been included in modified files /* WARNING : This file has been modified for Code_Aster */ /* http://www.code-aster.org */ The original distribution of METIS can be found at http://www-users.cs.umn.edu/~karypis/metis/index.html This is onmetis binary (renamed onmetis.exe) which is called by Code_Aster through the onmetis shell-script. pmetis and kmetis are called directly. The onmetis script, pmetis and kmetis executables have to be copied (or make a symbolic link to) into Code_Aster tools directory (generally it looks like .../aster/outils). The Debian packaging is: Copyright (C) 2010 Christophe Trophime ------ Da: George Karypis A: 'Andrea Palazzi' References: <003901cc194f$29c440a0$7d4cc1e0$@cs.umn.edu> <240159.1237.qm@web132207.mail.ird.yahoo.com> In-reply-to: <240159.1237.qm@web132207.mail.ird.yahoo.com> Oggetto: RE: Distributing METIS/Metis-EDF with Debian Data: Mon, 23 May 2011 09:55:14 -0500 (23/05/2011 16:55:14) Message-id: <009401cc1959$6c924210$45b6c630$@cs.umn.edu> Mime-version: 1.0 Content-type: text/plain; charset="iso-8859-1" Content-transfer-encoding: quoted-printable yes I approve. -----Original Message----- From: Andrea Palazzi [mailto:palazziandrea@yahoo.it] Sent: Monday, May 23, 2011 9:50 AM To: George Karypis Subject: RE: Distributing METIS/Metis-EDF with Debian > Da: George Karypis > Oggetto: RE: Distributing METIS/Metis-EDF with Debian > A: "'Andrea Palazzi'" > Data: Lunedì 23 maggio 2011, 15:41 > Andrea, > > Yes I approve the posting of ParMETIS' source code and binary > packages. > BTW, there is a major re-write of Metis/ParMetis that should hit the > web within a month or so. > > George Greetings, I've made a little error, the package involved is not ParMETIS but METIS, and its derivated work made by EDF, METIS-EDF. So, the question is: Do you approve of the posting of METIS source and binary packages on the 800+ Debian mirror servers around the world, as a means of delivery to our users? Sorry for asking you twice, and thank you for your cooperation. Sincerely, Andrea Palazzi !DSPAM:4dda741d80511600028764! debian/docs0000644000000000000000000000002211745535463010050 0ustar README_Code_Aster debian/source/0000755000000000000000000000000011745535463010503 5ustar debian/source/format0000644000000000000000000000001411745535463011711 0ustar 3.0 (quilt)