debian/0000755000000000000000000000000012205714137007170 5ustar debian/README.source0000644000000000000000000000476412205714137011362 0ustar Options supported by CERNLIB mclibs debian/rules in $DEB_BUILD_OPTIONS: noopt: Compile everything with no optimization, i.e. -O0. The default is to compile at -O2 or -O3 for almost all files. nostrip: Do not strip debugging information from the binaries and libraries. nospdf: Do not build the large, time-consuming spdf portion of the libpdf804 library. Use this if you don't need pdflib. ifort: Compile with Intel's icc and ifort (formerly ifc) compilers, not gcc/gfortran. You must first set and export $LD_LIBRARY_PATH, or edit /etc/ld.so.conf and run ldconfig, such that the Intel library libimf.so is in the library runtime search path. You also need to have first installed versions of BLAS, LAPACK and CERNLIB compiled with ifort. This option has not been fully tested. gfortran: Compile with the new GNU FORTRAN compiler, gfortran. This option no longer does anything as gfortran is the default. (Building with g77 is no longer supported.) Targets supported by CERNLIB's debian/rules: help: Output this text (found in debian/README.source). get-orig-source: Recreate the tarballs in the "upstream" directory and build a new orig.tar.gz file in the ".." dir after removing non-free files/directories listed in debian/deadpool.txt. unpack: Expand the upstream tarballs into a subdir "src" of the current dir. patched, patch: (These are synonyms.) Apply Debian patches to the unpacked source code. After this target has been called, any additional edits to the source code will be preserved when running "fakeroot debian/rules binary". unpatch: De-apply Debian patches without deleting unpacked source. build, clean, etc: Standard Policy-required targets. It may be of interest to describe some of the contents of the debian directory: add-ons: Non Debian-specific additions to CERNLIB. control.d: Fragments of the debian/control file. It is regenerated from these snippets by "debian/rules clean". debhelper: Files for debhelper tools, kept here so things are tidier. These are symlinked from the main debian directory at build time by "debian/rules install-common", and the symlinks are removed by "debian/rules clean". lintian: Lintian overrides. patches: Debian patches to CERNLIB source in dpatch format. (See debian/patches/README as there are some weird things here.) debian/copyright0000644000000000000000000001243312205714137011126 0ustar This package was debianized by Kevin B. McCarty and Lifeng Sun . It was downloaded from the web page http://cernlib.web.cern.ch/cernlib/download/2006_source/tar/2006_src.tar.gz The very large file 2006_src.tar.gz was split up into individual modules, from which non-free files were removed, of which the relevant ones have been recompressed in the "upstream" directory of the mclibs source package. See the file debian/README.Debian-source in the source package for a detailed description of this process. COPYRIGHT --------- CERNLIB, including the CERN Monte Carlo libraries, is copyright (C) CERN and others. As of this writing, 08 February 2008, the web page http://wwwasd.web.cern.ch/wwwasd/cernlib/conditions.html (which gives the terms under which CERNLIB may be used) states: CERNLIB Availability (C) Copyright CERN except where explicitly stated otherwise. Permission to use and/or redistribute this work is granted under the terms of the GNU General Public License. FLUKA routines included in GEANT3 are joint copyright of INFN and CERN and are not licensed under the GPL: permission to use and/or redistribute outside GEANT3 should be negotiated. The software and documentation made available under the terms of this license are provided with no warranty. Last modified: 18-March-2004 The aforementioned FLUKA routines have been excised from the CERNLIB source code and binary packages distributed by Debian. It should also be noted that the above license supersedes the non-free license stated in the file located at /usr/share/doc/libpdflib804-2-dev/pdfdoc.txt.gz (package libpdflib804-2-dev) mclibs-$VERSION/src/mclibs/pdf/doc/pdfdoc.dat (unpacked Debian source). There is some ambiguity as to whether CERN intended to have CERNLIB available specifically under GPL version 2 (the current version at the time the above- mentioned web page was written) or always under the current version. (The text "GNU General Public License" in the web page quoted above is a hyperlink to http://www.gnu.org/copyleft/gpl.html which, as of this writing, references GPL version 3.) I have requested clarification from the upstream maintainer. In the meantime, it should be noted that the orig.tar.gz files for CERNLIB in Debian were obtained from the upstream web site prior to the release of GPL version 3. It therefore seems to me to be safe to assume that re-distribution of CERNLIB from the Debian source packages is permissible under the terms either of GPL version 2 or of the current GPL version, at the re-distributor's option. On Debian systems, the complete text of the current version of the GNU General Public License can be found in the file `/usr/share/common-licenses/GPL-3'. The text of version 2 can be found at `/usr/share/common-licenses/GPL-2'. EXCEPTIONS ---------- The files jetset74.h and lepto62.h in the montecarlo-base binary package, and all files included in the tarball upstream/src_cfortran.tar.gz in the mclibs source package, are instead Copyright (C) 1990-2003 Burkhard Burow, , http://www-zeus.desy.de/~burow/cfortran/index.htm and are licensed (at your choice) under either the GNU Library General Public License or an alternate non-free license. On Debian systems, the complete text of the GNU Library General Public License can be found in the file `/usr/share/common-licenses/LGPL-2'. The alternate license for the cfortran-related files is as follows: THIS PACKAGE, I.E. CFORTRAN.H, THIS DOCUMENT, AND THE CFORTRAN.H EXAMPLE PROGRAMS ARE PROPERTY OF THE AUTHOR WHO RESERVES ALL RIGHTS. THIS PACKAGE AND THE CODE IT PRODUCES MAY BE FREELY DISTRIBUTED WITHOUT FEES, SUBJECT TO THE FOLLOWING RESTRICTIONS: - YOU MUST ACCOMPANY ANY COPIES OR DISTRIBUTION WITH THIS (UNALTERED) NOTICE. - YOU MAY NOT RECEIVE MONEY FOR THE DISTRIBUTION OR FOR ITS MEDIA (E.G. TAPE, DISK, COMPUTER, PAPER.) - YOU MAY NOT PREVENT OTHERS FROM COPYING IT FREELY. - YOU MAY NOT DISTRIBUTE MODIFIED VERSIONS WITHOUT CLEARLY DOCUMENTING YOUR CHANGES AND NOTIFYING THE AUTHOR. - YOU MAY NOT MISREPRESENTED THE ORIGIN OF THIS SOFTWARE, EITHER BY EXPLICIT CLAIM OR BY OMISSION. THE INTENT OF THE ABOVE TERMS IS TO ENSURE THAT THE CFORTRAN.H PACKAGE NOT BE USED FOR PROFIT MAKING ACTIVITIES UNLESS SOME ROYALTY ARRANGEMENT IS ENTERED INTO WITH ITS AUTHOR. THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. THE AUTHOR IS NOT RESPONSIBLE FOR ANY SUPPORT OR SERVICE OF THE CFORTRAN.H PACKAGE. Burkhard Burow burow@desy.de DELETIA ------- The following files and directories have been removed from the Debian source package of CERNLIB due to license ambiguities or incompatibilities with the GPL (e.g. positive BSD advertising clause). If needed, they may be found in the upstream source tarballs. Please see the README.Debian file of the montecarlo-base package for more information on obtaining the Ariadne, Fritiof, Jetset, Lepto, and Pythia libraries. mclibs/ariadne/ mclibs/ariadne_407/ mclibs/fritiof/ mclibs/jetset/ mclibs/lepto63/ mclibs/pythia/ debian/source/0000755000000000000000000000000012205714137010470 5ustar debian/source/format0000644000000000000000000000001412205714137011676 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000002072612205714137011051 0ustar mclibs (20061220+dfsg3-3) unstable; urgency=low * debian/control: - remove obsolete dpatch package from build-dep. - remove obsolete DM-Upload-Allowed field. - bump Standards-Version to 3.9.4. * Remove unused lintian-overrides. * Set source format to 3.0 (quilt). * Support multiarch. -- Lifeng Sun Sat, 24 Aug 2013 01:13:53 +0800 mclibs (20061220+dfsg3-2) unstable; urgency=low * Rename debian/debhelper to debian/dh to prevent empty packages. * Override lintian-error, dpatch is needed for building. -- Lifeng Sun Fri, 15 Mar 2013 08:18:45 +0800 mclibs (20061220+dfsg3-1) unstable; urgency=low * New maintainer. Thanks Kevin B. McCarty for contributing to the HEP free software community over the years. (Closes: #619394) * Bump Standards-Version to 3.9.1 - debian/copyright: specify current version of GPL. - change upstream version to 20061220, hence repackage orig.tar.gz. - Add ${misc:Depends} to debian/control Depends for all binary packages. - debian/control.d/{libcojets2,libherwig59-2,libisajet758-3, libpdflib804-2,libphtools2}-dev.control: change "Conflicts" to "Breaks". * Remove duplicated "section" field from control files: - debian/control.d/cernlib-montecarlo.control - debian/control.d/montecarlo-base.control - debian/control.d/montecarlo-data.control * debian/source/format: set source format to 1.0. * debian/source/lintian-overrides: add overrides - duplicate-short-description libpdflib804-2-dev libpdflib804-2-gfortran - duplicate-short-description libphotos202-1-gfortran libphotos202-dev - debian-watch-file-is-missing: the upstream is dead. * debian/lintian-overrides/{libcojets2,libeurodec1,libherwig59-2, libisajet758-3,libpdflib804-2,libphotos202-1,libphtools2}-gfortran: override no-symbols-control-file. * debian/control.d/0base.control: add Vcs-{Git,Browser} and Homepage fields. [ Sylvestre Ledru ] * Switch to dpkg-source 3.0 (quilt) format -- Lifeng Sun Mon, 28 Mar 2011 18:06:57 +0800 mclibs (2006.dfsg.2-5) unstable; urgency=low * "Apps/Science" --> "Science/Physics" in doc-base files, following section update in doc-base 0.8.10. * Upload to unstable. -- Kevin B. McCarty Mon, 25 Feb 2008 11:50:57 -0800 mclibs (2006.dfsg.2-4) experimental; urgency=low * Gfortran transition: - Add -gfortran suffix to runtime library package names. - Change build-depends and -dev package depends appropriately. - s/g77/gfortran/g in various files. * Take this opportunity to insert the soversion into the libphotos202 package name, fixing lintian warning. * Make libisajet arch: any, since perhaps gfortran will be able to compile it on m68k more successfully than g77 was (crossing fingers). * New patch 220: Build libisajet with isaset() compiled in. * New patch 221: Patch hepevt.inc before compiling rather than after. * Patch 806, debian/debhelper/*isajet*, debian/control.d/*isajet*: Hence, bump isajet soversion to 3 due to ABI change. * Remove obsolete tetex-bin alternative from build-depends. * Resurrect montecarlo-data arch: all package, and move data files to /usr/share/montecarlo-data/ (in order to be installable in parallel with old g77-based runtime library packages). Have the cojets, isajet and eurodec runtime and libdevel packages Recommend montecarlo-data. * Install example files for libisajet and libcojets into their libdevel packages. Add a couple of files explaining how to build and run the example programs. * debian/copyright*: Mention the (optional) switch to GPL v3. * Trivial changes: - Bump Standards-Version to 3.7.3. - Fix extra leading whitespace in doc-base abstracts. - Add dpatch comment to dummy patch 000. - Remove mention of no-longer-used "keepbuild" $DEB_BUILD_OPTIONS flag in README.source. - debian/*: Uniformly capitalize CERNLIB, CERN and GEANT (except in old changelog and NEWS entries). -- Kevin B. McCarty Fri, 08 Feb 2008 10:34:33 -0800 mclibs (2006.dfsg.2-3) unstable; urgency=low * New patch 807: Compile libeurodec test program statically linked against CERN libs on 64-bit machines. -- Kevin B. McCarty Tue, 08 Jan 2008 09:45:10 -0800 mclibs (2006.dfsg.2-2) unstable; urgency=low * Build-Depend on a cernlib-base-dev new enough to include the test suite rules for make, and to have a fix for a bug that occurs if there are no *.dpatch.in files in debian/patches. * Get rid of alternative tetex-bin Build-Dependency. * Ensure that upstream's test suite is run by adding TEST_PACKAGES variable in debian/add-ons/Makefile. * New patch 213, many thanks to Patrice Dumas: Fix Imakefiles for building test programs. * Revise patch 321 to sync with change in patch 213 to the file mclibs/isajet/test/Imakefile, and to add an empty test:: target when CERNLIB_GFORTRAN is #defined and the test is skipped. * In order for test suite to use in-tree data files, delete the patch 301-datafiles-comply-with-FHS. [The code modified by this patch is not compiled into any of the libraries, and only one modified file is installed into a Debian package (eufiles.inc).] Instead of applying a patch before compilation, modify the copy of eufiles.inc in the installation directory with sed in the install-includes target of debian/add-ons/Makefile. -- Kevin B. McCarty Fri, 04 Jan 2008 16:59:29 -0800 mclibs (2006.dfsg.2-1) unstable; urgency=low * Rebuild source package. The directory name inside the orig.tar.gz was wrong, due to #416008. * Include file README.Debian-source as mandated by Developers' Reference. * Upload into unstable. -- Kevin B. McCarty Thu, 26 Apr 2007 01:43:38 -0400 mclibs (2006.dfsg-1) experimental; urgency=low * New upstream release (Cernlib 2006). - s/2005/2006/ in debian/debhelper/lib*.install. - Resync patches 102, 206, 301. - Strip non-free components from orig.tar.gz, as usual. * Deal with upstream decision to ship one massive tarball of Cernlib 2006: - Update debian/README.source and debian/copyright.in. - Use remove-deadpool and gmake scripts now shipped in cernlib-base-dev; remove no-longer-needed directory debian/add-ons/bin, and Build-Depend upon cernlib-base-dev. * Depend upon cernlib-base-dev instead of cernlib-base for libdevel packages, as the "cernlib" dependency script has been moved there. * Build-Depend upon texlive-latex-base in preference to tetex-bin, since teTeX is no longer maintained upstream. * Add a third invocation of latex on the isajet manual, since it was still complaining about possibly changed references after the second run. * Use debhelper -s instead of -a flags in debian/rules. * Move isajet control file fragments into debian/control.d and explicitly list the non-m68k arches for them. -- Kevin B. McCarty Tue, 6 Mar 2007 12:23:52 -0500 mclibs (2005.dfsg-2) unstable; urgency=low * Change deprecated ${Source-Version} in debian/control.d/* to ${source:Version} or ${binary:Version} as appropriate. Therefore Build-Depend on dpkg-dev (>= 1.13.19). * Re-order dependencies of lib*-dev packages such that the corresponding lib* package comes last. * Switch back to use of type-handling, having cernlib-montecarlo Depend upon "libisajet758-2-dev | m68k-linux-gnu" instead of merely Recommending libisajet758-2-dev. This ensures that libisajet758-2-dev is installed (on non-m68k systems) on upgrades from Sarge if the cernlib-montecarlo metapackage is initially installed, while still keeping the metapackage installable on m68k. * New patch 321: minor changes to support gfortran. Taken from 2006-07-20 patch of Harald Vogt . -- Kevin B. McCarty Wed, 27 Sep 2006 14:37:50 -0400 mclibs (2005.dfsg-1) unstable; urgency=low * Split off CERN Monte Carlo libraries into a separate source package. They tend to require bugfixes and packaging work much less often than the remainder of Cernlib, and since they are painful to compile it will be preferable to upload and rebuild them less often. * For previous changelog entries, please see the changelog.Debian in the cernlib-base binary package or the cernlib source package. -- Kevin B. McCarty Thu, 29 Jun 2006 12:26:10 -0400 debian/README.Debian-source0000644000000000000000000000735712205714137012543 0ustar As of CERNLIB version 2006, upstream ships all CERNLIB code in a single enormous tarball. The tarball may be obtained as of this writing from the URL http://cernlib.web.cern.ch/cernlib/download/2006_source/tar/2006_src.tar.gz For reasons that are partly historical (this is the first time upstream has shipped a single monolithic tarball), and partly concerned with maintainability (having several fairly independent source packages implies less frequent uploads for each), CERNLIB is split up into four source packages in Debian: "cernlib", "mclibs", "paw", and "geant321", and these source packages (tarballs within tarballs) are generated in a somewhat convoluted fashion. Note that repackaging the upstream source would have been necessary in any event, due to numerous unimportant files, as well as some Monte Carlo libraries, that have unclear or non-free licenses. In order to generate the orig.tar.gz, one needs to take the following steps. These instructions are generically applicable to all four CERNLIB source packages in Debian; everywhere below, consider "cernlib" as a variable standing for the actual name of the source package in question. Either: a) Taking care to have the cernlib-base-dev binary package installed (except if you are building the orig.tar.gz for the "cernlib" source package), with version >= 2006.dfsg.2-1, cd into the Debian source package directory (cernlib- for instance), place the above-mentioned CERNLIB 2006_src.tar.gz upstream tarball into "..", and run the command "fakeroot debian/rules get-orig-source". The file "../cernlib_.orig.tar.gz" (e.g.) should be generated automatically. b) If you are a glutton for punishment, a new orig.tar.gz can be generated manually as follows. This is best done in a separate scratch directory that initially contains no files other than the 2006_src.tar.gz tarball from upstream. You will need to have a copy of the Debian source package in question (at least, the files under the debian directory) for reference. i) Uncompress the tarball; it will unpack into a directory named "2006". ii) Create a directory named cernlib-.orig ("cernlib" being the source package name, and the upstream version, including any ".dfsg*" suffix). iii) Create a subdirectory "upstream" under cernlib-.orig. iv) For each subdirectory or file inside the directory "2006/src" that is mentioned in the $(MY_MODULES) "make" variable at the top of debian/rules, do the following, supposing that the subdirectory or file is named . * mkdir -p cernlib-.orig/upstream/2006/src/ * cp -a 2006/src/ cernlib-.orig/upstream/2006/src/ * Delete non-free files: For each file or directory listed in debian/deadpool.txt, if that file or directory appears with the given path relative to cernlib-.orig/upstream/2006/src, delete it. * cd cernlib-.orig/upstream/ * tar czf src_.tar.gz 2006 * rm -r 2006 # remember, this is under the nascent Debian source # tree, NOT in your main scratch directory * Change back up to your scratch directory For any module tarball src_.tar.gz that contains only code identical to that in the last official Debian orig.tar.gz, you can just copy in that module tarball from the old unpacked orig.tar.gz to the new source directory, skipping the above bullet points. (Unless, of course, the module tarball needs to be rebuilt because it was just discovered to contain more non-free code.) v) tar cf cernlib_.orig.tar cernlib-.orig vi) gzip -v9 cernlib_.orig.tar -- Kevin B. McCarty , Thu, 26 Apr 2007 debian/patches/0000755000000000000000000000000012205714137010617 5ustar debian/patches/100-fix-isajet-manual-corruption.dpatch0000755000000000000000000000230312205714137020023 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 100-fix-isajet-manual-corruption.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Fix corruption in LaTeX source to the Isajet manual. ## DP: (Replacement text obtained from a PS version of the manual on the web.) @DPATCH@ diff -urNad cernlib-2005.05.09/src/mclibs/isajet/doc/physics.doc /tmp/dpep.tlmeFD/cernlib-2005.05.09/src/mclibs/isajet/doc/physics.doc --- cernlib-2005.05.09/src/mclibs/isajet/doc/physics.doc 2001-10-08 10:03:08.000000000 -0400 +++ /tmp/dpep.tlmeFD/cernlib-2005.05.09/src/mclibs/isajet/doc/physics.doc 2005-06-08 16:12:37.814042242 -0400 @@ -122,7 +122,7 @@ $W/Z$ decay. These were calculated using FORM 1.1 by J.~Vermaseren. The process $g + t \to W + b$ is {\it not} included. Both $g + b \to W^- + t$ and $g + \bar t \to W^- + \bar b$ of course give the same $W^- + t -+\BARB_FINALSTATEAFTERQCDEVOLUTION ++\bar b$ final state after QCD evolution. While the latter process is needed to describe the $m_t = 0$(!) mass singularity for $q_t \gg m_t$, it has a pole in the physical region at low $q_t$ from on-shell $t \to W + b$ decays. There is no obvious way to avoid this without debian/patches/213-fix-test-suite-build.dpatch0000755000000000000000000001175712205714137016314 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 213-fix-test-suite-build.dpatch by Patrice Dumas ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Fix build of test-suite for tests during package build. @DPATCH@ diff -urNad mclibs-2006.dfsg.2~/src/mclibs/cojets/test/Imakefile mclibs-2006.dfsg.2/src/mclibs/cojets/test/Imakefile --- mclibs-2006.dfsg.2~/src/mclibs/cojets/test/Imakefile 1996-03-27 09:32:16.000000000 +0000 +++ mclibs-2006.dfsg.2/src/mclibs/cojets/test/Imakefile 2008-01-04 18:57:55.000000000 +0000 @@ -3,7 +3,7 @@ DefinePackageLibrary(NullParameter) -CernlibFortranProgramTarget(cojetst,test.o,$(PACKAGE_LIB),$(PACKAGE_LIB),mathlib kernlib) +CernlibFortranProgramTarget(cojetst,test.o,NullParameter,NullParameter,mathlib kernlib cojets) CopyFile(test.input,test.in) diff -urNad mclibs-2006.dfsg.2~/src/mclibs/eurodec/eudtest/Imakefile mclibs-2006.dfsg.2/src/mclibs/eurodec/eudtest/Imakefile --- mclibs-2006.dfsg.2~/src/mclibs/eurodec/eudtest/Imakefile 1997-03-14 17:32:14.000000000 +0000 +++ mclibs-2006.dfsg.2/src/mclibs/eurodec/eudtest/Imakefile 2008-01-04 18:57:55.000000000 +0000 @@ -4,11 +4,10 @@ FORTRANSAVEOPTION = FortranSaveFlags -CernlibFortranProgramTarget(eudtest,$(OBJS),$(PACKAGE_LIB),$(PACKAGE_LIB),packlib) +CernlibFortranProgramTarget(eudtest,$(OBJS),NullParameter,NullParameter,eurodec packlib) TestTarget(eudtest,eurodec.dat,eutitle.dat) CopyFile(eutitle.data,eutitle.dat) LinkFileFromDir($(TOP)$(PACKAGETOP),eurodec.dat) - diff -urNad mclibs-2006.dfsg.2~/src/mclibs/herwig/test/Imakefile mclibs-2006.dfsg.2/src/mclibs/herwig/test/Imakefile --- mclibs-2006.dfsg.2~/src/mclibs/herwig/test/Imakefile 1997-01-06 17:06:42.000000000 +0000 +++ mclibs-2006.dfsg.2/src/mclibs/herwig/test/Imakefile 2008-01-04 18:57:55.000000000 +0000 @@ -4,6 +4,6 @@ DefinePackageLibrary(NullParameter) -CernlibFortranProgramTarget(herwigt,test.o,$(PACKAGE_LIB),$(PACKAGE_LIB),kernlib) +CernlibFortranProgramTarget(herwigt,test.o,NullParameter,NullParameter,kernlib herwig) TestTarget(herwigt,NullParameter,NullParameter) diff -urNad mclibs-2006.dfsg.2~/src/mclibs/isajet/test/Imakefile mclibs-2006.dfsg.2/src/mclibs/isajet/test/Imakefile --- mclibs-2006.dfsg.2~/src/mclibs/isajet/test/Imakefile 2000-07-25 16:21:34.000000000 +0000 +++ mclibs-2006.dfsg.2/src/mclibs/isajet/test/Imakefile 2008-01-04 18:59:02.000000000 +0000 @@ -6,6 +6,6 @@ LinkFileFromDir($(TOP)$(PACKAGETOP),isajet.dat) -CernlibFortranProgramTarget(isajett,isajett.o,$(PACKAGE_LIB),$(PACKAGE_LIB),pdflib804 mathlib kernlib) +CernlibFortranProgramTarget(isajett,isajett.o,NullParameter,NullParameter,pdflib804 mathlib kernlib isajet) TestTarget(isajett,isajet.dat,test.input) diff -urNad mclibs-2006.dfsg.2~/src/mclibs/pdf/tpdf/Imakefile mclibs-2006.dfsg.2/src/mclibs/pdf/tpdf/Imakefile --- mclibs-2006.dfsg.2~/src/mclibs/pdf/tpdf/Imakefile 2000-04-19 13:52:13.000000000 +0000 +++ mclibs-2006.dfsg.2/src/mclibs/pdf/tpdf/Imakefile 2008-01-04 18:57:55.000000000 +0000 @@ -13,13 +13,13 @@ DefinePackageLibrary(NullParameter) -CernlibFortranProgramTarget(testpdf,testpdf.o,$(PACKAGE_LIB),$(PACKAGE_LIB),mathlib) +CernlibFortranProgramTarget(testpdf,testpdf.o,NullParameter,NullParameter,mathlib pdflib) -CernlibFortranProgramTarget(testpdg,testpdg.o,$(PACKAGE_LIB),$(PACKAGE_LIB),mathlib) +CernlibFortranProgramTarget(testpdg,testpdg.o,NullParameter,NullParameter,mathlib pdflib) -CernlibFortranProgramTarget(testgam,testgam.o,$(PACKAGE_LIB),$(PACKAGE_LIB),mathlib) +CernlibFortranProgramTarget(testgam,testgam.o,NullParameter,NullParameter,mathlib pdflib) -CernlibFortranProgramTarget(test_npdf,test_npdf.o,$(PACKAGE_LIB),$(PACKAGE_LIB),mathlib) +CernlibFortranProgramTarget(test_npdf,test_npdf.o,NullParameter,NullParameter,mathlib pdflib) TestTarget(testpdf,NullParameter,NullParameter) TestTarget(testpdg,NullParameter,NullParameter) diff -urNad mclibs-2006.dfsg.2~/src/mclibs/photos/test/Imakefile mclibs-2006.dfsg.2/src/mclibs/photos/test/Imakefile --- mclibs-2006.dfsg.2~/src/mclibs/photos/test/Imakefile 1999-03-26 10:53:26.000000000 +0000 +++ mclibs-2006.dfsg.2/src/mclibs/photos/test/Imakefile 2008-01-04 18:57:55.000000000 +0000 @@ -2,6 +2,6 @@ DefinePackageLibrary(NullParameter) -CernlibFortranProgramTarget(photost,phodem.o pseudo_jetset.o,$(PACKAGE_LIB),$(PACKAGE_LIB),kernlib) +CernlibFortranProgramTarget(photost,phodem.o pseudo_jetset.o,NullParameter,NullParameter,kernlib photos) TestTarget(photost,NullParameter,NullParameter) diff -urNad mclibs-2006.dfsg.2~/src/phtools/wicoexam/Imakefile mclibs-2006.dfsg.2/src/phtools/wicoexam/Imakefile --- mclibs-2006.dfsg.2~/src/phtools/wicoexam/Imakefile 1996-03-22 16:42:50.000000000 +0000 +++ mclibs-2006.dfsg.2/src/phtools/wicoexam/Imakefile 2008-01-04 18:57:55.000000000 +0000 @@ -1,5 +1,5 @@ DefinePackageLibrary(NullParameter) -CernlibFortranProgramTarget(wicot,wicoex.o,$(PACKAGE_LIB),$(PACKAGE_LIB),NullParameter) +CernlibFortranProgramTarget(wicot,wicoex.o,NullParameter,NullParameter,packlib phtools) TestTarget(wicot,NullParameter,NullParameter) debian/patches/optional/0000755000000000000000000000000012205714137012444 5ustar debian/patches/optional/902-no-isajet-on-m68k.dpatch0000755000000000000000000000161212205714137017232 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 902-no-isajet-on-m68k.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: No description. @DPATCH@ diff -urNad cernlib-2005.05.09.dfsg~/src/mclibs/isajet/Imakefile cernlib-2005.05.09.dfsg/src/mclibs/isajet/Imakefile --- cernlib-2005.05.09.dfsg~/src/mclibs/isajet/Imakefile 2005-12-05 11:42:14.600833380 -0500 +++ cernlib-2005.05.09.dfsg/src/mclibs/isajet/Imakefile 2005-12-05 11:43:17.940274928 -0500 @@ -10,12 +10,16 @@ SUBDIRS= $(LIBDIRS) test data isajet TopOfPackage(isajet758) - +#if 0 SubdirLibraryTarget(isajet758,$(LIBDIRS)) InstallLibrary(isajet758,$(CERN_LIBDIR)) InstallSharedLibrary(isajet758,$(LIB_SONAME).$(CERN_LEVEL),$(CERN_SHLIBDIR)) - +#endif + +install.shlib: /* dummy target for m68k */ + true + SubdirDataFile($(LIBRARY),isajet.dat,data) /* install the data file : */ debian/patches/optional/901-dont-compile-spdf.dpatch0000755000000000000000000000166612205714137017500 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 901-dont-compile-spdf.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Don't build the SPDF code that takes forever to compile. ## DP: Useful to build CERNLIB for debugging if you don't care about pdflib. @DPATCH@ diff -urNad cernlib-2005.05.09/src/mclibs/pdf/Imakefile /tmp/dpep.v3PYFb/cernlib-2005.05.09/src/mclibs/pdf/Imakefile --- cernlib-2005.05.09/src/mclibs/pdf/Imakefile 2005-06-10 15:05:57.149606442 -0400 +++ /tmp/dpep.v3PYFb/cernlib-2005.05.09/src/mclibs/pdf/Imakefile 2005-06-10 15:06:32.774975143 -0400 @@ -8,11 +8,11 @@ AllTarget(pdflib804) -SUBDIRS= spdf npdf tpdf pdf +SUBDIRS= npdf tpdf pdf TopOfPackage(pdflib804) -SubdirLibraryTarget(pdflib804,spdf npdf) +SubdirLibraryTarget(pdflib804,npdf) InstallLibrary(pdflib804,$(CERN_LIBDIR)) InstallSharedLibrary(pdflib804,$(LIB_SONAME).$(CERN_LEVEL),$(CERN_SHLIBDIR)) debian/patches/305-use-POWERPC-not-PPC-as-test.dpatch0000755000000000000000000000175112205714137017025 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 305-use-POWERPC-not-PPC-as-test.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Since patch 304 changed the meaning of CERNLIB_PPC to a mere endianness ## DP: test, we now use CERNLIB_POWERPC to mean actually checking for a PowerPC ## DP: processor; fix the three occurences of this in Imakefiles. @DPATCH@ diff -urNad cernlib-2005.05.09/src/mclibs/herwig/code/Imakefile /tmp/dpep.fQy2EP/cernlib-2005.05.09/src/mclibs/herwig/code/Imakefile --- cernlib-2005.05.09/src/mclibs/herwig/code/Imakefile 1998-09-25 11:34:28.000000000 -0400 +++ /tmp/dpep.fQy2EP/cernlib-2005.05.09/src/mclibs/herwig/code/Imakefile 2005-06-09 10:51:45.913019086 -0400 @@ -43,7 +43,7 @@ SubdirLibraryTarget(NullParameter,NullParameter) -#if defined(CERNLIB_LINUX) && defined(CERNLIB_PPC) +#if defined(CERNLIB_LINUX) && defined(CERNLIB_POWERPC) SpecialFortranLibObjectRule(hwuci2,hwuci2,-O0,NullParameter) #endif debian/patches/000-unpack.sh.dpatch0000755000000000000000000000076712205714137014210 0ustar #!/bin/sh ## DP: This is a fake patch used to convince dpatch-edit-patch to unpack the ## DP: CERNLIB source code before trying to generate a diff from it. ## DP: This is a no-op if called when the source has already been unpacked, e.g. ## DP: if running "fakeroot debian/rules patch". ## DP: ## DP: Yes, this is an ugly hack. set -e case "$1" in -patch) [ -e Makefile ] || cp -p debian/add-ons/Makefile . make prefix=/usr stampdir/configure-stamp ;; -unpatch) exit 0 ;; *) exit 1 ;; esac debian/patches/002-fix-missing-mclibs.dpatch0000755000000000000000000000326012205714137016013 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 002-fix-missing-mclibs.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Deal with several of the MC libs having to be purged from source. @DPATCH@ diff -urNad mclibs-2005.05.09.dfsg~/src/Imakefile mclibs-2005.05.09.dfsg/src/Imakefile --- mclibs-2005.05.09.dfsg~/src/Imakefile 1996-12-16 10:08:41.000000000 -0500 +++ mclibs-2005.05.09.dfsg/src/Imakefile 2006-06-29 14:09:15.024360574 -0400 @@ -2,7 +2,7 @@ #define PassCDebugFlags -LIBDIRS= packlib pawlib graflib mathlib geant321 mclibs phtools +LIBDIRS= mclibs phtools SUBDIRS= $(LIBDIRS) patchy cfortran diff -urNad mclibs-2005.05.09.dfsg~/src/mclibs/Imakefile mclibs-2005.05.09.dfsg/src/mclibs/Imakefile --- mclibs-2005.05.09.dfsg~/src/mclibs/Imakefile 1999-05-20 09:30:20.000000000 -0400 +++ mclibs-2005.05.09.dfsg/src/mclibs/Imakefile 2006-06-29 14:08:23.769355915 -0400 @@ -2,9 +2,11 @@ #define IHaveSubdirs #define PassCDebugFlags - -LIBDIRS= ariadne cojets eurodec herwig fritiof \ @@\ - isajet jetset lepto63 pdf photos pythia +/* Pythia and Jetset are not under GPL, so we must remove references + to them and their dependents. They have already been purged from + Debianized source code. Also, re-order libs so that dependent ones + come after dependees. */ +LIBDIRS= cojets eurodec pdf photos herwig isajet SUBDIRS = $(LIBDIRS) @@ -12,8 +14,8 @@ InstallLibSubdirs($(LIBDIRS)) -INCLUDEDIRS= ariadne cojets eurodec herwig fritiof \ @@\ - isajet jetset lepto63 pdf pythia +/* Again, purge Pythia, Jetset and dependents. */ +INCLUDEDIRS= cojets eurodec herwig isajet pdf InstallIncludeSubdirs($(INCLUDEDIRS)) debian/patches/101-undefine-PPC.dpatch0000755000000000000000000000174612205714137014533 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 101-undefine-PPC.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: If "PPC" is defined by compiler, undefine where it clashes with a ## DP: local variable. @DPATCH@ diff -urNad cernlib-2005.05.09/src/mclibs/cojets/code/bradlp.F /tmp/dpep.aeMGeJ/cernlib-2005.05.09/src/mclibs/cojets/code/bradlp.F --- cernlib-2005.05.09/src/mclibs/cojets/code/bradlp.F 1996-01-11 09:14:33.000000000 -0500 +++ /tmp/dpep.aeMGeJ/cernlib-2005.05.09/src/mclibs/cojets/code/bradlp.F 2005-06-08 17:00:48.403200778 -0400 @@ -37,6 +37,15 @@ #include "cojets/zpar2.inc" #include "cojets/zwpar.inc" #include "cojets/weakon.inc" + +C The following is necessary since PPC is defined in g77 on +C the powerpc architecture, but it's also a variable in this +C file. +C -- Kevin McCarty +#ifdef PPC +#undef PPC +#endif + DIMENSION QP(4),QM(4),QK(4),QE(4),QN(4) DIMENSION COEF(2,2),QQV(2) C debian/patches/307-use-canonical-cfortran.dpatch0000755000000000000000000005563512205714137016671 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 307-use-canonical-cfortran.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Use the most recent version of cfortran.h and cfortran.doc from ## DP: Debian package of cfortran, version 4.4-6. @DPATCH@ diff -urNad cernlib-2005.05.09.dfsg~/src/cfortran/cfortran.doc cernlib-2005.05.09.dfsg/src/cfortran/cfortran.doc --- cernlib-2005.05.09.dfsg~/src/cfortran/cfortran.doc 1998-12-11 12:17:09.000000000 -0500 +++ cernlib-2005.05.09.dfsg/src/cfortran/cfortran.doc 2006-05-16 16:45:01.329802364 -0400 @@ -195,13 +195,13 @@ HP9000> f77 -c cfortex.f HP9000> CC -o cfortest cfortest.c cfortex.o -lI77 -lF77 && cfortest -HP0000> # If old-style f77 +800 compiled objects are required: +HP9000> # If old-style f77 +800 compiled objects are required: HP9000> # #define hpuxFortran800 HP9000> cc -c -Aa -DhpuxFortran800 cfortest.c HP9000> f77 +800 -o cfortest cfortest.o cfortex.f f2c> # In the following, 'CC' is any C compiler. -f2c> f2c -R cfortex.f +f2c> f2c cfortex.f f2c> CC -o cfortest -Df2cFortran cfortest.c cfortex.c -lf2c && cfortest Portland Group $ # Presumably other C compilers also work. @@ -533,9 +533,10 @@ FORTRAN_REAL thus corresponds to FORTRAN's REAL on all machines, including t3e. -o f2c - f2c, by default promotes REAL functions to double. cfortran.h does not (yet) -support this, so the f2c -R option must be used to turn this promotion off. +o f2c / g77 + f2c and g77 by default promote REAL functions to double. As of December 9, +2005, the Debian package of cfortran supports this behavior, so the f2c -R +option must *NOT* be used to turn this promotion off. o f2c [Thanks to Dario Autiero for pointing out the following.] @@ -573,6 +574,11 @@ #endif /* Last three lines are a work-around for the strange f2c naming feature. */ +o gfortran + gfortran behaves similarly to f2c and g77, EXCEPT that it does NOT by default +promote REAL functions to double. Therefore you should use -DgFortran instead +of -Dg77Fortran or -Df2cFortran to let cfortran.h know about this difference. + o NAG f90 The Fortran 77 subset of Fortran 90 is supported. Extending cfortran.h to interface C with all of Fortran 90 has not yet been examined. @@ -643,7 +649,7 @@ [For an ancient math.h on a 386 or sparc, get similar from a new math.h.] #ifdef mc68000 /* 5 lines Copyright (c) 1988 by Sun Microsystems, Inc. */ #define FLOATFUNCTIONTYPE int - #define RETURNFLOAT(x) return (*(int *)(&(x))) + #define RETURNFLOAT(x) return (*(int *)(&(x))) #define ASSIGNFLOAT(x,y) *(int *)(&x) = y #endif @@ -874,7 +880,7 @@ works everywhere and would seem to be an obvious choice. -3. +3. cfortran.h encourages the exact specification of the type and dimension of array parameters because it allows the C compiler to detect errors in the @@ -1835,7 +1841,7 @@ Unlike all other C compilers supported by cfortran.h, 'gcc -traditional' promotes to double all functions returning float -as demonstrated bu the following example. +as demonstrated by the following example. /* m.c */ #include @@ -2017,8 +2023,9 @@ THIS PACKAGE, I.E. CFORTRAN.H, THIS DOCUMENT, AND THE CFORTRAN.H EXAMPLE PROGRAMS ARE PROPERTY OF THE AUTHOR WHO RESERVES ALL RIGHTS. THIS PACKAGE AND -THE CODE IT PRODUCES MAY BE FREELY DISTRIBUTED WITHOUT FEES, SUBJECT TO THE -FOLLOWING RESTRICTIONS: +THE CODE IT PRODUCES MAY BE FREELY DISTRIBUTED WITHOUT FEES, SUBJECT +(AT YOUR CHOICE) EITHER TO THE GNU LIBRARY GENERAL PUBLIC LICENSE +AT http://www.gnu.org/licenses/lgpl.html OR TO THE FOLLOWING RESTRICTIONS: - YOU MUST ACCOMPANY ANY COPIES OR DISTRIBUTION WITH THIS (UNALTERED) NOTICE. - YOU MAY NOT RECEIVE MONEY FOR THE DISTRIBUTION OR FOR ITS MEDIA (E.G. TAPE, DISK, COMPUTER, PAPER.) diff -urNad cernlib-2005.05.09.dfsg~/src/cfortran/cfortran.h cernlib-2005.05.09.dfsg/src/cfortran/cfortran.h --- cernlib-2005.05.09.dfsg~/src/cfortran/cfortran.h 2002-09-11 13:05:51.000000000 -0400 +++ cernlib-2005.05.09.dfsg/src/cfortran/cfortran.h 2006-05-16 16:44:47.680553957 -0400 @@ -1,4 +1,4 @@ -/* cfortran.h 4.4_cernlib2002 */ +/* cfortran.h 4.4 */ /* http://www-zeus.desy.de/~burow/cfortran/ */ /* Burkhard Burow burow@desy.de 1990 - 2002. */ @@ -11,11 +11,71 @@ MODIFYING, COPYING AND DISTRIBUTING THE CFORTRAN.H PACKAGE. */ +/* The following modifications were made by the authors of CFITSIO or by me. + * They are flagged below with CFITSIO, the author's initials, or KMCCARTY. + * PDW = Peter Wilson + * DM = Doug Mink + * LEB = Lee E Brotzman + * MR = Martin Reinecke + * WDP = William D Pence + * -- Kevin McCarty, for Debian (19 Dec. 2005) */ + +/******* + Modifications: + Oct 1997: Changed symbol name extname to appendus (PDW/HSTX) + (Conflicted with a common variable name in FTOOLS) + Nov 1997: If g77Fortran defined, also define f2cFortran (PDW/HSTX) + Feb 1998: Let VMS see the NUM_ELEMS code. Lets programs treat + single strings as vectors with single elements + Nov 1999: If macintoxh defined, also define f2cfortran (for Mac OS-X) + Apr 2000: If WIN32 defined, also define PowerStationFortran and + VISUAL_CPLUSPLUS (Visual C++) + Jun 2000: If __GNUC__ and linux defined, also define f2cFortran + (linux/gcc environment detection) + Apr 2002: If __CYGWIN__ is defined, also define f2cFortran + Nov 2002: If __APPLE__ defined, also define f2cfortran (for Mac OS-X) + + Nov 2003: If __INTEL_COMPILER or INTEL_COMPILER defined, also define + f2cFortran (KMCCARTY) + Dec 2005: If f2cFortran is defined, enforce REAL functions in FORTRAN + returning "double" in C. This was one of the items on + Burkhard's TODO list. (KMCCARTY) + Dec 2005: Modifications to support 8-byte integers. (MR) + USE AT YOUR OWN RISK! + Feb 2006 Added logic to typedef the symbol 'LONGLONG' to an appropriate + intrinsic 8-byte integer datatype (WDP) + Apr 2006: Modifications to support gfortran (and g77 with -fno-f2c flag) + since by default it returns "float" for FORTRAN REAL function. + (KMCCARTY) + *******/ + /* Avoid symbols already used by compilers and system *.h: __ - OSF1 zukal06 V3.0 347 alpha, cc -c -std1 cfortest.c - */ +*/ + +/* + Determine what 8-byte integer data type is available. + 'long long' is now supported by most compilers, but older + MS Visual C++ compilers before V7.0 use '__int64' instead. (WDP) +*/ + +#ifndef LONGLONG_TYPE /* this may have been previously defined */ +#if defined(_MSC_VER) /* Microsoft Visual C++ */ + +#if (_MSC_VER < 1300) /* versions earlier than V7.0 do not have 'long long' */ + typedef __int64 LONGLONG; +#else /* newer versions do support 'long long' */ + typedef long long LONGLONG; +#endif + +#else + typedef long long LONGLONG; +#endif + +#define LONGLONG_TYPE +#endif /* First prepare for the C compiler. */ @@ -75,7 +135,9 @@ /* Remainder of cfortran.h depends on the Fortran compiler. */ -#if defined(CLIPPERFortran) || defined(pgiFortran) +/* 11/29/2003 (KMCCARTY): add *INTEL_COMPILER symbols here */ +/* 04/05/2006 (KMCCARTY): add gFortran symbol here */ +#if defined(CLIPPERFortran) || defined(pgiFortran) || defined(__INTEL_COMPILER) || defined(INTEL_COMPILER) || defined(gFortran) #define f2cFortran #endif @@ -90,6 +152,27 @@ Support f2c or f77 with gcc, vcc with f2c. f77 with vcc works, missing link magic for f77 I/O.*/ #endif +/* 04/13/00 DM (CFITSIO): Add these lines for NT */ +/* with PowerStationFortran and and Visual C++ */ +#if defined(WIN32) && !defined(__CYGWIN__) +#define PowerStationFortran +#define VISUAL_CPLUSPLUS +#endif +#if defined(g77Fortran) /* 11/03/97 PDW (CFITSIO) */ +#define f2cFortran +#endif +#if defined(__CYGWIN__) /* 04/11/02 LEB (CFITSIO) */ +#define f2cFortran +#endif +#if defined(__GNUC__) && defined(linux) /* 06/21/00 PDW (CFITSIO) */ +#define f2cFortran +#endif +#if defined(macintosh) /* 11/1999 (CFITSIO) */ +#define f2cFortran +#endif +#if defined(__APPLE__) /* 11/2002 (CFITSIO) */ +#define f2cFortran +#endif #if defined(__hpux) /* 921107: Use __hpux instead of __hp9000s300 */ #define hpuxFortran /* Should also allow hp9000s7/800 use.*/ #endif @@ -131,6 +214,7 @@ #if !(defined(mipsFortran)||defined(DECFortran)||defined(vmsFortran)||defined(CONVEXFortran)||defined(PowerStationFortran)||defined(AbsoftUNIXFortran)||defined(AbsoftProFortran)||defined(SXFortran)) /* If your compiler barfs on ' #error', replace # with the trigraph for # */ #error "cfortran.h: Can't find your environment among:\ + - GNU gcc (g77) on Linux. \ - MIPS cc and f77 2.0. (e.g. Silicon Graphics, DECstations, ...) \ - IBM AIX XL C and FORTRAN Compiler/6000 Version 01.01.0000.0000 \ - VAX VMS CC 3.1 and FORTRAN 5.4. \ @@ -147,11 +231,14 @@ - VAXUltrix: vcc,cc or gcc with f2c. gcc or cc with f77. \ - f77 with vcc works; but missing link magic for f77 I/O. \ - NO fort. None of gcc, cc or vcc generate required names.\ - - f2c : Use #define f2cFortran, or cc -Df2cFortran \ + - f2c/g77: Use #define f2cFortran, or cc -Df2cFortran \ + - gfortran: Use #define gFortran, or cc -DgFortran \ + (also necessary for g77 with -fno-f2c option) \ - NAG f90: Use #define NAGf90Fortran, or cc -DNAGf90Fortran \ - Absoft UNIX F77: Use #define AbsoftUNIXFortran or cc -DAbsoftUNIXFortran \ - Absoft Pro Fortran: Use #define AbsoftProFortran \ - - Portland Group Fortran: Use #define pgiFortran" + - Portland Group Fortran: Use #define pgiFortran \ + - Intel Fortran: Use #define INTEL_COMPILER" /* Compiler must throw us out at this point! */ #endif #endif @@ -164,7 +251,8 @@ /* Throughout cfortran.h we use: UN = Uppercase Name. LN = Lowercase Name. */ -#if defined(f2cFortran) || defined(NAGf90Fortran) || defined(DECFortran) || defined(mipsFortran) || defined(apolloFortran) || defined(sunFortran) || defined(CONVEXFortran) || defined(SXFortran) || defined(extname) +/* "extname" changed to "appendus" below (CFITSIO) */ +#if defined(f2cFortran) || defined(NAGf90Fortran) || defined(DECFortran) || defined(mipsFortran) || defined(apolloFortran) || defined(sunFortran) || defined(CONVEXFortran) || defined(SXFortran) || defined(appendus) #define CFC_(UN,LN) _(LN,_) /* Lowercase FORTRAN symbols. */ #define orig_fcallsc(UN,LN) CFC_(UN,LN) #else @@ -268,7 +356,8 @@ #endif #ifndef apolloFortran -#define COMMON_BLOCK_DEF(DEFINITION, NAME) DEFINITION NAME +/* "extern" removed (CFITSIO) */ +#define COMMON_BLOCK_DEF(DEFINITION, NAME) /* extern */ DEFINITION NAME #define CF_NULL_PROTO #else /* HP doesn't understand #elif. */ /* Without ANSI prototyping, Apollo promotes float functions to double. */ @@ -512,7 +601,7 @@ *( (F).dsc$l_m[0]=(F).dsc$bounds[0].dsc$l_u=(ELEMNO) ), \ (F).dsc$a_a0 = ( (F).dsc$a_pointer=(C) ) - (F).dsc$w_length ,(F)) -#else +#endif /* PDW: 2/10/98 (CFITSIO) -- Let VMS see NUM_ELEMS definitions */ #define _NUM_ELEMS -1 #define _NUM_ELEM_ARG -2 #define NUM_ELEMS(A) A,_NUM_ELEMS @@ -538,9 +627,14 @@ if (i==(unsigned)num_term) break; else strv += elem_len-i; } +if (0) { /* to prevent not used warnings in gcc (added by ROOT) */ + c2fstrv(0, 0, 0, 0); f2cstrv(0, 0, 0, 0); kill_trailing(0, 0); + vkill_trailing(0, 0, 0, 0); num_elem(0, 0, 0, 0); +} return (int)num; } -#endif +/* #endif removed 2/10/98 (CFITSIO) */ + /*-------------------------------------------------------------------------*/ /* UTILITIES FOR C TO USE STRINGS IN FORTRAN COMMON BLOCKS */ @@ -1318,6 +1412,7 @@ #define INTVVVVVVV_cfTYPE int #define LOGICALVVVVVVV_cfTYPE int #define LONGVVVVVVV_cfTYPE long +#define LONGLONGVVVVVVV_cfTYPE LONGLONG /* added by MR December 2005 */ #define SHORTVVVVVVV_cfTYPE short #define PBYTE_cfTYPE INTEGER_BYTE #define PDOUBLE_cfTYPE DOUBLE_PRECISION @@ -1325,6 +1420,7 @@ #define PINT_cfTYPE int #define PLOGICAL_cfTYPE int #define PLONG_cfTYPE long +#define PLONGLONG_cfTYPE LONGLONG /* added by MR December 2005 */ #define PSHORT_cfTYPE short #define CFARGS0(A,T,V,W,X,Y,Z) _3(T,_cf,A) @@ -1342,6 +1438,7 @@ #define INT_cfINT(N,A,B,X,Y,Z) DOUBLE_cfINT(N,A,B,X,Y,Z) #define LOGICAL_cfINT(N,A,B,X,Y,Z) DOUBLE_cfINT(N,A,B,X,Y,Z) #define LONG_cfINT(N,A,B,X,Y,Z) DOUBLE_cfINT(N,A,B,X,Y,Z) +#define LONGLONG_cfINT(N,A,B,X,Y,Z) DOUBLE_cfINT(N,A,B,X,Y,Z) /* added by MR December 2005 */ #define SHORT_cfINT(N,A,B,X,Y,Z) DOUBLE_cfINT(N,A,B,X,Y,Z) #define PBYTE_cfINT(N,A,B,X,Y,Z) PDOUBLE_cfINT(N,A,B,X,Y,Z) #define PDOUBLE_cfINT(N,A,B,X,Y,Z) _(CFARGS,N)(A,PINT,B,X,Y,Z,0) @@ -1349,6 +1446,7 @@ #define PINT_cfINT(N,A,B,X,Y,Z) PDOUBLE_cfINT(N,A,B,X,Y,Z) #define PLOGICAL_cfINT(N,A,B,X,Y,Z) PDOUBLE_cfINT(N,A,B,X,Y,Z) #define PLONG_cfINT(N,A,B,X,Y,Z) PDOUBLE_cfINT(N,A,B,X,Y,Z) +#define PLONGLONG_cfINT(N,A,B,X,Y,Z) PDOUBLE_cfINT(N,A,B,X,Y,Z) /* added by MR December 2005 */ #define PSHORT_cfINT(N,A,B,X,Y,Z) PDOUBLE_cfINT(N,A,B,X,Y,Z) #define BYTEV_cfINT(N,A,B,X,Y,Z) DOUBLEV_cfINT(N,A,B,X,Y,Z) #define BYTEVV_cfINT(N,A,B,X,Y,Z) DOUBLEVV_cfINT(N,A,B,X,Y,Z) @@ -1392,6 +1490,13 @@ #define LONGVVVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVVVV_cfINT(N,A,B,X,Y,Z) #define LONGVVVVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVVVVV_cfINT(N,A,B,X,Y,Z) #define LONGVVVVVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVVVVVV_cfINT(N,A,B,X,Y,Z) +#define LONGLONGV_cfINT(N,A,B,X,Y,Z) DOUBLEV_cfINT(N,A,B,X,Y,Z) /* added by MR December 2005 */ +#define LONGLONGVV_cfINT(N,A,B,X,Y,Z) DOUBLEVV_cfINT(N,A,B,X,Y,Z) /* added by MR December 2005 */ +#define LONGLONGVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVV_cfINT(N,A,B,X,Y,Z) /* added by MR December 2005 */ +#define LONGLONGVVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVVV_cfINT(N,A,B,X,Y,Z) /* added by MR December 2005 */ +#define LONGLONGVVVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVVVV_cfINT(N,A,B,X,Y,Z) /* added by MR December 2005 */ +#define LONGLONGVVVVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVVVVV_cfINT(N,A,B,X,Y,Z) /* added by MR December 2005 */ +#define LONGLONGVVVVVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVVVVVV_cfINT(N,A,B,X,Y,Z) /* added by MR December 2005 */ #define SHORTV_cfINT(N,A,B,X,Y,Z) DOUBLEV_cfINT(N,A,B,X,Y,Z) #define SHORTVV_cfINT(N,A,B,X,Y,Z) DOUBLEVV_cfINT(N,A,B,X,Y,Z) #define SHORTVVV_cfINT(N,A,B,X,Y,Z) DOUBLEVVV_cfINT(N,A,B,X,Y,Z) @@ -1451,7 +1556,12 @@ #define BYTE_cfPU(A) CFextern INTEGER_BYTE FCALLSC_QUALIFIER A #define DOUBLE_cfPU(A) CFextern DOUBLE_PRECISION FCALLSC_QUALIFIER A #if ! (defined(FLOATFUNCTIONTYPE)&&defined(ASSIGNFLOAT)&&defined(RETURNFLOAT)) +#if defined (f2cFortran) && ! defined (gFortran) +/* f2c/g77 return double from FORTRAN REAL functions. (KMCCARTY, 2005/12/09) */ +#define FLOAT_cfPU(A) CFextern DOUBLE_PRECISION FCALLSC_QUALIFIER A +#else #define FLOAT_cfPU(A) CFextern FORTRAN_REAL FCALLSC_QUALIFIER A +#endif #else #define FLOAT_cfPU(A) CFextern FLOATFUNCTIONTYPE FCALLSC_QUALIFIER A #endif @@ -1589,6 +1699,7 @@ #define INT_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E) #define LOGICAL_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,LOGICAL,A,B,C,D,E) #define LONG_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E) +#define LONGLONG_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E) /* added by MR December 2005 */ #define SHORT_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E) #define BYTEV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E) #define BYTEVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E) @@ -1632,6 +1743,13 @@ #define LONGVVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E) #define LONGVVVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E) #define LONGVVVVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E) +#define LONGLONGV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E) /* added by MR December 2005 */ +#define LONGLONGVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E) /* added by MR December 2005 */ +#define LONGLONGVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E) /* added by MR December 2005 */ +#define LONGLONGVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E) /* added by MR December 2005 */ +#define LONGLONGVVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E) /* added by MR December 2005 */ +#define LONGLONGVVVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E) /* added by MR December 2005 */ +#define LONGLONGVVVVVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E) /* added by MR December 2005 */ #define SHORTV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E) #define SHORTVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E) #define SHORTVVV_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E) @@ -1645,6 +1763,7 @@ #define PINT_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E) #define PLOGICAL_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,PLOGICAL,A,B,C,D,E) #define PLONG_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E) +#define PLONGLONG_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E) /* added by MR December 2005 */ #define PSHORT_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,DEFAULT,A,B,C,D,E) #define STRING_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,STRING,A,B,C,D,E) #define PSTRING_cfSTR(N,T,A,B,C,D,E) _(CFARGS,N)(T,PSTRING,A,B,C,D,E) @@ -1957,6 +2076,7 @@ #define INT_cfT(M,I,A,B,D) *A #define LOGICAL_cfT(M,I,A,B,D) F2CLOGICAL(*A) #define LONG_cfT(M,I,A,B,D) *A +#define LONGLONG_cfT(M,I,A,B,D) *A /* added by MR December 2005 */ #define SHORT_cfT(M,I,A,B,D) *A #define BYTEV_cfT(M,I,A,B,D) A #define DOUBLEV_cfT(M,I,A,B,D) A @@ -1964,6 +2084,7 @@ #define INTV_cfT(M,I,A,B,D) A #define LOGICALV_cfT(M,I,A,B,D) A #define LONGV_cfT(M,I,A,B,D) A +#define LONGLONGV_cfT(M,I,A,B,D) A /* added by MR December 2005 */ #define SHORTV_cfT(M,I,A,B,D) A #define BYTEVV_cfT(M,I,A,B,D) (void *)A /* We have to cast to void *,*/ #define BYTEVVV_cfT(M,I,A,B,D) (void *)A /* since we don't know the */ @@ -2001,6 +2122,12 @@ #define LONGVVVVV_cfT(M,I,A,B,D) (void *)A #define LONGVVVVVV_cfT(M,I,A,B,D) (void *)A #define LONGVVVVVVV_cfT(M,I,A,B,D) (void *)A +#define LONGLONGVV_cfT(M,I,A,B,D) (void *)A /* added by MR December 2005 */ +#define LONGLONGVVV_cfT(M,I,A,B,D) (void *)A /* added by MR December 2005 */ +#define LONGLONGVVVV_cfT(M,I,A,B,D) (void *)A /* added by MR December 2005 */ +#define LONGLONGVVVVV_cfT(M,I,A,B,D) (void *)A /* added by MR December 2005 */ +#define LONGLONGVVVVVV_cfT(M,I,A,B,D) (void *)A /* added by MR December 2005 */ +#define LONGLONGVVVVVVV_cfT(M,I,A,B,D) (void *)A /* added by MR December 2005 */ #define SHORTVV_cfT(M,I,A,B,D) (void *)A #define SHORTVVV_cfT(M,I,A,B,D) (void *)A #define SHORTVVVV_cfT(M,I,A,B,D) (void *)A @@ -2013,6 +2140,7 @@ #define PINT_cfT(M,I,A,B,D) A #define PLOGICAL_cfT(M,I,A,B,D) ((*A=F2CLOGICAL(*A)),A) #define PLONG_cfT(M,I,A,B,D) A +#define PLONGLONG_cfT(M,I,A,B,D) A /* added by MR December 2005 */ #define PSHORT_cfT(M,I,A,B,D) A #define PVOID_cfT(M,I,A,B,D) A #if defined(apolloFortran) || defined(hpuxFortran800) || defined(AbsoftUNIXFortran) @@ -2083,12 +2211,18 @@ #define INT_cfFZ(UN,LN) int FCALLSC_QUALIFIER fcallsc(UN,LN)( #define LOGICAL_cfFZ(UN,LN) int FCALLSC_QUALIFIER fcallsc(UN,LN)( #define LONG_cfFZ(UN,LN) long FCALLSC_QUALIFIER fcallsc(UN,LN)( +#define LONGLONG_cfFZ(UN,LN) LONGLONG FCALLSC_QUALIFIER fcallsc(UN,LN)( /* added by MR December 2005 */ #define SHORT_cfFZ(UN,LN) short FCALLSC_QUALIFIER fcallsc(UN,LN)( #define VOID_cfFZ(UN,LN) void FCALLSC_QUALIFIER fcallsc(UN,LN)( #ifndef __CF__KnR /* The void is req'd by the Apollo, to make this an ANSI function declaration. The Apollo promotes K&R float functions to double. */ -#define FLOAT_cfFZ(UN,LN) FORTRAN_REAL FCALLSC_QUALIFIER fcallsc(UN,LN)(void +#if defined (f2cFortran) && ! defined (gFortran) +/* f2c/g77 return double from FORTRAN REAL functions. (KMCCARTY, 2005/12/09) */ +#define FLOAT_cfFZ(UN,LN) DOUBLE_PRECISION FCALLSC_QUALIFIER fcallsc(UN,LN)(void +#else +#define FLOAT_cfFZ(UN,LN) FORTRAN_REAL FCALLSC_QUALIFIER fcallsc(UN,LN)(void +#endif #ifdef vmsFortran #define STRING_cfFZ(UN,LN) void FCALLSC_QUALIFIER fcallsc(UN,LN)(fstring *AS #else @@ -2104,7 +2238,12 @@ #endif #else #if ! (defined(FLOATFUNCTIONTYPE)&&defined(ASSIGNFLOAT)&&defined(RETURNFLOAT)) +#if defined (f2cFortran) && ! defined (gFortran) +/* f2c/g77 return double from FORTRAN REAL functions. (KMCCARTY, 2005/12/09) */ +#define FLOAT_cfFZ(UN,LN) DOUBLE_PRECISION FCALLSC_QUALIFIER fcallsc(UN,LN)( +#else #define FLOAT_cfFZ(UN,LN) FORTRAN_REAL FCALLSC_QUALIFIER fcallsc(UN,LN)( +#endif #else #define FLOAT_cfFZ(UN,LN) FLOATFUNCTIONTYPE FCALLSC_QUALIFIER fcallsc(UN,LN)( #endif @@ -2118,13 +2257,19 @@ #define BYTE_cfF(UN,LN) BYTE_cfFZ(UN,LN) #define DOUBLE_cfF(UN,LN) DOUBLE_cfFZ(UN,LN) #ifndef __CF_KnR +#if defined (f2cFortran) && ! defined (gFortran) +/* f2c/g77 return double from FORTRAN REAL functions. (KMCCARTY, 2005/12/09) */ +#define FLOAT_cfF(UN,LN) DOUBLE_PRECISION FCALLSC_QUALIFIER fcallsc(UN,LN)( +#else #define FLOAT_cfF(UN,LN) FORTRAN_REAL FCALLSC_QUALIFIER fcallsc(UN,LN)( +#endif #else #define FLOAT_cfF(UN,LN) FLOAT_cfFZ(UN,LN) #endif #define INT_cfF(UN,LN) INT_cfFZ(UN,LN) #define LOGICAL_cfF(UN,LN) LOGICAL_cfFZ(UN,LN) #define LONG_cfF(UN,LN) LONG_cfFZ(UN,LN) +#define LONGLONG_cfF(UN,LN) LONGLONG_cfFZ(UN,LN) /* added by MR December 2005 */ #define SHORT_cfF(UN,LN) SHORT_cfFZ(UN,LN) #define VOID_cfF(UN,LN) VOID_cfFZ(UN,LN) #define STRING_cfF(UN,LN) STRING_cfFZ(UN,LN), @@ -2187,6 +2332,7 @@ #define LOGICAL_cfI return C2FLOGICAL(A0); #endif #define LONG_cfI return A0; +#define LONGLONG_cfI return A0; /* added by MR December 2005 */ #define SHORT_cfI return A0; #define STRING_cfI return ; #define VOID_cfI return ; debian/patches/315-fixes-for-MacOSX.dpatch0000755000000000000000000000371512205714137015315 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 315-fixes-for-MacOSX.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Patch set (mostly due to Keisuke Fujii) to allow CERNLIB to compile ## DP: and run on OS X. @DPATCH@ diff -urNad cernlib-2005.05.09.dfsg~/src/Imakefile cernlib-2005.05.09.dfsg/src/Imakefile --- cernlib-2005.05.09.dfsg~/src/Imakefile 1996-12-16 10:08:41.000000000 -0500 +++ cernlib-2005.05.09.dfsg/src/Imakefile 2005-12-07 14:47:34.141148558 -0500 @@ -7,8 +7,12 @@ SUBDIRS= $(LIBDIRS) patchy cfortran #ifdef CERNLIB_UNIX +#ifdef CERNLIB_MACOSX +SUBDIRS:= $(SUBDIRS) scripts +#else SUBDIRS:= $(SUBDIRS) scripts mgr #endif +#endif InstallLibSubdirs($(LIBDIRS)) diff -urNad cernlib-2005.05.09.dfsg~/src/mclibs/cojets/data/Imakefile cernlib-2005.05.09.dfsg/src/mclibs/cojets/data/Imakefile --- cernlib-2005.05.09.dfsg~/src/mclibs/cojets/data/Imakefile 1996-03-27 04:31:06.000000000 -0500 +++ cernlib-2005.05.09.dfsg/src/mclibs/cojets/data/Imakefile 2005-12-07 14:47:34.141148558 -0500 @@ -1,11 +1,11 @@ .SUFFIXES: -CopyFile(cojets.cpp,cojets.cin) +CopyFile(cojets.cpp,cojets.s) CopyFile(decay.cpp,decay.cin) CopyFile(table.cpp,table.cin) -CppFileTarget(cojets.dat,cojets.cin,NullParameter,table.cin decay.cin) +CppFileTarget(cojets.dat,cojets.s,-E -traditional,table.cin decay.cin) PackageDirFileTarget(cojets.dat) diff -urNad cernlib-2005.05.09.dfsg~/src/mclibs/isajet/data/Imakefile cernlib-2005.05.09.dfsg/src/mclibs/isajet/data/Imakefile --- cernlib-2005.05.09.dfsg~/src/mclibs/isajet/data/Imakefile 1996-03-27 04:33:19.000000000 -0500 +++ cernlib-2005.05.09.dfsg/src/mclibs/isajet/data/Imakefile 2005-12-07 14:47:34.141148558 -0500 @@ -1,9 +1,9 @@ .SUFFIXES: -CopyFile(decay.cpp,decay.cin) +CopyFile(decay.cpp,decay.s) -CppFileTarget(isajet.dat,decay.cin,NullParameter,NullParameter) +CppFileTarget(isajet.dat,decay.s,-E -traditional ,NullParameter) PackageDirFileTarget(isajet.dat) debian/patches/102-dont-optimize-some-code.dpatch0000755000000000000000000000257012205714137016766 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 102-dont-optimize-some-code.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Don't allow the compiler to optimize several files that cause trouble ## DP: (either compiler crash or broken code generation). @DPATCH@ diff -urNad mclibs-2006.dfsg~/src/mclibs/isajet/isatape/Imakefile mclibs-2006.dfsg/src/mclibs/isajet/isatape/Imakefile --- mclibs-2006.dfsg~/src/mclibs/isajet/isatape/Imakefile 1996-05-06 11:19:44.000000000 -0400 +++ mclibs-2006.dfsg/src/mclibs/isajet/isatape/Imakefile 2007-01-19 17:35:47.210374125 -0500 @@ -4,4 +4,8 @@ FORTRANSAVEOPTION = FortranSaveFlags +#if defined(CERNLIB_LINUX) +SpecialFortranLibObjectRule(isawev,isawev,-O0,NullParameter) +#endif + SubdirLibraryTarget(NullParameter,NullParameter) diff -urNad mclibs-2006.dfsg~/src/mclibs/pdf/spdf/Imakefile mclibs-2006.dfsg/src/mclibs/pdf/spdf/Imakefile --- mclibs-2006.dfsg~/src/mclibs/pdf/spdf/Imakefile 2006-09-04 08:32:57.000000000 -0400 +++ mclibs-2006.dfsg/src/mclibs/pdf/spdf/Imakefile 2007-01-19 17:35:47.211373912 -0500 @@ -101,4 +101,10 @@ #ifdef CERNLIB_HPUX FORTRANOPTIONS += '-WF,-P' #endif + +#if defined(CERNLIB_LINUX) +/* -O2 optimization on ARM breaks in g77 3.3.3 */ +SpecialFortranLibObjectRule(structm,structm,-O0,NullParameter) +#endif + SubdirLibraryTarget(NullParameter,NullParameter) debian/patches/00list0000644000000000000000000000140612206010333011642 0ustar 000-unpack.sh.dpatch 002-fix-missing-mclibs.dpatch 100-fix-isajet-manual-corruption.dpatch 101-undefine-PPC.dpatch 102-dont-optimize-some-code.dpatch 204-compile-isajet-with-isasrt.dpatch 206-herwig-uses-DBLE-not-REAL.dpatch 210-improve-cfortran-header-files.dpatch 213-fix-test-suite-build.dpatch 220-compile-isajet-with-isarun.dpatch 221-use-double-in-hepevt.dpatch 305-use-POWERPC-not-PPC-as-test.dpatch 306-patch-assert.h-for-makedepend.dpatch 307-use-canonical-cfortran.dpatch 309-define-dummy-herwig-routines.dpatch 310-define-dummy-fowl-routines.dpatch 312-skip-duplicate-gamma.dpatch 315-fixes-for-MacOSX.dpatch 321-support-gfortran.dpatch 802-create-shared-libraries.dpatch 806-bump-mathlib-and-dependents-sonames.dpatch 807-static-link-some-tests-on-64-bit.dpatch debian/patches/210-improve-cfortran-header-files.dpatch0000755000000000000000000000371412205714137020137 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 210-improve-cfortran-header-files.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Protect against multiple inclusion and add explicit dependency on ## DP: cfortran.h to the CERNLIB C headers. @DPATCH@ diff -urNad cernlib-2005.05.09/src/cfortran/jetset74.h /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/jetset74.h --- cernlib-2005.05.09/src/cfortran/jetset74.h 1999-10-29 12:55:45.000000000 -0400 +++ /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/jetset74.h 2005-06-10 12:51:31.250943117 -0400 @@ -1,3 +1,11 @@ +#ifndef _JETSET74_H +#define _JETSET74_H +#include + +#ifdef __cplusplus +extern "C" { +#endif + PROTOCCALLSFFUN2(INT,KLU,klu,INT,INT) #define KLU(A2,A3) CCALLSFFUN2(KLU,klu,INT,INT,A2,A3) @@ -327,3 +335,9 @@ PROTOCCALLSFSUB11(STRUCTM,structm,DOUBLE,DOUBLE,DOUBLE,DOUBLE,DOUBLE,DOUBLE,DOUBLE,DOUBLE,DOUBLE,DOUBLE,PDOUBLE) #define STRUCTM(A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11) CCALLSFSUB11(STRUCTM,structm,DOUBLE,DOUBLE,DOUBLE,DOUBLE,DOUBLE,DOUBLE,DOUBLE,DOUBLE,DOUBLE,DOUBLE,PDOUBLE,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11) + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* #ifndef _JETSET74_H */ diff -urNad cernlib-2005.05.09/src/cfortran/lepto62.h /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/lepto62.h --- cernlib-2005.05.09/src/cfortran/lepto62.h 1999-10-29 12:55:45.000000000 -0400 +++ /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/lepto62.h 2005-06-10 12:51:31.378915804 -0400 @@ -1,3 +1,11 @@ +#ifndef _LEPTO62_H +#define _LEPTO62_H +#include + +#ifdef __cplusplus +extern "C" { +#endif + PROTOCCALLSFFUN2(FLOAT,DCROSS,dcross,FLOAT,FLOAT) #define DCROSS(A2,A3) CCALLSFFUN2(DCROSS,dcross,FLOAT,FLOAT,A2,A3) @@ -174,3 +182,9 @@ PROTOCCALLSFSUB0(RIWIBD,riwibd) #define RIWIBD() CCALLSFSUB0(RIWIBD,riwibd) + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* #ifndef _LEPTO62_H */ debian/patches/312-skip-duplicate-gamma.dpatch0000755000000000000000000000252412205714137016313 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 312-skip-duplicate-gamma.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Don't compile in redundant gamma function in isajet; use the mathlib one @DPATCH@ diff -urNad cernlib-2005.05.09/src/mclibs/isajet/code/Imakefile /tmp/dpep.IX54UM/cernlib-2005.05.09/src/mclibs/isajet/code/Imakefile --- cernlib-2005.05.09/src/mclibs/isajet/code/Imakefile 2005-06-09 14:29:18.976494518 -0400 +++ /tmp/dpep.IX54UM/cernlib-2005.05.09/src/mclibs/isajet/code/Imakefile 2005-06-09 14:30:21.913126207 -0400 @@ -1,12 +1,13 @@ DoIncludePackage(isajet) #include "pilot.h" +/* gamma.F removed; use the one defined in mathlib/gen/c/gamma.F */ SRCS_F= \ @@\ amass.F charge.F cteq5l.F ctxc2i.F ctxi2c.F ctxin.F ctxout.F \ @@\ dblpcm.F dblvec.F dboost.F decay.F decjet.F \ @@\ domssm.F drllyn.F eebeg.F eemax.F elctrn.F epf.F evol01.F evol02.F \ @@\ evol03.F evol05.F evol06.F evol07.F evolms.F evolve.F flavor.F \ @@\ - fortop.F frgjet.F frgmnt.F gamma.F getpt.F gettot.F heavyx.F \ @@\ + fortop.F frgjet.F frgmnt.F getpt.F gettot.F heavyx.F \ @@\ hevolv.F higgs.F idanti.F idgen.F iframs.F inisap.F ipartns.F \ @@\ ipjset.F iprtns.F irmov0.F isabeg.F isaend.F isaevt.F isaini.F \ @@\ isajet.F isasrt.F ispjet.F istrad.F iswdky.F jetgen.F \ @@\ debian/patches/220-compile-isajet-with-isarun.dpatch0000755000000000000000000000127612205714137017473 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 220-compile-isajet-with-isarun.dpatch by Kevin B. McCarty ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Compile isajet library including isaset() function. @DPATCH@ diff -urNad mclibs-2006.dfsg.2~/src/mclibs/isajet/isajet/pilot.h mclibs-2006.dfsg.2/src/mclibs/isajet/isajet/pilot.h --- mclibs-2006.dfsg.2~/src/mclibs/isajet/isajet/pilot.h 2001-10-08 06:16:58.000000000 -0700 +++ mclibs-2006.dfsg.2/src/mclibs/isajet/isajet/pilot.h 2008-02-06 12:52:46.000000000 -0800 @@ -41,3 +41,6 @@ #ifndef CERNLIB_MOVEFTN #define CERNLIB_MOVEFTN #endif +#ifndef CERNLIB_INTERACT +#define CERNLIB_INTERACT +#endif debian/patches/807-static-link-some-tests-on-64-bit.dpatch0000755000000000000000000000203312205714137020261 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 807-static-link-some-tests-on-64-bit.dpatch by Kevin B. McCarty ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Statically link certain test programs against CERN libraries on ## DP: 64-bit systems, since CERNLIB's memory management is hopelessly ## DP: broken there. @DPATCH@ diff -urNad mclibs-2006.dfsg.2~/src/mclibs/eurodec/eudtest/Imakefile mclibs-2006.dfsg.2/src/mclibs/eurodec/eudtest/Imakefile --- mclibs-2006.dfsg.2~/src/mclibs/eurodec/eudtest/Imakefile 2008-01-08 09:47:10.000000000 -0800 +++ mclibs-2006.dfsg.2/src/mclibs/eurodec/eudtest/Imakefile 2008-01-08 09:48:35.000000000 -0800 @@ -4,7 +4,11 @@ FORTRANSAVEOPTION = FortranSaveFlags +#if defined(CERNLIB_LINUX) && defined(CERNLIB_QMLXIA64) +CernlibFortranStaticTarget(eudtest,$(OBJS),NullParameter,NullParameter,eurodec packlib) +#else CernlibFortranProgramTarget(eudtest,$(OBJS),NullParameter,NullParameter,eurodec packlib) +#endif TestTarget(eudtest,eurodec.dat,eutitle.dat) debian/patches/206-herwig-uses-DBLE-not-REAL.dpatch0000755000000000000000000000255012205714137016603 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 206-herwig-uses-DBLE-not-REAL.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Have libherwig use double precision consistently @DPATCH@ diff -urNad mclibs-2006.dfsg~/src/mclibs/herwig/code/hwhiga.F mclibs-2006.dfsg/src/mclibs/herwig/code/hwhiga.F --- mclibs-2006.dfsg~/src/mclibs/herwig/code/hwhiga.F 2006-09-04 08:32:57.000000000 -0400 +++ mclibs-2006.dfsg/src/mclibs/herwig/code/hwhiga.F 2007-01-19 17:39:10.154251922 -0500 @@ -72,7 +72,7 @@ TAMP(6)=HWHIG5(T,S,U,EMH2,EMQ2,2,0,5,0,0,0) TAMP(7)=HWHIG5(U,T,S,EMH2,EMQ2,3,0,6,0,0,0) DO 20 I=1,7 - TAMPI(I)= REAL(TAMP(I)) + TAMPI(I)= DBLE(TAMP(I)) #if !defined(CERNLIB_GFORTRAN) 20 TAMPR(I)=-IMAG(TAMP(I)) #else diff -urNad mclibs-2006.dfsg~/src/mclibs/herwig/code/hwuli2.F mclibs-2006.dfsg/src/mclibs/herwig/code/hwuli2.F --- mclibs-2006.dfsg~/src/mclibs/herwig/code/hwuli2.F 2006-09-04 08:32:57.000000000 -0400 +++ mclibs-2006.dfsg/src/mclibs/herwig/code/hwuli2.F 2007-01-19 17:39:27.722516271 -0500 @@ -18,7 +18,7 @@ & 1.644934066848226D0/ PROD(Y,Y2)=Y*(ONE+A1*Y*(ONE+A2*Y*(ONE+A3*Y2*(ONE+A4*Y2*(ONE+A5*Y2* & (ONE+A6*Y2*(ONE+A7*Y2*(ONE+A8*Y2*(ONE+A9*Y2*(ONE+A10*Y2)))))))))) - XR=REAL(X) + XR=DBLE(X) #if !defined(CERNLIB_GFORTRAN) XI=IMAG(X) #else debian/patches/321-support-gfortran.dpatch0000755000000000000000000000251712205714137015653 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 321-support-gfortran.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Minor changes to support use of gfortran. From Harald Vogt. @DPATCH@ diff -urNad mclibs-2005.dfsg~/src/mclibs/herwig/code/hwhew2.F mclibs-2005.dfsg/src/mclibs/herwig/code/hwhew2.F --- mclibs-2005.dfsg~/src/mclibs/herwig/code/hwhew2.F 1996-12-03 09:16:55.000000000 -0500 +++ mclibs-2005.dfsg/src/mclibs/herwig/code/hwhew2.F 2006-09-27 13:47:59.876963852 -0400 @@ -75,8 +75,7 @@ H(J,I)=(ZDMP*ZP-ZDPM*ZQ)*ZT CH(J,I)=(ZDMP*ZPS-ZDPM*ZQS)*ZT ZD=H(J,I)*CH(J,I) - PT5=CMPLX(.5,0.) - D(J,I)=PT5*ZD + D(J,I)=CMPLX(.5,0.)*ZD 11 CONTINUE DO 60 I=1,NPART-1 IPP1=I+1 diff -urNad mclibs-2005.dfsg~/src/mclibs/isajet/test/Imakefile mclibs-2005.dfsg/src/mclibs/isajet/test/Imakefile --- mclibs-2005.dfsg~/src/mclibs/isajet/test/Imakefile 2000-07-25 12:21:34.000000000 -0400 +++ mclibs-2005.dfsg/src/mclibs/isajet/test/Imakefile 2006-09-27 13:49:49.783806148 -0400 @@ -8,4 +8,9 @@ CernlibFortranProgramTarget(isajett,isajett.o,NullParameter,NullParameter,pdflib804 mathlib kernlib isajet) +#if !defined(CERNLIB_GFORTRAN) +/* breaks on 'STOP 99' if compiled with gfortran */ TestTarget(isajett,isajet.dat,test.input) +#else +test:: +#endif debian/patches/309-define-dummy-herwig-routines.dpatch0000755000000000000000000000534712205714137020045 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 309-define-dummy-herwig-routines.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Define stub functions for herwig routines that are supposed to be ## DP: provided by the user. Also, comment out the dummy functions pdfset ## DP: and structm; real versions are provided in pdflib. @DPATCH@ diff -urNad cernlib-2005.05.09.dfsg~/src/mclibs/herwig/code/Imakefile cernlib-2005.05.09.dfsg/src/mclibs/herwig/code/Imakefile --- cernlib-2005.05.09.dfsg~/src/mclibs/herwig/code/Imakefile 2005-11-28 19:46:53.619963660 +0000 +++ cernlib-2005.05.09.dfsg/src/mclibs/herwig/code/Imakefile 2005-11-28 19:46:58.890844233 +0000 @@ -24,8 +24,13 @@ hwulob.F hwulof.F hwulor.F hwumas.F hwupcm.F hwurap.F hwures.F \ @@\ hwurob.F hwurof.F hwurot.F hwusor.F hwusqr.F hwusta.F hwutab.F \ @@\ hwutim.F hwvdif.F hwvdot.F hwvequ.F hwvsca.F hwvsum.F hwvzro.F \ @@\ - hwwarn.F ieupdg.F ipdgeu.F pdfset.F qqinit.F qqlmat.F sasano.F \ @@\ - sasbeh.F sasdir.F sasgam.F sasvmd.F structm.F + hwwarn.F ieupdg.F ipdgeu.F /*pdfset.F*/ qqinit.F qqlmat.F sasano.F \ @@\ + sasbeh.F sasdir.F sasgam.F sasvmd.F /*structm.F*/ + /* comment out pdfset.F, structm.F; real versions are in pdflib */ + +/* add the following file to define dummy routines as weak symbols */ +/* --Kevin McCarty, for Debian */ +SRCS_C= dummy.c FORTRANSAVEOPTION = FortranSaveFlags diff -urNad cernlib-2005.05.09.dfsg~/src/mclibs/herwig/code/dummy.c cernlib-2005.05.09.dfsg/src/mclibs/herwig/code/dummy.c --- cernlib-2005.05.09.dfsg~/src/mclibs/herwig/code/dummy.c 1970-01-01 00:00:00.000000000 +0000 +++ cernlib-2005.05.09.dfsg/src/mclibs/herwig/code/dummy.c 2005-11-28 19:49:17.897320746 +0000 @@ -0,0 +1,34 @@ +/* Dummy file to avoid undefined symbols in the library */ +/* Kevin McCarty, 14 Jan 2003 */ + +#include +#include + +/* Want the dummy functions to be weakly defined so they may be overridden + * without error. */ + +#define kludge(x) #x +#define stringify(x) kludge(x) +#define underline(x) dummy_ ## x + +#define DUMMY(UPPERNAME, fortranname_, returntype) \ +static returntype underline(fortranname_)() { print_dummy(#UPPERNAME); } \ +void fortranname_() \ + __attribute__ ((weak, alias (stringify(underline(fortranname_))) )) + +static void print_dummy(const char *function) +{ + fprintf(stderr, "herwig59: Now in dummy %s routine.\n", function); + fprintf(stderr, + "If you see this message, you should define your own such routine.\n" +#if defined (CERNLIB_DEBIAN) + "For details, see the file /usr/share/doc/libherwig59-2-dev/herwig59.txt.gz\n" +#endif + ); + exit(EXIT_FAILURE); +} + +DUMMY(HWABEG, hwabeg_, void); +DUMMY(HWANAL, hwanal_, void); +DUMMY(HWAEND, hwaend_, void); + debian/patches/README0000644000000000000000000000751512205714137011507 0ustar Notes on Debian patches to CERNLIB source: ------------------------------------------ All patches in this directory are, unless otherwise specified in the patch header, copyright 2001-2008 Kevin B. McCarty and are licensed under the GNU General Public License version 2 or later, at your option. The GNU GPL may be found at http://www.gnu.org/licenses/gpl.html or, on Debian systems, at /usr/share/common-licenses/GPL . Dpatch is used because some of the files in this directory are really shell scripts, and no other patch system (quilt, cdbs, etc.) appears to support this. (Am I the only person using this "feature" of dpatch?) Dpatch files that are really patches are named NNN-.dpatch while dpatch files that are shell scripts are named NNN-.sh.dpatch NNN is a three digit number ranging from 000 through 999. Note that, contrary to the usual practice, the file debian/patches/00list (listing the patches to be applied) is auto-generated by "debian/rules clean", and may be further modified in the stampdir/configure-stamp target of the debian/add-ons/Makefile (called from "debian/rules unpack") depending upon settings in $DEB_BUILD_OPTIONS. See debian/README.source for a list of supported $DEB_BUILD_OPTIONS parameters. A few of the patches (*.dpatch.in) include values that need to be filled in at configure time; this is also done in the stampdir/configure-stamp target of debian/add-ons/Makefile. (You do not _really_ need dpatch to work with these patches; they are applied for non-Debian systems in a hacky way by the patch target of debian/add-ons/Makefile.) The numbering scheme of patches in this directory is as follows: 000 is a dummy patch used to force dpatch-edit-patch to create diffs relative to already-unpacked source. It has no effect when "applied" or "de-applied" against an unpacked source tree. 001-099 are reserved for patches that permit compilation after having removed non-free code from CERNLIB source. 100-199 are for bug fixes that should eventually be submitted upstream and have a reasonable probability of being merged, for instance, security bugs, file-specific compiler optimization settings, etc. 200-299 are for feature enhancements that should eventually be submitted upstream, for example, including ERTRAK code in libgeant. 300-399 are for implementation of non-Debian-specific niceties that are probably too intrusive to go upstream, for instance FHS implementation or use of shadow passwords by pawserv. 400-599 are reserved for future use. 600-699 are for Debian-specific customizations, for instance setting the default editor as sensible-editor, having Paw send bug reports to the BTS, etc. Most of these are protected by "#if defined(CERNLIB_DEBIAN)" in the source code so they can be safely applied on non-Debian systems. 700-799 are for patches that move source code around. Many of these are actually shell scripts. Typically this is done to split libraries apart or to move functions from one library into another. 800-899 are for implementation of shared libraries. (They must be implemented only after moving files around, or they have many undefined symbol problems.) 900-999 are for optional patches that may or may not be applied depending upon settings in $DEB_BUILD_OPTIONS. These patches are stored in the "optional" subdirectory, copied here in the "unpack" target of debian/rules or add-ons/Makefile, and removed in the "clean" target. Ideally, the source should compile with any complete set of the patches numbered 000 through NNN (where NNN is 100 or greater) applied, possibly excluding patches in the 9xx series. (All patches with the same number must be applied or not, as a whole.) To select the set of patches to be applied, after running debian/rules clean, edit debian/patches/00list to include only the desired ones. -- Kevin B. McCarty , 29 Jun 2006 debian/patches/221-use-double-in-hepevt.dpatch0000755000000000000000000000165512205714137016261 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 221-use-double-in-hepevt.dpatch by Kevin B. McCarty ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Use double-precision values in hepevt.inc. @DPATCH@ diff -urNad mclibs-2006.dfsg.2~/src/mclibs/isajet/isajet/hepevt.inc mclibs-2006.dfsg.2/src/mclibs/isajet/isajet/hepevt.inc --- mclibs-2006.dfsg.2~/src/mclibs/isajet/isajet/hepevt.inc 1998-04-02 06:47:34.000000000 -0800 +++ mclibs-2006.dfsg.2/src/mclibs/isajet/isajet/hepevt.inc 2008-02-06 12:56:20.000000000 -0800 @@ -9,7 +9,7 @@ COMMON/HEPEVT/NEVHEP,NHEP,ISTHEP(NMXHEP),IDHEP(NMXHEP), $JMOHEP(2,NMXHEP),JDAHEP(2,NMXHEP),PHEP(5,NMXHEP),VHEP(4,NMXHEP) INTEGER NEVHEP,NHEP,ISTHEP,IDHEP,JMOHEP,JDAHEP - REAL PHEP,VHEP + DOUBLE PRECISION PHEP,VHEP SAVE /HEPEVT/ C... NEVHEP - event number C... NHEP - number of entries in this event debian/patches/310-define-dummy-fowl-routines.dpatch0000755000000000000000000001007712205714137017513 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 310-define-dummy-fowl-routines.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Define stub functions for routines in fowl that are supposed to be ## DP: user-defined. Also, rename START to FSTART to avoid name clash ## DP: with mathlib. @DPATCH@ diff -urNad cernlib-2005.05.09.dfsg~/src/phtools/fowl/Imakefile cernlib-2005.05.09.dfsg/src/phtools/fowl/Imakefile --- cernlib-2005.05.09.dfsg~/src/phtools/fowl/Imakefile 1996-04-26 07:13:52.000000000 +0000 +++ cernlib-2005.05.09.dfsg/src/phtools/fowl/Imakefile 2005-11-28 19:49:52.412989577 +0000 @@ -1,10 +1,12 @@ -SRCS_F= beamin.F breitw.F chmove.F delsq.F dumpme.F finish.F \ @@\ +SRCS_F= beamin.F breitw.F chmove.F delsq.F dumpme.F /* finish.F */ \ @@\ fmass.F fmassq.F fowl.F fowlmp.F fowlpr.F genev.F histey.F \ @@\ labsys.F pdk.F qqstrt.F rangnr.F redat2.F redata.F rotes2.F \ @@\ scout.F teedia.F tranch.F xplsdx.F +SRCS_C= dummy.c /*"fake" defn of start, user, finish to avoid undefined syms*/ + #if !defined(CERNLIB_UNIX) -SRCS_F := $(SRCS_F) start.F +SRCS_F := $(SRCS_F) /* start.F */ #endif SubdirLibraryTarget(fowl,NullParameter) diff -urNad cernlib-2005.05.09.dfsg~/src/phtools/fowl/dummy.c cernlib-2005.05.09.dfsg/src/phtools/fowl/dummy.c --- cernlib-2005.05.09.dfsg~/src/phtools/fowl/dummy.c 1970-01-01 00:00:00.000000000 +0000 +++ cernlib-2005.05.09.dfsg/src/phtools/fowl/dummy.c 2005-11-28 19:53:31.287496776 +0000 @@ -0,0 +1,39 @@ +/* Dummy file to avoid undefined symbols in the library */ +/* Kevin McCarty, 26 Apr 2004 */ +/* Last revised 13 Aug 2004 */ + +#include +#include + +/* Want the dummy functions to be weakly defined so they may be overridden + * without error. */ + +#define kludge(x) #x +#define stringify(x) kludge(x) +#define underline(x) dummy_ ## x + +#define DUMMY(UPPERNAME, fortranname_, returntype) \ +static returntype underline(fortranname_)() { print_dummy(#UPPERNAME); } \ +void fortranname_() \ + __attribute__ ((weak, alias (stringify(underline(fortranname_))) )) + +static void print_dummy(const char *function) +{ + fprintf(stderr, "phtools: Now in dummy %s routine.\n", function); + fprintf(stderr, + "If you see this message, you should define your own such routine.\n" + "For details, see " +#if defined (CERNLIB_DEBIAN) + "/usr/share/doc/libphtools2-dev/README.Debian\n" + "and " +#endif + "the CERN writeup for FOWL (available at the URL\n" + "http://wwwasdoc.web.cern.ch/wwwasdoc/Welcome.html ; scroll down\n" + "to the link for W505 - FOWL.)\n"); + exit(EXIT_FAILURE); +} + +DUMMY(FSTART, fstart_, void); +DUMMY(USER, user_, void); +DUMMY(FINISH, finish_, void); + diff -urNad cernlib-2005.05.09.dfsg~/src/phtools/fowl/fowlmp.F cernlib-2005.05.09.dfsg/src/phtools/fowl/fowlmp.F --- cernlib-2005.05.09.dfsg~/src/phtools/fowl/fowlmp.F 1996-03-22 16:42:46.000000000 +0000 +++ cernlib-2005.05.09.dfsg/src/phtools/fowl/fowlmp.F 2005-11-28 19:49:52.412989577 +0000 @@ -30,7 +30,7 @@ CALL REDATA IF(NEVTOT.LT.NGRP) NGRP = NEVTOT N2 = MIN (NEVTOT/NGRP, 30000) - CALL START + CALL FSTART DO 500 I2= 1, N2 DO 400 I= 1, NGRP IEVENT = IEVENT + 1 diff -urNad cernlib-2005.05.09.dfsg~/src/phtools/fowl/qqstrt.F cernlib-2005.05.09.dfsg/src/phtools/fowl/qqstrt.F --- cernlib-2005.05.09.dfsg~/src/phtools/fowl/qqstrt.F 1996-03-22 16:42:47.000000000 +0000 +++ cernlib-2005.05.09.dfsg/src/phtools/fowl/qqstrt.F 2005-11-28 19:49:52.412989577 +0000 @@ -38,6 +38,9 @@ COMMON +/TAPES / NTPIN ,NTPOUT ,NTPNCH ,NTPBIN ,KONSOL IF(JEVT.LE.0) RETURN +#if 0 +C Comment this section out; "which" is obsolete +C -- Kevin McCarty, for Debian, 26 April 2004 CALL WHICH(ISIT,VAL) WRITE(6,700)JEVT,VAL 700 FORMAT('0RANDOM NUMBER GENERATOR INITIATED TO',I12, @@ -46,6 +49,7 @@ C-- CDC 60-BIT WORD CDC )B10000000000000007171 .RO. TVEJ( = POL GOTO 200 +#endif 100 CONTINUE C FOR -CDC JUST MAKE SURE IT IS ODD IGLOP = JEVT debian/patches/802-create-shared-libraries.dpatch0000755000000000000000000001123312205714137016777 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 802-create-shared-libraries.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Actually implement the rules to create shared libraries. @DPATCH@ diff -urNad cernlib-2005.05.09.dfsg~/src/Imakefile cernlib-2005.05.09.dfsg/src/Imakefile --- cernlib-2005.05.09.dfsg~/src/Imakefile 2005-12-01 15:19:24.191267776 +0000 +++ cernlib-2005.05.09.dfsg/src/Imakefile 2005-12-01 15:20:10.310483251 +0000 @@ -15,6 +15,7 @@ #endif InstallLibSubdirs($(LIBDIRS)) +InstallSharedLibSubdirs($(LIBDIRS)) INCLUDEDIRS= $(LIBDIRS) cfortran diff -urNad cernlib-2005.05.09.dfsg~/src/mclibs/Imakefile cernlib-2005.05.09.dfsg/src/mclibs/Imakefile --- cernlib-2005.05.09.dfsg~/src/mclibs/Imakefile 2005-12-01 15:19:22.512623901 +0000 +++ cernlib-2005.05.09.dfsg/src/mclibs/Imakefile 2005-12-01 15:19:31.187783453 +0000 @@ -13,6 +13,7 @@ TestSubdirs($(LIBDIRS)) InstallLibSubdirs($(LIBDIRS)) +InstallSharedLibSubdirs($(LIBDIRS)) /* Again, purge Pythia, Jetset and dependents. */ INCLUDEDIRS= cojets eurodec herwig isajet pdf diff -urNad cernlib-2005.05.09.dfsg~/src/mclibs/cojets/Imakefile cernlib-2005.05.09.dfsg/src/mclibs/cojets/Imakefile --- cernlib-2005.05.09.dfsg~/src/mclibs/cojets/Imakefile 1996-05-06 20:06:50.000000000 +0000 +++ cernlib-2005.05.09.dfsg/src/mclibs/cojets/Imakefile 2005-12-01 15:19:31.187783453 +0000 @@ -12,6 +12,7 @@ SubdirLibraryTarget(cojets,$(LIBDIRS)) InstallLibrary(cojets,$(CERN_LIBDIR)) +InstallSharedLibrary(cojets,$(LIB_SONAME).$(CERN_LEVEL),$(CERN_SHLIBDIR)) SubdirDataFile($(LIBRARY),cojets.dat,data) diff -urNad cernlib-2005.05.09.dfsg~/src/mclibs/eurodec/Imakefile cernlib-2005.05.09.dfsg/src/mclibs/eurodec/Imakefile --- cernlib-2005.05.09.dfsg~/src/mclibs/eurodec/Imakefile 1996-05-06 20:06:55.000000000 +0000 +++ cernlib-2005.05.09.dfsg/src/mclibs/eurodec/Imakefile 2005-12-01 15:19:31.187783453 +0000 @@ -12,6 +12,7 @@ SubdirLibraryTarget(eurodec,$(LIBDIRS)) InstallLibrary(eurodec,$(CERN_LIBDIR)) +InstallSharedLibrary(eurodec,$(LIB_SONAME).$(CERN_LEVEL),$(CERN_SHLIBDIR)) SubdirDataFile($(LIBRARY),eurodec.dat,data) diff -urNad cernlib-2005.05.09.dfsg~/src/mclibs/herwig/Imakefile cernlib-2005.05.09.dfsg/src/mclibs/herwig/Imakefile --- cernlib-2005.05.09.dfsg~/src/mclibs/herwig/Imakefile 1997-01-06 17:06:41.000000000 +0000 +++ cernlib-2005.05.09.dfsg/src/mclibs/herwig/Imakefile 2005-12-01 15:19:31.187783453 +0000 @@ -10,6 +10,7 @@ InstallLibrary(herwig59,$(CERN_LIBDIR)) InstallLibraryAlias(herwig59,herwig,$(CERN_LIBDIR)) +InstallSharedLibrary(herwig59,$(LIB_SONAME).$(CERN_LEVEL),$(CERN_SHLIBDIR)) TestSubdirs(test) diff -urNad cernlib-2005.05.09.dfsg~/src/mclibs/isajet/Imakefile cernlib-2005.05.09.dfsg/src/mclibs/isajet/Imakefile --- cernlib-2005.05.09.dfsg~/src/mclibs/isajet/Imakefile 2001-10-08 14:03:02.000000000 +0000 +++ cernlib-2005.05.09.dfsg/src/mclibs/isajet/Imakefile 2005-12-01 15:19:31.187783453 +0000 @@ -12,6 +12,7 @@ SubdirLibraryTarget(isajet758,$(LIBDIRS)) InstallLibrary(isajet758,$(CERN_LIBDIR)) +InstallSharedLibrary(isajet758,$(LIB_SONAME).$(CERN_LEVEL),$(CERN_SHLIBDIR)) SubdirDataFile($(LIBRARY),isajet.dat,data) diff -urNad cernlib-2005.05.09.dfsg~/src/mclibs/pdf/Imakefile cernlib-2005.05.09.dfsg/src/mclibs/pdf/Imakefile --- cernlib-2005.05.09.dfsg~/src/mclibs/pdf/Imakefile 2000-05-29 14:49:59.000000000 +0000 +++ cernlib-2005.05.09.dfsg/src/mclibs/pdf/Imakefile 2005-12-01 15:19:31.188783241 +0000 @@ -15,6 +15,7 @@ SubdirLibraryTarget(pdflib804,spdf npdf) InstallLibrary(pdflib804,$(CERN_LIBDIR)) +InstallSharedLibrary(pdflib804,$(LIB_SONAME).$(CERN_LEVEL),$(CERN_SHLIBDIR)) TestSubdirs(tpdf) diff -urNad cernlib-2005.05.09.dfsg~/src/mclibs/photos/Imakefile cernlib-2005.05.09.dfsg/src/mclibs/photos/Imakefile --- cernlib-2005.05.09.dfsg~/src/mclibs/photos/Imakefile 1999-03-26 10:52:23.000000000 +0000 +++ cernlib-2005.05.09.dfsg/src/mclibs/photos/Imakefile 2005-12-01 15:19:31.188783241 +0000 @@ -15,6 +15,7 @@ SubdirLibraryTarget(photos202,code) InstallLibrary(photos202,$(CERN_LIBDIR)) +InstallSharedLibrary(photos202,$(LIB_SONAME).$(CERN_LEVEL),$(CERN_SHLIBDIR)) TestSubdirs(test) diff -urNad cernlib-2005.05.09.dfsg~/src/phtools/Imakefile cernlib-2005.05.09.dfsg/src/phtools/Imakefile --- cernlib-2005.05.09.dfsg~/src/phtools/Imakefile 1996-11-14 16:44:33.000000000 +0000 +++ cernlib-2005.05.09.dfsg/src/phtools/Imakefile 2005-12-01 15:19:31.189783029 +0000 @@ -11,7 +11,7 @@ SubdirLibraryTarget(phtools,$(LIBDIRS)) InstallLibrary(phtools,$(CERN_LIBDIR)) -InstallSharedLibrary(phtools,$(CERN_LEVEL),$(CERN_SHLIBDIR)) +InstallSharedLibrary(phtools,$(LIB_SONAME).$(CERN_LEVEL),$(CERN_SHLIBDIR)) TestSubdirs(wicoexam) debian/patches/306-patch-assert.h-for-makedepend.dpatch0000755000000000000000000001262612205714137020027 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 306-patch-assert.h-for-makedepend.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Include local copy of assert.h with a workaround for a bug of ## DP: makedepend (cf. Debian bug # 171908). @DPATCH@ diff -urNad cernlib-2005.05.09/src/include/assert.h /tmp/dpep.9sKNsJ/cernlib-2005.05.09/src/include/assert.h --- cernlib-2005.05.09/src/include/assert.h 1969-12-31 19:00:00.000000000 -0500 +++ /tmp/dpep.9sKNsJ/cernlib-2005.05.09/src/include/assert.h 2005-06-09 12:50:41.751880968 -0400 @@ -0,0 +1,153 @@ +#ifndef CERNLIB_LINUX +# include "/usr/include/assert.h" +#else + +/* Copyright (C) 1991,1992,1994-2001,2003 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, write to the Free + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA + 02111-1307 USA. */ + +/* + * ISO C99 Standard: 7.2 Diagnostics + */ + +#ifdef _ASSERT_H + +# undef _ASSERT_H +# undef assert +# undef __ASSERT_VOID_CAST + +# ifdef __USE_GNU +# undef assert_perror +# endif + +#endif /* assert.h */ + +#define _ASSERT_H 1 +#include + +#if defined __cplusplus && __GNUC_PREREQ (2,95) +# define __ASSERT_VOID_CAST static_cast +#else +# define __ASSERT_VOID_CAST (void) +#endif + +/* void assert (int expression); + + If NDEBUG is defined, do nothing. + If not, and EXPRESSION is zero, print an error message and abort. */ + +#ifdef NDEBUG + +# define assert(expr) (__ASSERT_VOID_CAST (0)) + +/* void assert_perror (int errnum); + + If NDEBUG is defined, do nothing. If not, and ERRNUM is not zero, print an + error message with the error text for ERRNUM and abort. + (This is a GNU extension.) */ + +# ifdef __USE_GNU +# define assert_perror(errnum) (__ASSERT_VOID_CAST (0)) +# endif + +#else /* Not NDEBUG. */ + +#ifndef _ASSERT_H_DECLS +#define _ASSERT_H_DECLS +__BEGIN_DECLS + +/* This prints an "Assertion failed" message and aborts. */ +extern void __assert_fail (__const char *__assertion, __const char *__file, + unsigned int __line, __const char *__function) + __THROW __attribute__ ((__noreturn__)); + +/* Likewise, but prints the error text for ERRNUM. */ +extern void __assert_perror_fail (int __errnum, __const char *__file, + unsigned int __line, + __const char *__function) + __THROW __attribute__ ((__noreturn__)); + + +/* The following is not at all used here but needed for standard + compliance. */ +extern void __assert (const char *__assertion, const char *__file, int __line) + __THROW __attribute__ ((__noreturn__)); + + +__END_DECLS +#endif /* Not _ASSERT_H_DECLS */ + +/* For the macro definition we use gcc's __builtin_expect if possible + to generate good code for the non-error case. gcc 3.0 is a good + enough estimate for when the feature became available. */ +# if __GNUC_PREREQ (3, 0) +# define assert(expr) \ + (__ASSERT_VOID_CAST (__builtin_expect (!!(expr), 1) ? 0 : \ + (__assert_fail (__STRING(expr), __FILE__, __LINE__, \ + __ASSERT_FUNCTION), 0))) +# else +# define assert(expr) \ + (__ASSERT_VOID_CAST ((expr) ? 0 : \ + (__assert_fail (__STRING(expr), __FILE__, __LINE__, \ + __ASSERT_FUNCTION), 0))) +# endif + +# ifdef __USE_GNU +# if __GNUC_PREREQ (3, 0) +# define assert_perror(errnum) \ + (__ASSERT_VOID_CAST (__builtin_expect (!(errnum), 1) ? 0 : \ + (__assert_perror_fail ((errnum), __FILE__, __LINE__, \ + __ASSERT_FUNCTION), 0))) +# else +# define assert_perror(errnum) \ + (__ASSERT_VOID_CAST (!(errnum) ? 0 : \ + (__assert_perror_fail ((errnum), __FILE__, __LINE__, \ + __ASSERT_FUNCTION), 0))) +# endif +# endif + +/* Version 2.4 and later of GCC define a magical variable `__PRETTY_FUNCTION__' + which contains the name of the function currently being defined. + This is broken in G++ before version 2.6. + C9x has a similar variable called __func__, but prefer the GCC one since + it demangles C++ function names. */ + +/* The following commented-out line breaks makedepend (bug # 171908); a local + * patched version of assert.h is therefore included. + * --Kevin McCarty, for Debian */ +/* # if defined __cplusplus ? __GNUC_PREREQ (2, 6) : __GNUC_PREREQ (2, 4) */ + +/* begin fix to work around Debian Bug # 171908 */ +# if defined __cplusplus +# if __GNUC_PREREQ (2, 6) +# define __ASSERT_FUNCTION __PRETTY_FUNCTION__ +# endif +# elif __GNUC_PREREQ (2, 4) +/* end fix */ + +# define __ASSERT_FUNCTION __PRETTY_FUNCTION__ +# else +# if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L +# define __ASSERT_FUNCTION __func__ +# else +# define __ASSERT_FUNCTION ((__const char *) 0) +# endif +# endif + +#endif /* NDEBUG. */ + +#endif /* CERNLIB_LINUX */ debian/patches/806-bump-mathlib-and-dependents-sonames.dpatch0000755000000000000000000000477512205714137021252 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 806-bump-mathlib-and-dependents-sonames.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Bump so versions of mathlib and dependents since it is now compiled ## DP: against liblapack3 instead of liblapack2. @DPATCH@ diff -urNad cernlib-2005.05.09.dfsg~/src/mclibs/cojets/Imakefile cernlib-2005.05.09.dfsg/src/mclibs/cojets/Imakefile --- cernlib-2005.05.09.dfsg~/src/mclibs/cojets/Imakefile 2005-11-23 15:49:19.723162159 +0000 +++ cernlib-2005.05.09.dfsg/src/mclibs/cojets/Imakefile 2005-11-23 15:49:27.431512287 +0000 @@ -2,6 +2,8 @@ #define IHaveSubdirs #define PassCDebugFlags +export LIB_SONAME := 2 + AllTarget(cojets) LIBDIRS= code cojdata cojtapew diff -urNad cernlib-2005.05.09.dfsg~/src/mclibs/herwig/Imakefile cernlib-2005.05.09.dfsg/src/mclibs/herwig/Imakefile --- cernlib-2005.05.09.dfsg~/src/mclibs/herwig/Imakefile 2005-11-23 15:49:19.724161945 +0000 +++ cernlib-2005.05.09.dfsg/src/mclibs/herwig/Imakefile 2005-11-23 15:49:27.432512073 +0000 @@ -2,6 +2,8 @@ #define IHaveSubdirs #define PassCDebugFlags +export LIB_SONAME := 2 + SUBDIRS= code doc test herwig59 TopOfPackage(herwig59) diff -urNad cernlib-2005.05.09.dfsg~/src/mclibs/isajet/Imakefile cernlib-2005.05.09.dfsg/src/mclibs/isajet/Imakefile --- cernlib-2005.05.09.dfsg~/src/mclibs/isajet/Imakefile 2005-11-23 15:49:19.724161945 +0000 +++ cernlib-2005.05.09.dfsg/src/mclibs/isajet/Imakefile 2005-11-23 15:49:27.432512073 +0000 @@ -3,6 +3,8 @@ #define IHaveSubdirs #define PassCDebugFlags +export LIB_SONAME := 3 + LIBDIRS= code isadata isasusy isarun isatape SUBDIRS= $(LIBDIRS) test data isajet diff -urNad cernlib-2005.05.09.dfsg~/src/mclibs/pdf/Imakefile cernlib-2005.05.09.dfsg/src/mclibs/pdf/Imakefile --- cernlib-2005.05.09.dfsg~/src/mclibs/pdf/Imakefile 2005-11-23 15:49:19.724161945 +0000 +++ cernlib-2005.05.09.dfsg/src/mclibs/pdf/Imakefile 2005-11-23 15:49:27.432512073 +0000 @@ -6,6 +6,8 @@ IMAKE_DEFINES=-DFortranDoesCpp=NO #endif +export LIB_SONAME := 2 + AllTarget(pdflib804) SUBDIRS= spdf npdf tpdf pdf diff -urNad cernlib-2005.05.09.dfsg~/src/phtools/Imakefile cernlib-2005.05.09.dfsg/src/phtools/Imakefile --- cernlib-2005.05.09.dfsg~/src/phtools/Imakefile 2005-11-23 15:49:19.725161731 +0000 +++ cernlib-2005.05.09.dfsg/src/phtools/Imakefile 2005-11-23 15:49:27.432512073 +0000 @@ -2,6 +2,8 @@ #define IHaveSubdirs #define PassCDebugFlags +export LIB_SONAME := 2 + LIBDIRS= genbod fowl wico SUBDIRS= $(LIBDIRS) wicoexam debian/patches/204-compile-isajet-with-isasrt.dpatch0000755000000000000000000000220112205714137017466 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 204-compile-isajet-with-isasrt.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Include isasrt in the Isajet library, by request (cf. ## DP: http://bugs.debian.org/260469 ) @DPATCH@ diff -urNad cernlib-2005.05.09/src/mclibs/isajet/code/Imakefile /tmp/dpep.PM12lm/cernlib-2005.05.09/src/mclibs/isajet/code/Imakefile --- cernlib-2005.05.09/src/mclibs/isajet/code/Imakefile 2001-10-08 09:06:49.000000000 -0400 +++ /tmp/dpep.PM12lm/cernlib-2005.05.09/src/mclibs/isajet/code/Imakefile 2005-06-09 14:25:29.621215677 -0400 @@ -9,7 +9,7 @@ fortop.F frgjet.F frgmnt.F gamma.F getpt.F gettot.F heavyx.F \ @@\ hevolv.F higgs.F idanti.F idgen.F iframs.F inisap.F ipartns.F \ @@\ ipjset.F iprtns.F irmov0.F isabeg.F isaend.F isaevt.F isaini.F \ @@\ - isajet.F ispjet.F istrad.F iswdky.F jetgen.F \ @@\ + isajet.F isasrt.F ispjet.F istrad.F iswdky.F jetgen.F \ @@\ label.F lboost.F logerr.F \ @@\ logic.F logp.F logphi.F logphw.F logpt.F logqm.F logqt.F logthw.F \ @@\ logx.F logxw.F logyth.F logyw.F lstsq.F mbias.F mbset.F nogood.F \ @@\ debian/copyright.in0000644000000000000000000001232112205714137011527 0ustar This package was debianized by Kevin B. McCarty and Lifeng Sun . It was downloaded from the web page http://cernlib.web.cern.ch/cernlib/download/2006_source/tar/2006_src.tar.gz The very large file 2006_src.tar.gz was split up into individual modules, from which non-free files were removed, of which the relevant ones have been recompressed in the "upstream" directory of the mclibs source package. See the file debian/README.Debian-source in the source package for a detailed description of this process. COPYRIGHT --------- CERNLIB, including the CERN Monte Carlo libraries, is copyright (C) CERN and others. As of this writing, 08 February 2008, the web page http://wwwasd.web.cern.ch/wwwasd/cernlib/conditions.html (which gives the terms under which CERNLIB may be used) states: CERNLIB Availability (C) Copyright CERN except where explicitly stated otherwise. Permission to use and/or redistribute this work is granted under the terms of the GNU General Public License. FLUKA routines included in GEANT3 are joint copyright of INFN and CERN and are not licensed under the GPL: permission to use and/or redistribute outside GEANT3 should be negotiated. The software and documentation made available under the terms of this license are provided with no warranty. Last modified: 18-March-2004 The aforementioned FLUKA routines have been excised from the CERNLIB source code and binary packages distributed by Debian. It should also be noted that the above license supersedes the non-free license stated in the file located at /usr/share/doc/libpdflib804-2-dev/pdfdoc.txt.gz (package libpdflib804-2-dev) mclibs-$VERSION/src/mclibs/pdf/doc/pdfdoc.dat (unpacked Debian source). There is some ambiguity as to whether CERN intended to have CERNLIB available specifically under GPL version 2 (the current version at the time the above- mentioned web page was written) or always under the current version. (The text "GNU General Public License" in the web page quoted above is a hyperlink to http://www.gnu.org/copyleft/gpl.html which, as of this writing, references GPL version 3.) I have requested clarification from the upstream maintainer. In the meantime, it should be noted that the orig.tar.gz files for CERNLIB in Debian were obtained from the upstream web site prior to the release of GPL version 3. It therefore seems to me to be safe to assume that re-distribution of CERNLIB from the Debian source packages is permissible under the terms either of GPL version 2 or of the current GPL version, at the re-distributor's option. On Debian systems, the complete text of the current version of the GNU General Public License can be found in the file `/usr/share/common-licenses/GPL-3'. The text of version 2 can be found at `/usr/share/common-licenses/GPL-2'. EXCEPTIONS ---------- The files jetset74.h and lepto62.h in the montecarlo-base binary package, and all files included in the tarball upstream/src_cfortran.tar.gz in the mclibs source package, are instead Copyright (C) 1990-2003 Burkhard Burow, , http://www-zeus.desy.de/~burow/cfortran/index.htm and are licensed (at your choice) under either the GNU Library General Public License or an alternate non-free license. On Debian systems, the complete text of the GNU Library General Public License can be found in the file `/usr/share/common-licenses/LGPL-2'. The alternate license for the cfortran-related files is as follows: THIS PACKAGE, I.E. CFORTRAN.H, THIS DOCUMENT, AND THE CFORTRAN.H EXAMPLE PROGRAMS ARE PROPERTY OF THE AUTHOR WHO RESERVES ALL RIGHTS. THIS PACKAGE AND THE CODE IT PRODUCES MAY BE FREELY DISTRIBUTED WITHOUT FEES, SUBJECT TO THE FOLLOWING RESTRICTIONS: - YOU MUST ACCOMPANY ANY COPIES OR DISTRIBUTION WITH THIS (UNALTERED) NOTICE. - YOU MAY NOT RECEIVE MONEY FOR THE DISTRIBUTION OR FOR ITS MEDIA (E.G. TAPE, DISK, COMPUTER, PAPER.) - YOU MAY NOT PREVENT OTHERS FROM COPYING IT FREELY. - YOU MAY NOT DISTRIBUTE MODIFIED VERSIONS WITHOUT CLEARLY DOCUMENTING YOUR CHANGES AND NOTIFYING THE AUTHOR. - YOU MAY NOT MISREPRESENTED THE ORIGIN OF THIS SOFTWARE, EITHER BY EXPLICIT CLAIM OR BY OMISSION. THE INTENT OF THE ABOVE TERMS IS TO ENSURE THAT THE CFORTRAN.H PACKAGE NOT BE USED FOR PROFIT MAKING ACTIVITIES UNLESS SOME ROYALTY ARRANGEMENT IS ENTERED INTO WITH ITS AUTHOR. THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. THE AUTHOR IS NOT RESPONSIBLE FOR ANY SUPPORT OR SERVICE OF THE CFORTRAN.H PACKAGE. Burkhard Burow burow@desy.de DELETIA ------- The following files and directories have been removed from the Debian source package of CERNLIB due to license ambiguities or incompatibilities with the GPL (e.g. positive BSD advertising clause). If needed, they may be found in the upstream source tarballs. Please see the README.Debian file of the montecarlo-base package for more information on obtaining the Ariadne, Fritiof, Jetset, Lepto, and Pythia libraries. DEADPOOL_LIST_GOES_HERE debian/compat0000644000000000000000000000000212205714137010366 0ustar 5 debian/control0000644000000000000000000003341112205714137010575 0ustar Source: mclibs Maintainer: Debian Science Maintainers Uploaders: Lifeng Sun Standards-Version: 3.9.4 Priority: optional Section: science Homepage: http://wwwasd.web.cern.ch/wwwasd/cernlib/mc.html Build-Depends: dpkg-dev (>= 1.13.19), patch, mawk | gawk, xutils-dev, debhelper (>= 5.0.0), gfortran (>= 4:4.3), libblas-dev, liblapack-dev, cernlib-base-dev (>= 20061220+dfsg3-3), libmathlib2-dev (>= 2006.dfsg.2-7), texlive-latex-base Vcs-Git: git://anonscm.debian.org/debian-science/packages/mclibs.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/mclibs.git Package: cernlib-montecarlo Architecture: all Depends: cernlib-base (>= 2006.dfsg.2-7), montecarlo-base (= ${source:Version}), libcojets2-dev (>= 2006.dfsg.2-4), libeurodec1-dev (>= 2006.dfsg.2-4), libherwig59-2-dev (>= 2006.dfsg.2-4), libpdflib804-2-dev (>= 2006.dfsg.2-4), libphotos202-dev (>= 2006.dfsg.2-4), libphtools2-dev (>= 2006.dfsg.2-4), libisajet758-3-dev (>= 2006.dfsg.2-4), montecarlo-data (>= 2006.dfsg.2), ${misc:Depends} Description: CERNLIB Monte Carlo libraries CERNLIB is a suite of data analysis tools and libraries created for use in physics experiments, but also with applications to other fields such as the biological sciences. . This metapackage provides various Monte Carlo libraries included in CERNLIB (both shared and static). Likely only physicists will be interested in these packages. Note that the GEANT 3.21 framework is not included, but it may be obtained by also installing the geant321 Debian package. . Be aware that the libraries of Ariadne, Fritiof, Jetset, Lepto, and Pythia are not available within Debian due to licensing issues; see the README.Debian file in the montecarlo-base package for information on obtaining them. Package: libcojets2-dev Architecture: any Section: libdevel Depends: cernlib-base-dev (>= 2006.dfsg.2-7), libmathlib2-dev (>= 2006.dfsg.2-7), libcojets2-gfortran (= ${binary:Version}), ${misc:Depends} Recommends: montecarlo-data (>= 2006.dfsg.2) Replaces: libcojets1-dev Breaks: libcojets1-dev (<= 2004.11.04.dfsg-0sarge1) Description: [Physics] COJETS p-p and pbar-p interaction Monte Carlo COJETS is a Monte Carlo library which simulates pbar-p and p-p interactions at high energy. The interaction process is first calculated at the parton level by means of perturbative QCD and the Weinberg-Salam model for electroweak interactions. Partons are then independently fragmented into jets of hadrons, according to the Field-Feynman model, and the beam jets contribution is added, according to a longitudinal phase-space model. Multiple QCD radiation of initial and final partons is included. . This is the static version of the library. The package also includes FORTRAN header files and documentation for COJETS. Package: libcojets2-gfortran Architecture: any Section: libs Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, montecarlo-base, ${misc:Depends} Recommends: montecarlo-data (>= 2006.dfsg.2) Description: [Physics] COJETS p-p and pbar-p interaction Monte Carlo library COJETS is a Monte Carlo library which simulates pbar-p and p-p interactions at high energy. The interaction process is first calculated at the parton level by means of perturbative QCD and the Weinberg-Salam model for electroweak interactions. Partons are then independently fragmented into jets of hadrons, according to the Field-Feynman model, and the beam jets contribution is added, according to a longitudinal phase-space model. Multiple QCD radiation of initial and final partons is included. . Note that in order to compile and link programs against this library, you must also install the libcojets2-dev package. Package: libeurodec1-dev Architecture: any Section: libdevel Depends: cernlib-base-dev (>= 2006.dfsg.2-7), cfortran (>= 4.4-10), libc6-dev | libc-dev, libeurodec1-gfortran (= ${binary:Version}), ${misc:Depends} Recommends: montecarlo-data (>= 2006.dfsg.2) Description: [Physics] Monte Carlo library for quark / heavy lepton decays Eurodec is a general purpose Monte Carlo library for the fragmentation and decay of quarks, di-quarks, heavy leptons, etc. It can be used with the included event generator EUROJET, or with your own event generator. . This is the static version of the library. FORTRAN header files are also included. Package: libeurodec1-gfortran Architecture: any Section: libs Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, cernlib-base (>= 2006.dfsg.2-7), montecarlo-base, ${misc:Depends} Recommends: montecarlo-data (>= 2006.dfsg.2) Description: [Physics] Monte Carlo library for quark and heavy lepton decays Eurodec is a general purpose Monte Carlo library for the fragmentation and decay of quarks, di-quarks, heavy leptons, etc. It can be used with the included event generator EUROJET, or with your own event generator. . Note that in order to compile and link programs against this library, you must also install the libeurodec1-dev package. Package: libherwig59-2-dev Architecture: any Section: libdevel Depends: cernlib-base-dev (>= 2006.dfsg.2-7), libpdflib804-2-dev (= ${binary:Version}), libherwig59-2-gfortran (= ${binary:Version}), ${misc:Depends} Replaces: libherwig59-dev Breaks: libherwig59-dev (<= 2004.11.04.dfsg-0sarge1) Description: [Physics] Monte Carlo event generator for hadrons (development) HERWIG is a general-purpose event generator for high energy hadronic processes, with particular emphasis on the detailed simulation of QCD parton showers. . This is the static version of the library. Also included are a FORTRAN header file and some documentation. Package: libherwig59-2-gfortran Architecture: any Section: libs Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, montecarlo-base, ${misc:Depends} Description: [Physics] Monte Carlo event generator simulating hadronic events HERWIG is a general-purpose event generator for high energy hadronic processes, with particular emphasis on the detailed simulation of QCD parton showers. . Note that in order to compile and link programs against this library, you must also install the libherwig59-2-dev package. Package: libisajet758-3-dev Architecture: any Section: libdevel Depends: libpdflib804-2-dev (= ${binary:Version}), libisajet758-3-gfortran (= ${binary:Version}), ${misc:Depends} Recommends: montecarlo-data (>= 2006.dfsg.2) Replaces: libisajet758-dev, libisajet758-2-dev Breaks: libisajet758-dev (<= 2004.11.04.dfsg-0sarge1), libisajet758-2-dev (<= 2006.dfsg.2-3) Description: [Physics] Monte Carlo generator for proton/electron reactions ISAJET is a Monte Carlo library which simulates p-p, pbar-p, and e+ e- interactions at high energies. The library is based on perturbative QCD combined with phenomenological models for parton and beam jet fragmentation. ISAJET incorporates ISASUSY, which evaluates branching ratios for the minimal supersymmetric extension of the Standard Model. . This is the static version of the library. Also included are FORTRAN header files and some documentation. Package: libisajet758-3-gfortran Architecture: any Section: libs Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, montecarlo-base, ${misc:Depends} Recommends: montecarlo-data (>= 2006.dfsg.2) Description: [Physics] Monte Carlo generator for proton / electron reactions ISAJET is a Monte Carlo library which simulates p-p, pbar-p, and e+ e- interactions at high energies. The library is based on perturbative QCD combined with phenomenological models for parton and beam jet fragmentation. ISAJET incorporates ISASUSY, which evaluates branching ratios for the minimal supersymmetric extension of the Standard Model. . Note that in order to compile and link programs against this library, you must also install the libisajet758-3-dev package. Package: libpdflib804-2-dev Architecture: any Section: libdevel Depends: cernlib-base-dev (>= 2006.dfsg.2-7), libmathlib2-dev (>= 2006.dfsg.2-7), libpdflib804-2-gfortran (= ${binary:Version}), ${misc:Depends} Replaces: libpdflib804-dev Breaks: libpdflib804-dev (<= 2004.11.04.dfsg-0sarge1) Description: [Physics] Comprehensive library of parton density functions The PDFLIB package gathers about 100 different sets of Parton Density Functions into a comprehensive library in a consistent way. Density functions are available for the nucleon, pion and photon. The library also allows the calculation of the strong force coupling constant to first or second order at a given value of Q-squared. . This is the static version of the library. Also included are FORTRAN header files and some documentation. Package: libpdflib804-2-gfortran Architecture: any Section: libs Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, montecarlo-base, ${misc:Depends} Description: [Physics] Comprehensive library of parton density functions The PDFLIB package gathers about 100 different sets of Parton Density Functions into a comprehensive library in a consistent way. Density functions are available for the nucleon, pion and photon. The library also allows the calculation of the strong force coupling constant to first or second order at a given value of Q-squared. . Note that in order to compile and link programs against this library, you must also install the libpdflib804-2-dev package. Package: libphotos202-1-gfortran Architecture: any Section: libs Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, cernlib-base (>= 2006.dfsg.2-7), montecarlo-base, ${misc:Depends} Description: [Physics] Monte Carlo simulation of photon radiation in decays The PHOTOS library simulates QED photon radiative corrections in electromagnetic decays. The library is universal; it allows for easy interface with any program generating decays of any particle. It can be used to estimate the size of the QED bremsstrahlung in leading-logarithmic approximation. The proper soft photon behavior is also reproduced. . Note that in order to compile and link programs against this library, you must also install the libphotos202-dev package. Package: libphotos202-dev Architecture: any Section: libdevel Depends: cernlib-base-dev (>= 2006.dfsg.2-7), cfortran (>= 4.4-10), libc6-dev | libc-dev, libphotos202-1-gfortran (= ${binary:Version}), ${misc:Depends} Description: [Physics] Monte Carlo simulation of photon radiation in decays The PHOTOS library simulates QED photon radiative corrections in electromagnetic decays. The library is universal; it allows for easy interface with any program generating decays of any particle. It can be used to estimate the size of the QED bremsstrahlung in leading-logarithmic approximation. The proper soft photon behavior is also reproduced. . This is the static version of the library. Package: libphtools2-dev Architecture: any Section: libdevel Depends: cernlib-base-dev (>= 2006.dfsg.2-7), libmathlib2-dev (>= 2006.dfsg.2-7), libphtools2-gfortran (= ${binary:Version}), ${misc:Depends} Replaces: libphtools1-dev Breaks: libphtools1-dev (<= 2004.11.04.dfsg-0sarge1) Description: [Physics] General purpose Monte Carlo routines (development files) This library contains three main routines. FOWL allows calculation of phase space distributions arising from particle interactions, generated in a Lorentz-invariant way. GENBOD is an N-body event generator, taking as input the center-of-mass energy, number and masses of outgoing particles. WICO traces a ray geometrically in a "Winston Cone" light concentrator. . This is the static version of the library. Package: libphtools2-gfortran Architecture: any Section: libs Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, montecarlo-base, ${misc:Depends} Description: [Physics] General purpose Monte Carlo routines This library contains three main routines. FOWL allows calculation of phase space distributions arising from particle interactions, generated in a Lorentz-invariant way. GENBOD is an N-body event generator, taking as input the center-of-mass energy, number and masses of outgoing particles. WICO traces a ray geometrically in a "Winston Cone" light concentrator. . Note that in order to compile and link programs against this library, you must also install the libphtools2-dev package. Package: montecarlo-base Architecture: all Multi-Arch: foreign Pre-Depends: ${misc:Pre-Depends} Depends: cernlib-base (>= 2006.dfsg.2-7), ${misc:Depends} Description: [Physics] Common files for CERNLIB Monte Carlo libraries CERNLIB is a suite of data analysis tools and libraries created for use in physics experiments, but also with applications to other fields such as the biological sciences. . This package contains common files for CERNLIB Monte Carlo libraries, including a README.Debian file that explains how to obtain the libraries of Ariadne, Fritiof, Jetset, Lepto, and Pythia. Package: montecarlo-data Architecture: all Depends: cernlib-base (>= 2006.dfsg.2-7), montecarlo-base (= ${source:Version}), ${misc:Depends} Description: [Physics] data for CERNLIB Monte Carlo libraries CERNLIB is a suite of data analysis tools and libraries created for use in physics experiments, but also with applications to other fields such as the biological sciences. . This package provides data files for three Monte Carlo frameworks: COJETS, Eurodec, and ISAJET. Although these data files are not strictly required (programs based on these frameworks may use locally supplied data instead), most people using one of these Monte Carlo generators will probably want to install this package. . The paths to the data files typically must be supplied to programs that are written to use these frameworks, either in the source code or interactively at runtime. This package places the data files cojets.dat, eurodec.dat and isajet.dat into the directory /usr/share/montecarlo-data. debian/dh/0000755000000000000000000000000012205714137007563 5ustar debian/dh/montecarlo-base.dirs0000644000000000000000000000002512205714137013516 0ustar usr/include/cfortran debian/dh/libherwig59-2-dev.install0000644000000000000000000000020612205714137014216 0ustar debian/tmp/usr/lib/*/libherwig59.a debian/tmp/usr/lib/*/libherwig59.so debian/tmp/usr/include/herwig59/ debian/tmp/usr/include/herwig debian/dh/libisajet758-3-dev.docs0000644000000000000000000000032512205714137013563 0ustar debian/tmp/usr/share/doc/montecarlo-doc/isajet/isajet.ps debian/tmp/usr/share/doc/montecarlo-doc/isajet/isasusy.txt debian/tmp/usr/share/doc/montecarlo-doc/isajet/isajet-zebra.txt debian/dh/README.examples.isajet debian/dh/libcojets2-dev.doc-base0000644000000000000000000000045212205714137013777 0ustar Document: cojets-manual Title: COJETS 5.15 Author: Roberto Odorico Abstract: Description of the COJETS Monte Carlo simulation framework, which simulates collisions of protons and antiprotons at high energy. Section: Science/Physics Format: text Files: /usr/share/doc/libcojets2-dev/cojets.txt.gz debian/dh/libpdflib804-2-dev.docs0000644000000000000000000000007212205714137013532 0ustar debian/tmp/usr/share/doc/montecarlo-doc/pdflib/pdfdoc.txt debian/dh/libherwig59-2-dev.docs0000644000000000000000000000007412205714137013503 0ustar debian/tmp/usr/share/doc/montecarlo-doc/herwig/herwig59.txt debian/dh/libpdflib804-2-dev.doc-base0000644000000000000000000000051212205714137014256 0ustar Document: pdflib-manual Title: PDFLIB User's Manual Author: H. Plothow-Besch Abstract: PDFLIB is an integrated package of parton density functions that brings together about 100 different sets of PDFs of the nucleon, pion and photon. Section: Science/Physics Format: text Files: /usr/share/doc/libpdflib804-2-dev/pdfdoc.txt.gz debian/dh/libeurodec1-dev.install0000644000000000000000000000014512205714137014125 0ustar debian/tmp/usr/lib/*/libeurodec.a debian/tmp/usr/lib/*/libeurodec.so debian/tmp/usr/include/eurodec/ debian/dh/libherwig59-2-dev.doc-base0000644000000000000000000000070512205714137014231 0ustar Document: herwig-manual Title: HERWIG Author: G. Marchesini, I.G. Knowles, M.H. Seymour, B.R. Webber Abstract: Summary of the HERWIG Monte Carlo simulation library, an event generator for simulating Hadron Emission Reactions With Interfering Gluons. It places particular emphasis on the detailed simulation of quantum chromodynamic (QCD) parton showers. Section: Science/Physics Format: text Files: /usr/share/doc/libherwig59-2-dev/herwig59.txt.gz debian/dh/montecarlo-base.README.debian0000644000000000000000000000327012205714137014740 0ustar Notes on CERNLIB Monte Carlo libraries: 1) Because the upstream authors of Pythia/Jetset never gave permission for CERN to release them under the GPL, the following Monte Carlo libraries have been removed from the set packaged by Debian. They may be obtained either by installing the ancis and montecarlo-installer-data packages, then running the commands given in /usr/share/doc/montecarlo-installer-data/README ; or by downloading and compiling source code from the web sites listed below. Please be aware that not all of these libraries have licenses that are clearly defined or DFSG-compatible. Ariadne: http://www.thep.lu.se/~leif/ariadne/index.html Pythia/Jetset: http://www.thep.lu.se/~torbjorn/Pythia.html Lepto: http://www3.tsl.uu.se/thep/lepto/index.html Fritiof: http://www.thep.lu.se/ftp/pub/LundPrograms/Fritiof/ The montecarlo-installer-data and ancis packages are not official parts of Debian; they may be obtained by adding the following to your /etc/apt/sources.list : deb http://people.debian.org/~kmccarty/ancis/ unstable main contrib deb-src http://people.debian.org/~kmccarty/ancis/ unstable main contrib (Substitute "unstable" with "stable" or "testing" if appropriate.) Please note that I cannot guarantee the above URLs will continue to be valid forever. 2) The documentation available for Monte Carlo libraries comes from the CERNLIB source code. Much of it has not been updated for years (the COJETS manual, e.g., still describes the use of punch cards), and much of it is incomplete or missing. For more information about a particular library, I suggest you try the online documents at http://wwwinfo.cern.ch/asd/cernlib/ . --Kevin McCarty , 30 Dec 2003 debian/dh/README.examples.cojets0000644000000000000000000000135712205714137013554 0ustar Building the COJETS example --------------------------- cd /usr/share/doc/libcojets2-dev/examples/ gfortran -DCERNLIB_DOUBLE *.F `cernlib cojets` -o $HOME/cojets Running the COJETS example -------------------------- cd $HOME # If you use bash or some other sh-like shell, use the following line: export GFORTRAN_STDIN_UNIT=1 # If you use csh or tcsh, instead use the following line: setenv GFORTRAN_STDIN_UNIT 1 ./cojets < /usr/share/montecarlo-data/cojets.dat (The example presumes that you have installed the recommended montecarlo-data Debian package containing the cojets.dat file.) For detailed explanations, please refer to the COJETS manual shipped in the documentation of this Debian package. -- Kevin B. McCarty debian/dh/libcojets2-dev.docs0000644000000000000000000000013312205714137013246 0ustar debian/tmp/usr/share/doc/montecarlo-doc/cojets/cojets.txt debian/dh/README.examples.cojets debian/dh/libeurodec1-dev.docs0000644000000000000000000000007412205714137013410 0ustar debian/tmp/usr/share/doc/montecarlo-doc/eurodec/eurodec.txt debian/dh/libeurodec1-gfortran.install0000644000000000000000000000014112205714137015165 0ustar debian/tmp/usr/lib/*/libeurodec.so.1_gfortran.2006 debian/tmp/usr/lib/*/libeurodec.so.1_gfortran debian/dh/libcojets2-gfortran.install0000644000000000000000000000013712205714137015034 0ustar debian/tmp/usr/lib/*/libcojets.so.2_gfortran.2006 debian/tmp/usr/lib/*/libcojets.so.2_gfortran debian/dh/montecarlo-base.install0000644000000000000000000000010312205714137014220 0ustar debian/tmp/usr/include/jetset74.h debian/tmp/usr/include/lepto62.h debian/dh/libpdflib804-2-dev.README.debian0000644000000000000000000000050012205714137014754 0ustar Note on libpdflib804-2-dev: --------------------------- The apparently non-free license stated in the file pdfdoc.txt.gz in this directory is superseded by CERN's placement of CERNLIB under the GNU General Public License. See the copyright file in this directory for details. --Kevin B. McCarty debian/dh/libpdflib804-2-dev.install0000644000000000000000000000020312205714137014244 0ustar debian/tmp/usr/lib/*/libpdflib804.a debian/tmp/usr/lib/*/libpdflib804.so debian/tmp/usr/include/pdf804/ debian/tmp/usr/include/pdf debian/dh/libphotos202-1-gfortran.install0000644000000000000000000000014512205714137015360 0ustar debian/tmp/usr/lib/*/libphotos202.so.1_gfortran.2006 debian/tmp/usr/lib/*/libphotos202.so.1_gfortran debian/dh/libeurodec1-dev.doc-base0000644000000000000000000000052212205714137014133 0ustar Document: eurodec-manual Title: Eurodec Author: A. Ali, B. van Eijk Abstract: Summary of the Eurodec Monte Carlo simulation library, a general purpose Monte Carlo simulator for the fragmentation and decay of quarks, di-quarks, heavy leptons, etc. Section: Science/Physics Format: text Files: /usr/share/doc/libeurodec1-dev/eurodec.txt debian/dh/libcojets2-dev.examples0000644000000000000000000000003512205714137014135 0ustar src/mclibs/cojets/examples/* debian/dh/libcojets2-dev.install0000644000000000000000000000014212205714137013764 0ustar debian/tmp/usr/lib/*/libcojets.a debian/tmp/usr/lib/*/libcojets.so debian/tmp/usr/include/cojets/ debian/dh/montecarlo-data.install0000644000000000000000000000004712205714137014226 0ustar debian/tmp/usr/share/montecarlo-data/* debian/dh/montecarlo-base.TODO0000644000000000000000000000051712205714137013330 0ustar Future goals for Monte Carlo Debian packages: * Extract numerical data from source code in mclibs/pdf into text data files and put them into a separate package with "Architecture: all" * Update numerical cross-sections, branching ratios, etc. where possible * Determine licensing status more clearly * Include better documentation debian/dh/libisajet758-3-gfortran.install0000644000000000000000000000014512205714137015345 0ustar debian/tmp/usr/lib/*/libisajet758.so.3_gfortran.2006 debian/tmp/usr/lib/*/libisajet758.so.3_gfortran debian/dh/libphtools2-gfortran.install0000644000000000000000000000014112205714137015230 0ustar debian/tmp/usr/lib/*/libphtools.so.2_gfortran.2006 debian/tmp/usr/lib/*/libphtools.so.2_gfortran debian/dh/libherwig59-2-gfortran.install0000644000000000000000000000014312205714137015262 0ustar debian/tmp/usr/lib/*/libherwig59.so.2_gfortran.2006 debian/tmp/usr/lib/*/libherwig59.so.2_gfortran debian/dh/libisajet758-3-dev.examples0000644000000000000000000000003512205714137014447 0ustar src/mclibs/isajet/examples/* debian/dh/libpdflib804-2-gfortran.install0000644000000000000000000000014512205714137015315 0ustar debian/tmp/usr/lib/*/libpdflib804.so.2_gfortran.2006 debian/tmp/usr/lib/*/libpdflib804.so.2_gfortran debian/dh/README.examples.isajet0000644000000000000000000000203412205714137013535 0ustar Building the Isajet examples ---------------------------- cd /usr/share/doc/libisajet758-3-dev/examples/isarun gfortran isarun.F `cernlib isajet` -o $HOME/isarun Running the Isajet examples --------------------------- cd $HOME ./isarun This will start an interactive program. When prompted to "Enter file name for the decay table", you should enter the following (requires the montecarlo-data binary package to be installed): /usr/share/montecarlo-data/isajet.dat For explanations of other questions, please refer to the Isajet manual shipped in the documentation of this Debian package. Examples in isassrun and iszrun subdirectories will not compile as is, due to an apparent corruption of the files (the first several lines of each source file have gone missing) when converted from PATCHY to tar.gz format at CERN (sometime prior to 2000). In the future, time permitting, I intend to fix the file corruption by obtaining the missing lines from here: http://www.hep.fsu.edu/~isajet/isajet.car -- Kevin B. McCarty debian/dh/libisajet758-3-dev.links0000644000000000000000000000005012205714137013746 0ustar usr/include/isajet usr/include/jetset74 debian/dh/libisajet758-3-dev.install0000644000000000000000000000021112205714137014273 0ustar debian/tmp/usr/lib/*/libisajet758.a debian/tmp/usr/lib/*/libisajet758.so debian/tmp/usr/include/isajet758/ debian/tmp/usr/include/isajet debian/dh/libphotos202-dev.install0000644000000000000000000000011112205714137014147 0ustar debian/tmp/usr/lib/*/libphotos202.a debian/tmp/usr/lib/*/libphotos202.so debian/dh/montecarlo-base.links0000644000000000000000000000015512205714137013701 0ustar usr/include/jetset74.h usr/include/cfortran/jetset74.h usr/include/lepto62.h usr/include/cfortran/lepto62.h debian/dh/libphtools2-dev.README.debian0000644000000000000000000000136412205714137014704 0ustar Notes on libphtools2-dev ------------------------ If you are using the FOWL component of libphtools (CERNLIB routine W505), you should be aware that you must create your own routines FSTART, USER, and FINISH in code linked against the library in order to use FOWL. For more information, please see the CERNLIB documentation on FOWL: http://preprints.cern.ch/cgi-bin/setlink?base=preprint&categ=cern&id=IT-ASDW505 Please note that I cannot guarantee the above URL will continue to be valid forever. Additionally, the documentation describes a user routine START that must be created. In Debian, you must instead name that routine FSTART in order to avoid a name clash with the mathlib library. -- Kevin McCarty , Mon, 26 Apr 2004 debian/dh/libphtools2-dev.install0000644000000000000000000000010512205714137014164 0ustar debian/tmp/usr/lib/*/libphtools.a debian/tmp/usr/lib/*/libphtools.so debian/dh/libisajet758-3-dev.doc-base0000644000000000000000000000060012205714137014304 0ustar Document: isajet-manual Title: ISAJET 7.58 Author: Frank E. Paige, Serban D. Protopopescu, Howard Baer, Xerxes Tata Abstract: Summary of the ISAJET Monte Carlo simulation library, which simulates proton-proton, proton-antiproton, and electron-positron interactions at high energies. Section: Science/Physics Format: postscript Files: /usr/share/doc/libisajet758-3-dev/isajet.ps.gz debian/control.d/0000755000000000000000000000000012205714137011072 5ustar debian/control.d/montecarlo-data.control0000644000000000000000000000175212205714137015553 0ustar Package: montecarlo-data Architecture: all Depends: cernlib-base (>= 2006.dfsg.2-7), montecarlo-base (= ${source:Version}), ${misc:Depends} Description: [Physics] data for CERNLIB Monte Carlo libraries CERNLIB is a suite of data analysis tools and libraries created for use in physics experiments, but also with applications to other fields such as the biological sciences. . This package provides data files for three Monte Carlo frameworks: COJETS, Eurodec, and ISAJET. Although these data files are not strictly required (programs based on these frameworks may use locally supplied data instead), most people using one of these Monte Carlo generators will probably want to install this package. . The paths to the data files typically must be supplied to programs that are written to use these frameworks, either in the source code or interactively at runtime. This package places the data files cojets.dat, eurodec.dat and isajet.dat into the directory /usr/share/montecarlo-data. debian/control.d/montecarlo-base.control0000644000000000000000000000112512205714137015546 0ustar Package: montecarlo-base Architecture: all Multi-Arch: foreign Pre-Depends: ${misc:Pre-Depends} Depends: cernlib-base (>= 2006.dfsg.2-7), ${misc:Depends} Description: [Physics] Common files for CERNLIB Monte Carlo libraries CERNLIB is a suite of data analysis tools and libraries created for use in physics experiments, but also with applications to other fields such as the biological sciences. . This package contains common files for CERNLIB Monte Carlo libraries, including a README.Debian file that explains how to obtain the libraries of Ariadne, Fritiof, Jetset, Lepto, and Pythia. debian/control.d/cernlib-montecarlo.control0000644000000000000000000000223612205714137016256 0ustar Package: cernlib-montecarlo Architecture: all Depends: cernlib-base (>= 2006.dfsg.2-7), montecarlo-base (= ${source:Version}), libcojets2-dev (>= 2006.dfsg.2-4), libeurodec1-dev (>= 2006.dfsg.2-4), libherwig59-2-dev (>= 2006.dfsg.2-4), libpdflib804-2-dev (>= 2006.dfsg.2-4), libphotos202-dev (>= 2006.dfsg.2-4), libphtools2-dev (>= 2006.dfsg.2-4), libisajet758-3-dev (>= 2006.dfsg.2-4), montecarlo-data (>= 2006.dfsg.2), ${misc:Depends} Description: CERNLIB Monte Carlo libraries CERNLIB is a suite of data analysis tools and libraries created for use in physics experiments, but also with applications to other fields such as the biological sciences. . This metapackage provides various Monte Carlo libraries included in CERNLIB (both shared and static). Likely only physicists will be interested in these packages. Note that the GEANT 3.21 framework is not included, but it may be obtained by also installing the geant321 Debian package. . Be aware that the libraries of Ariadne, Fritiof, Jetset, Lepto, and Pythia are not available within Debian due to licensing issues; see the README.Debian file in the montecarlo-base package for information on obtaining them. debian/control.d/libphotos202-1-gfortran.control0000644000000000000000000000140112205714137016675 0ustar Package: libphotos202-1-gfortran Architecture: any Section: libs Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, cernlib-base (>= 2006.dfsg.2-7), montecarlo-base, ${misc:Depends} Description: [Physics] Monte Carlo simulation of photon radiation in decays The PHOTOS library simulates QED photon radiative corrections in electromagnetic decays. The library is universal; it allows for easy interface with any program generating decays of any particle. It can be used to estimate the size of the QED bremsstrahlung in leading-logarithmic approximation. The proper soft photon behavior is also reproduced. . Note that in order to compile and link programs against this library, you must also install the libphotos202-dev package. debian/control.d/0base.control0000644000000000000000000000122512205714137013466 0ustar Source: mclibs Maintainer: Debian Science Maintainers Uploaders: Lifeng Sun Standards-Version: 3.9.4 Priority: optional Section: science Homepage: http://wwwasd.web.cern.ch/wwwasd/cernlib/mc.html Build-Depends: dpkg-dev (>= 1.13.19), patch, mawk | gawk, xutils-dev, debhelper (>= 5.0.0), gfortran (>= 4:4.3), libblas-dev, liblapack-dev, cernlib-base-dev (>= 20061220+dfsg3-3), libmathlib2-dev (>= 2006.dfsg.2-7), texlive-latex-base Vcs-Git: git://anonscm.debian.org/debian-science/packages/mclibs.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/mclibs.git debian/control.d/libphotos202-dev.control0000644000000000000000000000127112205714137015500 0ustar Package: libphotos202-dev Architecture: any Section: libdevel Depends: cernlib-base-dev (>= 2006.dfsg.2-7), cfortran (>= 4.4-10), libc6-dev | libc-dev, libphotos202-1-gfortran (= ${binary:Version}), ${misc:Depends} Description: [Physics] Monte Carlo simulation of photon radiation in decays The PHOTOS library simulates QED photon radiative corrections in electromagnetic decays. The library is universal; it allows for easy interface with any program generating decays of any particle. It can be used to estimate the size of the QED bremsstrahlung in leading-logarithmic approximation. The proper soft photon behavior is also reproduced. . This is the static version of the library. debian/control.d/libphtools2-gfortran.control0000644000000000000000000000133212205714137016554 0ustar Package: libphtools2-gfortran Architecture: any Section: libs Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, montecarlo-base, ${misc:Depends} Description: [Physics] General purpose Monte Carlo routines This library contains three main routines. FOWL allows calculation of phase space distributions arising from particle interactions, generated in a Lorentz-invariant way. GENBOD is an N-body event generator, taking as input the center-of-mass energy, number and masses of outgoing particles. WICO traces a ray geometrically in a "Winston Cone" light concentrator. . Note that in order to compile and link programs against this library, you must also install the libphtools2-dev package. debian/control.d/libeurodec1-gfortran.control0000644000000000000000000000124212205714137016511 0ustar Package: libeurodec1-gfortran Architecture: any Section: libs Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, cernlib-base (>= 2006.dfsg.2-7), montecarlo-base, ${misc:Depends} Recommends: montecarlo-data (>= 2006.dfsg.2) Description: [Physics] Monte Carlo library for quark and heavy lepton decays Eurodec is a general purpose Monte Carlo library for the fragmentation and decay of quarks, di-quarks, heavy leptons, etc. It can be used with the included event generator EUROJET, or with your own event generator. . Note that in order to compile and link programs against this library, you must also install the libeurodec1-dev package. debian/control.d/libcojets2-gfortran.control0000644000000000000000000000164112205714137016356 0ustar Package: libcojets2-gfortran Architecture: any Section: libs Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, montecarlo-base, ${misc:Depends} Recommends: montecarlo-data (>= 2006.dfsg.2) Description: [Physics] COJETS p-p and pbar-p interaction Monte Carlo library COJETS is a Monte Carlo library which simulates pbar-p and p-p interactions at high energy. The interaction process is first calculated at the parton level by means of perturbative QCD and the Weinberg-Salam model for electroweak interactions. Partons are then independently fragmented into jets of hadrons, according to the Field-Feynman model, and the beam jets contribution is added, according to a longitudinal phase-space model. Multiple QCD radiation of initial and final partons is included. . Note that in order to compile and link programs against this library, you must also install the libcojets2-dev package. debian/control.d/libcojets2-dev.control0000644000000000000000000000200412205714137015304 0ustar Package: libcojets2-dev Architecture: any Section: libdevel Depends: cernlib-base-dev (>= 2006.dfsg.2-7), libmathlib2-dev (>= 2006.dfsg.2-7), libcojets2-gfortran (= ${binary:Version}), ${misc:Depends} Recommends: montecarlo-data (>= 2006.dfsg.2) Replaces: libcojets1-dev Breaks: libcojets1-dev (<= 2004.11.04.dfsg-0sarge1) Description: [Physics] COJETS p-p and pbar-p interaction Monte Carlo COJETS is a Monte Carlo library which simulates pbar-p and p-p interactions at high energy. The interaction process is first calculated at the parton level by means of perturbative QCD and the Weinberg-Salam model for electroweak interactions. Partons are then independently fragmented into jets of hadrons, according to the Field-Feynman model, and the beam jets contribution is added, according to a longitudinal phase-space model. Multiple QCD radiation of initial and final partons is included. . This is the static version of the library. The package also includes FORTRAN header files and documentation for COJETS. debian/control.d/libpdflib804-2-dev.control0000644000000000000000000000145512205714137015577 0ustar Package: libpdflib804-2-dev Architecture: any Section: libdevel Depends: cernlib-base-dev (>= 2006.dfsg.2-7), libmathlib2-dev (>= 2006.dfsg.2-7), libpdflib804-2-gfortran (= ${binary:Version}), ${misc:Depends} Replaces: libpdflib804-dev Breaks: libpdflib804-dev (<= 2004.11.04.dfsg-0sarge1) Description: [Physics] Comprehensive library of parton density functions The PDFLIB package gathers about 100 different sets of Parton Density Functions into a comprehensive library in a consistent way. Density functions are available for the nucleon, pion and photon. The library also allows the calculation of the strong force coupling constant to first or second order at a given value of Q-squared. . This is the static version of the library. Also included are FORTRAN header files and some documentation. debian/control.d/libeurodec1-dev.control0000644000000000000000000000120012205714137015437 0ustar Package: libeurodec1-dev Architecture: any Section: libdevel Depends: cernlib-base-dev (>= 2006.dfsg.2-7), cfortran (>= 4.4-10), libc6-dev | libc-dev, libeurodec1-gfortran (= ${binary:Version}), ${misc:Depends} Recommends: montecarlo-data (>= 2006.dfsg.2) Description: [Physics] Monte Carlo library for quark / heavy lepton decays Eurodec is a general purpose Monte Carlo library for the fragmentation and decay of quarks, di-quarks, heavy leptons, etc. It can be used with the included event generator EUROJET, or with your own event generator. . This is the static version of the library. FORTRAN header files are also included. debian/control.d/libphtools2-dev.control0000644000000000000000000000141612205714137015513 0ustar Package: libphtools2-dev Architecture: any Section: libdevel Depends: cernlib-base-dev (>= 2006.dfsg.2-7), libmathlib2-dev (>= 2006.dfsg.2-7), libphtools2-gfortran (= ${binary:Version}), ${misc:Depends} Replaces: libphtools1-dev Breaks: libphtools1-dev (<= 2004.11.04.dfsg-0sarge1) Description: [Physics] General purpose Monte Carlo routines (development files) This library contains three main routines. FOWL allows calculation of phase space distributions arising from particle interactions, generated in a Lorentz-invariant way. GENBOD is an N-body event generator, taking as input the center-of-mass energy, number and masses of outgoing particles. WICO traces a ray geometrically in a "Winston Cone" light concentrator. . This is the static version of the library. debian/control.d/libherwig59-2-gfortran.control0000644000000000000000000000103512205714137016604 0ustar Package: libherwig59-2-gfortran Architecture: any Section: libs Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, montecarlo-base, ${misc:Depends} Description: [Physics] Monte Carlo event generator simulating hadronic events HERWIG is a general-purpose event generator for high energy hadronic processes, with particular emphasis on the detailed simulation of QCD parton showers. . Note that in order to compile and link programs against this library, you must also install the libherwig59-2-dev package. debian/control.d/libisajet758-3-dev.control0000644000000000000000000000161112205714137015621 0ustar Package: libisajet758-3-dev Architecture: any Section: libdevel Depends: libpdflib804-2-dev (= ${binary:Version}), libisajet758-3-gfortran (= ${binary:Version}), ${misc:Depends} Recommends: montecarlo-data (>= 2006.dfsg.2) Replaces: libisajet758-dev, libisajet758-2-dev Breaks: libisajet758-dev (<= 2004.11.04.dfsg-0sarge1), libisajet758-2-dev (<= 2006.dfsg.2-3) Description: [Physics] Monte Carlo generator for proton/electron reactions ISAJET is a Monte Carlo library which simulates p-p, pbar-p, and e+ e- interactions at high energies. The library is based on perturbative QCD combined with phenomenological models for parton and beam jet fragmentation. ISAJET incorporates ISASUSY, which evaluates branching ratios for the minimal supersymmetric extension of the Standard Model. . This is the static version of the library. Also included are FORTRAN header files and some documentation. debian/control.d/libherwig59-2-dev.control0000644000000000000000000000120312205714137015535 0ustar Package: libherwig59-2-dev Architecture: any Section: libdevel Depends: cernlib-base-dev (>= 2006.dfsg.2-7), libpdflib804-2-dev (= ${binary:Version}), libherwig59-2-gfortran (= ${binary:Version}), ${misc:Depends} Replaces: libherwig59-dev Breaks: libherwig59-dev (<= 2004.11.04.dfsg-0sarge1) Description: [Physics] Monte Carlo event generator for hadrons (development) HERWIG is a general-purpose event generator for high energy hadronic processes, with particular emphasis on the detailed simulation of QCD parton showers. . This is the static version of the library. Also included are a FORTRAN header file and some documentation. debian/control.d/libisajet758-3-gfortran.control0000644000000000000000000000141412205714137016666 0ustar Package: libisajet758-3-gfortran Architecture: any Section: libs Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, montecarlo-base, ${misc:Depends} Recommends: montecarlo-data (>= 2006.dfsg.2) Description: [Physics] Monte Carlo generator for proton / electron reactions ISAJET is a Monte Carlo library which simulates p-p, pbar-p, and e+ e- interactions at high energies. The library is based on perturbative QCD combined with phenomenological models for parton and beam jet fragmentation. ISAJET incorporates ISASUSY, which evaluates branching ratios for the minimal supersymmetric extension of the Standard Model. . Note that in order to compile and link programs against this library, you must also install the libisajet758-3-dev package. debian/control.d/libpdflib804-2-gfortran.control0000644000000000000000000000131412205714137016635 0ustar Package: libpdflib804-2-gfortran Architecture: any Section: libs Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, montecarlo-base, ${misc:Depends} Description: [Physics] Comprehensive library of parton density functions The PDFLIB package gathers about 100 different sets of Parton Density Functions into a comprehensive library in a consistent way. Density functions are available for the nucleon, pion and photon. The library also allows the calculation of the strong force coupling constant to first or second order at a given value of Q-squared. . Note that in order to compile and link programs against this library, you must also install the libpdflib804-2-dev package. debian/deadpool.txt0000644000000000000000000000102012205714137011511 0ustar # This file lists all the files that were removed from the CERNLIB mclibs # source for copyright reasons. Given is the file or directory to delete # relative to $CERN_ROOT/src/. # --Kevin McCarty, 29 June 2006 # Authors of Pythia/Jetset did NOT give permission to release # their code under GPL. CERN should have checked this more carefully!!! mclibs/jetset/ mclibs/pythia/ # Removal of Pythia/Jetset also necessitates removal of Fritiof, Lepto, Ariadne mclibs/fritiof/ mclibs/ariadne/ mclibs/ariadne_407/ mclibs/lepto63/ debian/rules0000755000000000000000000000235512205714137010255 0ustar #!/usr/bin/make -f # source package name and modules included in the source package MY_NAME = mclibs MY_MODULES = Imakefile cfortran include mclibs phtools include /usr/share/cernlib/cernlib-debian.mk binary-arch: install-arch dh_testdir dh_testroot dh_install -s dh_installexamples -s -XImakefile -XREADME dh_installdocs -s dh_installchangelogs -s dh_strip -s dh_link -s dh_compress -s -X.F dh_fixperms -s for package in libeurodec1 libcojets2 libherwig59-2 libisajet758-3 \ libpdflib804-2 libphotos202-1 libphtools2 ; do \ dh_makeshlibs -p$${package}-gfortran ; \ done dh_shlibdeps -s -lshlib dh_installdeb -s dh_gencontrol -s dh_md5sums -s dh_builddeb -s binary-indep: install-indep dh_testdir dh_testroot dh_install -i dh_installexamples -i dh_installdocs -i dh_installman -i dh_installchangelogs -i dh_link -i dh_compress -i -X.dat -X.kumac -X.F -X.sh # Fudge metapackage docs a little bit for efficiency: rm -rf debian/cernlib-montecarlo/usr/share/doc/cernlib-montecarlo ln -sf montecarlo-base \ debian/cernlib-montecarlo/usr/share/doc/cernlib-montecarlo dh_fixperms -i dh_installdeb -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i binary: binary-indep binary-arch .PHONY: binary binary-indep binary-arch debian/source.lintian-overrides0000644000000000000000000000012212205714137014043 0ustar mclibs source: build-depends-on-obsolete-package build-depends: dpatch (>= 2.0.9) debian/add-ons/0000755000000000000000000000000012205714137010515 5ustar debian/add-ons/Makefile0000644000000000000000000001377712205714137012174 0ustar NEEDS_MAKEFILE = cfortran mclibs phtools LIB_PACKAGES = mclibs phtools TEST_PACKAGES = $(LIB_PACKAGES) prefix = /usr/local datadir = $(prefix)/share include $(datadir)/cernlib/cernlib.mk MCDOC = $(DESTDIR)$(datadir)/doc/montecarlo-doc cernlib-arch-local: cernlib-mc-docs cernlib-indep-local: cernlib-mc-data cernlib-configure-local: ifneq (,$(findstring nospdf,$(DEB_BUILD_OPTIONS))) cp -p $(PATCHDIR)/optional/901-dont-compile-spdf.dpatch $(PATCHDIR) echo 901-dont-compile-spdf.dpatch >> $(PATCHDIR)/00list endif #ifeq ($(DEB_BUILD_ARCH),m68k) # cp -p $(PATCHDIR)/optional/902-no-isajet-on-m68k.dpatch $(PATCHDIR) # echo 902-no-isajet-on-m68k.dpatch >> $(PATCHDIR)/00list #endif cernlib-mc-data: patch buildtree $(MAKE) -C $(CERN_BUILDDIR) MAKEOVERRIDES= mclibs/Makefile $(MAKE) -C $(CERN_BUILDDIR)/mclibs MAKEOVERRIDES= \ cojets/Makefile eurodec/Makefile $(MAKE) -C $(CERN_BUILDDIR)/mclibs/cojets MAKEOVERRIDES= \ $(CERN_LIBDIR)/cojets.dat $(MAKE) -C $(CERN_BUILDDIR)/mclibs/eurodec MAKEOVERRIDES= \ $(CERN_LIBDIR)/eurodec.dat $(MAKE) -C $(CERN_BUILDDIR)/mclibs MAKEOVERRIDES= isajet/Makefile $(MAKE) -C $(CERN_BUILDDIR)/mclibs/isajet MAKEOVERRIDES= \ $(CERN_LIBDIR)/isajet.dat # now build some documentation that isn't created automatically. # Unfortunately, the cernlib authors weren't thoughtful enough to # give any indication of the order in which chapters go from their # filenames. cernlib-mc-docs: patch mkdir -p $(CERN_DOCDIR) # # cojets set -e ; \ cd $(CVSCOSRC)/mclibs/cojets/doc ; \ cat title.doc intro.doc physics.doc usage.doc backward.doc patchy.doc \ external.doc iocon.doc ioconfor.doc ioconinp.doc ioconout.doc \ ioisa.doc ioisafor.doc ioisainp.doc ioisaout.doc taperead.doc \ table.doc | sed -e '/^\*$$/d' -e '/^\* .*$$/d' > \ $(CERN_DOCDIR)/cojets.txt # isajet set -e ; \ cd $(CVSCOSRC)/mclibs/isajet/doc ; \ sed '/^\*.*$$/d' ztext.doc > $(CERN_DOCDIR)/isajet-zebra.txt ; \ sed '/^\*.*$$/d' isassdoc.doc > $(CERN_DOCDIR)/isasusy.txt ; \ cat intro.doc physics.doc sample.doc patchy.doc main.doc \ input.doc output.doc tape.doc decay.doc ident.doc \ higher.doc susy.doc changes.doc > $(CERN_DOCDIR)/isajet.tex; \ cd $(CERN_DOCDIR) ; \ latex isajet.tex ; \ latex isajet.tex ; \ latex isajet.tex ; \ dvips isajet.dvi -o isajet.ps # eurodec set -e ; \ cd $(CVSCOSRC)/mclibs/eurodec/doc ; \ sed -e '/^\*.*$$/d' -e 's/C\.//g' eudtxt > $(CERN_DOCDIR)/eurodec.txt # target to install include files for development packages install-includes: install -d -m 0755 $(DESTDIR)$(includedir) # install them all (patching includes, e.g. #include "ksys.h" # -> #include ) for dir in `cat $(ADDONDIR)/includelist.txt` ; do \ basedir=`basename $$dir` ; \ rm -rf $(DESTDIR)$(includedir)/$$basedir ; \ cp -Rp $(CVSCOSRC)/$$dir $(DESTDIR)$(includedir) ; \ ls -1 $(DESTDIR)$(includedir)/$$basedir/* | \ egrep -v '\.(h|inc)$$' | xargs rm -rf ; \ for file in `ls -1 $(DESTDIR)$(includedir)/$$basedir/*` ; do \ if [ -f $$file ] ; then \ sed -e 's,^\([ ]*#[ ]*include\)[ ]*"\([^"/]*\)",\1 <'$$basedir/'\2>,g' \ -e 's,^\([ ]*#[ ]*include\)[ ]*"\([^"]*\)",\1 <\2>,g' \ -e 's,cfortran/,,g' \ $$file > $$file.tmp ; \ mv -f $$file.tmp $$file ; \ fi ; \ done ; \ done # install some symlinks, e.g. herwig$$version -> herwig rm -f $(DESTDIR)$(includedir)/herwig && \ ln -sf herwig59 $(DESTDIR)$(includedir)/herwig rm -rf $(DESTDIR)$(includedir)/isajet758 mv $(DESTDIR)$(includedir)/isajet $(DESTDIR)$(includedir)/isajet758 ln -sf isajet758 $(DESTDIR)$(includedir)/isajet rm -rf $(DESTDIR)$(includedir)/pdf804 mv $(DESTDIR)$(includedir)/pdf $(DESTDIR)$(includedir)/pdf804 ln -sf pdf804 $(DESTDIR)$(includedir)/pdf # fix location of eurodec data file in header file sed 's,eurodec.dat,$(datadir)/montecarlo-data/eurodec.dat,' \ $(DESTDIR)$(includedir)/eurodec/eufiles.inc \ > $(DESTDIR)$(includedir)/eurodec/eufiles.inc.tmp && \ mv -f $(DESTDIR)$(includedir)/eurodec/eufiles.inc.tmp \ $(DESTDIR)$(includedir)/eurodec/eufiles.inc # target to install files in arch-dependent packages install-arch: install-includes # install libraries install -d -m 0755 $(DESTDIR)$(libdir) install -p -m 0644 $(CERN_LIBDIR)/*.a $(DESTDIR)$(libdir)/ # we go through the following rigmarole because "install" dereferences # symlinks and older GNU versions of "cp" have inconsistent # syntax for the short form of the --no-dereference flag set -e ; \ if [ -d $(CERN_SHLIBDIR) ] ; then \ ( abslibdir="`cd $(DESTDIR)$(libdir)/ && pwd`" ; \ cd $(CERN_SHLIBDIR)/ ; \ for file in `ls | grep 'lib.*\..*\..*\.'` ; do \ basename=`echo $$file | cut -f 1 -d .` ; \ install -p -m 0644 $$file "$$abslibdir/" ; \ for link in `ls $${basename}.* |grep -v 'lib.*\..*\..*\.'`; do \ ln -sf $$file "$$abslibdir"/$$link ; \ done ; \ done ) ; \ fi # ... and mclibs documentation for dir in cojets eurodec herwig isajet pdflib ; do \ install -d -m 0755 $(MCDOC)/$$dir ; \ done install -p -m 0644 $(CERN_DOCDIR)/cojets.txt $(MCDOC)/cojets/ install -p -m 0644 $(CERN_DOCDIR)/isa* $(MCDOC)/isajet/ install -p -m 0644 $(CERN_DOCDIR)/eurodec.txt $(MCDOC)/eurodec/ install -p -m 0644 $(CVSCOSRC)/mclibs/herwig/doc/herwig59 \ $(MCDOC)/herwig/herwig59.txt install -p -m 0644 $(CVSCOSRC)/mclibs/pdf/dpdf/pdfdoc.doc \ $(MCDOC)/pdflib/pdfdoc.txt # target to install files in arch-independent packages install-indep: # install some include files for montecarlo-base package install -d -m 0755 $(DESTDIR)$(includedir) install -p -m 0644 $(CVSCOSRC)/cfortran/jetset74.h \ $(CVSCOSRC)/cfortran/lepto62.h $(DESTDIR)$(includedir)/ # install Monte Carlo data files install -d -m 0755 $(DESTDIR)$(datadir)/montecarlo-data install -p -m 0644 $(CERN_LIBDIR)/cojets.dat \ $(DESTDIR)$(datadir)/montecarlo-data/ install -p -m 0644 $(CERN_LIBDIR)/eurodec.dat \ $(DESTDIR)$(datadir)/montecarlo-data/ install -p -m 0644 $(CERN_LIBDIR)/isajet.dat \ $(DESTDIR)$(datadir)/montecarlo-data/ .PHONY: cernlib-configure-local cernlib-arch-local \ cernlib-mc-data cernlib-mc-docs \ install install-arch install-includes install-indep debian/add-ons/INSTALL0000644000000000000000000000156312205714137011553 0ustar CERNLIB MCLIBS INSTALLATION To install: 1) Install the main CERN libraries (packlib, mathlib, etc.) 2) from the top-level CERNLIB source directory: cp debian/add-ons/Makefile . 3) Then: Debian GNU/Linux ---------------- To produce Debian packages: $ fakeroot debian/rules binary [wait a couple hours] $ sudo dpkg -i ../*.deb Other Linux, Unix or Mac OS X ----------------------------- $ make prefix=/usr/local sysconfdir=/etc [wait a couple hours] sudo make prefix=/usr/local sysconfdir=/etc install PREREQUISITES - On Debian GNU/Linux, have the following packages and their dependencies installed (CERNLIB packages must have been built with gfortran): dpatch, patch, mawk (or gawk), xutils (for imake), debhelper, gfortran, cfortran, cernlib-base, libmathlib2-dev, tetex-bin, fakeroot, build-essential - On other distributions, translate package names to suit. debian/add-ons/includelist.txt0000644000000000000000000000014712205714137013577 0ustar mclibs/cojets/cojets mclibs/eurodec/eurodec mclibs/herwig/herwig59 mclibs/isajet/isajet mclibs/pdf/pdf debian/add-ons/README0000644000000000000000000000344312205714137011401 0ustar Contents of this directory are copyright (C) Kevin B. McCarty, 2001-2007, except where noted otherwise. They are licensed under the GNU General Public License, version 2 or later, at your choice. A copy of the GNU GPL may be found on Debian systems at: /usr/share/common-licenses/GPL or on the Web at: http://www.gnu.org/copyleft/gpl.html This directory contains numerous patches and additions to the canonical version of the CERNLIB Monte Carlo libraries supplied by CERN. To compile them accordingly, copy the Makefile in this directory to the top-level mclibs source directory and run make with whatever variables you like. (You will first need to have installed the main CERNLIB libraries from my packaging of those.) This packaging of the CERNLIB Monte Carlo libs adds support for: - shared libraries (Linux only) - Mac OS X compilation - Filesystem Hierarchy Standard: run make with these variables set: "make prefix=/usr sysconfdir=/etc mandir=/usr/share/man" - recursive dependency checking with a rewritten "cernlib" script - common GNU Makefile directories, e.g. $prefix, $datadir - automatic generation of CERNLIB documents included with the source - various other bug fixes Note that unlike the upstream version of CERNLIB, which installs to $CERN/$CERN_LEVEL (e.g. /opt/cern/2003), this packaging of CERNLIB Monte Carlo libraries will install them to /usr/local/lib. Or change this by specifying $prefix with the "make" command. Things NOT included in this packaging of CERNLIB Monte Carlo libs: - Pythia/Jetset/Ariadne/Lepto; see the respective web sites These are omitted for licensing reasons (i.e. I am not convinced that it is permissible for me to distribute them under the terms of the GPL). See http://people.debian.org/~kmccarty/cernlib/ for more information. --Kevin McCarty, 29 June 2006