--- pgapack-1.1.1.orig/configure.in +++ pgapack-1.1.1/configure.in @@ -315,7 +315,9 @@ FC=f77 FFLAGS="-w" LDFLAGS="-s $LDFLAGS" - CPPFLAGS="-DWL=32 -DFORTRANUNDERSCORE $CPPFLAGS" + #CPPFLAGS="-DWL=32 -DFORTRANUNDERSCORE $CPPFLAGS" + wordlength=$(sh debian/computeWordlength.sh) + CPPFLAGS="${wordlength} -DFORTRANUNDERSCORE $CPPFLAGS" ;; t3d) CC=/mpp/bin/cc --- pgapack-1.1.1.orig/configure +++ pgapack-1.1.1/configure @@ -444,7 +444,9 @@ FC=f77 FFLAGS="-w" LDFLAGS="-s $LDFLAGS" - CPPFLAGS="-DWL=32 -DFORTRANUNDERSCORE $CPPFLAGS" + #CPPFLAGS="-DWL=32 -DFORTRANUNDERSCORE $CPPFLAGS" + wordlength=$(sh debian/computeWordlength.sh) + CPPFLAGS="${wordlength} -DFORTRANUNDERSCORE $CPPFLAGS" ;; t3d) CC=/mpp/bin/cc --- pgapack-1.1.1.orig/debian/libpgapack-mpi1.shlibs +++ pgapack-1.1.1/debian/libpgapack-mpi1.shlibs @@ -0,0 +1 @@ +libpgapack-mpi1 1 libpgapack-mpi1 --- pgapack-1.1.1.orig/debian/libpgapack-serial1.shlibs +++ pgapack-1.1.1/debian/libpgapack-serial1.shlibs @@ -0,0 +1 @@ +libpgapack-serial1 1 libpgapack-serial1 --- pgapack-1.1.1.orig/debian/computeWordlength.sh +++ pgapack-1.1.1/debian/computeWordlength.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +tmpfile=$(tempfile) +ctmpfile="${tmpfile}.c" +cat < ${ctmpfile} +#include +int main(void) { + if (8 == sizeof(long)) + printf("-DWL=64"); + else + printf("-DWL=32"); + return(0); +} +EOF +gcc -o ${tmpfile} ${ctmpfile} +wordlength=$(${tmpfile}) +echo "${wordlength}" +rm -f ${tmpfile} ${ctmpfile} +exit 0 --- pgapack-1.1.1.orig/debian/compat +++ pgapack-1.1.1/debian/compat @@ -0,0 +1,2 @@ +5 + --- pgapack-1.1.1.orig/debian/fixman.sh +++ pgapack-1.1.1/debian/fixman.sh @@ -0,0 +1,16 @@ +#!/bin/sh +# +# krs@debian.org 4 Nov 96 +# edits all man pages to put them in man3 +# +SECS='1 2 4 5 6 7 8 l' +srcdir=$PWD +test -d tmpman || mkdir tmpman +for s in $SECS; do + cd $srcdir/man/man$s; + for f in *.$s; do + base=`basename $f .$s`; + cp $f $srcdir/tmpman/$base.3; + done; +done; +cp $srcdir/man/man3/* $srcdir/tmpman --- pgapack-1.1.1.orig/debian/README.Debian +++ pgapack-1.1.1/debian/README.Debian @@ -0,0 +1,45 @@ + +The test/ directory code can be used via + + gcc -o instverf instverf.c \ + -O3 -s -Wall -Dlinux -DWL=32 -DFORTRANUNDERSCORE -DFAKE_MPI \ + -I/usr/include/pgapack-serial -lpgapack-serial1 -lm + +and running instverf in that directory against the precomputed reference data +passes all tests (and just throws up two gcc warnings that can be ignored). + + +[ The text below is from October 2006 or below. ] + + +pgapack/README.Debian + +There are some known problems with user_guide.ps. + +/usr/share/doc/pgapack/user_guide.ps.gz, page 19, section "Population +replacement" talks about PGASetPopReplacementType two times. There is no +such function, it should instead talk about PGASetPopReplaceType. +(reported by Marcin Owsiany ) + +/usr/share/doc/pgapack/user_guide.ps.gz, at the end of section 5.7 "Mutation" +says: +] Some of the integer- and real-valued mutation operators generate +] allele values outside the initialization range of that gene. If this +] happens, by default, the allele value will be reset to the lower (upper) +] value of the initialization range for that gene. By setting +] PGASetMutationBoundedFlag(ctx, PGA_FALSE) the allele values will +] NOT be reset if they fall outside of the initialization range. +manual page for PGASetMutationBoundedFlag says: +] PGASetMutationBoundedFlag - If this flag is set to PGA_TRUE, then for Integer and +] Real strings whenever a gene is mutated, if it underflows (overflows) the lower +] (upper)bound it is reset to the lower (upper) bound. In this way all allele values +] remain within the range the integer strings were initialized on. If this flag is +] PGA_FALSE (the default), the alleles may take any values. +Which is exactly opposite! +pgapack-1.0.0.1/source/create.c contains: +] if ( ctx->ga.MutateBoundedFlag == PGA_UNINITIALIZED_INT) +] ctx->ga.MutateBoundedFlag = PGA_FALSE; +Which seems to be consistent with what the manpage says. +(reported by Marcin Owsiany ) + + -- Dirk Eddelbuettel , Tue, 26 Feb 2008 21:21:57 -0600 --- pgapack-1.1.1.orig/debian/changelog +++ pgapack-1.1.1/debian/changelog @@ -0,0 +1,216 @@ +pgapack (1.1.1-3) unstable; urgency=low + + * debian/computeWordlength.sh: Added simple shell script to compute the + size of long to determine whether 32 or 64 bit systems are used + * configure(.in): Use computeWordlength.sh to switch between "-DWL=32" + "-DWL-64" at build-time (Closes: #641553) + + * debian/control: Improved Description synopsis (thanks, Lintian) + + -- Dirk Eddelbuettel Thu, 15 Sep 2011 09:02:45 -0500 + +pgapack (1.1.1-2) unstable; urgency=low + + * debian/rules: Also allow for MPICH2 which is now more broadly + available in Debian and can act as a fallback when Open MPI is not + available. Special thanks to Nicholas Breen for the patch. + (Closes: #626330) + + * debian/control: Updated Standards-Version: to 3.9.1 + + * debian/control: Added ${misc:Depends} to Depends for all packages + + -- Dirk Eddelbuettel Thu, 12 May 2011 20:25:00 -0500 + +pgapack (1.1.1-1) unstable; urgency=low + + * This release provides a more complete reconstitution adding two files. + - doc/user_guide.tex: Re-added LaTeX sources recoverd by David Levine + from a decade-old backup tape. Thanks! + - doc/tpage.sty: Added historic Argonne titlepage style procured by + Rusty Lusk and Barry Smith at Argonne National Labs. Thanks! + + * debian/control: Rewrote dependency on MPI using the new meta-packages + mpi-default-dev (for Build-Depends:) and mpi-default-bin (for Depends:) + now that Open MPI 1.3.2 has hit unstable + + * debian/control: Updated Standards-Version: to 3.8.1 + + -- Dirk Eddelbuettel Mon, 01 Jun 2009 21:26:42 -0500 + +pgapack (1.1-2) unstable; urgency=low + + * man/man?/*: Modified numerous manual pages by splitting (non-standard) + multi-line NAME entries off into an initial line and a DESCRIPTION. + While this departs slightly from the recently created upstream tarball, + it allows us to addresses the old open bug report. (Closes: #241916) + + * debian/control: Updated Standards-Version: to current version + + -- Dirk Eddelbuettel Wed, 02 Jul 2008 20:28:28 -0500 + +pgapack (1.1-1) unstable; urgency=low + + * Really good news: The MCS divsion of Argonne National Laboratories has + agreed to relicense pgapack using the MPICH2 license. So pgapack is + now Free Software and can move into Debian's main archive! + Our thanks go to David Levine and Rusty Lusk to make this possible. + + * debian/copyright: Updated using MPICH2 license now chosen upstream + + * New maintainer, following Andreas' offer dated 2006-10-04 in #379388 + + * debian/control: Change section to math (Closes: #379388) + + * Added new brinary packages libpgapack-mpi1 and libpgapack-serial1 + * The MPI package is configured using Open MPI where available and LAM + where not. + * debian/control: Changed Build-Depends: to use OpenMPI where available, + and LAM otherwise. + + * Finally acknowledges old NMUs (Closes: #379168,#359549) + + * source/integer.c: Apply patch for one-off error (Closes: #333381) + + * source/report.c: Do not unconditionally print at generation 1 + + * debian/rules: Remove a bashism (Closes: #379168) + * debian/rules: Install examples directly (Closes: #134331) + * debian/control: libpgapack-lam1 Depends on lam4 (Closes: #60376) + * debian/rules: Rewritten using debhelper + * debian/control: Added Build-Depends: section for debhelper + + * No longer install mpi.h in /usr/include (Closes: #404027) + + * debian/control: Updated Standards-Version: to current version + + * man/man1/PGAGetCharacterAllele.1: fix whatis entry (lintian) + + -- Dirk Eddelbuettel Sat, 15 Mar 2008 13:49:45 -0500 + +pgapack (1.0.0.1-4.2) unstable; urgency=low + + * Non-maintainer upload. + + -- Robert S. Edmonds Sat, 22 Jul 2006 20:04:10 -0400 + +pgapack (1.0.0.1-4.1) unstable; urgency=low + + * Non-maintainer upload. + * Get rid of the /usr/doc link in postinst (Closes: #359549). + + -- Amaya Rodrigo Sastre Mon, 17 Jul 2006 17:53:25 +0200 + +pgapack (1.0.0.1-4) unstable; urgency=low + + * Updated to policy version 3.6.1.1, no symlink in /usr/doc + + -- Andreas Franzen Wed, 19 Apr 2006 21:49:14 +0200 + +pgapack (1.0.0.1-3) unstable; urgency=low + + * Updated to policy version 3.5.9 + + * Included information about a problem in the user-guide in README.Debian + Closes: #180807 + + * Included information about a problem in the user-guide in README.Debian + Closes: #179368 + + -- Andreas Franzen Mon, 31 Mar 2003 21:40:54 +0200 + +pgapack (1.0.0.1-2.1) unstable; urgency=low + * Non-maintainer upload. + * Fix printf-is-a-macro issue (gcc 3.0). Closes: #103157 + + -- LaMont Jones Mon, 9 Jul 2001 21:39:34 -0600 + +pgapack (1.0.0.1-2) unstable; urgency=low + + * Fixed Bug + #79496: segmentation fault + by recompiling the package. + + -- Andreas Franzen Mon, 18 Dec 2000 21:17:37 +0100 + + +pgapack (1.0.0.1-1) unstable; urgency=low + + * Added postinst+prerm spripts for /usr/doc-symlink. + + * Changed the location of docs and man-pages. + + * Fixed Bug + #52377: segmentation fault + by recompiling the package. + + * Fixed Bug + #52378: problems compiling + by setting the file permissions in the source file to standard values. + Changed the source version from 1.0 to 1.0.0.1 to indicate this. + + * Fixed Bug + #53742: no debug library + by adding a second compilation run. + + -- Andreas Franzen Wed, 5 Jan 2000 22:28:01 +0100 + +pgapack (1.0-10) unstable; urgency=low + + * Fixed Bug + #29552: pgapack: hardcoded dependency in debian/control + by changing the dependency field to ${shlib:Depends}. + + -- Andreas Franzen Fri, 2 Apr 1999 18:35:56 +0200 + +pgapack (1.0-9) unstable; urgency=low + + * Replaced fort77 by g77 in the rules file to prevent the + "Illegal option: -s" error when compiling the fortran examples. + + * Redefined the fortran function names in mpi_stub.c to take into account + that both fort77 and g77 add two underscores to a function name when + creating an object file, if the original name contains one or more + underscores. This is necessary to compile the fortran examples. + + -- Andreas Franzen Fri, 24 Sep 1998 17:49:50 +0200 + +pgapack (1.0-8) unstable; urgency=low + + * Fixed Bug + #12418: pgapack: debian/fixman.sh is not executable + by calling sh debian/fixman.sh instead. + + * Renamed changelog.upstream.gz to changelog.gz. + + * New maintainer. + + -- Andreas Franzen Sun, 23 Aug 1998 14:49:52 +0200 + +pgapack (1.0-7) unstable; urgency=low + + * Recompiled with libc6. + + -- Karl Sackett Wed, 25 Jun 1997 09:38:54 -0500 + +pgapack (1.0-6) unstable; urgency=low + + * Convert package to 2.1.1.0 standard. + + -- Karl Sackett Mon, 4 Nov 1996 13:24:56 -0600 + +1.0-5 + * Support files now architecture-independent + * Package conforms to latest naming standards + +1.0-4 + * Added 'Section' line to debian.control + * debian.rules now adds architecture extension to files + +1.0-3 + * configure.in Changed SHELL variable to /bin/sh. + * Makefile.in: Mods to install target. + * man pages: The man pages as originally distributed are scattered + across sections 1-8, and l. fixman.sh edits them to be + placed in section 3. + --- pgapack-1.1.1.orig/debian/rules +++ pgapack-1.1.1/debian/rules @@ -0,0 +1,185 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# debian/rules file for the Debian/GNU Linux pgapack package +# Copyright 2006 - 2007 by Dirk Eddelbuettel + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +package := $(shell head -1 debian/changelog | cut -f1 -d" ") +libname := lib${package} + +major := 1 +minor := 0 + +serbasename := ${package}-serial +serpackage := lib${serbasename}${major} +mpibasename := ${package}-mpi +mpipackage := lib${mpibasename}${major} + +staticlib := ${serpackage}.a +sharedfull := ${serpackage}.so.${major}.${minor} +sharedshort := ${serpackage}.so.${major} +sharedlib := ${serpackage}.so + +mpistaticlib := ${mpipackage}.a +mpisharedfull := ${mpipackage}.so.${major}.${minor} +mpisharedshort := ${mpipackage}.so.${major} +mpisharedlib := ${mpipackage}.so + +cflags := -O3 -fPIC -D_REENTRANT -Wall +cc := gcc + +debdir := debian/${package} + +build: build-stamp +build-stamp: + dh_testdir + # if we have OpenMPI -- will fail if we have LAM, hence the '-test' use + # Open MPI shared library version --> we use the shared and static library version + -test -d /usr/lib/openmpi && \ + ./configure -arch linux -cc gcc -cflags "${cflags}" \ + -mpiinc /usr/lib/openmpi/include -mpilib /usr/lib/libmpi.so && \ + cd source && $(MAKE) && cd - + # if we have MPICH2 -- will fail if we have only LAM or OpenMPI, hence '-test' + -test -d /usr/include/mpich2 && \ + ./configure -arch linux -cc mpicc.mpich2 -cflags "${cflags}" \ + -mpiinc /usr/include/mpich2 -mpilib /usr/lib/libmpich.so && \ + cd source && $(MAKE) && cd - + # if we have LAM -- will fail if we have OpenMPI, hence the '-test' use + # lam shared library version --> we use the shared and static library version + -test -d /usr/include/lam && \ + ./configure -arch linux -cc gcc -cflags "${cflags}" \ + -mpiinc /usr/include/lam -mpilib /usr/lib/liblam.so && \ + cd source && $(MAKE) && cd - + # need to rename static library from non-standard name, and + # need to build shared library by hand + (cd lib/linux/ && \ + mv -v libpgaO.a ${mpistaticlib} && \ + $(cc) -shared -Wl,-soname,${mpisharedshort} -o ${mpisharedfull} *.o && \ + rm *.o) + mv lib/linux lib/linux-mpi + + # serial version --> we use the shared library version + ./configure -arch linux -cc gcc -cflags "${cflags}" + (cd source && $(MAKE)) + # need to rename static library from non-standard name, and + # need to build shared library by hand + (cd lib/linux/ && \ + rm -v libpgaO.a && \ + $(cc) -shared -Wl,-soname,${sharedshort} -o ${sharedfull} *.o && \ + rm *.o) + mv lib/linux lib/linux-serial + + # (serial) debug version --> we use the static library + ./configure -arch linux -cc gcc -cflags "${cflags}" -debug + (cd source && $(MAKE)) + # need to rename static library from non-standard name, and + # need to build shared library by hand + (cd lib/linux/ && \ + mv -v libpgag.a ${staticlib} && \ + rm *.o) + mv lib/linux/${staticlib} lib/linux-serial + + # fix up manual pages in man/manl section + (cd man/manl && \ + for f in *.l; do \ + perl -p -i -e 's/(\.TH) (\w+) l /$$1 $$2 3 /' $$f; \ + done ) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + -rm -vrf lib/linux lib/linux-mpi lib/linux-debug lib/linux-serial + -rm -vrf tmpman + -rm -vf test/*.h examples/fortran/*.h examples/mgh/*.h + -rm -vf include/mpi.h include/mpif.h + -rm -vf config.status + + dh_clean + + -find . -name Makefile | xargs rm -f + + # Add here commands to clean up after the build process. + [ ! -f Makefile ] || $(MAKE) clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/ + #$(MAKE) prefix=`pwd`/debian/`dh_listpackages`/usr install + + dh_install -p${serpackage} lib/linux-serial/lib* usr/lib/ + (cd debian/${serpackage}/usr/lib && \ + ln -s ${sharedfull} ${sharedshort} && \ + ln -s ${sharedshort} ${sharedlib} ) + dh_install -p${serpackage} include/* usr/include/${serbasename}/ + # while has its own mpi headers, we need to fake them for serial + (cd debian/${serpackage}/usr/include/${serbasename} && \ + mv -v fakempif_h mpif.h && \ + mv -v fakempi_h mpi.h) + + + dh_install -p${mpipackage} lib/linux-mpi/lib* usr/lib/ + (cd debian/${mpipackage}/usr/lib && \ + ln -s ${mpisharedfull} ${mpisharedshort} && \ + ln -s ${mpisharedshort} ${mpisharedlib} ) + dh_install -p${mpipackage} include/p* usr/include/${mpibasename}/ + + dh_installdirs -p${mpipackage} usr/share/lintian/overrides + install -v -c -m 0644 debian/${mpipackage}.overrides \ + debian/${mpipackage}/usr/share/lintian/overrides/${mpipackage} + dh_installdirs -p${serpackage} usr/share/lintian/overrides + install -v -c -m 0644 debian/${serpackage}.overrides \ + debian/${serpackage}/usr/share/lintian/overrides/${serpackage} + + +# 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 + dh_installdocs + dh_installdocs -p${package} test/ util/ + dh_installexamples -p${package} examples/* + rm -vf debian/${package}/usr/share/doc/pgapack/test/*.h \ + debian/${package}/usr/share/doc/pgapack/examples/*/*.h +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installcatalogs +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_undocumented + dh_installman -p${package} man/man*/* + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_python + 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 --- pgapack-1.1.1.orig/debian/libpgapack-serial1.overrides +++ pgapack-1.1.1/debian/libpgapack-serial1.overrides @@ -0,0 +1,2 @@ +libpgapack-serial1: non-dev-pkg-with-shlib-symlink usr/lib/libpgapack-serial1.so.1.0 usr/lib/libpgapack-serial1.so +libpgapack-serial1: package-name-doesnt-match-sonames libpgapack-serial1-1 --- pgapack-1.1.1.orig/debian/copyright +++ pgapack-1.1.1/debian/copyright @@ -0,0 +1,55 @@ +This is the Debian GNU/Linux prepackaged version of PGAPack. PGAPack +was written by David Levine with programming assistance of +participants in Argonne National Laboratory's SERS program. + +This package was initially put together by Karl Sackett , +from sources obtained from: + + ftp://info.mcs.anl.gov/pub/pgapack/pgapack-1.0-tar.Z + +It was then maintained by Andreas Franzen, and is now being maintained by +Dirk Eddelbuettel. + +Copyright (C) 1995-2008 University of Chicago + +Pgapack is licensed under the MPICH2 license. The License statement follows, +also see the file COPYRIGHT in the sources. + +----------------------------------------------------------------------------- +COPYRIGHT + +The following is a notice of limited availability of the code, and disclaimer +which must be included in the prologue of the code and in all source listings +of the code. + +(C) COPYRIGHT 2008 University of Chicago + +Permission is hereby granted to use, reproduce, prepare derivative works, and +to redistribute to others. This software was authored by: + +D. Levine +Mathematics and Computer Science Division +Argonne National Laboratory Group + +with programming assistance of participants in Argonne National +Laboratory's SERS program. + +GOVERNMENT LICENSE + +Portions of this material resulted from work developed under a +U.S. Government Contract and are subject to the following license: the +Government is granted for itself and others acting on its behalf a paid-up, +nonexclusive, irrevocable worldwide license in this computer software to +reproduce, prepare derivative works, and perform publicly and display +publicly. + +DISCLAIMER + +This computer code material was prepared, in part, as an account of work +sponsored by an agency of the United States Government. Neither the United +States, nor the University of Chicago, nor any of their employees, makes any +warranty express or implied, or assumes any legal liability or responsibility +for the accuracy, completeness, or usefulness of any information, apparatus, +product, or process disclosed, or represents that its use would not infringe +privately owned rights. + --- pgapack-1.1.1.orig/debian/libpgapack-mpi1.overrides +++ pgapack-1.1.1/debian/libpgapack-mpi1.overrides @@ -0,0 +1,2 @@ +libpgapack-mpi1: non-dev-pkg-with-shlib-symlink usr/lib/libpgapack-mpi1.so.1.0 usr/lib/libpgapack-mpi1.so +libpgapack-mpi1: package-name-doesnt-match-sonames libpgapack-mpi1-1 --- pgapack-1.1.1.orig/debian/control +++ pgapack-1.1.1/debian/control @@ -0,0 +1,46 @@ +Source: pgapack +Section: math +Priority: optional +Maintainer: Dirk Eddelbuettel +Standards-Version: 3.9.1 +Build-Depends: debhelper (>= 7.0), mpi-default-dev + +Package: pgapack +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Suggests: libpgapack-serial1 | libpgapack-mpi1 +Description: General-purpose genetic algorithm package + PGAPack is a general-purpose, data-structure-neutral, parallel genetic + algorithm package being developed at Argonne National Laboratory. + . + This package contains header files, manual pages, examples and tests. + To use pgpack, you need to install the libpgapack-serial ('single cpu') + or libpgapack-mpi ('parallel') package. + +Package: libpgapack-serial1 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, pgapack +Description: General-purpose genetic algorithm package (serial library) + PGAPack is a general-purpose, data-structure-neutral, parallel genetic + algorithm package being developed at Argonne National Laboratory. + . + This package contains a shared and a static library configured for + serial 'single-cpu' processing. The static library also contains debugging + information. The sibbling package pgapack-mpi1 is configured for MPI + parallel processing. + . + This version is configured for single-cpu serial processing. The + libpgapack-mpi1 package contains the library for distributed + programming. + +Package: libpgapack-mpi1 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, pgapack, mpi-default-bin +Description: General-purpose genetic algorithm package (mpi library) + PGAPack is a general-purpose, data-structure-neutral, parallel genetic + algorithm package being developed at Argonne National Laboratory. + . + This version is configured to use the Open MPI (or LAM) libraries for + distributed programming. The libpgapack-serial1 package contains + (shared and static) libraries for single-cpu serial processing. + --- pgapack-1.1.1.orig/debian/old/postinst.old +++ pgapack-1.1.1/debian/old/postinst.old @@ -0,0 +1,81 @@ +#!/bin/sh + +# Abort if any command returns an error value +set -e + +PACKAGE=pgapack + +# This script is called as the last step of the installation of the +# package. All the package's files are in place, dpkg has already done +# its automatic conffile handling, and all the packages we depend of +# are already fully installed and configured. + +case "$1" in + configure) + # Configure this package. If the package must prompt the user for + # information, do it here. + : + +# if [ -x /usr/sbin/install-docs ]; then +# /usr/sbin/install-docs -i /usr/share/doc-base/$PACKAGE +# fi + + # There are three sub-cases: + if test "${2+set}" != set; then + # We're being installed by an ancient dpkg which doesn't remember + # which version was most recently configured, or even whether + # there is a most recently configured version. + : + + elif test -z "$2" -o "$2" = ""; then + # The package has not ever been configured on this system, or was + # purged since it was last configured. + : + + else + # Version $2 is the most recently configured version of this + # package. + : + + fi + + # FSSTND compatible symlinks +# if [ -d /usr/doc -a ! -e /usr/doc/$PACKAGE \ +# -a -d /usr/share/doc/$PACKAGE ]; then +# ln -sf ../share/doc/$PACKAGE /usr/doc/$PACKAGE +# fi + ;; + abort-upgrade) + # Back out of an attempt to upgrade this package FROM THIS VERSION + # to version $2. Undo the effects of "prerm upgrade $2". + : + + ;; + abort-remove) + if test "$2" != in-favour; then + echo "$0: undocumented call to \`postinst $*'" 1>&2 + exit 0 + fi + # Back out of an attempt to remove this package, which was due to + # a conflict with package $3 (version $4). Undo the effects of + # "prerm remove in-favour $3 $4". + : + + ;; + abort-deconfigure) + if test "$2" != in-favour -o "$5" != removing; then + echo "$0: undocumented call to \`postinst $*'" 1>&2 + exit 0 + fi + # Back out of an attempt to deconfigure this package, which was + # due to package $6 (version $7) which we depend on being removed + # to make way for package $3 (version $4). Undo the effects of + # "prerm deconfigure in-favour $3 $4 removing $6 $7". + : + + ;; + *) echo "$0: didn't understand being called with \`$1'" 1>&2 + exit 0;; +esac + +exit 0 --- pgapack-1.1.1.orig/debian/old/prerm.old +++ pgapack-1.1.1/debian/old/prerm.old @@ -0,0 +1,70 @@ +#!/bin/sh + +# Abort if any command returns an error value +set -e + +PACKAGE=pgapack + +# This script is called as the first step in removing the package from +# the system. This includes cases where the user explicitly asked for +# the package to be removed, upgrade, automatic removal due to conflicts, +# and deconfiguration due to temporary removal of a depended-on package. + +case "$1" in + remove) + # This package about to be removed. + : + + # There are two sub-cases: + if test "${2+set}" = set; then + if test "$2" != in-favour; then + echo "$0: undocumented call to \`prerm $*'" 1>&2 + exit 0 + fi + # We are being removed because of a conflict with package $3 + # (version $4), which is now being installed. + : + + else + # The package is being removed in its own right. + : + + fi ;; + deconfigure) + if test "$2" != in-favour -o "$5" != removing; then + echo "$0: undocumented call to \`prerm $*'" 1>&2 + exit 0 + fi + # Package $6 (version $7) which we depend on is being removed due + # to a conflict with package $3 (version $4), and this package is + # being deconfigured until $6 can be reinstalled. + : + + ;; + upgrade) + # Prepare to upgrade FROM THIS VERSION of this package to version $2. + : + + ;; + failed-upgrade) + # Prepare to upgrade from version $2 of this package TO THIS VERSION. + # This is only used if the old version's prerm couldn't handle it, + # and returned non-zero. (Fix old prerm bugs here.) + : + + ;; + *) echo "$0: didn't understand being called with \`$1'" 1>&2 + exit 0;; +esac + +# FSSTND compatibility symlinks +if [ \( "$1" = "upgrade" -o "$1" = "remove" \) \ + -a -L /usr/doc/$PACKAGE ]; then + rm -f /usr/doc/$PACKAGE +fi + +#if [ -x /usr/sbin/install-docs ]; then +# /usr/sbin/install-docs -r $PACKAGE +#fi + +exit 0 --- pgapack-1.1.1.orig/debian/old/rules.old +++ pgapack-1.1.1/debian/old/rules.old @@ -0,0 +1,117 @@ +#!/usr/bin/make -f +# + +CC = gcc +CFLAGS = -O2 -Wall -D_REENTRANT +FC = g77 +FFLAGS = -O2 +LDFLAGS = + +SHELL = /bin/sh +srcdir = . + +INSTALL = /usr/bin/install +INSTALL_PROGRAM = $(INSTALL) -m 755 -o root -g root +INSTALL_DATA = $(INSTALL) -m 644 -o root -g root +INSTALL_DIR = $(INSTALL) -d -m 755 -o root -g root + +#config: +# $(checkdir) +# ./configure -arch linux -debug -cc "$(CC)" -f77 "$(FC)" -cflags "$(CFLAGS)" \ +# -fflags "$(FFLAGS)" +# touch stamp-config + +build: + $(checkdir) +# test -f stamp-config || make -f debian/rules config + ./configure -arch linux -debug -cc "$(CC)" -f77 "$(FC)" -cflags "$(CFLAGS)" \ + -fflags "$(FFLAGS)" + ( cd source && make ) + -rm -f lib/linux/*.o + ./configure -arch linux -cc "$(CC)" -f77 "$(FC)" -cflags "$(CFLAGS)" \ + -fflags "$(FFLAGS)" + ( cd source && make ) + sh debian/fixman.sh + touch stamp-build + +clean: + $(checkdir) + ./configure -arch linux -cc "$(CC)" -f77 "$(FC)" -cflags "$(CFLAGS)" \ + -fflags "$(FFLAGS)" + test -f stamp-config || make -f debian/rules config + -make clean + -find . -name 'Makefile' -print0 |xargs -0r rm -f + -rm -rf lib/linux + -rm -f examples.tar.gz + -rm -f test/*.h examples/fortran/*.h examples/mgh/*.h + -rm -f include/mpi.h include/mpif.h + -rm -rf tmpman + -rm -f config.status + -rm -f stamp-config stamp-build + -rm -rf debian/tmp* debian/files debian/substvars + +binary-indep: checkroot + $(checkdir) + +binary-arch: checkroot + $(checkdir) + -rm -rf debian/tmp* + test -f stamp-build || make -f debian/rules build +# +# +# debian/tmp + $(INSTALL_DIR) debian/tmp + $(INSTALL_DIR) debian/tmp/DEBIAN +# libraries + $(INSTALL_DIR) debian/tmp/usr/lib + $(INSTALL_DATA) lib/linux/libpgaO.a debian/tmp/usr/lib + $(INSTALL_DATA) lib/linux/libpgag.a debian/tmp/usr/lib +# headers + $(INSTALL_DIR) debian/tmp/usr/include + $(INSTALL_DATA) include/pgapack.h debian/tmp/usr/include + $(INSTALL_DATA) include/pgapackf.h debian/tmp/usr/include + $(INSTALL_DATA) include/fakempi_h debian/tmp/usr/include + $(INSTALL_DATA) include/fakempif_h debian/tmp/usr/include +# + ( cd debian/tmp/usr/include && \ + ln -fs fakempi_h mpi.h && \ + ln -fs fakempif_h mpif.h ) +# man pages + $(INSTALL_DIR) debian/tmp/usr/share/man/man3 + $(INSTALL_DATA) tmpman/* debian/tmp/usr/share/man/man3 + -gzip -9fr debian/tmp/usr/share/man +# documentation + $(INSTALL_DIR) debian/tmp/usr/share/doc/pgapack + $(INSTALL_DATA) debian/copyright debian/tmp/usr/share/doc/pgapack + $(INSTALL_DATA) debian/changelog \ + debian/tmp/usr/share/doc/pgapack/changelog.Debian + -gzip -9f debian/tmp/usr/share/doc/pgapack/changelog.Debian +# + $(INSTALL_DATA) README debian/tmp/usr/share/doc/pgapack + $(INSTALL_DATA) debian/README.Debian debian/tmp/usr/share/doc/pgapack + $(INSTALL_DATA) CHANGES debian/tmp/usr/share/doc/pgapack/changelog + -gzip -9f debian/tmp/usr/share/doc/pgapack/changelog + $(INSTALL_DATA) docs/user_guide.ps debian/tmp/usr/share/doc/pgapack + -gzip -9f debian/tmp/usr/share/doc/pgapack/user_guide.ps +# + tar -chf examples.tar examples + -gzip -9f examples.tar + $(INSTALL_DATA) *.tar.gz debian/tmp/usr/share/doc/pgapack +# scripts + $(INSTALL_PROGRAM) debian/postinst debian/prerm debian/tmp/DEBIAN/ +# +# build the package + dpkg-gencontrol -isp -ppgapack -Pdebian/tmp + dpkg --build debian/tmp .. + +define checkdir + test -f source/pga.c -a -f debian/rules +endef + +binary: binary-indep binary-arch + +checkroot: + $(checkdir) + test root = "`whoami`" + +.PHONY: config build clean binary binary-arch binary-indep