--- cernlib-2005.05.09.dfsg.orig/debian/control +++ cernlib-2005.05.09.dfsg/debian/control @@ -0,0 +1,896 @@ +Source: cernlib +Maintainer: Kevin B. McCarty +Standards-Version: 3.6.2 +Priority: optional +Section: science +Build-Depends: gcc-4.0 (>= 4.0.2-4) | gcc (<< 4.0), dpatch (>= 2.0.9), patch, mawk | gawk, xutils, debhelper (>= 5.0.0), g77, cfortran (>= 4.4-8), x-dev, libxt-dev, libx11-dev, lesstif2-dev, refblas3-dev | libblas-3.so, lapack3-dev | liblapack-3.so, tetex-bin + +Package: cernlib-base +Architecture: all +Section: devel +Conflicts: libcojets1-dev, libgeant1-dev, libherwig59-dev, libisajet758-dev, libkuipx11-1-dev, libmathlib1-dev, libpaw1-dev, libpdflib804-dev, libphtools1-dev, blas2-dev, lapack2-dev +Description: script to determine Cernlib library dependencies + 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 includes the "cernlib" script that lists the command-line + options needed for linking against Cernlib libraries. The script has + been rewritten from the upstream version to calculate + dependencies recursively. Also included are a README.Debian with a summary + of changes made to Cernlib to fit it into Debian packaging practices, + and a contributed set of Autoconf macros to test for Cernlib libraries. + +Package: cernlib-core-dev +Architecture: all +Section: science +Depends: cernlib-base (= ${Source-Version}), libgraflib1-dev, libgrafx11-1-dev, libkernlib1-dev, libpacklib1-lesstif-dev, libmathlib2-dev, libpacklib1-dev, libpawlib2-dev, libpawlib2-lesstif-dev, kuipc, dzedit +Description: Cernlib development headers, tools, and static 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 the header files and static libraries likely to be + wanted by developers using the Cern libraries who are not interested + specifically in high energy physics. It also provides the Cernlib + development tools DZedit and KUIPC. Cernlib analysis programs may be + obtained by installing the cernlib-core metapackage. + +Package: cernlib-core +Architecture: all +Section: science +Depends: cernlib-base (= ${Source-Version}), kxterm, paw++, paw, paw-common, paw-demos +Description: Cernlib main libraries and programs + 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 the libraries and analysis tools (e.g. PAW) likely + to be wanted by most users of the Cern libraries who are not interested + specifically in high energy physics. You cannot do program development by + installing only this metapackage; development libraries and tools may + be obtained by installing the cernlib-core-dev metapackage or individual + lib*-dev packages. + +Package: cernlib-extras +Architecture: all +Priority: extra +Section: science +Depends: cernlib-base (= ${Source-Version}), pawserv, zftp +Description: miscellaneous Cernlib programs unlikely to be used by many + 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 a few additional Cernlib programs not included + in any other Cernlib metapackage. Very few people are likely to be + interested in them; currently they include zftp, pawserv and zserv. + Notice that the latter two programs run as daemons through inetd and may + reduce your system's security! + . + Installing this package along with the "cernlib" metapackage will supply + a complete set of all Cernlib programs and libraries included in Debian. + +Package: cernlib-montecarlo +Architecture: all +Section: science +Depends: cernlib-base, montecarlo-base (= ${Source-Version}), libcojets2-dev, libeurodec1-dev, libherwig59-2-dev, libpdflib804-2-dev, libphotos202-dev, libphtools2-dev +Recommends: libisajet758-2-dev +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 program 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. + . + Additionally, the Isajet library is not available on the m68k architecture + due to a compiler flaw. + +Package: cernlib +Architecture: all +Section: science +Depends: cernlib-base (= ${Source-Version}), cernlib-core, cernlib-core-dev, cernlib-montecarlo, geant321-data, geant321-doc, geant321, libgeant321-2, libgeant321-2-dev +Description: almost complete set of Debian Cernlib packages + 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 almost all of the programs and libraries contained + in Cernlib. Most people will likely want only a subset of these. A few + extra Cernlib programs, not of interest to many people, may be obtained via + the cernlib-extras metapackage. + +Package: dzedit +Architecture: any +Section: devel +Depends: ${shlibs:Depends} +Recommends: libpacklib1-dev +Description: Cernlib's ZEBRA documentation editor + 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. + . + DZedit is an interactive interface to the DZDOC (ZEBRA documentation) system + developed at CERN. ZEBRA, part of the Packlib library, permits a developer to + create complex data structures in the FORTRAN 77 language; the DZDOC system + allows the developer to generate and maintain documentation of ZEBRA data + structures. + +Package: geant321-data +Architecture: all +Section: science +Depends: cernlib-base +Description: [Physics] Data for Geant 3.21 detector simulator + Geant simulates the passage of subatomic particles through matter, for + instance, particle detectors. For maximum flexibility, Geant simulations + are performed by linking Fortran code supplied by the user with the Geant + libraries, then running the resulting executable. + . + This package includes data files for use by Geant. + +Package: geant321-doc +Architecture: all +Section: doc +Depends: cernlib-base +Description: [Physics] Documentation for Geant 3.21 + Geant simulates the passage of subatomic particles through matter, for + instance, particle detectors. For maximum flexibility, Geant simulations + are performed by linking Fortran code supplied by the user with the Geant + libraries, then running the resulting executable. + . + This package includes some documentation about Geant. + +Package: geant321 +Architecture: all +Section: science +Depends: libgeant321-2-dev, geant321-data, cernlib-base, g77 +Suggests: kxterm, geant321-doc +Description: [Physics] Particle detector description and simulation tool + Geant simulates the passage of subatomic particles through matter, for + instance, particle detectors. For maximum flexibility, Geant simulations + are performed by linking Fortran code supplied by the user with the Geant + libraries, then running the resulting executable. + . + This package includes gxint, the script used to perform this linking step. + +Package: kuipc +Architecture: any +Section: devel +Depends: ${shlibs:Depends}, cernlib-base +Recommends: libpacklib1-dev +Suggests: libpacklib1-lesstif-dev +Description: Cernlib's Kit for a User Interface Package (KUIP) compiler + 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. + . + KUIPC, the Kit for a User Interface Package Compiler, is a tool to simplify + the writing of a program's user interface code. It takes as + input a Command Definition File (CDF) that describes the + commands to be understood by the program, and outputs C or FORTRAN code that + makes the appropriate function calls to set up the user interface. This + code can then be compiled and linked with the rest of the program. Since + the generated code uses KUIP routines, the program must also be linked + against the Packlib library that contains them. + . + KUIPC is no longer actively developed, so aside from its use in the build + process of Cernlib, it is of mainly historical interest. + +Package: kxterm +Architecture: any +Section: science +Depends: ${shlibs:Depends}, cernlib-base +Description: Cernlib's KUIP terminal emulator + 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. + . + KXterm is a terminal emulator which combines the best features from + the (now defunct) Apollo DM pads (like: input and transcript + pads, automatic file backup of transcript pad, string search in pads, + etc.) and the Korn shell emacs-style command line editing and command + line recall mechanism. It can support the command-line interface + of various Cernlib applications. + +Package: libcojets2-dev +Architecture: any +Section: libdevel +Depends: libcojets2 (= ${Source-Version}), libmathlib2-dev (= ${Source-Version}) +Replaces: libcojets1-dev +Conflicts: libcojets1-dev +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 +Architecture: any +Section: libs +Depends: ${shlibs:Depends}, montecarlo-base +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: libeurodec1 (= ${Source-Version}), cfortran, libc6-dev | libc-dev +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 +Architecture: any +Section: libs +Depends: ${shlibs:Depends}, cernlib-base, montecarlo-base +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: libgeant321-2-dev +Architecture: any +Section: libdevel +Depends: libgeant321-2 (= ${Source-Version}), libpawlib2-lesstif-dev (= ${Source-Version}) +Recommends: geant321 +Conflicts: libgeant1-dev +Replaces: libgeant1-dev +Description: [Physics] Library for Geant 3.21 (development files) + Geant simulates the passage of subatomic particles through matter, for + instance, particle detectors. For maximum flexibility, Geant simulations + are performed by linking Fortran code supplied by the user with the Geant + libraries, then running the resulting executable. + . + This package includes a static version of the libgeant321 library required + by Geant. C and FORTRAN header files are also included. + +Package: libgeant321-2 +Architecture: any +Section: libs +Depends: ${shlibs:Depends}, geant321-data +Recommends: geant321 +Description: [Physics] Library for Geant 3.21 + Geant simulates the passage of subatomic particles through matter, for + instance, particle detectors. For maximum flexibility, Geant simulations + are performed by linking Fortran code supplied by the user with the Geant + libraries, then running the resulting executable. + . + This package includes the libgeant321 library required by Geant 3.21. Note + that in order to compile and link programs against this library, you must + also install the libgeant321-2-dev package. + +Package: libgraflib1-dev +Architecture: any +Section: libdevel +Depends: libgraflib1 (= ${Source-Version}), libgrafx11-1-dev (= ${Source-Version}) +Description: Cernlib graphical library (development files) + 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. + . + The graflib library includes the HPLOT and DZDOC systems. HPLOT is a + graphing facility intended to produce drawings and slides of histograms + (and other data) of a quality suitable to talks and publications. DZDOC + provides a method of viewing Cernlib's ZEBRA data structures. This package + includes a static version of graflib, as well as C and FORTRAN header files. + +Package: libgraflib1 +Architecture: any +Section: libs +Depends: ${shlibs:Depends} +Description: Cernlib graphical library + 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. + . + The graflib library includes the HPLOT and DZDOC systems. HPLOT is a + graphing facility intended to produce drawings and slides of histograms + (and other data) of a quality suitable to talks and publications. DZDOC + provides a method of viewing Cernlib's ZEBRA data structures. + . + Note that in order to compile and link programs against this library, + you must also install the libgraflib1-dev package. + +Package: libgrafx11-1-dev +Architecture: any +Section: libdevel +Depends: libgrafx11-1 (= ${Source-Version}), libpacklib1-dev (= ${Source-Version}), libx11-dev (>= 4.3.0-3) | xlibs-dev (>> 4.1.0) +Description: Cernlib library interface to X11 and PostScript (development) + 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 includes a static version of libgrafX11, also known as HIGZ + (High-level Interface to Graphics and ZEBRA), an interface to the X Window + System. In addition to basic drawing functions, HIGZ includes a PostScript + interface. Also included are C and FORTRAN header files. + +Package: libgrafx11-1 +Architecture: any +Section: libs +Depends: ${shlibs:Depends} +Description: Cernlib library interface to X11 and PostScript + 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 includes libgrafX11, also known as HIGZ (High-level Interface + to Graphics and ZEBRA), an interface to the X Window System. In addition + to basic drawing functions, HIGZ includes a PostScript interface. + . + Note that in order to compile and link programs against this library, + you must also install the libgrafx11-1-dev package. + +Package: libherwig59-2-dev +Architecture: any +Section: libdevel +Depends: libherwig59-2 (= ${Source-Version}), libpdflib804-2-dev (= ${Source-Version}) +Replaces: libherwig59-dev +Conflicts: libherwig59-dev +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 +Architecture: any +Section: libs +Depends: ${shlibs:Depends}, montecarlo-base +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-2-dev +Architecture: any +Section: libdevel +Depends: libisajet758-2 (= ${Source-Version}), libpdflib804-2-dev (= ${Source-Version}) +Replaces: libisajet758-dev +Conflicts: libisajet758-dev +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-2 +Architecture: any +Section: libs +Depends: ${shlibs:Depends}, montecarlo-base +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-2-dev package. + +Package: libkernlib1-dev +Architecture: any +Section: libdevel +Depends: libkernlib1 (= ${Source-Version}), cfortran, libc6-dev | libc-dev +Description: core Cernlib library of basic functions (development files) + 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. + . + The kernlib library contains a rather miscellaneous set of basic numerical, + bitwise, and system-dependent functions used by other Cern libraries and + programs. This package includes the static version of kernlib, as well as + C and FORTRAN header files. + +Package: libkernlib1 +Architecture: any +Section: libs +Depends: ${shlibs:Depends}, cernlib-base +Description: core Cernlib library of basic functions + 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. + . + The kernlib library contains a rather miscellaneous set of basic numerical, + bitwise, and system-dependent functions used by other Cern libraries and + programs. + . + Note that in order to compile and link programs against this library, you + must also install the libkernlib1-dev package. + +Package: libmathlib2-dev +Architecture: any +Section: libdevel +Depends: refblas3-dev | libblas-3.so, lapack3-dev | liblapack-3.so, libmathlib2 (= ${Source-Version}), libkernlib1-dev (= ${Source-Version}), libpacklib1-dev (= ${Source-Version}), cfortran, libc6-dev | libc-dev, cernlib-base (>= 2005.05.09-1) +Conflicts: libmathlib1-dev, blas2-dev, lapack2-dev +Replaces: libmathlib1-dev +Description: core Cernlib mathematical library (development files) + 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. + . + The mathlib library is a large set of mathematical routines used for purposes + such as evaluating special functions and integrals, numerically solving + algebraic and differential equations, performing matrix and vector operations, + running statistical tests, and generating random numbers in specified + distributions. This package contains a static version of mathlib, as well + as C and FORTRAN header files. + +Package: libmathlib2 +Architecture: any +Section: libs +Depends: ${shlibs:Depends} +Description: core Cernlib mathematical library + 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. + . + The mathlib library is a large set of mathematical routines used for purposes + such as evaluating special functions and integrals, numerically solving + algebraic and differential equations, performing matrix and vector operations, + running statistical tests, and generating random numbers in specified + distributions. + . + Note that in order to compile and link programs against this library, you + must also install the libmathlib2-dev package. + +Package: libpacklib1-dev +Architecture: any +Section: libdevel +Depends: libpacklib1 (= ${Source-Version}), libkernlib1-dev (= ${Source-Version}), cfortran, libc6-dev | libc-dev +Suggests: libpacklib1-lesstif-dev +Description: core Cernlib library (development files) + 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. + . + The packlib library includes a great deal of Cernlib core functionality. + Best-known are probably the MINUIT function minimization routines, the + HBOOK histogramming routines, and KUIP (Kit for a User Interface Package). + Other subsystems include CSPACK, a set of client-server routines; FFREAD, + a format-free input processing system for FORTRAN; and ZEBRA, a data + structure management package. + . + This package contains a static version of packlib. Also included are C + and FORTRAN header files. Please note that the graphical functionality of + KUIP has been split out into the separate Debian package + libpacklib1-lesstif-dev so that this package need not depend upon the X + and Lesstif libraries. + +Package: libpacklib1-lesstif-dev +Architecture: any +Section: libdevel +Depends: libpacklib1-lesstif (= ${Source-Version}), libgrafx11-1-dev (= ${Source-Version}), lesstif2-dev, libxt-dev (>= 4.3.0-3) | xlibs-dev (>> 4.1.0), cernlib-base (>= 2005.05.09-1) +Conflicts: libkuipx11-1-dev +Description: Cernlib graphical user interface library (development files) + 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 includes the graphical functionality of KUIP, the Cernlib + Kit for a User Interface Package. This library has been split off + from packlib in Debian so that the packlib packages need not depend upon + the X and Lesstif libraries. The package was formerly named libkuipx11-1-dev. + The text-based functionality of KUIP can be found in the libpacklib1-dev + package. + . + This package is the static version of the libpacklib-lesstif library, to be + used for development. + +Package: libpacklib1-lesstif +Architecture: any +Section: libs +Depends: ${shlibs:Depends} +Description: Cernlib graphical user interface library + 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 includes the graphical functionality of KUIP, the Cernlib + Kit for a User Interface Package. This library has been split off + from packlib in Debian so that the packlib packages need not depend upon + the X and Lesstif libraries. The package was formerly named libkuipx11-1. + The text-based functionality of KUIP can be found in the libpacklib1 package. + . + Note that in order to compile and link programs against this library, you + must also install the libpacklib1-lesstif-dev package. + +Package: libpacklib1 +Architecture: any +Section: libs +Depends: ${shlibs:Depends} +Suggests: xterm | x-terminal-emulator +Conflicts: paw-static (<= 2005.05.09-1), paw++-static (<= 2005.05.09-1) +Description: core Cernlib library + 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. + . + The packlib library includes a great deal of Cernlib core functionality. + Best-known are probably the MINUIT function minimization routines, the + HBOOK histogramming routines, and KUIP (Kit for a User Interface Package). + Other subsystems include CSPACK, a set of client-server routines; FFREAD, + a format-free input processing system for FORTRAN; and ZEBRA, a data + structure management package. This package also includes kuesvr, + the KUIP edit server program that permits calling an editor asynchronously + from within a KUIP-based program. + . + Please note that the graphical functionality of KUIP has been split out into + the separate Debian package libpacklib1-lesstif so that this package need not + depend upon the X libraries. In order to compile and link programs + against libpacklib, you must also install the libpacklib1-dev (and + maybe also the libpacklib1-lesstif-dev) package(s). + +Package: libpawlib2-dev +Architecture: any +Section: libdevel +Depends: libpawlib2 (= ${Source-Version}), libgraflib1-dev (= ${Source-Version}), libmathlib2-dev (= ${Source-Version}) +Replaces: libpaw1-dev +Conflicts: libpaw1-dev +Suggests: libpawlib2-lesstif-dev +Description: Cernlib PAW library - portion without Lesstif (development files) + 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 includes a static version of (most of) the library pawlib, + required by the Cernlib application PAW. In addition to the internal workings + of PAW, pawlib also provides the COMIS FORTRAN interpreter and the SIGMA array + manipulation language. The Lesstif-dependent parts of the library are + provided in the libpawlib2-lesstif-dev package. + . + The COMIS portion of this library is functional on AMD64 machines only + when statically linked, and not at all on other 64-bit platforms. + +Package: libpawlib2-lesstif-dev +Architecture: any +Section: libdevel +Conflicts: libpaw1-dev +Replaces: libpaw1-dev +Depends: libpawlib2-lesstif (= ${Source-Version}), libpawlib2-dev (= ${Source-Version}), libpacklib1-lesstif-dev (= ${Source-Version}), lesstif2-dev +Description: Cernlib PAW library (Lesstif-dependent part - development files) + 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 includes the Lesstif-dependent parts of the library pawlib, + required by the Cernlib application Paw++, in a static version. The remainder + of pawlib is provided in the package libpawlib2-dev. + . + The COMIS portion of pawlib is functional on AMD64 machines only when + statically linked, and not at all on other 64-bit platforms. + +Package: libpawlib2-lesstif +Architecture: any +Section: libs +Depends: ${shlibs:Depends} +Description: Cernlib PAW library (Lesstif-dependent part) + 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 includes the Lesstif-dependent parts of the library pawlib, + required by the Cernlib application Paw++. Note that in order to compile and + link programs against this library, you must also install the + libpawlib2-lesstif-dev package. The remainder of pawlib is provided in the + package libpawlib2. + . + The COMIS portion of pawlib is functional on AMD64 machines only when + statically linked, and not at all on other 64-bit platforms. + +Package: libpawlib2 +Architecture: any +Section: libs +Depends: ${shlibs:Depends}, g77, netbase (>= 4.08) +Recommends: libc6-dev | libc-dev +Description: Cernlib PAW library - portion without Lesstif dependencies + 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 includes (most of) the library pawlib, required by the Cernlib + application PAW. In addition to the internal workings of PAW, pawlib + also provides the COMIS FORTRAN interpreter and the SIGMA array + manipulation language. The Lesstif-dependent parts of the library are + provided in the libpawlib2-lesstif package. + . + Note that in order to compile and link programs against this library, you + must install the libpawlib2-dev and maybe also the libpawlib2-lesstif-dev + package(s). + . + The COMIS portion of this library is functional on AMD64 machines only + when statically linked, and not at all on other 64-bit platforms. + +Package: libpdflib804-2-dev +Architecture: any +Section: libdevel +Depends: libpdflib804-2 (= ${Source-Version}), libmathlib2-dev (= ${Source-Version}) +Replaces: libpdflib804-dev +Conflicts: libpdflib804-dev +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 +Architecture: any +Section: libs +Depends: ${shlibs:Depends}, montecarlo-base +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-dev +Architecture: any +Section: libdevel +Depends: libphotos202 (= ${Source-Version}), cfortran, libc6-dev | libc-dev +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: libphotos202 +Architecture: any +Section: libs +Depends: ${shlibs:Depends}, cernlib-base, montecarlo-base +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: libphtools2-dev +Architecture: any +Section: libdevel +Depends: libphtools2 (= ${Source-Version}), libmathlib2-dev (= ${Source-Version}) +Replaces: libphtools1-dev +Conflicts: libphtools1-dev +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 +Architecture: any +Section: libs +Depends: ${shlibs:Depends}, montecarlo-base +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 +Section: science +Depends: cernlib-base +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: paw++-static +Architecture: any +Section: science +Depends: paw++ (>= 2005.05.09.dfsg-3) +Description: Dummy package for smooth upgrades of Paw++ + 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. + Paw++ is an interactive program for use in analysis and graphical presentation. + . + The paw++ package has been changed to include a dynamically linked version + of Paw++ on 32-bit architectures and a statically linked version on 64-bit + architectures. This package, paw++-static, is therefore now an empty dummy + package that depends upon paw++ in order to ensure smooth upgrades. On + 64-bit arches it provides a backwards-compatibility symlink + /usr/bin/paw++.static -> paw++. Unless you need the symlink, this package + may be removed with no ill effects. + +Package: paw++ +Architecture: any +Section: science +Depends: ${shlibs:Depends}, paw-common, kxterm, g77, netbase (>= 4.08) +Suggests: paw-demos, gv +Provides: paw-binary +Replaces: paw-common (<< 2005.05.09.dfsg-3) +Description: Physics Analysis Workstation (Lesstif-enhanced version) + 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 includes Paw++, an interactive program for use in analysis and + graphical presentation. Paw++ is the same program as PAW (in the "paw" + package), but with a more user-friendly Motif-based GUI, compiled against + Lesstif in Debian. + . + The program is linked statically against the CERN libraries on + 64-bit architectures in order to function properly, as its design is not + very 64-bit clean. Even so, AMD64 is the only 64-bit platform where it + functions well. + +Package: paw-common +Architecture: all +Section: science +Depends: cernlib-base, netbase (>= 4.08) +Recommends: libc6-dev | libc-dev, paw | paw-binary +Description: Physics Analysis Workstation (common files) + 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 includes arch-independent files for PAW, an interactive + program for use in analysis and graphical presentation. This package + is useless without also installing the paw or paw++ package. + +Package: paw-demos +Architecture: all +Section: science +Depends: paw | paw-binary +Description: Physics Analysis Workstation examples and tests + 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 includes example scripts for use by PAW or Paw++, and test + scripts to make sure that the PAW or Paw++ programs behave correctly. You + may run the examples and tests with the included paw-demos program. + +Package: paw-static +Architecture: any +Section: science +Depends: paw (>= 2005.05.09.dfsg-3) +Description: Dummy package for smooth upgrades of PAW + 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. + PAW is an interactive program for use in analysis and graphical presentation. + . + The paw package has been changed to include a dynamically linked version + of PAW on 32-bit architectures and a statically linked version on 64-bit + architectures. This package, paw-static, is therefore now an empty dummy + package that depends upon paw in order to ensure smooth upgrades. On + 64-bit arches it provides a backwards-compatibility symlink + /usr/bin/pawX11.static -> pawX11. Unless you need the symlink, this package + may be removed with no ill effects. + +Package: paw +Architecture: any +Section: science +Depends: ${shlibs:Depends}, paw-common, g77, netbase (>= 4.08) +Suggests: paw-demos, gv +Provides: paw-binary +Replaces: paw-common (<< 2005.05.09.dfsg-3) +Description: Physics Analysis Workstation - a graphical analysis program + 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. + . + PAW is an interactive program providing interactive graphical presentation + and statistical and mathematical analysis tools. It is designed to work + on objects familiar to physicists such as histograms, event files (Ntuples), + vectors, etc. + . + The program is linked statically against the CERN libraries on 64-bit + architectures in order to function properly, as its design is not + very 64-bit clean. Even so, AMD64 is the only 64-bit platform where it + functions well. + +Package: pawserv +Architecture: any +Priority: extra +Section: net +Depends: ${shlibs:Depends}, netbase (>= 4.08), debconf (>= 1.2.0) | debconf-2.0, netkit-inetd | xinetd +Recommends: cron +Suggests: logrotate +Conflicts: zserv, harden-servers +Replaces: zserv +Description: Cernlib's distributed PAW and file transfer servers + 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 the server daemon for remote PAW clients. PAW + is the Physics Analysis Workstation, a graphical analysis program. + Included in the same binary is zserv, the server daemon for the ZFTP protocol; + zserv is a macro-extensible file transfer program which supports the + transfer of formatted, unformatted and ZEBRA RZ files (CMZ, HBOOK, etc.). + It is similar to a standard FTP daemon, although it listens on a different + port. Both servers operate through inetd. You may run them under xinetd + instead (so it is listed as an alternative dependency to netkit-inetd), + but you will have to set up the configuration yourself. + . + Since these servers accept passwords in cleartext and do not support SSL + or other encryption methods, you should probably only install this package + within a trusted LAN. Think of it as equivalent to vanilla telnetd in terms + of security (or lack thereof). + +Package: zftp +Architecture: any +Priority: extra +Section: net +Depends: ${shlibs:Depends}, netbase (>= 4.08) +Description: Cernlib's file transfer program + 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. + . + ZFTP is a macro-extensible file transfer program which supports the + transfer of formatted, unformatted and ZEBRA RZ files (CMZ, HBOOK, etc.). + It provides a common interface on all systems and avoids the problems of + file format conversion that occur when transferring Cernlib files + between different architectures. + . + Except for the special treatment of Cernlib files and use of a different port, + zftp is very similar to an FTP client. Unless you are already familiar with + this program, it will almost certainly be useless to you. + --- cernlib-2005.05.09.dfsg.orig/debian/copyright +++ cernlib-2005.05.09.dfsg/debian/copyright @@ -0,0 +1,406 @@ +This package was debianized by Kevin B. McCarty . +It was downloaded from the web page +http://wwwinfo.cern.ch/asd/cernlib/download/2005_source/tar/ + + +COPYRIGHT +--------- + +Cernlib is copyright (C) CERN and others. As of this writing (13 Jan 2005), +the web page http://wwwinfo.cern.ch/asd/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 + +On Debian systems, the complete text of the GNU General Public License can be +found in the file `/usr/share/common-licenses/GPL'. + +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) + cernlib-$VERSION/src/mclibs/pdf/doc/pdfdoc.dat (unpacked Debian source). + + +EXCEPTIONS +---------- + +Some source files of Cernlib are provided (in parts, or in entirety) under +different licenses which are compatible with the GPL. See the table and +licenses below for details. (File paths are relative to the directory +cernlib-$VERSION/src/ after running "debian/rules unpack".) Most of the +differences in the licenses below are only in the exact wordings. The +"Package(s)" column lists the binary Debian packages in which each piece of +code is compiled or otherwise included. + +Copyright codes are as follows: + +LGPL - Library GPL +BSD - BSD style license +NO AD - BSD style license with negative advertising clause + +Package codes are as follows: + +Dev = most development packages +Kx = kxterm +Graf = libgrafx11-1, libgrafx11-1-dev, paw, paw++ +Pack = libpacklib1, libpacklib1-dev, paw, paw++ +KuiM = libpacklib1-lesstif, libpacklib1-lesstif-dev, paw, paw++ +Paw++ = libpawlib2-lesstif, libpawlib2-lesstif-dev, paw++ +Src = [not included in binary packages, only source package] + +File(s) Package(s) License type Owner +------- ---------- ------------ ----- +cfortran/* Dev LGPL [1] [a] +graflib/higz/higzcc/rotated.c Graf BSD [3] [b] +graflib/higz/higzcc/tkhigz.c Graf BSD [4] [c] +packlib/cspack/sysreq/telnet.h Pack BSD [2] [c] +packlib/kuip/code_kuip/getline.c Pack BSD [5] [d] +packlib/kuip/code_motif/icbox.h KuiM NO AD [6] [e] +packlib/kuip/code_motif/icboxp.h KuiM NO AD [6] [e] +packlib/kuip/code_motif/iconbox.c KuiM NO AD [6] [e] +packlib/kuip/code_motif/iconwidget.c KuiM NO AD [7] [f] +packlib/kuip/code_motif/icwid.h KuiM NO AD [7] [f] +packlib/kuip/code_motif/icwidp.h KuiM NO AD [7] [f] +packlib/kuip/code_motif/kuxxt.c KuiM NO AD [8] [g] +packlib/kuip/code_motif/mkuxxt.h KuiM NO AD [8] [g] +packlib/kuip/programs/kxterm/uxxt.c Kx NO AD [8] [g] +packlib/kuip/programs/kxterm/uxxt.h Kx NO AD [8] [g] +pawlib/paw/hmotif/uxxt.h Paw++ NO AD [8] [g] +pawlib/paw/paw/tree.h Paw++ BSD [9] [h] +pawlib/paw/tree/tree.c Paw++ BSD [9] [h] +pawlib/paw/tree/treep.h Paw++ BSD [9] [h] +pawlib/paw/xbae/caption.c Paw++ NO AD [10] [i] +pawlib/paw/xbae/caption.h Paw++ NO AD [10] [i] +pawlib/paw/xbae/captionp.h Paw++ NO AD [10] [i] +pawlib/paw/xbae/cell.c Paw++ NO AD [11] [j] +pawlib/paw/xbae/cell.h Paw++ NO AD [11] [j] +pawlib/paw/xbae/cellp.h Paw++ NO AD [11] [j] +pawlib/paw/xbae/clip.c Paw++ NO AD [10] [i] +pawlib/paw/xbae/clip.h Paw++ NO AD [10] [i] +pawlib/paw/xbae/clipp.h Paw++ NO AD [10] [i] +pawlib/paw/xbae/matrix.c Paw++ NO AD [10] [i] +pawlib/paw/xbae/matrix.h Paw++ NO AD [10] [i] +pawlib/paw/xbae/matrixp.h Paw++ NO AD [10] [i] +pawlib/paw/xbae/version.c Paw++ NO AD [10] [i] +pawlib/paw/xbaevms/caption.c Src NO AD [10] [i] +pawlib/paw/xbaevms/caption.h Src NO AD [10] [i] +pawlib/paw/xbaevms/captionp.h Src NO AD [10] [i] +pawlib/paw/xbaevms/clip.c Src NO AD [10] [i] +pawlib/paw/xbaevms/clip.h Src NO AD [10] [i] +pawlib/paw/xbaevms/clipp.h Src NO AD [10] [i] +pawlib/paw/xbaevms/matrix.c Src NO AD [10] [i] +pawlib/paw/xbaevms/matrix.h Src NO AD [10] [i] +pawlib/paw/xbaevms/matrixp.h Src NO AD [10] [i] +pawlib/paw/xbaevms/version.c Src NO AD [10] [i] + + +Exception copyright holders +--------------------------- + +[a] Burkhard Burow, , + http://www-zeus.desy.de/~burow/cfortran/index.htm + +[b] Alan Richardson, , and O. Couet + +[c] The Regents of the University of California + +[d] Chris Thewalt, + +[e] Alphonse A. Rademakers, , + CN/AS Division + CERN, European Organization for Nuclear Research + 1123 Geneve, Switzerland + +[f] Addison-Wesley Publishing Company + +[g] Visual Edge Software Ltd. + +[h] Massachusetts Institute of Technology and Prentice Hall + +[i] Bell Communications Research, Inc. (Bellcore) + +[j] Q. Frank Xia, + + +Exception license details +------------------------- + +[1] 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'. + +[2] On Debian systems, the complete text of the BSD License + can be found in the file `/usr/share/common-licenses/BSD'. + +[3] xvertext 5.0, Copyright (c) 1993 Alan Richardson (mppa3@uk.ac.sussex.syma) + Alignment definition modified by O.Couet. + Mods IBM/VM by O.Couet. + + Permission to use, copy, modify, and distribute this software and its + documentation for any purpose and without fee is hereby granted, provided + that the above copyright notice appear in all copies and that both the + copyright notice and this permission notice appear in supporting + documentation. All work developed as a consequence of the use of + this program should duly acknowledge such use. No representations are + made about the suitability of this software for any purpose. It is + provided "as is" without express or implied warranty. + +[4] Copyright (c) 1991-1993 The Regents of the University of California. + All rights reserved. + + Permission is hereby granted, without written agreement and without + license or royalty fees, to use, copy, modify, and distribute this + software and its documentation for any purpose, provided that the + above copyright notice and the following two paragraphs appear in + all copies of this software. + + IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR + DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT + OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF + CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS + ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO + PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. + +[5] Copyright (C) 1991, 1992 by Chris Thewalt (thewalt@ce.berkeley.edu) + + Permission to use, copy, modify, and distribute this software + for any purpose and without fee is hereby granted, provided + that the above copyright notices appear in all copies and that both the + copyright notice and this permission notice appear in supporting + documentation. This software is provided "as is" without express or + implied warranty. + +[6] Copyright 1992 Alphonse A. Rademakers + + Permission to use, copy, modify, distribute, and sell this software + and its documentation for any purpose is hereby granted without + fee, provided that the above copyright notice appears in all copies + and that both that copyright notice and this permission notice + appear in supporting documentation, and that the name of + Alphonse A. Rademakers or CERN not be used in advertising or + publicity pertaining to distribution of the software without + specific, written prior permission. Alphonse A. Rademakers and + CERN make no representations about the suitability of this software + for any purpose. It is provided "as is" without express or implied + warranty. + + Alphonse A. Rademakers and CERN disclaim all warranties with + regard to this software, including all implied warranties of + merchantability and fitness, in no event shall + Alphonse A. Rademakers or CERN be liable for any special, indirect + or consequential damages or any damages whatsoever resulting from + loss of use, data or profits, whether in an action of contract, + negligence or other tortious action, arising out of or in + connection with the use or performance of this software. + + [Debian maintainer's note: Although the files with this copyright are + described as "based on ideas by Thomas Berlage" (see next entry), a + comparison with the original IconBox code of Thomas Berlage, available by + FTP at (e.g.) ftp://ftp.x.org/R5contrib/berlage.motif.tar.Z , shows that + they were written from scratch.] + +[7] Copyright 1991 Addison-Wesley Publishing Company + + Permission to use, copy, modify, distribute, and sell this software and its + documentation for any purpose is hereby granted without fee, provided that + the above copyright notice appear in all copies and that both that + copyright notice and this permission notice appear in supporting + documentation, and that the name of Addison-Wesley not be used in + advertising or publicity pertaining to distribution of the software without + specific, written prior permission. Addison-Wesley makes no representations + about the suitability of this software for any purpose. It is provided + as is" without express or implied warranty. + + ADDISON-WESLEY DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, + INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT + SHALL ADDISON-WESLEY BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL + DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR + PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS + ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF + THIS SOFTWARE. + + Berlage: OSF/MOTIF: CONCEPTS AND PROGRAMMING + + ISBN 0 201 55792 4 + + To order please contact your local Addison-Wesley office. + + [Debian maintainer's note: The COPYRIGHT file referred to by the files + iconwidget.c, icwid.h, and icwidp.h, and quoted above, is not included in + the Cernlib source code. It, along with the original versions of those + files (named IconWidget.c, IconWidget.h, and IconWidgetP.h, respectively), + may be found in the materials distributed with the book _OSF/Motif: + Concepts and Programming_, by Thomas Berlage, (C) 1991 Addison-Wesley + Publishing Company, or downloadable by FTP from (e.g.) + ftp://ftp.x.org/R5contrib/berlage.motif.tar.Z .] + +[8] Copyright (c) 1991, Visual Edge Software Ltd. + + ALL RIGHTS RESERVED. Permission to use, copy, modify, and + distribute this software and its documentation for any purpose + and without fee is hereby granted, provided that the above + copyright notice appear in all copies and that both that + copyright notice and this permission notice appear in supporting + documentation, and that the name of Visual Edge Software not be + used in advertising or publicity pertaining to distribution of + the software without specific, written prior permission. The year + included in the notice is the year of the creation of the work. + +[9] Copyright 1990 Massachusetts Institute of Technology + Copyright 1989 Prentice Hall + + Permission to use, copy, modify, and distribute this software for any + purpose and without fee is hereby granted, provided that the above + copyright notice appear in all copies and that both the copyright notice + and this permission notice appear in supporting documentation. + + M.I.T., Prentice Hall and the authors disclaim all warranties with regard + to this software, including all implied warranties of merchantability and + fitness. In no event shall M.I.T., Prentice Hall or the authors be liable + for any special, indirect or cosequential damages or any damages whatsoever + resulting from loss of use, data or profits, whether in an action of + contract, negligence or other tortious action, arising out of or in + connection with the use or performance of this software. + +[10] Copyright(c) 1992 Bell Communications Research, Inc. (Bellcore) + All rights reserved + + Permission to use, copy, modify and distribute this material for + any purpose and without fee is hereby granted, provided that the + above copyright notice and this permission notice appear in all + copies, and that the name of Bellcore not be used in advertising + or publicity pertaining to this material without the specific, + prior written permission of an authorized representative of + Bellcore. + + BELLCORE MAKES NO REPRESENTATIONS AND EXTENDS NO WARRANTIES, EX- + PRESS OR IMPLIED, WITH RESPECT TO THE SOFTWARE, INCLUDING, BUT + NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND + FITNESS FOR ANY PARTICULAR PURPOSE, AND THE WARRANTY AGAINST IN- + FRINGEMENT OF PATENTS OR OTHER INTELLECTUAL PROPERTY RIGHTS. THE + SOFTWARE IS PROVIDED "AS IS", AND IN NO EVENT SHALL BELLCORE OR + ANY OF ITS AFFILIATES BE LIABLE FOR ANY DAMAGES, INCLUDING ANY + LOST PROFITS OR OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES RELAT- + ING TO THE SOFTWARE. + +[11] Copyright(C) Q. Frank Xia (qx@math.columbia.edu), 1994. + + All Rights Reserved + + Permission to use, copy, modify, and distribute this software and its + documentation for any purpose and without fee is hereby granted, + provided that the above copyright notice appear in all copies and that + both that copyright notice and this permission notice appear in + supporting documentation, and that the name of Q. Frank Xia not be + used in advertising or publicity pertaining to distribution of the + software without specific, written prior permission. + + This software is provided as-is and without any warranty of any kind. + + +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 files for libmathlib2, +montecarlo-base, and libgeant321-2 packages for more information on obtaining +the Ariadne, Fluka, Fritiof, Jetset, Lepto, and Pythia libraries. + +car/geanf.car +car/geanf321.car +car/jetset74.car +cmz/geanf.cmz +cmz/geanf321.cmz +geant321/block/ +geant321/data/flukaaf.dat +geant321/fiface/ +geant321/fluka/ +geant321/geant321/aadat.inc +geant321/geant321/auxpar.inc +geant321/geant321/balanc.inc +geant321/geant321/bamjcm.inc +geant321/geant321/cmsres.inc +geant321/geant321/comcon.inc +geant321/geant321/corinc.inc +geant321/geant321/dblprc.inc +geant321/geant321/decayc.inc +geant321/geant321/decayc2.inc +geant321/geant321/depnuc.inc +geant321/geant321/dimpar.inc +geant321/geant321/eva0.inc +geant321/geant321/eva1.inc +geant321/geant321/fheavy.inc +geant321/geant321/finlsp.inc +geant321/geant321/finlsp2.inc +geant321/geant321/finlsp3.inc +geant321/geant321/finpar.inc +geant321/geant321/finpar2.inc +geant321/geant321/finuc.inc +geant321/geant321/finuc2.inc +geant321/geant321/finuct.inc +geant321/geant321/hadflg.inc +geant321/geant321/hadpar.inc +geant321/geant321/higfis.inc +geant321/geant321/inpdat.inc +geant321/geant321/inpdat2.inc +geant321/geant321/inpflg.inc +geant321/geant321/iounit.inc +geant321/geant321/isotop.inc +geant321/geant321/labcos.inc +geant321/geant321/mapa.inc +geant321/geant321/metlsp.inc +geant321/geant321/nucdat.inc +geant321/geant321/nucgeo.inc +geant321/geant321/nuclev.inc +geant321/geant321/nucpar.inc +geant321/geant321/nucstf.inc +geant321/geant321/paprop.inc +geant321/geant321/parevt.inc +geant321/geant321/parnuc.inc +geant321/geant321/part.inc +geant321/geant321/part2.inc +geant321/geant321/part3.inc +geant321/geant321/qquark.inc +geant321/geant321/reac.inc +geant321/geant321/redver.inc +geant321/geant321/resnuc.inc +geant321/geant321/split.inc +geant321/geant321/xsepar.inc +geant321/miface/gfmdis.F +geant321/miface/gfmfin.F +geant321/peanut/ +graflib/higz/igold/golini.F +mclibs/ariadne/ +mclibs/ariadne_407/ +mclibs/fritiof/ +mclibs/jetset/ +mclibs/lepto63/ +mclibs/pythia/ +packlib/cspack/sysreq/pwd_vms.h +packlib/cspack/sysreq/sgtty.h +packlib/cspack/vmsc/ +packlib/fatmen/scripts/unix/ctab_root.dat +packlib/kernlib/kernbit/z037/astdoc.F +packlib/kernlib/kernbit/z037/fiopat.s +pawlib/comis/comis/dlfcn.inc +pawlib/comis/deccc/dlfcn.c +pawlib/comis/obsolete/rsibm/ +pawlib/paw/stagerd/bftp.c --- cernlib-2005.05.09.dfsg.orig/debian/lintian/paw++ +++ cernlib-2005.05.09.dfsg/debian/lintian/paw++ @@ -0,0 +1 @@ +paw++: menu-icon-missing /usr/share/pixmaps/paw32x32.xpm --- cernlib-2005.05.09.dfsg.orig/debian/lintian/paw +++ cernlib-2005.05.09.dfsg/debian/lintian/paw @@ -0,0 +1,2 @@ +paw: menu-command-not-in-package /usr/share/menu/paw:6 sh +paw: menu-icon-missing /usr/share/pixmaps/paw32x32.xpm --- cernlib-2005.05.09.dfsg.orig/debian/patches/00list +++ cernlib-2005.05.09.dfsg/debian/patches/00list @@ -0,0 +1,79 @@ +000-unpack.sh.dpatch +001-fix-missing-fluka.dpatch +002-fix-missing-mclibs.dpatch +003-geant-dummy-functions.dpatch +100-fix-isajet-manual-corruption.dpatch +101-undefine-PPC.dpatch +102-dont-optimize-some-code.dpatch +103-ignore-overly-long-macro-in-gen.h.dpatch +104-fix-undefined-insertchar-warning.dpatch +105-fix-obsolete-xmfontlistcreate-warning.dpatch +106-fix-paw++-menus-in-lesstif.dpatch +107-define-strdup-macro-safely.dpatch +108-quote-protect-comis-script.dpatch +109-fix-broken-xsneut95.dat-link.dpatch +110-ignore-included-lapack-rule.dpatch +111-fix-kuesvr-install-location.dpatch +112-remove-nonexistent-prototypes-from-gen.h.dpatch +113-cups-postscript-fix.dpatch +114-install-scripts-properly.dpatch +115-rsrtnt64-goto-outer-block.dpatch +116-fix-fconc64-spaghetti-code.dpatch +117-fix-optimizer-bug-in-gphot.dpatch +200-comis-allow-special-chars-in-path.dpatch +201-update-kuip-helper-apps.dpatch +202-fix-includes-in-minuit-example.dpatch +203-compile-geant-with-ertrak.dpatch +204-compile-isajet-with-isasrt.dpatch +205-max-path-length-to-256.dpatch +206-herwig-uses-DBLE-not-REAL.dpatch +207-compile-temp-libs-with-fPIC.dpatch +208-fix-redundant-packlib-dependencies.dpatch +209-ignore-unneeded-headers-in-kmutil.c.dpatch +210-improve-cfortran-header-files.dpatch +211-fix-comis-on-amd64.dpatch +211-fix-comis-on-ia64.dpatch +300-skip-duplicate-lenocc.dpatch +301-datafiles-comply-with-FHS.dpatch +302-scripts-comply-with-FHS.dpatch +303-shadow-passwords-supported.dpatch +304-update-Imake-config-files.dpatch +305-use-POWERPC-not-PPC-as-test.dpatch +306-patch-assert.h-for-makedepend.dpatch +307-use-canonical-cfortran.dpatch +308-use-canonical-cfortran-location.dpatch +309-define-dummy-herwig-routines.dpatch +310-define-dummy-fowl-routines.dpatch +311-skip-duplicate-qnext.dpatch +312-skip-duplicate-gamma.dpatch +313-comis-preserves-filename-case.dpatch +314-permit-using-regcomp-for-re_comp.dpatch +315-fixes-for-MacOSX.dpatch +317-copy-converter.h-to-installed-headers-dir.sh.dpatch +318-additional-gcc-3.4-fixes.dpatch +600-support-deb-build-options.dpatch +601-paw-bugreport-goes-to-BTS.dpatch +602-debianize-kuip-helper-apps.dpatch +603-trim-build-output.dpatch +604-put-pawserv-logs-in-own-directory.dpatch +605-move-kuesvr-to-usrlib.dpatch +700-move-kernlib-to-top-level.sh.dpatch +700-remove-kernlib-from-packlib-Imakefile.dpatch +701-move-packlib-hkfill-to-comis.sh.dpatch +701-patch-hbook-comis-Imakefiles.dpatch +702-fix-packlib-mathlib-circular-mess.sh.dpatch +702-patch-Imakefiles-for-packlib-mathlib.dpatch +703-move-code_motif-to-top-level.sh.dpatch +703-patch-code_motif-packlib-Imakefiles.dpatch +704-move-kuwhag.c-to-grafX11.sh.dpatch +704-patch-code_kuip-higzcc-Imakefiles.dpatch +705-move-paw++-code-to-top-level.sh.dpatch +705-patch-paw_motif-paw-Imakefiles.dpatch +800-implement-shared-library-rules-in-Imake.dpatch +801-non-optimized-rule-uses-fPIC-g.dpatch +802-create-shared-libraries.dpatch +803-link-binaries-dynamically.dpatch +804-link-to-comis-includes.sh.dpatch +804-workaround-for-comis-mdpool-struct-location.dpatch +805-expunge-missing-mathlib-kernlib-symbols.dpatch +806-bump-mathlib-and-dependents-sonames.dpatch --- cernlib-2005.05.09.dfsg.orig/debian/patches/304-update-Imake-config-files.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/304-update-Imake-config-files.dpatch @@ -0,0 +1,1732 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 304-update-Imake-config-files.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Use Imake.cf stolen from recent XFree86 code, as it is much more +## DP: up-to-date than the Imake.cf in Cernlib source. Also update linux.cf +## DP: to support most Linux architectures. + +@DPATCH@ +diff -urNad cernlib-2005.05.09.dfsg~/src/config/Imake.cf cernlib-2005.05.09.dfsg/src/config/Imake.cf +--- cernlib-2005.05.09.dfsg~/src/config/Imake.cf 2004-10-05 11:54:40.000000000 -0400 ++++ cernlib-2005.05.09.dfsg/src/config/Imake.cf 2005-12-12 09:42:08.529220732 -0500 +@@ -1,24 +1,10 @@ +-/* $Id: Imake.cf,v 1.5 2004/10/05 15:54:40 mclareni Exp $ +- * +- * $Log: Imake.cf,v $ +- * Revision 1.5 2004/10/05 15:54:40 mclareni +- * Add configuration file linux-lp64 for Linux 64-bit pointer systems like AMD Opteron and Intel IA64. +- * +- * Revision 1.4 1998/09/25 09:23:38 mclareni +- * Modifications for the Mklinux port flagged by CERNLIB_PPC +- * +- * Revision 1.3 1998/06/09 13:54:39 cernlib +- * Make sure unix is properly undefined to compile kernlib/unix +- * +- * Revision 1.2 1995/12/21 11:31:57 cernlib +- * Imake files end 1995 +- * +- * Revision 1.1.1.1 1995/12/20 15:26:44 cernlib +- * X11R6 config files unmodified +- * +- * ++/* This is the Imake.cf file stolen from XFree86 4.3.0, patched for Debian ++ (version 4.3.0.dfsg.1-4). It is a major improvement (several years ahead) ++ of the Imake.cf file originally packed with Cernlib. ++ -- Kevin McCarty, for Debian + */ +-XCOMM $XConsortium: Imake.cf,v 1.19 95/01/05 19:24:32 kaleb Exp $ ++ ++XCOMM $Xorg: Imake.cf,v 1.4 2000/08/17 19:41:45 cpqbld Exp $ + /* + * To add support for another platform: + * +@@ -37,250 +23,448 @@ + * + * 4. Create a .cf file with the name given by MacroFile. + */ ++XCOMM $XFree86: xc/config/cf/Imake.cf,v 3.81 2003/02/18 16:51:45 tsi Exp $ + +-#ifdef ultrix +-#define MacroIncludeFile +-#define MacroFile ultrix.cf +-#ifdef vax +-#undef vax +-#define VaxArchitecture +-#endif +-#ifdef mips +-#undef mips +-#define MipsArchitecture ++#if defined(__APPLE__) ++# undef __APPLE__ ++# define MacroIncludeFile ++# define MacroFile MacOSX.cf ++# define DarwinArchitecture ++# ifdef __ppc__ ++# define PpcDarwinArchitecture ++# undef __ppc__ ++# endif ++# ifdef __i386__ ++# define i386DarwinArchitecture ++# undef __i386__ ++# endif + #endif +-#undef ultrix +-#define UltrixArchitecture ++ ++#if defined(clipper) || defined(__clipper__) ++# undef clipper ++# define MacroIncludeFile ++# define MacroFile ingr.cf ++# define IngrArchitecture ++#endif /* clipper */ ++ ++#ifdef __CYGWIN__ ++#define MacroIncludeFile ++#define MacroFile cygwin.cf ++#define cygwinArchitecture ++#define i386Architecture ++#undef i386 ++#undef i486 ++#undef i586 ++#undef i686 ++#undef __i386__ ++#undef _X86_ ++#undef __CYGWIN__ ++#endif /* CYGWIN */ ++ ++#ifdef ultrix ++# define MacroIncludeFile ++# define MacroFile ultrix.cf ++# ifdef vax ++# undef vax ++# define VaxArchitecture ++# endif ++# ifdef mips ++# undef mips ++# define MipsArchitecture ++# define MipselArchitecture ++# endif ++# undef ultrix ++# define UltrixArchitecture + #endif /* ultrix */ + + #if defined(vax) && !defined(UltrixArchitecture) +-#define MacroIncludeFile +-#define MacroFile bsd.cf +-#undef vax +-#define BSDArchitecture +-#define VaxArchitecture ++# define MacroIncludeFile ++# define MacroFile bsd.cf ++# undef vax ++# define BSDArchitecture ++# define VaxArchitecture + #endif /* vax */ + + #ifdef bsdi +-#define MacroIncludeFile +-#define MacroFile bsdi.cf +-#undef bsdi +-#define BSD386Architecture +-#define i386BsdArchitecture +-#define i386Architecture ++# define MacroIncludeFile ++# define MacroFile bsdi.cf ++# undef bsdi ++# define BSDOSArchitecture ++# if defined(__i386__) || defined(i386) ++# define i386BsdArchitecture ++# define i386Architecture ++# undef i386 ++# undef __i386__ ++# endif ++# if defined(__sparc__) || defined(__sparc_v9__) || defined(sparc) ++# define SparcArchitecture ++# undef sparc ++# undef __sparc__ ++# undef __sparc_v9__ ++# endif + #endif /* bsdi */ + ++#ifdef __OpenBSD__ ++# undef __OpenBSD__ ++# undef __NetBSD__ ++# define OpenBSDArchitecture ++# define MacroIncludeFile ++# define MacroFile OpenBSD.cf ++# ifdef __i386__ ++# define i386BsdArchitecture ++# define i386Architecture ++# undef i386 ++# endif ++# if defined(__sparc__) || defined(sparc) ++# if !defined(__arch64__) ++# define SparcArchitecture ++# else ++# define Sparc64Architecture ++# endif ++# undef sparc ++# endif ++# ifdef mips ++# define MipsArchitecture ++# ifdef arc ++# define ArcArchitecture ++# undef arc ++# endif ++# ifdef pmax ++# define PmaxArchitecture ++# undef pmax ++# endif ++# undef mips ++# endif ++# if defined(__alpha__) || defined(alpha) ++# define AlphaArchitecture ++# undef __alpha__ ++# undef alpha ++# endif ++# ifdef mc68020 ++# define Mc68020Architecture ++# if defined(amiga) ++# define AmigaArchitecture ++# undef amiga ++# endif ++# if defined(hp300) ++# define Hp300Architecture ++# undef hp300 ++# endif ++# if defined(mac68k) ++# define Mac68kArchitecture ++# undef mac68k ++# endif ++# if defined(mvme68k) ++# define Mvme68kArchitecture ++# undef mvme68k ++# endif ++# if defined(sun3) ++# define Sun3Architecture ++# undef sun3 ++# endif ++# undef mc68000 ++# endif ++# ifdef __powerpc__ ++# define PPCArchitecture ++# undef __powerpc__ ++# undef __macppc__ ++# undef macppc ++# endif ++#endif /* OpenBSD */ ++ + #ifdef __NetBSD__ +-#define MacroIncludeFile +-#define MacroFile NetBSD.cf +-#undef __NetBSD__ +-#define NetBSDArchitecture +-#ifdef __i386__ +-#define i386BsdArchitecture +-#define i386Architecture +-#endif +-#if defined(__sparc__) || defined(sparc) +-#define SparcArchitecture +-#undef sparc +-#endif ++# define MacroIncludeFile ++# define MacroFile NetBSD.cf ++# undef __NetBSD__ ++# define NetBSDArchitecture ++# ifdef __i386__ ++# define i386BsdArchitecture ++# define i386Architecture ++# undef i386 ++# endif ++# if defined(__sparc64__) || defined(__sparc_v9__) || defined(__arch64__) ++# define Sparc64Architecture ++# endif ++# if defined(__sparc__) || defined(sparc) ++# define SparcArchitecture ++# undef sparc ++# if defined(__sparc_v9__) || defined(__arch64__) ++# define Sparc64Architecture ++# endif ++# endif ++# ifdef mips ++# define MipsArchitecture ++# define ArcArchitecture ++# undef mips ++# endif ++# ifdef __alpha__ ++# define AlphaArchitecture ++# define AlphaBsdArchitecture ++# undef __alpha__ ++# endif ++# ifdef mc68000 ++# define Mc68020Architecture ++# endif ++# ifdef __arm32__ ++# define Arm32Architecture ++# undef __arm32__ ++# endif ++# ifdef __vax__ ++# define VaxArchitecture ++# undef __vax__ ++# endif ++# ifdef __powerpc__ ++# define PPCArchitecture ++# undef __powerpc__ ++# endif + #endif /* NetBSD */ + +-#ifdef __FreeBSD__ +-#define MacroIncludeFile +-#define MacroFile FreeBSD.cf +-#undef __FreeBSD__ +-#define FreeBSDArchitecture +-#ifdef __i386__ +-#define i386BsdArchitecture +-#define i386Architecture ++#ifdef __GNU_FreeBSD__ ++#define MacroIncludeFile ++#define MacroFile gnu-freebsd.cf ++#define GNUFreeBSDArchitecture + #endif ++ ++#ifdef __FreeBSD__ ++# define MacroIncludeFile ++# define MacroFile FreeBSD.cf ++# undef __FreeBSD__ ++# define FreeBSDArchitecture ++# ifdef __i386__ ++# define i386BsdArchitecture ++# define i386Architecture ++# undef i386 ++# endif ++# ifdef __alpha__ ++# define AlphaBsdArchitecture ++# define AlphaArchitecture ++# undef __alpha__ ++# endif ++# ifdef __sparc64__ ++# define Sparc64Architecture ++# undef __sparc64__ ++# endif + #endif /* __FreeBSD__ */ + + #ifdef AMOEBA +-/* Should be before the 'sun' entry because we may be cross-compiling */ +-#define MacroIncludeFile +-#define MacroFile Amoeba.cf +-#if defined(i80386) || defined(__i80386__) +-#define i386Architecture +-#else +-#if defined(mc68000) || defined(__mc68000__) +-#define Sun3Architecture +-#define SunArchitecture +-#else +-#if defined(sparc) || defined(__sparc__) +-#define SparcArchitecture +-#define SunArchitecture +-#endif +-#endif +-#endif +-#undef i80386 +-#undef mc68000 +-#undef sparc +-#undef sun ++ /* Should be before the 'sun' entry because we may be cross-compiling */ ++# define MacroIncludeFile ++# define MacroFile Amoeba.cf ++# if defined(i80386) || defined(__i80386__) ++# undef i80386 ++# define i386Architecture ++# else ++# if defined(mc68000) || defined(__mc68000__) ++# undef mc68000 ++# define Sun3Architecture ++# define SunArchitecture ++# else ++# if defined(sparc) || defined(__sparc__) ++# undef sparc ++# define SparcArchitecture ++# define SunArchitecture ++# endif ++# endif ++# undef sun ++# endif + #endif /* AMOEBA */ + + #ifdef sun +-#define MacroIncludeFile +-#define MacroFile sun.cf +-#ifdef SVR4 +-#undef SVR4 +-#define SVR4Architecture +-#endif +-#ifdef sparc +-#undef sparc +-#define SparcArchitecture +-#endif +-#ifdef mc68000 +-#undef mc68000 +-#define Sun3Architecture +-#endif +-#ifdef i386 +-#undef i386 +-#define i386Architecture +-#endif +-#undef sun +-#define SunArchitecture ++# define MacroIncludeFile ++# define MacroFile sun.cf ++# ifdef SVR4 ++# undef SVR4 ++# define SVR4Architecture ++# endif ++# ifdef sparc ++# undef sparc ++# define SparcArchitecture ++# endif ++# ifdef mc68000 ++# undef mc68000 ++# define Sun3Architecture ++# endif ++# ifdef i386 ++# undef i386 ++# define i386Architecture ++# endif ++# undef sun ++# define SunArchitecture + #endif /* sun */ + + #ifdef hpux +-#define MacroIncludeFile +-#define MacroFile hp.cf +-#undef hpux +-#define HPArchitecture ++# define MacroIncludeFile ++# define MacroFile hp.cf ++# undef hpux ++# define HPArchitecture + #endif /* hpux */ + ++#ifdef sco ++# define MacroIncludeFile ++# define MacroFile sco5.cf ++# undef sco ++# undef USL ++# undef SYSV ++# undef i386 ++# undef SCO ++# undef SVR4 ++# define i386Architecture ++# define SCOArchitecture ++# define i386SVR3Architecture ++# define SVR3Architecture ++# define i386ScoArchitecture ++# define i386Sco325Architecture ++#endif /* sco - SCO Open Server 5 */ ++ + #ifdef USL +-#define MacroIncludeFile +-#define MacroFile usl.cf +-#undef USL +-#undef SVR4 +-#define SVR4Architecture +-#define i386Architecture ++# define MacroIncludeFile ++# define MacroFile usl.cf ++# undef USL ++# undef SVR4 ++# undef i386 ++# define SVR4Architecture ++# define i386Architecture ++# define USLArchitecture + #endif /* USL */ + + #ifdef NCR +-#define MacroIncludeFile +-#define MacroFile ncr.cf +-#undef NCR +-#undef SVR4 +-#define SVR4Architecture +-#define i386Architecture ++# define MacroIncludeFile ++# define MacroFile ncr.cf ++# undef NCR ++# undef SVR4 ++# undef i386 ++# define SVR4Architecture ++# define i386Architecture ++# define NCRArchitecture + #endif /* NCR */ + + #ifdef apollo +-#define MacroIncludeFile +-#define MacroFile apollo.cf +-#undef apollo +-#define ApolloArchitecture ++# define MacroIncludeFile ++# define MacroFile apollo.cf ++# undef apollo ++# define ApolloArchitecture + #endif /* apollo */ + + #ifdef sony +-#define MacroIncludeFile +-#define MacroFile sony.cf +-#undef sony +-#undef sony_news +-#define SonyArchitecture +-#ifdef mc68020 +-#undef mc68020 +-#undef mc68030 +-#define Mc68020Architecture +-#endif +-#ifdef mips +-#undef mips +-#define MipsArchitecture +-#endif +-#if !defined(bsd43) || defined(SYSTYPE_SYSV) || defined(_SYSTYPE_SYSV) +-#define SonySysvArchitecture +-#else +-#define SonyBsdArchitecture +-#endif ++# define MacroIncludeFile ++# define MacroFile sony.cf ++# undef sony ++# undef sony_news ++# define SonyArchitecture ++# ifdef mc68020 ++# undef mc68020 ++# undef mc68030 ++# define Mc68020Architecture ++# endif ++# ifdef mips ++# undef mips ++# define MipsArchitecture ++# endif ++# ifdef __svr4 ++# define SVR4Architecture ++# else ++# if !defined(bsd43) || defined(SYSTYPE_SYSV) || defined(_SYSTYPE_SYSV) ++# define SonySysvArchitecture ++# else ++# define SonyBsdArchitecture ++# endif ++# endif + #endif /* sony */ + + #ifdef M4310 +-#define MacroIncludeFile +-#define MacroFile pegasus.cf +-#undef M4310 +-#define PegasusArchitecture ++# define MacroIncludeFile ++# define MacroFile pegasus.cf ++# undef M4310 ++# define PegasusArchitecture + #endif /* M4310 */ + + #ifdef M4330 +-#define MacroIncludeFile +-#define MacroFile m4330.cf +-#undef M4330 +-#define M4330Architecture ++# define MacroIncludeFile ++# define MacroFile m4330.cf ++# undef M4330 ++# define M4330Architecture + #endif /* M4330 */ + + #ifdef macII +-#define MacroIncludeFile +-#define MacroFile macII.cf +-#undef macII +-#define MacIIArchitecture ++# define MacroIncludeFile ++# define MacroFile macII.cf ++# undef macII ++# define MacIIArchitecture + #endif /* macII */ + + #ifdef _CRAY +-#define MacroIncludeFile +-#define MacroFile cray.cf +-#undef cray +-#undef CRAY +-#undef CRAY1 +-#undef CRAY2 +-#undef YMP +-#define CrayArchitecture ++# define MacroIncludeFile ++# define MacroFile cray.cf ++# undef cray ++# undef CRAY ++# undef CRAY1 ++# undef CRAY2 ++# undef YMP ++# define CrayArchitecture + #endif /* _CRAY */ + + #ifdef sgi +-#define MacroIncludeFile +-#define MacroFile sgi.cf +-#undef sgi +-#define SGIArchitecture +-#undef mips +-#define MipsArchitecture ++# define MacroIncludeFile ++# define MacroFile sgi.cf ++# undef sgi ++# define SGIArchitecture ++# undef mips ++# undef __mips ++# define MipsArchitecture ++# ifdef _SVR4 ++# undef _SVR4 ++# define SVR4Architecture ++# endif ++# ifdef _SYSTYPE_SVR4 ++# undef _SYSTYPE_SVR4 ++# define SVR4Architecture ++# endif + #endif /* sgi */ + + #ifdef stellar +-#define MacroIncludeFile +-#define MacroFile stellar.cf +-#undef stellar +-#define StellarArchitecture ++# define MacroIncludeFile ++# define MacroFile stellar.cf ++# undef stellar ++# define StellarArchitecture + #endif /* stellar */ + + #if defined(ibm) || defined(_IBMR2) || defined(ibm032) || defined(aix) +-#define MacroIncludeFile +-#define MacroFile ibm.cf +-#ifdef ibm +-#undef ibm +-#endif +-#define IBMArchitecture +-#ifdef i386 +-#undef i386 +-#define PS2Architecture +-#endif +-#ifdef ibm032 +-#undef ibm032 +-#define RtArchitecture +-#endif +-#ifdef aix +-#undef aix +-#define AIXArchitecture +-#endif +-#ifdef _IBMR2 +-#undef _IBMR2 +-#define RsArchitecture +-#endif ++# define MacroIncludeFile ++# define MacroFile ibm.cf ++# ifdef ibm ++# undef ibm ++# endif ++# define IBMArchitecture ++# ifdef i386 ++# undef i386 ++# define PS2Architecture ++# endif ++# ifdef ibm032 ++# undef ibm032 ++# define RtArchitecture ++# endif ++# ifdef aix ++# undef aix ++# define AIXArchitecture ++# endif ++# ifdef _IBMR2 ++# undef _IBMR2 ++# define RsArchitecture ++# endif + #endif /* ibm */ + + #ifdef luna +-#undef luna +-#define MacroIncludeFile +-#define MacroFile luna.cf +-#define LunaArchitecture +-#ifdef mc68000 +-#undef mc68000 +-#define Mc68000Architecture +-#else +-#undef mc88000 +-#define Mc88000Architecture +-#endif ++# undef luna ++# define MacroIncludeFile ++# define MacroFile luna.cf ++# define LunaArchitecture ++# ifdef mc68000 ++# undef mc68000 ++# define Mc68000Architecture ++# else ++# undef mc88000 ++# define Mc88000Architecture ++# endif + #endif /* luna */ + + #ifdef Mips +@@ -307,9 +491,14 @@ + # endif + #endif /* MOTOROLA */ + +-#ifdef SVR4 ++#if defined(SVR4) && !defined(DGUX) + # ifdef i386 + # define i386Architecture ++# undef i386 ++# endif ++# ifdef PC98 ++# define PANIX98Architecture ++# undef PC98 + # endif + # define SVR4Architecture + # define MacroIncludeFile +@@ -319,13 +508,42 @@ + + #ifdef SYSV + # ifdef i386 +-# define MacroIncludeFile +-# define MacroFile x386.cf +-# define i386SVR3Architecture +-# endif ++# undef i386 ++# ifdef ISC ++# define i386Architecture ++# define i386SVR3Architecture ++# define MacroIncludeFile ++# define MacroFile isc.cf ++# define i386IscArchitecture ++# undef ISC ++# ifdef ISC202 ++# define IscVersion 202 ++# undef ISC202 ++# else ++# ifdef ISC30 ++# define IscVersion 300 ++# undef ISC30 ++# else ++# ifdef ISC40 ++# define IscVersion 400 ++# undef ISC40 ++# else ++# define IscVersion 221 ++# endif /* ISC40 */ ++# endif /* ISC30 */ ++# endif /* ISC202 */ ++# endif /* ISC */ ++# ifndef MacroFile ++# define i386SVR3Architecture ++# define MacroIncludeFile ++# define MacroFile x386.cf ++# endif /* MacroFile */ ++# endif /* i386 */ + #endif /* SYSV */ + ++/* SYSV386 is here for backward compatibility only */ + #ifdef SYSV386 ++# undef i386 + # ifdef SVR4 + # define i386Architecture + # define SVR4Architecture +@@ -333,18 +551,46 @@ + # define MacroIncludeFile + # define MacroFile svr4.cf + # undef SVR4 +-# else +-# define MacroIncludeFile +-# define MacroFile x386.cf +-# define i386SVR3Architecture +-# endif ++# else /* ! SVR4 */ ++# ifdef ISC ++# define i386Architecture ++# define i386SVR3Architecture ++# define MacroIncludeFile ++# define MacroFile isc.cf ++# define i386IscArchitecture ++# undef ISC ++# ifdef ISC202 ++# define IscVersion 202 ++# undef ISC202 ++# else ++# ifdef ISC30 ++# define IscVersion 300 ++# undef ISC30 ++# else ++# ifdef ISC40 ++# define IscVersion 400 ++# undef ISC40 ++# else ++# define IscVersion 221 ++# endif /* ISC40 */ ++# endif /* ISC30 */ ++# endif /* ISC202 */ ++# endif /* ISC */ ++# ifndef MacroFile ++# define i386SVR3Architecture ++# define MacroIncludeFile ++# define MacroFile x386.cf ++# endif /* MacroFile */ ++# endif /* ! SVR4 */ + #endif /* SYSV386 */ + + #ifdef DGUX +-#define MacroIncludeFile +-#define MacroFile DGUX.cf +-#undef DGUX +-#define DguxArchitecture ++# define i386Architecture ++# define SVR4Architecture ++# define MacroIncludeFile ++# define MacroFile DGUX.cf ++# undef DGUX ++# define DguxArchitecture + #endif /* DGUX */ + + #ifdef __convex__ +@@ -356,101 +602,405 @@ + # define ConvexArchitecture + #endif /* _convex_ */ + +-/* GF. #ifdef __osf__ */ +-#if defined(__osf__) || defined(__alpha) +-#define MacroIncludeFile +-#define MacroFile osf1.cf +-#define OSF1Architecture +-#undef __osf__ +-#ifdef __mips__ +-#undef __mips__ +-#define MipsArchitecture +-#endif +-#ifdef __alpha +-#undef __alpha +-#define AlphaArchitecture +-#endif ++#ifdef __osf__ ++# define MacroIncludeFile ++# define MacroFile osf1.cf ++# define OSF1Architecture ++# undef __osf__ ++# ifdef __mips__ ++# undef __mips__ ++# define MipsArchitecture ++# define MipselArchitecture ++# endif ++# ifdef __alpha ++# undef __alpha ++# define AlphaArchitecture ++# endif + #endif /* __osf__ */ + + #ifdef Oki +-#define MacroIncludeFile +-#define MacroFile Oki.cf +-#undef Oki +-#define i860SVR4Architecture ++# define MacroIncludeFile ++# define MacroFile Oki.cf ++# undef Oki ++# define i860SVR4Architecture ++# define SVR4Architecture ++# undef SVR4 + #endif /* Oki */ + + #ifdef WIN32 +-#define MacroIncludeFile +-#define MacroFile Win32.cf +-#define Win32Architecture ++# define MacroIncludeFile ++# define MacroFile Win32.cf ++# define Win32Architecture + #endif /* WIN32 */ + + #ifdef linux +-#ifdef PPC +-#define MacroIncludeFile +-#define MacroFile linux-pmac.cf +-#undef linux +-#undef PPC +-#define LinuxArchitecture +-#define PPCArchitecture +-#elif _LP64 +-#define MacroIncludeFile +-#define MacroFile linux-lp64.cf +-#undef linux +-#undef _LP64 +-#define LinuxArchitecture +-#else +-#define MacroIncludeFile +-#define MacroFile linux.cf +-#undef linux +-#define LinuxArchitecture +-#define i386Architecture +-#endif ++# define MacroIncludeFile ++# define MacroFile linux.cf ++# undef linux ++# define LinuxArchitecture ++# ifdef i386 ++# ifndef i386Architecture ++# define i386Architecture ++# endif ++# undef i386 ++XCOMM Keep cpp from replacing path elements containing i486/i586/i686 ++# ifdef i486 ++# ifndef i386Architecture ++# define i386Architecture ++# endif ++# undef i486 ++# endif ++# ifdef i586 ++# ifndef i386Architecture ++# define i386Architecture ++# endif ++# undef i586 ++# endif ++# ifdef i686 ++# ifndef i386Architecture ++# define i386Architecture ++# endif ++# undef i686 ++# endif ++# ifdef k6 ++# ifndef i386Architecture ++# define i386Architecture ++# endif ++# undef k6 ++# endif ++# endif /* k6 */ ++# ifdef __i386__ ++# ifndef i386Architecture ++# define i386Architecture ++# endif ++# undef __i386__ ++# endif /* __i386__ */ ++# ifdef __i486__ ++# ifndef i386Architecture ++# define i386Architecture ++# endif ++# undef __i486__ ++# endif /* __i486__ */ ++# ifdef __i586__ ++# ifndef i386Architecture ++# define i386Architecture ++# endif ++# undef __i586__ ++# endif /* __i586__ */ ++# ifdef __i686__ ++# ifndef i386Architecture ++# define i386Architecture ++# endif ++# undef __i686__ ++# endif /* __i686__ */ ++# ifdef __k6__ ++# ifndef i386Architecture ++# define i386Architecture ++# endif ++# undef __k6__ ++# endif /* __k6__ */ ++# ifdef __i386 ++# ifndef i386Architecture ++# define i386Architecture ++# endif ++# undef __i386 ++# endif /* __i386 */ ++# ifdef __i486 ++# ifndef i386Architecture ++# define i386Architecture ++# endif ++# undef __i486 ++# endif /* __i486 */ ++# ifdef __i586 ++# ifndef i386Architecture ++# define i386Architecture ++# endif ++# undef __i586 ++# endif /* __i586 */ ++# ifdef __i686 ++# ifndef i386Architecture ++# define i386Architecture ++# endif ++# undef __i686 ++# endif /* __i686 */ ++# ifdef __k6 ++# ifndef i386Architecture ++# define i386Architecture ++# endif ++# undef __k6 ++# endif /* __k6 */ ++/* Keep this order! s390x has also __s390__ defined */ ++# if defined(__s390x__) ++# define s390xArchitecture ++# undef __s390x__ ++# undef __s390__ ++# endif ++# ifdef __s390__ ++# define s390Architecture ++# undef __s390__ ++# endif /* s390 */ ++# ifdef __alpha ++# define AlphaArchitecture ++# undef __alpha ++# endif /* __alpha */ ++# ifdef __alpha__ ++# ifndef AlphaArchitecture ++# define AlphaArchitecture ++# endif ++# undef __alpha__ ++# endif /* __alpha__ */ ++# ifdef __arm__ ++# define Arm32Architecture ++# undef arm ++# undef __arm ++# undef __arm__ ++# endif ++# ifdef mc68000 ++# define Mc68020Architecture ++# undef mc68000 ++# endif /* mc68000 */ ++# ifdef powerpc ++# define PPCArchitecture ++# undef powerpc ++# endif ++# ifdef __powerpc__ ++# ifndef PPCArchitecture ++# define PPCArchitecture ++# endif ++# undef __powerpc__ ++# endif ++# ifdef sparc ++# define SparcArchitecture ++# undef sparc ++# endif ++# ifdef __sparc__ ++# ifndef SparcArchitecture ++# define SparcArchitecture ++# endif ++# undef __sparc__ ++# endif ++# ifdef ia64 ++# define ia64Architecture ++# undef ia64 ++# endif ++# ifdef __ia64__ ++# ifndef ia64Architecture ++# define ia64Architecture ++# endif ++# undef __ia64__ ++# endif ++# if defined(mips) || defined(__mips__) ++# define MipsArchitecture ++# undef mips ++# undef __mips__ ++# if defined(MIPSEL) || defined(_MIPSEL) ++# define MipselArchitecture ++# endif ++# undef MIPSEL ++# undef _MIPSEL ++# endif ++# ifdef __hppa__ ++# ifndef HPArchitecture ++# define HPArchitecture ++# endif ++# undef __hppa__ ++# endif /* __hppa__ */ ++# ifdef __sh__ ++# ifndef SuperHArchitecture ++# define SuperHArchitecture ++# endif ++# ifdef __BIG_ENDIAN__ ++# ifndef SuperHebArchitecture ++# define SuperHebArchitecture ++# endif ++# endif ++# undef __sh__ ++# endif /* __sh__ */ ++# if defined(__SH3__) || defined(__sh3__) ++# ifndef SuperH3Architecture ++# define SuperH3Architecture ++# endif ++# undef __SH3__ ++# undef __sh3__ ++# endif /* __SH3__ or __sh3__ */ ++# ifdef __SH4__ ++# ifdef __SH4_NOFPU__ ++# ifndef SuperH4NOFPUArchitecture ++# define SuperH4NOFPUArchitecture ++# endif ++# undef __SH4_NOFPU__ ++# else ++# ifndef SuperH4Architecture ++# define SuperH4Architecture ++# endif ++# endif ++# undef __SH4__ ++# endif /* __SH4__ */ ++/* for compatibility with 3.3.x */ ++# ifdef PPCArchitecture ++# define PowerPCArchitecture ++# endif ++# if defined(__s390x__) ++# define s390xArchitecture ++# undef __s390x__ ++# endif ++# if defined(__x86_64__) ++# undef __x86_64__ ++# define x86_64Architecture ++# endif ++# if defined(x86_64__) ++# undef x86_64__ ++# ifndef x86_64Architecture ++# define x86_64Architecture ++# endif ++# endif + #endif /* linux */ + ++#if (defined(__Lynx__) || defined(Lynx)) && (defined(i386) || defined(__i386__) || defined(__x86__) || defined(__powerpc__) || defined(__sparc__) || defined(sparc)) ++# define MacroIncludeFile ++# define MacroFile lynx.cf ++# define LynxOSArchitecture ++# undef __Lynx__ ++# undef Lynx ++# undef lynx ++# if defined(i386) || defined(__i386__) || defined(__x86__) ++# define i386Architecture ++# undef i386 ++# undef __i386__ ++# undef __x86__ ++# endif ++# ifdef __powerpc__ ++# define PPCArchitecture ++# undef __powerpc__ ++# endif ++# if defined(sparc) || defined(__sparc__) ++# define SparcArchitecture ++# undef sparc ++# undef __sparc__ ++# endif ++/* for compatibility with 3.3.x */ ++# ifdef PPCArchitecture ++# define PowerPCArchitecture ++# endif ++#endif /* LynxOS AT/PPC/microSPARC */ ++ + #ifdef __uxp__ +-#define MacroIncludeFile +-#define MacroFile fujitsu.cf +-#undef __uxp__ +-#ifdef sparc +-#undef sparc +-#define SparcArchitecture +-#endif ++# define MacroIncludeFile ++# define MacroFile fujitsu.cf ++# define FujitsuArchitecture ++# undef __uxp__ ++# define UXPArchitecture ++# define SVR4Architecture ++# ifdef sparc ++# undef sparc ++# define SparcArchitecture ++# endif + #endif /* __uxp__ */ + + #ifdef __sxg__ +-#define MacroIncludeFile +-#define MacroFile fujitsu.cf +-#undef __sxg__ +-#define mc68000Architecture ++# define MacroIncludeFile ++# define MacroFile fujitsu.cf ++# define FujitsuArchitecture ++# undef __sxg__ ++# define mc68000Architecture + #endif /* __sxg__ */ + +-#if defined(sequent) || defined(_SEQUENT_) ++#ifdef _SEQUENT_ ++/* undefine assignments resulting from -DSVR4 */ ++# undef MacroIncludeFile + # define MacroIncludeFile ++# undef MacroFile + # define MacroFile sequent.cf +-# ifdef sequent +-# undef sequent +-# define Dynix3Architecture +-# endif +-# ifdef _SEQUENT_ +-# undef _SEQUENT_ +-# define DynixPtxArchitecture +-# endif ++# undef _SEQUENT_ ++# define DynixPtxArchitecture + # define SequentArchitecture + #endif + + #if defined(_nec_ews_svr4) || defined(nec_ews_svr4) || defined(nec_ews_svr2) || defined(SX) || defined(_nec_up) || defined(_nec_ft) || defined(PC_UX) +-#ifdef nec +-#undef nec ++# ifdef nec ++# undef nec ++# endif ++# define MacroIncludeFile ++# define MacroFile nec.cf ++# define NecArchitecture + #endif +-#define MacroIncludeFile +-#define MacroFile nec.cf +-#define NecArchitecture ++ ++#ifdef minix ++#define MacroIncludeFile ++#define MacroFile minix.cf ++#undef minix ++#define MinixArchitecture ++#define i386Architecture ++#endif /* minix */ ++ ++#ifdef MACH ++#ifdef __GNU__ ++#define MacroIncludeFile ++#define MacroFile gnu.cf ++#define GNUMachArchitecture ++#else ++#define MacroIncludeFile ++#define MacroFile mach.cf + #endif ++#undef MACH ++#ifdef i386 ++#define i386MachArchitecture ++#define i386Architecture ++#endif /* i386 */ ++#undef i386 ++#endif /* MACH */ + ++/* On NetBSD, `unix' is not defined, and cpp emits a warning every time ++ * it sees a test using the `unix' symbol */ ++#if !defined(NetBSDArchitecture) || (defined(NetBSDArchitecture) && DefaultOSMajorVersion == 1 && DefaultOSMinorVersion <= 3) + #ifdef unix + #undef unix +-#endif /* unix */ ++#endif ++#endif ++ ++#ifdef emxos2 ++#define MacroIncludeFile ++#define MacroFile os2.cf ++#define OS2Architecture ++#define i386Architecture ++#endif /* emxos2 */ ++ ++#if defined(__QNX__) && !defined(__QNXNTO__) ++#define MacroIncludeFile ++#define MacroFile QNX4.cf ++#define QNX4Architecture ++#define i386Architecture ++#endif /* QNX4 */ ++ ++#ifdef __QNXNTO__ ++#define MacroIncludeFile ++#define MacroFile nto.cf ++#define NTOArchitecture ++# ifdef PPC ++# define PPCArchitecture ++# undef PPC ++# endif ++# ifdef MIPS ++# define mipsArchitecture ++# undef MIPS ++# endif ++# ifdef i386 ++# define i386Architecture ++# undef i386 ++# endif /* i386 */ ++# ifdef __i386__ ++# ifndef i386Architecture ++# define i386Architecture ++# endif ++# undef __i386__ ++# endif /* __i386__ */ ++#endif /* QNX/Neutrino */ ++ ++#ifdef SparcArchitecture ++# if defined(__sparc_v9) || defined(__arch64__) ++# define Sparc64Architecture ++# endif ++#endif + + #ifndef MacroIncludeFile + XCOMM WARNING: Imake.cf not configured; guessing at definitions!!! +diff -urNad cernlib-2005.05.09.dfsg~/src/config/linux.cf cernlib-2005.05.09.dfsg/src/config/linux.cf +--- cernlib-2005.05.09.dfsg~/src/config/linux.cf 2004-10-05 11:56:45.000000000 -0400 ++++ cernlib-2005.05.09.dfsg/src/config/linux.cf 2005-12-12 09:42:42.505976387 -0500 +@@ -65,20 +65,20 @@ + #define OSVendor /**/ + #define OSMajorVersion 2 + #define OSMinorVersion 4 +-#define OSTeenyVersion 2020 ++#define OSTeenyVersion 21 + + #undef unix /* GF. this is not needed anywhere */ + + #ifndef UseElfFormat +-#define UseElfFormat NO ++#define UseElfFormat YES + #endif + #define HasGcc2ForCplusplus YES + #define GccUsesGas YES + #define UseGas YES + #define GnuCpp YES +-#define HasShadowPasswd NO ++#define HasShadowPasswd YES + #ifndef HasLibCrypt +-# define HasLibCrypt NO ++# define HasLibCrypt YES + #endif + #define HasPutenv YES + #define HasShm YES +@@ -94,38 +94,302 @@ + #define NeedVarargsPrototypes YES + #define NeedWidePrototypes NO + ++/* The following modified to match (more or less) linux.cf in XFree86 4.3.0. ++ -- Kevin McCarty ++*/ ++ + #if UseElfFormat +-#define CcCmd gcc -b i486-linuxelf +-#define AsCmd /usr/i486-linuxelf/bin/as +-#define LdCmd ld -m elf_i386 +-#define AsmDefines -D__ELF__ +-#define CplusplusCmd g++ -b i486-linuxelf +-#else +-#define CcCmd gcc ++#ifdef MipsArchitecture ++#ifndef AsCmd ++#define AsCmd gcc -c -x assembler-with-cpp ++#endif ++#endif /* MipsArchitecture */ ++#ifndef CcCmd ++#define CcCmd gcc -g ++#endif ++#ifndef AsCmd + #define AsCmd as ++#endif ++#ifndef LdCmd + #define LdCmd ld +-#define AsmDefines -DUSE_GAS + #endif ++#define AsmDefines -D__ELF__ ++#define CplusplusCmd c++ -g ++#else /* no UseElfFormat */ ++#define CcCmd gcc -g ++#define AsCmd as ++#define LdCmd ld ++#define AsmDefines -DUSE_GAS -U__ELF__ ++#define CplusplusCmd g++ -g ++#endif /* UseElfFormat */ ++ ++#ifndef CppCmd + #define CppCmd /lib/cpp ++#endif + #define YaccCmd bison -y + #define LexCmd flex -l + #define LexLib -lfl + #define PreProcessCmd CcCmd -E + #define PostIncDir `CcCmd --print-libgcc-file-name | sed 's/libgcc.a/include/'` + #define LdCombineFlags -r +-#define OptimizedCDebugFlags -O2 -m486 -fno-strength-reduce\ +- -fomit-frame-pointer +-#define StandardDefines -Dlinux -D__i386__ -D_POSIX_SOURCE \ +- -D_BSD_SOURCE -D_GNU_SOURCE -DX_LOCALE ++#define LinuxSourceDefines -D_POSIX_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE \ ++ -DX_LOCALE + #define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC + #define HasWChar32 YES + #define StandardCppDefines -traditional StandardDefines +-#define ServerOSDefines XFree86ServerOSDefines -DDDXTIME ++#define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET + #define ExtensionOSDefines -DXTESTEXT1 +-#define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines ++/* #define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines */ + #define ConnectionFlags -DUNIXCONN -DTCPCONN + #define InstUidFlags -s -m 4755 + ++/* Arch-specific flags here copied from linux.cf for XFree86 4.3.0, ++ Debian patched (version 4.3.0.dfsg.1-4), plus additional ++ OptimizationLevel macro. ++ ++ Additional Cernlib-specific per-architecture flags also added. ++ --Kevin McCarty */ ++ ++/* Note: we are now using CERNLIB_PPC as an endianness test (which is about ++ all that the Cernlib source uses it for); I introduced a new define ++ CERNLIB_POWERPC for the three occasions when we specifically want to ++ test for powerpc chips. ++*/ ++ ++#ifdef i386Architecture ++# ifndef OptimizationLevel ++# define OptimizationLevel -O3 ++# endif ++# ifndef OptimizedCDebugFlags ++# define OptimizedCDebugFlags OptimizationLevel -fno-strength-reduce ++# endif ++# define LinuxMachineDefines -D__i386__ ++# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET ++# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines ++#endif /* i386Architecture */ ++ ++#ifdef s390Architecture ++# ifndef OptimizationLevel ++# define OptimizationLevel -O3 ++# endif ++# ifndef OptimizedCDebugFlags ++# define OptimizedCDebugFlags OptimizationLevel ++# endif ++# define LinuxMachineDefines -D__s390__ ++# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET ++# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines ++# define CernlibMachineDefines -DCERNLIB_PPC ++# define CERNLIB_PPC ++#endif /* s390Architecture */ ++ ++#ifdef s390xArchitecture ++/*#define DefaultCCOptions -fsigned-char */ ++#ifndef OptimizationLevel ++#define OptimizationLevel -O3 ++#endif ++#define OptimizedCDebugFlags OptimizationLevel ++#define LinuxMachineDefines -D__s390x__ ++#define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET ++#define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines -D_XSERVER64 ++#define CernlibMachineDefines -DCERNLIB_PPC -DCERNLIB_QMLXIA64 ++#define CERNLIB_PPC ++#define CERNLIB_QMLXIA64 ++#endif /* s390xArchitecture */ ++ ++#ifdef AlphaArchitecture ++# ifndef OptimizationLevel ++# define OptimizationLevel -O3 ++# endif ++# ifndef OptimizedCDebugFlags ++# define OptimizedCDebugFlags OptimizationLevel ++# endif ++# define LinuxMachineDefines -D__alpha__ ++# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET ++# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines -D_XSERVER64 -DJENSEN_SUPPORT ++# define CernlibMachineDefines -DCERNLIB_QMLXIA64 ++# define CERNLIB_QMLXIA64 ++# ifdef UseCompaqMathLibrary ++# define MathLibrary -lcpml -lm ++# endif ++#endif /* AlphaArchitecture */ ++ ++#ifdef Arm32Architecture ++# define DefaultCCOptions -fsigned-char ++# ifndef OptimizationLevel ++# define OptimizationLevel -O2 ++# endif ++# ifndef OptimizedCDebugFlags ++# define OptimizedCDebugFlags OptimizationLevel ++# endif ++# define LinuxMachineDefines -D__arm__ -D__arm32__ -U__arm -Uarm ++# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET ++# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines ++# ifdef __ARMEB__ /* test for big-endianness */ ++# define CernlibMachineDefines -DCERNLIB_PPC ++# define CERNLIB_PPC ++# endif ++#endif /* Arm32Achitecture */ ++ ++#ifdef ia64Architecture ++# ifndef OptimizationLevel ++# define OptimizationLevel -O2 ++# endif ++# ifndef OptimizedCDebugFlags ++# define OptimizedCDebugFlags OptimizationLevel ++# endif ++# define LinuxMachineDefines -D__ia64__ ++# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET ++# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines -D_XSERVER64 ++# define CernlibMachineDefines -DCERNLIB_QMLXIA64 ++# define CERNLIB_QMLXIA64 ++#endif /* ia64Architecture */ ++ ++#ifdef Mc68020Architecture ++# ifndef OptimizationLevel ++# define OptimizationLevel -O3 ++# endif ++# ifndef OptimizedCDebugFlags ++# define OptimizedCDebugFlags OptimizationLevel ++# endif ++# define DefaultCCOptions -malign-int ++# define DefaultFCOptions -malign-int -fno-automatic \ ++ -fno-second-underscore -fugly-complex ++# define LinuxMachineDefines -D__mc68000__ ++# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET ++# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines ++# define CernlibMachineDefines -DCERNLIB_PPC ++# define CERNLIB_PPC ++# define CERNLIB_M68K ++/* # define PositionIndependentCplusplusFlags -fpic */ ++#endif /* Mc68020Architecture */ ++ ++#ifdef PPCArchitecture ++# define DefaultCCOptions -fsigned-char ++# ifndef OptimizationLevel ++# define OptimizationLevel -O3 ++# endif ++# ifndef OptimizedCDebugFlags ++# define OptimizedCDebugFlags OptimizationLevel ++# endif ++# define LinuxMachineDefines -D__powerpc__ ++# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET ++# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines ++# define CernlibMachineDefines -DCERNLIB_PPC -DCERNLIB_POWERPC ++# define CERNLIB_PPC ++# define CERNLIB_POWERPC ++#endif /* PPCArchitecture */ ++ ++#ifdef SparcArchitecture ++# ifndef OptimizationLevel ++# define OptimizationLevel -O3 ++# endif ++# ifndef OptimizedCDebugFlags ++# define OptimizedCDebugFlags OptimizationLevel ++# endif ++# define LinuxMachineDefines -D__sparc__ ++# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET ++# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines ++# define AsVISOption -Av9a ++# ifdef Sparc64Architecture ++# define AsOutputArchSize 64 ++# define CernlibMachineDefines -DCERNLIB_PPC -DCERNLIB_QMLXIA64 ++# define CERNLIB_QMLXIA64 ++# else ++# define AsOutputArchSize 32 ++# define CernlibMachineDefines -DCERNLIB_PPC ++# endif ++# define CERNLIB_PPC ++#endif ++ ++#ifdef MipsArchitecture ++# ifndef OptimizationLevel ++# define OptimizationLevel -O3 ++# endif ++# ifndef OptimizedCDebugFlags ++# define OptimizedCDebugFlags OptimizationLevel ++# endif ++# define LinuxMachineDefines -D__mips__ ++# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET ++# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines ++# ifdef __MIPSEB__ ++# define CernlibMachineDefines -DCERNLIB_PPC ++# define CERNLIB_PPC ++# endif ++#endif ++ ++#ifdef HPArchitecture ++# ifndef OptimizationLevel ++# define OptimizationLevel -O3 ++# endif ++# define OptimizedCDebugFlags OptimizationLevel ++# define LinuxMachineDefines -D__hppa__ ++# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET ++# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines ++# define CernlibMachineDefines -DCERNLIB_PPC ++# define CERNLIB_PPC ++#endif ++ ++#ifdef SuperHArchitecture ++# ifndef SuperHArchOptFlags ++# ifdef SuperH4Architecture ++# define SuperHArchOptFlags -m4 ++# elif defined(SuperH4NOFPUArchitecture) ++# define SuperHArchOptFlags -m4-nofpu ++# else ++# define SuperHArchOptFlags -m3 ++# endif ++# endif ++# ifndef SuperHebArchitecture ++# ifdef SuperHebArchitecture ++# define SuperHEndianFlags -mb ++# define CernlibMachineDefines -DCERNLIB_PPC ++# define CERNLIB_PPC ++# else ++# define SuperHEndianFlags -ml ++# endif ++# endif ++# ifndef OptimizationLevel ++# define OptimizationLevel -O3 ++# endif ++# ifndef OptimizedCDebugFlags ++# define OptimizedCDebugFlags OptimizationLevel SuperHArchOptFlags SuperHEndianFlags ++# endif ++# define LinuxMachineDefines -D__sh__ ++# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET ++# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines ++#endif ++ ++#ifdef x86_64Architecture ++# ifndef OptimizationLevel ++# define OptimizationLevel -O3 ++# endif ++# ifndef OptimizedCDebugFlags ++# define OptimizedCDebugFlags OptimizationLevel ++# endif ++# define LinuxMachineDefines -D__x86_64__ ++# define DefaultFCOptions -fno-automatic \ ++ -fno-second-underscore -fugly-complex ++# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET ++# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines -D_XSERVER64 ++# define CernlibMachineDefines -DCERNLIB_QMLXIA64 ++# define CERNLIB_QMLXIA64 ++#endif /* x86_64Architecture */ ++ ++#ifndef StandardDefines ++# define StandardDefines -Dlinux LinuxMachineDefines LinuxSourceDefines ++#endif ++ ++#ifndef CernlibMachineDefines ++#define CernlibMachineDefines ++#endif ++ ++#ifndef CernlibLocalDefines ++#define CernlibLocalDefines ++#endif ++ ++#define CernlibDefaultDefines -DCERNLIB_LINUX -DCERNLIB_UNIX -DCERNLIB_LNX \ ++ -DCERNLIB_QMGLIBC ++ + /* Some of these man page defaults are overriden in the above OS sections */ + #ifndef ManSuffix + # define ManSuffix 1x +@@ -160,7 +424,7 @@ + #define FortranSaveFlags /* */ /* Everything static !? */ + #define OptimisedFortranFlags -g -pc 64 -tp p6 + #define DefaultFCOptions -Msave -fpic -Kieee +-#define CernlibSystem -DCERNLIB_LINUX -DCERNLIB_UNIX -DCERNLIB_LNX -DCERNLIB_QMGLIBC -DCERNLIB_QFPGF77 ++#define CernlibSystem CernlibDefaultDefines -DCERNLIB_QFPGF77 + + #else + +@@ -171,19 +435,18 @@ + # undef StandardDefines + # undef NeedFunctionPrototypes + # undef NeedWidePrototypes +-# define CcCmd icc +-# define DefaultCCOptions +-# define OptimizedCDebugFlags -O +- +-# define FortranDoesCpp NO +-#define FortranCppCmd /usr/bin/cpp -traditional -C +-# define FortranCmd ifc +-# define XargsCmd xargs +-# define FortranSaveFlags -save +-# define OptimisedFortranFlags -O -mp1 -fp_port +-# define NoOpFortranDebugFlags -O0 +-# define DefaultFCOptions +-# define CernlibSystem -DCERNLIB_LINUX -DCERNLIB_UNIX -DCERNLIB_LNX -DCERNLIB_QMGLIBC ++# define CcCmd icc ++# define DefaultCCOptions ++# define OptimizedCDebugFlags -O ++# define FortranDoesCpp NO ++# define FortranCppCmd /usr/bin/cpp -traditional -C ++# define FortranCmd ifort ++# define XargsCmd xargs ++# define FortranSaveFlags -save ++# define OptimisedFortranFlags -O -mp1 -fp_port ++# define NoOpFortranDebugFlags -O0 ++# define DefaultFCOptions ++# define CernlibSystem CernlibDefaultDefines + + #else + +@@ -194,19 +457,18 @@ + # undef StandardDefines + # undef NeedFunctionPrototypes + # undef NeedWidePrototypes +-# define CcCmd ecc +-# define DefaultCCOptions -KPIC +-# define OptimizedCDebugFlags -O +- +-# define FortranDoesCpp NO +-#define FortranCppCmd /lib/cpp -traditional -C +-# define FortranCmd efc +-# define XargsCmd xargs +-# define FortranSaveFlags -save +-# define OptimisedFortranFlags -O +-# define DefaultFCOptions -KPIC +-# define CernlibSystem -DCERNLIB_LINUX -DCERNLIB_UNIX -DCERNLIB_LNX -DCERNLIB_QMGLIBC +-# define CERNLIB_SHIFT NO ++# define CcCmd ecc ++# define DefaultCCOptions -KPIC ++# define OptimizedCDebugFlags -O ++# define FortranDoesCpp NO ++# define FortranCppCmd /lib/cpp -traditional -C ++# define FortranCmd efc ++# define XargsCmd xargs ++# define FortranSaveFlags -save ++# define OptimisedFortranFlags -O ++# define DefaultFCOptions -KPIC ++# define CernlibSystem CernlibDefaultDefines ++# define CERNLIB_SHIFT NO + /* + * Create a Make Variable to allow building with/out Motif + */ +@@ -221,17 +483,32 @@ + /* Start CERNLIB changes A.Waananen 15. Apr. 1996 */ + /* Adapted to CERN style GF. 20-Sep-96 */ + ++/* + # undef DefaultCCOptions + # undef OptimizedCDebugFlags + # undef StandardDefines + # define OptimizedCDebugFlags -O1 -fomit-frame-pointer ++*/ ++ ++#ifndef DefaultCCOptions ++# define DefaultCCOptions ++#endif ++#ifndef OptimizedCDebugFlags ++# define OptimizedCDebugFlags OptimizationLevel DefaultCCOptions ++#endif + + #define f2cFortran YES +-#define FortranCmd g77 ++#define FortranCmd g77 -g + #define XargsCmd xargs + #define FortranSaveFlags /* */ /* Everything static !? */ +-#define DefaultFCOptions -fno-automatic -fno-second-underscore -fugly-complex +-#define CernlibSystem -DCERNLIB_LINUX -DCERNLIB_UNIX -DCERNLIB_LNX -DCERNLIB_QMGLIBC ++#define OptimisedFortranFlags OptimizedCDebugFlags -funroll-loops ++/* Remove -fomit-frame-pointer since -O implies it and it inhibits debugging */ ++#ifndef DefaultFCOptions ++# define DefaultFCOptions -fno-automatic -fno-second-underscore \ ++ -fugly-complex ++#endif ++#define CernlibSystem CernlibDefaultDefines CernlibMachineDefines \ ++ CernlibLocalDefines + + # endif + # endif +@@ -251,7 +528,7 @@ + /* + * Create a Make Variable to allow building with/out Motif + */ +- ++#define MotifDependantMakeVar(variable,value) variable=value + + /* End CERNLIB changes */ + --- cernlib-2005.05.09.dfsg.orig/debian/patches/211-fix-comis-on-ia64.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/211-fix-comis-on-ia64.dpatch @@ -0,0 +1,81 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 211-fix-comis-on-ia64.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Further patch building on Harald Vogt's amd64 patch that should +## DP: fix PAW on Itanium Linux. + +@DPATCH@ +diff -urNad cernlib-2005.05.09.dfsg~/src/pawlib/comis/deccc/ccopys.c cernlib-2005.05.09.dfsg/src/pawlib/comis/deccc/ccopys.c +--- cernlib-2005.05.09.dfsg~/src/pawlib/comis/deccc/ccopys.c 2005-12-09 09:45:33.649333472 +0000 ++++ cernlib-2005.05.09.dfsg/src/pawlib/comis/deccc/ccopys.c 2005-12-09 10:01:36.149011280 +0000 +@@ -39,12 +39,32 @@ + * using the CERNLIB_QMLXIA64 cpp flag (H. Vogt - Sep 2005) + */ + ++/* For Itanium, the situation is even worse. Itanium architecture is such ++ * that the data section starts at 0x6000000000000000. The stack is ++ * supposed to be between 0x80...0 and 0xa0...0 starting at the high end ++ * and growing downwards, although on a test machine (merulo.debian.org) ++ * it seemed instead to start at 0x6000100000000000 and grow downwards. ++ * The addresses we actually get are truncated to the lowest 32 bits, ++ * so we assume that those greater than 0x80000000 are in the stack. ++ * ++ * Constant strings are in the text section starting at 0x40...0; we hope ++ * this function doesn't receive any. ++ * -- Kevin McCarty ++ */ ++ + #if defined(CERNLIB_QMLXIA64) + int *ja, *jb; + int *nn; + { + int i,n; char *a,*b; + n=*nn; a=*ja; b=*jb; ++# if defined (__ia64__) ++ unsigned long autobase = ((unsigned long)&i) & 0xffffffff00000000L; ++ a = (unsigned long)a + ++ (((unsigned long)a > 0x80000000) ? autobase : 0x6000000000000000); ++ b = (unsigned long)b + ++ (((unsigned long)b > 0x80000000) ? autobase : 0x6000000000000000); ++# endif + #else + char **ja, **jb; + int *nn; +diff -urNad cernlib-2005.05.09.dfsg~/src/pawlib/comis/deccc/cstrcmp.c cernlib-2005.05.09.dfsg/src/pawlib/comis/deccc/cstrcmp.c +--- cernlib-2005.05.09.dfsg~/src/pawlib/comis/deccc/cstrcmp.c 2005-12-09 09:45:33.650333320 +0000 ++++ cernlib-2005.05.09.dfsg/src/pawlib/comis/deccc/cstrcmp.c 2005-12-09 10:05:36.432482640 +0000 +@@ -42,6 +42,19 @@ + * using the CERNLIB_QMLXIA64 cpp flag (H. Vogt - Sep 2005) + */ + ++/* For Itanium, the situation is even worse. Itanium architecture is such ++ * that the data section starts at 0x6000000000000000. The stack is ++ * supposed to be between 0x80...0 and 0xa0...0 starting at the high end ++ * and growing downwards, although on a test machine (merulo.debian.org) ++ * it seemed instead to start at 0x6000100000000000 and grow downwards. ++ * The addresses we actually get are truncated to the lowest 32 bits, ++ * so we assume that those greater than 0x80000000 are in the stack. ++ * ++ * Constant strings are in the text section starting at 0x40...0; we hope ++ * this function doesn't receive any. ++ * -- Kevin McCarty ++ */ ++ + #if defined(CERNLIB_QMLXIA64) + int *ja, *jb; + int *na, *nb; +@@ -56,6 +69,13 @@ + { + a=*jb; b=*ja; la=*nb; lb=*na; k=-1; + } ++# if defined (__ia64__) ++ unsigned long autobase = ((unsigned long)&i) & 0xffffffff00000000L; ++ a = (unsigned long)a + ++ (((unsigned long)a > 0x80000000) ? autobase : 0x6000000000000000); ++ b = (unsigned long)b + ++ (((unsigned long)b > 0x80000000) ? autobase : 0x6000000000000000); ++# endif + #else + char **ja, **jb; + int *na, *nb; --- cernlib-2005.05.09.dfsg.orig/debian/patches/README +++ cernlib-2005.05.09.dfsg/debian/patches/README @@ -0,0 +1,76 @@ +Notes on Debian patches to Cernlib source: +------------------------------------------ + +All patches in this directory are, unless otherwise specified in the patch +header, copyright 2001-2005 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.) Unfortunately this does not +actually work when linking the Paw and Paw++ programs since some of the +libraries have circular dependencies on each other before the 700 series +of patches are applied. + +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 , 21 Jul 2005 --- cernlib-2005.05.09.dfsg.orig/debian/patches/302-scripts-comply-with-FHS.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/302-scripts-comply-with-FHS.dpatch @@ -0,0 +1,229 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 302-scripts-comply-with-FHS.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Put data files under /usr/share and assume $CERN is /usr by default +## DP: in scripts. (These values are filled in from add-ons/Makefile.) +## DP: Also some other improvements. + +@DPATCH@ +diff -urNad cernlib-2005.05.09.dfsg~/src/graflib/dzdoc/dzedit/dzedit.script cernlib-2005.05.09.dfsg/src/graflib/dzdoc/dzedit/dzedit.script +--- cernlib-2005.05.09.dfsg~/src/graflib/dzdoc/dzedit/dzedit.script 1996-05-05 11:16:16.000000000 -0400 ++++ cernlib-2005.05.09.dfsg/src/graflib/dzdoc/dzedit/dzedit.script 2005-12-13 10:07:57.712733227 -0500 +@@ -13,9 +13,9 @@ + + SHOPT="d:h:v:" + #SEQ,GETOPTD. +- drv="X11" ; hst="0" +- [ -z "$CERN" ] && CERN="/cern" +- [ -z "$CERN_LEVEL" ] && ver="pro" || ver="$CERN_LEVEL" ++ drv="X11" ; hst="" ++ [ -z "$CERN" ] && CERN="/usr" ++ [ -z "$CERN_LEVEL" ] && ver="." || ver="$CERN_LEVEL" + + while [ $# -gt 0 ] + do case $1 in +@@ -35,12 +35,12 @@ + # inlib $GKS_INLIB + GDIR=$CERN/gks/$ver/bin + fi +- if [ "$drv" = "X11" ] ; then +- DISPLAY="$hst:0" ; export DISPLAY ++ if [ "$drv" = "X11" -a -n "$hst" ] ; then ++ DISPLAY="$hst:0.0" ; export DISPLAY + fi +- if [ "$ver" != "pro" ] ; then ++ if [ "$ver" != "." ] ; then + echo + echo " Calling $ver version of dzedit-$drv..." + echo + fi +- $GDIR/dze$drv $* ++exec $GDIR/dze$drv "$@" +diff -urNad cernlib-2005.05.09.dfsg~/src/scripts/gxint cernlib-2005.05.09.dfsg/src/scripts/gxint +--- cernlib-2005.05.09.dfsg~/src/scripts/gxint 2005-04-18 11:41:16.000000000 -0400 ++++ cernlib-2005.05.09.dfsg/src/scripts/gxint 2005-12-13 10:07:57.789716862 -0500 +@@ -1,4 +1,4 @@ +-#!/bin/sh ++#!/bin/bash + # + #******************************************* + # +@@ -17,8 +17,7 @@ + #******************************************* + line="******************************************************" + +- +-if [ $# -eq 0 ] ; then ++print_help() { + cat << EoD + + GXINT [options] file(s) +@@ -32,9 +31,13 @@ + on all systems. X11 is the default. + -v version + version of the program library to use. Possible values +- include pro ( default ), new and old. ++ include pro, new and old. This option only makes sense if you ++ have installed a non-Debian version of Cernlib. In that case ++ you must have defined the environment variable \$CERN. + -g geant_version +- which version of geant to use. Current default is 315. ++ which version of geant to use. Current default is 321. This ++ also makes sense only if you have installed a non-Debian version ++ of Cernlib. + -h host + useful with the -d X11 option only. Specify the hostname + used for the display. Syntax identical to that of DISPLAY. +@@ -43,16 +46,20 @@ + Do not immediately run GEANT, but produce an executable + file named outputfile. + -L path +- additional loader search path. Usefull if additional libraries +- are specified with -l option. This option may be repeated to ++ additional loader search path. Useful if additional libraries ++ are specified with -l option. This option may be repeated to + more than one pathname. +- -l libary ++ -l library + specify additional libraries. This option may be repeated to + add several libs. + -m do NOT use main program from cernlib area. + + EoD +-exit ++} ++ ++ ++if [ $# -eq 0 ] ; then ++ print_help + fi + + if [ -f /usr/bin/uname ] ; then +@@ -66,52 +73,47 @@ + fi + + SHOPT="d:v:g:h:o:L:l:m" +- cmd=$0 + # Check option set and give default values + if [ -f /bin/getopt -o -f /usr/bin/getopt ] ; then + set -- `getopt $SHOPT $*` ; cc=$? + if [ $cc -ne 0 ] ; then + echo "" + echo "Usage:" +- exec $cmd +- exit ++ print_help ; exit 0 + fi + fi +- +-drv="/X11" ; ver="pro" ; OUT="${HOME}/GEANT$$" ++ ++if [ -z "$TMPDIR" ] || [ "$TMPDIR" = "/tmp" ] ; then ++ TMPDIR="$HOME" ++fi ++drv="/X11" ; ver="" ; OUT="$TMPDIR/GEANT$$" + gxint="" + + while [ $# -gt 0 ] + do case $1 in +- -d) drv="/$2"; shift ;; ++ -d) drv="/$2"; shift ;; + -v) ver=$2; shift ;; + -g) gvs=$2; shift ;; + -h) DISPLAY=$2;export DISPLAY; shift ;; + -o) OUT=$2; norun="1"; shift ;; +- -L) userpath="$userpath -L$2"; shift ;; +- -l) userlibs="$userlibs -l$2"; shift ;; ++ -L) userpath="$userpath -L$2"; shift ;; ++ -l) userlibs="$userlibs -l$2"; shift ;; + -m) _m="1" ;; + --) shift ; break ;; ++ --help|-\?) print_help ; exit 0 ;; + *) break ;; + esac + shift + done + + if [ $# -gt 0 ] ; then +- pgm="$*" ++ pgm="$@" + else + echo "gxint_Warning: no user program specified" + fi + + +- +-if [ -z "$CERN" ] ; then +- if [ ! -d /cern ]; then +- echo "gxint_Error: shell variable CERN must be set or /cern must exist" +- exit 1 +- fi +- CERN="/cern" ; export CERN +-fi ++[ -z "$CERN" ] && export CERN="/usr" + + if [ "$drv" = "/GKS" ] ; then + if [ -z "$GKSR" ] ; then +@@ -143,6 +145,7 @@ + CLIB="geant${gvs} pawlib graflib$drv packlib mathlib" + + [ -z "$_m" ] && gxint="${CERN}/${ver}/lib/gxint${gvs}.$_o" ++[ "$CERN" = "/usr" -a -z "$ver" ] && gxint=/usr/share/geant321/gxint.f + + cat << EoD + $line +@@ -155,8 +158,10 @@ + * gxint used : ${gxint:-user supplied} + $line + EoD +- +-$LDN -o $OUT $gxint $pgm $userpath $userlibs `cernlib -v $ver $CLIB`; cc=$? ++ ++[ -z "$ver" ] && verflag="" || verflag="-v" ++$LDN -o $OUT $gxint $pgm $userpath $userlibs `cernlib $verflag $ver $CLIB` ; \ ++cc=$? + + [ $cc -ne 0 ] && exit $cc + +diff -urNad cernlib-2005.05.09.dfsg~/src/scripts/paw cernlib-2005.05.09.dfsg/src/scripts/paw +--- cernlib-2005.05.09.dfsg~/src/scripts/paw 1995-02-07 04:54:06.000000000 -0500 ++++ cernlib-2005.05.09.dfsg/src/scripts/paw 2005-12-13 10:10:17.850939931 -0500 +@@ -21,9 +21,9 @@ + SHOPT="d:h:v:" + #SEQ,GETOPTD. + [ "`uname -s`" = "DomainOS" ] && drv="GKS" || drv="X11" +- [ -z "$CERN" ] && CERN="/cern" +- [ -z "$CERN_LEVEL" ] && ver="pro" || ver="$CERN_LEVEL" +- ++ [ -z "$CERN" ] && CERN="/usr" ++ [ -z "$CERN_LEVEL" ] && ver="" || ver="$CERN_LEVEL" ++ [ -e "$CERN/$CERN_LEVEL/bin/pawX11" ] || drv="++" # use paw++ if no pawX11 + while [ $# -gt 0 ] + do case $1 in + -d) drv=$2 ; shift ;; +@@ -43,15 +43,20 @@ + # inlib $GKS_INLIB + GDIR=$CERN/$ver/gksbin + fi +- if [ "$drv" = "X11" -a -n "$hst" ] ; then ++ if [ \( "$drv" = "X11" -o "$drv" = "++" \) -a -n "$hst" ] ; then + nw=`echo $hst | awk -F: '{ print NF }'` + [ $nw -eq 1 ] && hst="$hst:0" + DISPLAY="$hst" ; export DISPLAY + fi +- if [ "$ver" != "pro" ] ; then ++ if [ -n "$ver" ] ; then + echo + echo " Calling $ver version of paw-$drv" + echo + fi +- $GDIR/paw$drv $* +- [ ! -s paw.metafile ] && rm paw.metafile ++ if [ ! -x "$GDIR/paw$drv" ] ; then ++ echo " Error: PAW executable $GDIR/paw${drv} does not exist!" ++ exit 1 ++ fi ++ "$GDIR/paw$drv" "$@" ++ [ ! -s paw.metafile ] && rm -f paw.metafile ++ [ ! -s PAW.METAFILE ] && rm -f PAW.METAFILE --- cernlib-2005.05.09.dfsg.orig/debian/patches/211-fix-comis-on-amd64.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/211-fix-comis-on-amd64.dpatch @@ -0,0 +1,1058 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 211-fix-comis-on-amd64.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Large patch from Harald Vogt to make PAW and Paw++ work +## DP: (at least when statically linked) on 64-bit architectures. +## DP: Slightly modified in an attempt to keep ABI compatibility of the +## DP: dynamic libraries; not that it matters much as they don't work well +## DP: when dynamically linked on 64-bit anyway. + +@DPATCH@ +diff -urNad cernlib-2005.05.09.dfsg~/src/cfortran/hbook.h cernlib-2005.05.09.dfsg/src/cfortran/hbook.h +--- cernlib-2005.05.09.dfsg~/src/cfortran/hbook.h 1999-11-15 17:01:12.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/cfortran/hbook.h 2005-12-09 13:27:45.465589336 +0000 +@@ -489,6 +489,10 @@ + #define HBALLOC(IDN,CHDIR,VAR,BLOCK,ITYPE,ISIZE,IFIRST,NELEM,IBASE,IOFF,NUSE)\ + CCALLSFSUB11(HBALLOC,hballoc,INT,STRING,STRING,STRING,INT,INT,INT,INT,INTV,PINT,PINT,IDN,CHDIR,VAR,BLOCK,ITYPE,ISIZE,IFIRST,NELEM,IBASE,IOFF,NUSE) + ++PROTOCCALLSFSUB11(HBALLOC64,hballoc64,INT,STRING,STRING,STRING,INT,INT,INT,INT,INTV,PLONG,PINT) ++#define HBALLOC64(IDN,CHDIR,VAR,BLOCK,ITYPE,ISIZE,IFIRST,NELEM,IBASE,IOFF,NUSE)\ ++ CCALLSFSUB11(HBALLOC64,hballoc64,INT,STRING,STRING,STRING,INT,INT,INT,INT,INTV,PLONG,PINT,IDN,CHDIR,VAR,BLOCK,ITYPE,ISIZE,IFIRST,NELEM,IBASE,IOFF,NUSE) ++ + PROTOCCALLSFSUB1(HBFREE,hbfree,INT) + #define HBFREE(LUN) CCALLSFSUB1(HBFREE,hbfree,INT,LUN) + +@@ -508,6 +512,13 @@ + #define HGNTBF(IDN,VAR,IOFFST,NVAR,IDNEVT,IERROR)\ + CCALLSFSUB6(HGNTBF,hgntbf,INT,ZTRINGV,INTV,INT,INT,PINT,IDN,VAR,IOFFST,NVAR,IDNEVT,IERROR) + ++PROTOCCALLSFSUB6(HGNTBF64,hgntbf64,INT,ZTRINGV,LONGV,INT,INT,PINT) ++/* fix the element length of VAR to 32 */ ++#define hgntbf64_ELEMS_2 ZTRINGV_ARGS(4) ++#define hgntbf64_ELEMLEN_2 ZTRINGV_NUM(32) ++#define HGNTBF64(IDN,VAR,IOFFST,NVAR,IDNEVT,IERROR)\ ++ CCALLSFSUB6(HGNTBF64,hgntbf64,INT,ZTRINGV,LONGV,INT,INT,PINT,IDN,VAR,IOFFST,NVAR,IDNEVT,IERROR) ++ + PROTOCCALLSFSUB1(HGTDIR,hgtdir,PSTRING) + #define HGTDIR(CHDIR) CCALLSFSUB1(HGTDIR,hgtdir,PSTRING,CHDIR) + +diff -urNad cernlib-2005.05.09.dfsg~/src/packlib/cspack/cspack/hcntpar.inc cernlib-2005.05.09.dfsg/src/packlib/cspack/cspack/hcntpar.inc +--- cernlib-2005.05.09.dfsg~/src/packlib/cspack/cspack/hcntpar.inc 1996-03-08 15:44:16.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/packlib/cspack/cspack/hcntpar.inc 2005-12-09 13:27:45.465589336 +0000 +@@ -22,7 +22,7 @@ + + ZIFREA=7, ZNWTIT=8, ZITIT1=9, ZNCHRZ=13, ZIFBIT=8, + + ZDESC=1, ZLNAME=2, ZNAME=3, ZRANGE=4, ZNADDR=12, + + ZARIND=11, ZIBLOK=8, ZNBLOK=10, ZIBANK=9, ZIFTMP=11, +- + ZITMP=10, ZNTMP=5, ZNTMP1=3, ZLINK=6) ++ + ZITMP=10, ZNTMP=5, ZNTMP1=4, ZLINK=6) + * + + #endif +diff -urNad cernlib-2005.05.09.dfsg~/src/packlib/hbook/hbook/hcntpar.inc cernlib-2005.05.09.dfsg/src/packlib/hbook/hbook/hcntpar.inc +--- cernlib-2005.05.09.dfsg~/src/packlib/hbook/hbook/hcntpar.inc 1996-01-16 17:07:52.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/packlib/hbook/hbook/hcntpar.inc 2005-12-09 13:27:46.373451320 +0000 +@@ -24,7 +24,7 @@ + + ZIFREA=7, ZNWTIT=8, ZITIT1=9, ZNCHRZ=13, ZIFBIT=8, + + ZDESC=1, ZLNAME=2, ZNAME=3, ZRANGE=4, ZNADDR=12, + + ZARIND=11, ZIBLOK=8, ZNBLOK=10, ZIBANK=9, ZIFTMP=11, +- + ZID=12, ZITMP=10, ZNTMP=6, ZNTMP1=3, ZLINK=6) ++ + ZID=12, ZITMP=10, ZNTMP=6, ZNTMP1=4, ZLINK=6) + * + + #endif +diff -urNad cernlib-2005.05.09.dfsg~/src/packlib/hbook/hntup/hballoc.F cernlib-2005.05.09.dfsg/src/packlib/hbook/hntup/hballoc.F +--- cernlib-2005.05.09.dfsg~/src/packlib/hbook/hntup/hballoc.F 1996-01-16 17:07:56.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/packlib/hbook/hntup/hballoc.F 2005-12-09 13:27:46.617414232 +0000 +@@ -42,3 +42,26 @@ + ENDIF + * + END ++* ++* 64-bit version (separate to preserve ABI compatibility) ++ SUBROUTINE HBALLOC64(IDN,CHDIR,VAR,BLOCK,ITYPE,ISIZE,IFIRST,NELEM, ++ + IBASE,IOFF,NUSE) ++* ++ CHARACTER*(*) CHDIR, VAR, BLOCK ++ INTEGER IDN, ITYPE, ISIZE, NELEM, NUSE, IFIRST, IBASE(1) ++ INTEGER*8 IBUF(1), IOFF ++* ++ LC = LENOCC(CHDIR) ++ LV = LENOCC(VAR) ++ LB = LENOCC(BLOCK) ++* ++ CALL HBALLO1(IDN, CHDIR, LC, VAR, LV, BLOCK, LB, ITYPE, ISIZE, ++ + IFIRST, NELEM, IBUF, NUSE) ++* ++ IF (NUSE .EQ. 0) THEN ++ IOFF = 0 ++ ELSE ++ IOFF = IBUF(1) - %LOC(IBASE(1))/4 ++ ENDIF ++* ++ END +diff -urNad cernlib-2005.05.09.dfsg~/src/packlib/hbook/hntup/hbnt.F cernlib-2005.05.09.dfsg/src/packlib/hbook/hntup/hbnt.F +--- cernlib-2005.05.09.dfsg~/src/packlib/hbook/hntup/hbnt.F 1996-01-16 17:07:56.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/packlib/hbook/hntup/hbnt.F 2005-12-09 13:27:46.644410128 +0000 +@@ -269,11 +269,13 @@ + ************************************************************************ + * * * * + * 1 * * Number of variables to be read out * +- * * * *** For every variable 3 words (ZNTMP1) *** * ++ * * * *** For every variable 4 words (ZNTMP1) *** * + * 2 * * Index of variable in LNAME bank * + * 3 * * Offset of variable in LNAME bank (INDX-1)*ZNADDR* + * 4 * * Offset in dynamically allocated buffer (only * + * * * used via HGNTBF) otherwise 0 * ++ * 5 * * spare (used in 64 bit architectures for upper * ++ * * * address part) * + ************************************************************************ + #endif + * +diff -urNad cernlib-2005.05.09.dfsg~/src/packlib/hbook/hntup/hgnt2.F cernlib-2005.05.09.dfsg/src/packlib/hbook/hntup/hgnt2.F +--- cernlib-2005.05.09.dfsg~/src/packlib/hbook/hntup/hgnt2.F 1999-03-05 15:42:35.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/packlib/hbook/hntup/hgnt2.F 2005-12-09 13:27:46.644410128 +0000 +@@ -34,7 +34,13 @@ + #include "hbook/hcrecv.inc" + * + CHARACTER*(*) VAR1(*) ++#if defined(CERNLIB_QMLXIA64) ++ INTEGER*8 IVOFF(*), IOFFST, IOFFSTT ++ INTEGER IOFFSTV(2) ++ EQUIVALENCE (IOFFSTV, IOFFSTT) ++#else + INTEGER IVOFF(*) ++#endif + CHARACTER*32 VAR + INTEGER ILOGIC, HNMPTR + LOGICAL LOGIC, INDVAR, ALLVAR, USEBUF, CHKOFF +@@ -452,10 +458,15 @@ + IQ(LTMP1+JTMP+1) = IOFF + IF (USEBUF) THEN + IF (IEDIF .EQ. 0) THEN +- IQ(LTMP1+JTMP+2) = IOFFST ++ IOFFSTT = IOFFST + ELSE +- IQ(LTMP1+JTMP+2) = IOFFST + (IEDIF*ISHFT(ISIZE,-2)) ++ IOFFSTT = IOFFST + (IEDIF*ISHFT(ISIZE,-2)) + ENDIF ++ IQ(LTMP1+JTMP+2) = IOFFSTT ++#if defined(CERNLIB_QMLXIA64) ++* store upper part of 64 bit address ++ IQ(LTMP1+JTMP+3) = IOFFSTV(2) ++#endif + ELSE + IQ(LTMP1+JTMP+2) = 0 + ENDIF +diff -urNad cernlib-2005.05.09.dfsg~/src/packlib/hbook/hntup/hgntbf.F cernlib-2005.05.09.dfsg/src/packlib/hbook/hntup/hgntbf.F +--- cernlib-2005.05.09.dfsg~/src/packlib/hbook/hntup/hgntbf.F 1996-01-16 17:07:57.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/packlib/hbook/hntup/hgntbf.F 2005-12-09 13:27:46.645409976 +0000 +@@ -26,3 +26,13 @@ + CALL HGNT1(IDN, '*', VAR, IOFFST, NVAR1, IDNEVT, IERROR) + * + END ++* ++* 64-bit version (separate to preserve ABI compatibility) ++ SUBROUTINE HGNTBF64(IDN,VAR,IOFFST,NVAR,IDNEVT,IERROR) ++ CHARACTER*(*) VAR(*) ++ INTEGER*8 IOFFST(*) ++* ++ NVAR1 = -NVAR ++ CALL HGNT1(IDN, '*', VAR, IOFFST, NVAR1, IDNEVT, IERROR) ++* ++ END +diff -urNad cernlib-2005.05.09.dfsg~/src/packlib/hbook/hntup/hgntf.F cernlib-2005.05.09.dfsg/src/packlib/hbook/hntup/hgntf.F +--- cernlib-2005.05.09.dfsg~/src/packlib/hbook/hntup/hgntf.F 1999-03-05 15:42:35.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/packlib/hbook/hntup/hgntf.F 2005-12-09 13:27:46.645409976 +0000 +@@ -37,6 +37,13 @@ + INTEGER ILOGIC + LOGICAL LOGIC, INDVAR, USEBUF + EQUIVALENCE (LOGIC, ILOGIC) ++ ++#if defined(CERNLIB_QMLXIA64) ++ INTEGER*8 IOFFST, IOFFSTT ++ INTEGER IOFFSTV(2) ++ EQUIVALENCE (IOFFSTV, IOFFSTT) ++#endif ++ + * + #include "hbook/jbyt.inc" + * +@@ -76,6 +83,12 @@ + INDX = IQ(LTMP1+JTMP) + IOFF = IQ(LTMP1+JTMP+1) + IOFFST = IQ(LTMP1+JTMP+2) ++#if defined(CERNLIB_QMLXIA64) ++* fetch full 64 bit address ++ IOFFSTV(1) = IQ(LTMP1+JTMP+2) ++ IOFFSTV(2) = IQ(LTMP1+JTMP+3) ++ IOFFST = IOFFSTT ++#endif + IF (IOFFST .EQ. 0) THEN + USEBUF = .FALSE. + ELSE +@@ -442,10 +455,15 @@ + * + IF (USEBUF) THEN + IF (IEDIF .EQ. 0) THEN +- IQ(LTMP1+JTMP+2) = IOFFST ++ IOFFSTT = IOFFST + ELSE +- IQ(LTMP1+JTMP+2) = IOFFST + (IEDIF*ISHFT(ISIZE,-2)) ++ IOFFSTT = IOFFST + (IEDIF*ISHFT(ISIZE,-2)) + ENDIF ++ IQ(LTMP1+JTMP+2) = IOFFSTT ++#if defined(CERNLIB_QMLXIA64) ++* store upper part of 64 bit address ++ IQ(LTMP1+JTMP+3) = IOFFSTV(2) ++#endif + ELSE + IQ(LTMP1+JTMP+2) = 0 + ENDIF +diff -urNad cernlib-2005.05.09.dfsg~/src/packlib/kernlib/kerngen/ccgen/locb.c cernlib-2005.05.09.dfsg/src/packlib/kernlib/kerngen/ccgen/locb.c +--- cernlib-2005.05.09.dfsg~/src/packlib/kernlib/kerngen/ccgen/locb.c 1997-09-02 14:26:37.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/packlib/kernlib/kerngen/ccgen/locb.c 2005-12-09 13:27:46.645409976 +0000 +@@ -44,7 +44,25 @@ + DummyDef + #endif + { ++#if defined(CERNLIB_QMLXIA64) ++ const unsigned long long int mask=0x00000000ffffffff; ++ static unsigned long long int base=1; ++ unsigned long long int jadr=(unsigned long long int) iadr; ++ unsigned long long int jadrl = (mask & jadr); ++ ++ if (base == 1) { ++ base = (~mask & jadr); ++ } else if(base != (~mask & jadr)) { ++ printf("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n"); ++ printf("locb_() Warning: changing base from %lx to %lx!!!\n", ++ base, (~mask & jadr)); ++ printf("This may result in program crash or incorrect results\n"); ++ printf("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n"); ++ } ++ return ((int) jadrl); ++#else + return( (int) iadr ); ++#endif + } + /*> END <----------------------------------------------------------*/ + #ifdef CERNLIB_TCGEN_LOCB +diff -urNad cernlib-2005.05.09.dfsg~/src/packlib/zbook/code/zjump.c cernlib-2005.05.09.dfsg/src/packlib/zbook/code/zjump.c +--- cernlib-2005.05.09.dfsg~/src/packlib/zbook/code/zjump.c 1996-03-08 12:01:12.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/packlib/zbook/code/zjump.c 2005-12-09 13:27:46.971360424 +0000 +@@ -7,6 +7,9 @@ + * + */ + #include "zbook/pilot_c.h" ++#if defined(CERNLIB_QMLXIA64) ++static void (*target)(); ++#endif + #if defined(CERNLIB_UNIX) + #if defined(CERNLIB_QX_SC) + zjump_(name,p1,p2,p3,p4) +@@ -18,8 +21,23 @@ + ZJUMP(name,p1,p2,p3,p4) + #endif + char *p1, *p2, *p3, *p4; ++ ++/* LP64 compatibility: ++ name is taken from a Fortran array and therefore its address is 32 bit ++ which has to be converted to a 64 bit address to satisfy void (*) (H. Vogt) */ ++ ++#if defined(CERNLIB_QMLXIA64) ++int *name; ++{ ++ long jadr; ++ jadr = *name; /* convert int to long */ ++ target = (void (*)())jadr; ++ (*target)(p1, p2, p3, p4); ++} ++#else + void (**name)(); + { + (**name)(p1, p2, p3, p4); + } + #endif ++#endif +diff -urNad cernlib-2005.05.09.dfsg~/src/packlib/zebra/test/brztest/btest2.F cernlib-2005.05.09.dfsg/src/packlib/zebra/test/brztest/btest2.F +--- cernlib-2005.05.09.dfsg~/src/packlib/zebra/test/brztest/btest2.F 1997-09-02 15:16:16.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/packlib/zebra/test/brztest/btest2.F 2005-12-09 13:27:46.971360424 +0000 +@@ -29,6 +29,15 @@ + ******************************************************************************** + * + COMMON/CRZT/IXSTOR,IXDIV,IFENCE(2),LEV,LEVIN,BLVECT(30000) ++ ++* LP64 compatibility: ++* For 64-bit pointer systems put local variables referenced by LOCF ++* in a dummy named common block to keep addresses in the program region. ++* see also: packlib/ffread/test/main.F (H. Vogt) ++ ++#if defined(CERNLIB_QMLXIA64) ++ COMMON /TEST64/LBANK ++#endif + DIMENSION LQ(999),IQ(999),Q(999) + EQUIVALENCE (IQ(1),Q(1),LQ(9)),(LQ(1),LEV) + C +diff -urNad cernlib-2005.05.09.dfsg~/src/pawlib/comis/code/Imakefile cernlib-2005.05.09.dfsg/src/pawlib/comis/code/Imakefile +--- cernlib-2005.05.09.dfsg~/src/pawlib/comis/code/Imakefile 2005-12-09 13:27:38.969576880 +0000 ++++ cernlib-2005.05.09.dfsg/src/pawlib/comis/code/Imakefile 2005-12-09 13:27:46.971360424 +0000 +@@ -50,6 +50,10 @@ + SRCS_F := $(SRCS_F) cscrexec.F + #endif + ++#if defined(CERNLIB_QMLXIA64) ++SRCS_F := $(SRCS_F) csrtgpl.F csitgpl.F ++#endif ++ + #if defined(CERNLIB_OLD) + SRCS_F := $(SRCS_F) cspdir.F csrmbk.F + #endif +diff -urNad cernlib-2005.05.09.dfsg~/src/pawlib/comis/code/csaddr.F cernlib-2005.05.09.dfsg/src/pawlib/comis/code/csaddr.F +--- cernlib-2005.05.09.dfsg~/src/pawlib/comis/code/csaddr.F 1996-02-26 17:16:25.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/pawlib/comis/code/csaddr.F 2005-12-09 13:27:46.972360272 +0000 +@@ -17,8 +17,14 @@ + INTEGER CSLTGP,CSITGP + CHARACTER*32 NAME + #include "comis/cstab.inc" +-#if defined(CERNLIB_SHL) ++#if defined(CERNLIB_SHL)&&(!defined(CERNLIB_QMLXIA64)) + INTEGER CS_GET_FUNC ++#endif ++#if defined(CERNLIB_SHL)&&(defined(CERNLIB_QMLXIA64)) ++#include "comis/cstab64.inc" ++ INTEGER*8 CS_GET_FUNC ++#endif ++#if defined(CERNLIB_SHL) + NAME=CHNAME + NC=LENOCC(NAME) + CALL CSCHID(NAME(:NC)) +@@ -26,21 +32,39 @@ + I=CSLTGP(IPVS) + IF(I.GT.0)THEN + IF(IFCS.EQ.0)THEN ++#if defined (CERNLIB_QMLXIA64) ++ IADGPL=CS_GET_FUNC(NAME(1:NC)//'_') ++ IF(IADGPL.NE.0)THEN ++ IFCS=-2 ++ CALL CSRTGPL(I) ++#else + IADGP=CS_GET_FUNC(NAME(1:NC)//'_') + IF(IADGP.NE.0)THEN + IFCS=-2 + CALL CSRTGP(I) ++#endif ++#endif ++#if defined(CERNLIB_SHL) + ELSE + I=0 + ENDIF + ENDIF + ELSE ++#if defined (CERNLIB_QMLXIA64) ++ IADGPL=CS_GET_FUNC(NAME(1:NC)//'_') ++ IF(IADGPL.NE.0)THEN ++ IFCS=-2 ++ ITYPGP=-2 ++ I=CSITGPL(IPVS) ++ ENDIF ++#else + IADGP=CS_GET_FUNC(NAME(1:NC)//'_') + IF(IADGP.NE.0)THEN + IFCS=-2 + ITYPGP=-2 + I=CSITGP(IPVS) + ENDIF ++#endif + END IF + CSADDR=I + #endif +diff -urNad cernlib-2005.05.09.dfsg~/src/pawlib/comis/code/csinit.F cernlib-2005.05.09.dfsg/src/pawlib/comis/code/csinit.F +--- cernlib-2005.05.09.dfsg~/src/pawlib/comis/code/csinit.F 2005-04-18 15:41:04.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/pawlib/comis/code/csinit.F 2005-12-09 13:27:46.972360272 +0000 +@@ -64,6 +64,9 @@ + #if defined(CERNLIB_SHL) + #include "comis/cshlnm.inc" + #endif ++#if defined(CERNLIB_SHL)&&(defined(CERNLIB_QMLXIA64)) ++#include "comis/cstab64.inc" ++#endif + #if defined(CERNLIB_PAW) + #include "paw/pcmode.inc" + #include "comis/cshfill.inc" +@@ -159,6 +162,9 @@ + ICHMINU=ICHAR('-') + ICHPLUS=ICHAR('+') + ICHCOMM=ICHAR(',') ++#if defined(CERNLIB_SHL)&&(defined(CERNLIB_QMLXIA64)) ++ IPIADGV=0 ++#endif + #if defined(CERNLIB_PAW) + CALL CSPAWI + MODHFI=0 +@@ -211,8 +217,8 @@ + #endif + #if (defined(CERNLIB_LINUX)) + ITMPLEN=CSTMPD(CHPATH, 256) +- CHF77 ='g77 -c' +- CHCC ='cc -c' ++ CHF77 ='g77 -c -fPIC' ++ CHCC ='cc -c -fPIC' + #endif + #if (defined(CERNLIB_SGI))&&(defined(CERNLIB_SHL)) + ITMPLEN=CSTMPD(CHPATH, 256) +diff -urNad cernlib-2005.05.09.dfsg~/src/pawlib/comis/code/csintx.F cernlib-2005.05.09.dfsg/src/pawlib/comis/code/csintx.F +--- cernlib-2005.05.09.dfsg~/src/pawlib/comis/code/csintx.F 1996-12-05 09:50:37.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/pawlib/comis/code/csintx.F 2005-12-09 13:27:46.973360120 +0000 +@@ -38,6 +38,9 @@ + #if defined(CERNLIB_PAW) + #include "comis/cskucs.inc" + #endif ++#if defined(CERNLIB_QMLXIA64) ++#include "comis/cstab64.inc" ++#endif + #if (defined(CERNLIB_UNIX))&&(!defined(CERNLIB_ALPHA_OSF)) + INTEGER CSTRCMP + #endif +@@ -1105,6 +1108,32 @@ + ENDIF + #endif + #if (!defined(CERNLIB_VAX))&&(!defined(CERNLIB_APOLLO)) ++#if defined(CERNLIB_QMLXIA64) ++ IF(IQ(IP+KSIFCS).EQ.-2)THEN ++*Dynamic linker may give long addresses ++ IADGPL = IADGPLV(IADGP) ++ IF(ITP.EQ.1.OR.ITP.EQ.4.OR.ITP.EQ.6)THEN ++ ICSRES=CSCALI(IADGPL,NPAR,IDA(IOFSPL)) ++ ELSEIF(ITP.EQ.2)THEN ++ RCSRES=CSCALR(IADGPL,NPAR,IDA(IOFSPL)) ++ ELSEIF(ITP.EQ.5)THEN ++ DCSRES=CSCALD(IADGPL,NPAR,IDA(IOFSPL)) ++ ELSEIF(ITP.EQ.7)THEN ++ DCSRES=CSCALD(IADGPL,NPAR,IDA(IOFSPL)) ++ ENDIF ++ ELSE ++ IADGPL = IADGP ++ IF(ITP.EQ.1.OR.ITP.EQ.4.OR.ITP.EQ.6)THEN ++ ICSRES=CSCALI(IADGPL,NPAR,IDA(IOFSPL)) ++ ELSEIF(ITP.EQ.2)THEN ++ RCSRES=CSCALR(IADGPL,NPAR,IDA(IOFSPL)) ++ ELSEIF(ITP.EQ.5)THEN ++ DCSRES=CSCALD(IADGPL,NPAR,IDA(IOFSPL)) ++ ELSEIF(ITP.EQ.7)THEN ++ DCSRES=CSCALD(IADGPL,NPAR,IDA(IOFSPL)) ++ ENDIF ++ ENDIF ++#else + IF(ITP.EQ.1.OR.ITP.EQ.4.OR.ITP.EQ.6)THEN + ICSRES=CSCALI(IADGP,NPAR,IDA(IOFSPL)) + ELSEIF(ITP.EQ.2)THEN +@@ -1115,6 +1144,7 @@ + DCSRES=CSCALD(IADGP,NPAR,IDA(IOFSPL)) + ENDIF + #endif ++#endif + IPC=IPC+4 + GO TO 999 + *NUM I +diff -urNad cernlib-2005.05.09.dfsg~/src/pawlib/comis/code/csitgpl.F cernlib-2005.05.09.dfsg/src/pawlib/comis/code/csitgpl.F +--- cernlib-2005.05.09.dfsg~/src/pawlib/comis/code/csitgpl.F 1970-01-01 00:00:00.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/pawlib/comis/code/csitgpl.F 2005-12-09 13:27:46.973360120 +0000 +@@ -0,0 +1,32 @@ ++* Comis ++* ++* ++#if (defined(CERNLIB_QMLXIA64)) ++#include "comis/pilot.h" ++*CMZU: 1.16/16 04/10/93 12.14.52 by Vladimir Berezhnoi ++*-- Author : V.Berezhnoi ++* special for 64 bit addresses for dynamic linking (H. Vogt) ++ INTEGER FUNCTION CSITGPL(IP) ++***------------------------------ ++* it is last routine from the tables-set. ++***----------------------------- ++#include "comis/cspar.inc" ++#include "comis/mdpool.inc" ++#include "comis/cspnts.inc" ++#include "comis/cstabps.inc" ++#include "comis/cstab64.inc" ++ I=MHLOC(KSIDP+NWIDEN) ++ IQ(I)=0 ++ IQ(I+1)=NCIDEN ++ DO 1 K=1,NWIDEN ++ IQ(I+KSIDP-1+K)=IDEN(K) ++ 1 CONTINUE ++ CALL CSRTGPL(I) ++ IF(IP.EQ.0)THEN ++ IPGP=I ++ ELSE ++ IQ(IP)=I ++ ENDIF ++ CSITGP=I ++ END ++#endif +diff -urNad cernlib-2005.05.09.dfsg~/src/pawlib/comis/code/cskcal.F cernlib-2005.05.09.dfsg/src/pawlib/comis/code/cskcal.F +--- cernlib-2005.05.09.dfsg~/src/pawlib/comis/code/cskcal.F 1996-12-05 09:50:39.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/pawlib/comis/code/cskcal.F 2005-12-09 13:27:46.973360120 +0000 +@@ -31,6 +31,9 @@ + #include "comis/cstab.inc" + #include "comis/csfres.inc" + #include "comis/cssysd.inc" ++#if defined(CERNLIB_QMLXIA64) ++#include "comis/cstab64.inc" ++#endif + CHARACTER PRONAME*32 + INTEGER CSCALI + DOUBLE PRECISION CSCALD +@@ -232,6 +235,34 @@ + I2=I2+KS + I=I+1 + 9203 CONTINUE ++#if defined(CERNLIB_QMLXIA64) ++* Dynamic linker may give long addresses ++ IF (IFCS.EQ.-2)THEN ++ IADGPL = IADGPLV(IADGP) ++ IF(ITP.EQ.1.OR.ITP.EQ.4.OR.ITP.EQ.6)THEN ++ ICSRES=CSCALI(IADGPL,NPAR,IF77PL(1)) ++ ELSEIF(ITP.EQ.2)THEN ++ RCSRES=CSCALR(IADGPL,NPAR,IF77PL(1)) ++ ELSEIF(ITP.EQ.5)THEN ++ DCSRES=CSCALD(IADGPL,NPAR,IF77PL(1)) ++ ELSEIF(ITP.EQ.7)THEN ++* I think it will works correctly ++ DCSRES=CSCALD(IADGPL,NPAR,IF77PL(1)) ++ ENDIF ++ ELSE ++ IADGPL = IADGP ++ IF(ITP.EQ.1.OR.ITP.EQ.4.OR.ITP.EQ.6)THEN ++ ICSRES=CSCALI(IADGPL,NPAR,IF77PL(1)) ++ ELSEIF(ITP.EQ.2)THEN ++ RCSRES=CSCALR(IADGPL,NPAR,IF77PL(1)) ++ ELSEIF(ITP.EQ.5)THEN ++ DCSRES=CSCALD(IADGPL,NPAR,IF77PL(1)) ++ ELSEIF(ITP.EQ.7)THEN ++* I think it will works correctly ++ DCSRES=CSCALD(IADGPL,NPAR,IF77PL(1)) ++ ENDIF ++ ENDIF ++#else + * IT=IABS(ITYPGP) + IF(ITP.EQ.1.OR.ITP.EQ.4.OR.ITP.EQ.6)THEN + ICSRES=CSCALI(IADGP,NOPAR,IF77PL(1)) +@@ -245,6 +276,7 @@ + ENDIF + *+SELF,IF=UNIX,IF=-SGI,IF=-IBMRT,IF=-DECS,IF=-HPUX,IF=-SUN,IF=-MSDOS. + #endif ++#endif + #if (defined(CERNLIB_UNIX))&&(!defined(CERNLIB_STDUNIX)) + I=1 + DO 9203 K=ITA-NPAR+1,ITA +diff -urNad cernlib-2005.05.09.dfsg~/src/pawlib/comis/code/cslink.F cernlib-2005.05.09.dfsg/src/pawlib/comis/code/cslink.F +--- cernlib-2005.05.09.dfsg~/src/pawlib/comis/code/cslink.F 1996-02-26 17:16:17.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/pawlib/comis/code/cslink.F 2005-12-09 13:27:46.973360120 +0000 +@@ -21,10 +21,15 @@ + #include "comis/cstab.inc" + #include "comis/cspnts.inc" + #include "comis/cslun.inc" +-#if defined(CERNLIB_SHL) ++#if defined(CERNLIB_SHL)&&(!defined(CERNLIB_QMLXIA64)) + CHARACTER*(KLENID) FNNAME + INTEGER CS_GET_FUNC + #endif ++#if defined(CERNLIB_SHL)&&(defined(CERNLIB_QMLXIA64)) ++#include "comis/cstab64.inc" ++ CHARACTER*(KLENID) FNNAME ++ INTEGER*8 CS_GET_FUNC ++#endif + COMMON/CSGSCM/IGS,JGS,NGS,CSJUNK(3) + IF(ISTLIB.EQ.0 .AND. ITBS.EQ.0)RETURN + 2 I=IPGP +@@ -60,12 +65,20 @@ + #if defined(CERNLIB_SHL) + CALL CSGTIDP(I,FNNAME,NC) + CALL CUTOL(FNNAME(1:NC)) ++#if defined (CERNLIB_QMLXIA64) ++ IADGPL=CS_GET_FUNC(FNNAME(1:NC)//'_') ++ IF(IADGPL.NE.0)THEN ++ IFCS=-2 ++ CALL CSRTGPL(I) ++ ENDIF ++#else + IADGP=CS_GET_FUNC(FNNAME(1:NC)//'_') + IF(IADGP.NE.0)THEN + IFCS=-2 + CALL CSRTGP(I) + ENDIF + #endif ++#endif + IP=0 + ENDIF + ENDIF +diff -urNad cernlib-2005.05.09.dfsg~/src/pawlib/comis/code/csrtgpl.F cernlib-2005.05.09.dfsg/src/pawlib/comis/code/csrtgpl.F +--- cernlib-2005.05.09.dfsg~/src/pawlib/comis/code/csrtgpl.F 1970-01-01 00:00:00.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/pawlib/comis/code/csrtgpl.F 2005-12-09 13:27:46.973360120 +0000 +@@ -0,0 +1,31 @@ ++* Comis ++* ++* ++#if (defined(CERNLIB_QMLXIA64)) ++#include "comis/pilot.h" ++*CMZ : 1.18/14 10/01/95 15.41.06 by Vladimir Berezhnoi ++*-- Author : V.Berezhnoi ++* special for 64 bit addresses for dynamic linking (H. Vogt) ++ ++ SUBROUTINE CSRTGPL(I) ++***-------------------------- ++#include "comis/cspar.inc" ++#include "comis/mdpool.inc" ++#include "comis/cstabps.inc" ++#include "comis/cstab.inc" ++#include "comis/cstab64.inc" ++ ++ IPIADGV = IPIADGV + 1 ++ IF (IPIADGV .GT. MAXIAD64) THEN ++ WRITE (*,'(2a,I4)') 'to much addresses for dynamik linking, ', ++ & 'limit is ', MAXIAD64 ++ WRITE (*,'(2a)') 'increase MAXIAD64 in cstab64.inc and ', ++ & 'recompile COMIS' ++ ++ STOP ++ END IF ++ IADGPLV(IPIADGV) = IADGPL ++ IADGP = IPIADGV ++ CALL CCOPYA(IADGP,IQ(I+2),KSIDP-2) ++ END ++#endif +diff -urNad cernlib-2005.05.09.dfsg~/src/pawlib/comis/comis/cstab64.inc cernlib-2005.05.09.dfsg/src/pawlib/comis/comis/cstab64.inc +--- cernlib-2005.05.09.dfsg~/src/pawlib/comis/comis/cstab64.inc 1970-01-01 00:00:00.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/pawlib/comis/comis/cstab64.inc 2005-12-09 13:27:46.973360120 +0000 +@@ -0,0 +1,10 @@ ++* ++* ++* cstab64.inc ++* ++ PARAMETER (MAXIAD64=100) !maximum number of shared objects ++ INTEGER*8 IADGPL,IADGPLV(MAXIAD64) ++ INTEGER IADGPL1, IADGPL2 ++ COMMON /CSTB64/ IADGPL,IADGPLV ++ COMMON /CSTB64I/ IPIADGV ++ EQUIVALENCE (IADGPL, IADGPL1) +diff -urNad cernlib-2005.05.09.dfsg~/src/pawlib/comis/deccc/ccopys.c cernlib-2005.05.09.dfsg/src/pawlib/comis/deccc/ccopys.c +--- cernlib-2005.05.09.dfsg~/src/pawlib/comis/deccc/ccopys.c 1997-09-02 15:50:38.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/pawlib/comis/deccc/ccopys.c 2005-12-09 13:27:46.974359968 +0000 +@@ -33,11 +33,25 @@ + #else + void ccopys_(ja,jb,nn) + #endif ++ ++/* ++ * 64-bit pointer systems require a special treatment of addresses - see below - ++ * using the CERNLIB_QMLXIA64 cpp flag (H. Vogt - Sep 2005) ++ */ ++ ++#if defined(CERNLIB_QMLXIA64) ++ int *ja, *jb; ++ int *nn; ++{ ++ int i,n; char *a,*b; ++ n=*nn; a=*ja; b=*jb; ++#else + char **ja, **jb; + int *nn; + { + int i,n; char *a,*b; + n=*nn; a=*ja; b=*jb; ++#endif + if ( a >= b ) + for ( i=0; inext = f->first_proc; + f->first_proc = p; ++ if (debug_level > 0) printf("function pointer is: %p\n", p->funcptr); + return (void *)(p->funcptr); + } + f = f->next; +diff -urNad cernlib-2005.05.09.dfsg~/src/pawlib/comis/deccc/cscald.c cernlib-2005.05.09.dfsg/src/pawlib/comis/deccc/cscald.c +--- cernlib-2005.05.09.dfsg~/src/pawlib/comis/deccc/cscald.c 2004-10-27 09:01:54.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/pawlib/comis/deccc/cscald.c 2005-12-09 13:27:46.974359968 +0000 +@@ -32,8 +32,7 @@ + #ifdef CERNLIB_WINNT + # include + #endif +- +-#if (defined(CERNLIB_QX_SC))&&(!defined(CERNLIB_WINNT)) ++#if (defined(CERNLIB_QX_SC))&&(!defined(CERNLIB_WINNT))&&(!defined(CERNLIB_QMLXIA64)) + double cscald_ (name,n,p) + #endif + #if defined(CERNLIB_QXNO_SC) +@@ -46,10 +45,41 @@ + int CSCALD (name,n,p) + # endif + #endif ++ ++/* ++ * 64-bit pointer systems require a special treatment of addresses - see below ++ * using the CERNLIB_QMLXIA64 macro definition (H. Vogt - Sep 2005) ++ * This code will be consistent with that of jumptn.c and jumpxn.c ++ * in packlib/kernlib/kerngen/ccgen (usage of jumpad_) ++ * ++ * for shared objects loaded by the dynamic linker content of the 1st arg ++ * in cscald_ is a pointer which may be above the 32 bit address space ++ * therefore *fptr has been changed to type long ++ * see changes in csintx.F, cskcal.F, ... (introduction of INTEGER*8 array for ++ * those pointers) ++ */ ++ ++#if defined(CERNLIB_QMLXIA64) ++double cscald_ (fptr,n,pin) ++ long *fptr; ++ int *n; ++ unsigned pin[16]; ++{ ++ int jumpad_(); ++ double (*name)(); ++ unsigned long ptr = *fptr + (unsigned long)jumpad_; ++ /* if ( *fptr > 0 ) ptr = 0; */ ++ ptr += *fptr; ++ name = (double (*)())ptr; ++/* printf ("cscald - *fptr,ptr,jumpad_ are: %p %p %p %p\n", *fptr, ptr, jumpad_); */ ++ long p[16]; ++ int count; for ( count=0; count<16; count++ ) p[count] = pin[count]; ++#else + double (type_of_call *(*name)) (); + int *n; +- int *p[15]; ++ int *p[16]; + { ++#endif + double d; + switch (*n) + { +diff -urNad cernlib-2005.05.09.dfsg~/src/pawlib/comis/deccc/cscali.c cernlib-2005.05.09.dfsg/src/pawlib/comis/deccc/cscali.c +--- cernlib-2005.05.09.dfsg~/src/pawlib/comis/deccc/cscali.c 2004-10-22 12:42:40.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/pawlib/comis/deccc/cscali.c 2005-12-09 13:27:46.974359968 +0000 +@@ -29,8 +29,7 @@ + #ifdef CERNLIB_WINNT + # include + #endif +- +-#if (defined(CERNLIB_QX_SC))&&(!defined(CERNLIB_WINNT)) ++#if (defined(CERNLIB_QX_SC))&&(!defined(CERNLIB_WINNT))&&(!defined(CERNLIB_QMLXIA64)) + int cscali_ (name,n,p) + #endif + #if defined(CERNLIB_QXNO_SC) +@@ -39,10 +38,41 @@ + #if defined(CERNLIB_QXCAPT) + int type_of_call CSCALI (name,n,p) + #endif ++ ++/* ++ * 64-bit pointer systems require a special treatment of addresses - see below ++ * using the CERNLIB_QMLXIA64 macro definition (H. Vogt - Sep 2005) ++ * This code will be consistent with that of jumptn.c and jumpxn.c ++ * in packlib/kernlib/kerngen/ccgen (usage of jumpad_) ++ * ++ * for shared objects loaded by the dynamic linker content of the 1st arg ++ * in cscali_ is a pointer which may be above the 32 bit address space ++ * therefore *fptr has been changed to type long ++ * see changes in csintx.F, cskcal.F, ... (introduction of INTEGER*8 array for ++ * those pointers) ++ */ ++ ++#if defined(CERNLIB_QMLXIA64) ++int cscali_ (fptr,n,pin) ++ long *fptr; ++ int *n; ++ unsigned pin[16]; ++{ ++ int jumpad_(); ++ int (*name)(); ++ unsigned long ptr = (unsigned long)jumpad_; ++ /* if ( *fptr > 0 ) ptr = 0; */ ++ ptr += *fptr; ++ name = (int (*)())ptr; ++/* printf ("cscali - *fptr,ptr,jumpad_ are: %p %p %p %p\n", *fptr, ptr, jumpad_); */ ++ long p[16]; ++ int count; for ( count=0; count<16; count++ ) p[count] = pin[count]; ++#else + int (type_of_call *(*name)) (); + int *n; +- int *p[15]; ++ int *p[16]; + { ++#endif + int i; + switch (*n) + { +diff -urNad cernlib-2005.05.09.dfsg~/src/pawlib/comis/deccc/cscalr.c cernlib-2005.05.09.dfsg/src/pawlib/comis/deccc/cscalr.c +--- cernlib-2005.05.09.dfsg~/src/pawlib/comis/deccc/cscalr.c 2004-10-22 12:03:16.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/pawlib/comis/deccc/cscalr.c 2005-12-09 13:27:46.974359968 +0000 +@@ -35,7 +35,7 @@ + #endif + + +-#if (defined(CERNLIB_QX_SC))&&(!defined(CERNLIB_WINNT)) ++#if (defined(CERNLIB_QX_SC))&&(!defined(CERNLIB_WINNT))&&(!defined(CERNLIB_QMLXIA64)) + float cscalr_ (name,n,p) + #endif + +@@ -51,11 +51,51 @@ + # endif + #endif + ++/* ++ * 64-bit pointer systems require a special treatment of addresses - see below ++ * using the CERNLIB_QMLXIA64 macro definition (H. Vogt - Sep 2005) ++ * This code will be consistent with that of jumptn.c and jumpxn.c ++ * in packlib/kernlib/kerngen/ccgen (usage of jumpad_) ++ * ++ * for shared objects loaded by the dynamic linker content of the 1st arg ++ * in cscalr_ is a pointer which may be above the 32 bit address space ++ * therefore *fptr has been changed to type long ++ * see changes in csintx.F, cskcal.F, ... (introduction of INTEGER*8 array for ++ * those pointers) ++ */ ++ ++/* Additional note: g77 generates code such that it expects REAL functions ++ * to return "double". Hence C functions to be used in FORTRAN as REAL ++ * must return "double", and declarations of REAL FORTRAN functions in C files ++ * must also return "double". On most architectures one can get away with ++ * using "float" instead, but not on amd64 ... see ++ * http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15397 ++ * ++ * -- Kevin McCarty ++ */ ++ ++#if defined(CERNLIB_QMLXIA64) ++double cscalr_ (fptr,n,pin) ++ long *fptr; ++ int *n; ++ int pin[16]; ++{ ++ int jumpad_(); ++ double (*name)(); ++ unsigned long ptr = (unsigned long)jumpad_; ++ ptr += *fptr; ++ name = (double (*)())ptr; ++/* printf ("cscalr - *fptr,ptr,jumpad_ are: %p %p %p %p\n", *fptr, ptr, jumpad_); */ ++ long p[16]; ++ int count; for ( count=0; count<16; count++ ) p[count] = pin[count]; ++ double r; ++#else + float (type_of_call *(*name)) (); + int *n; +- int *p[15]; ++ int *p[16]; + { + float r; ++#endif + switch (*n) + { + case 0: +diff -urNad cernlib-2005.05.09.dfsg~/src/pawlib/comis/deccc/cstrcmp.c cernlib-2005.05.09.dfsg/src/pawlib/comis/deccc/cstrcmp.c +--- cernlib-2005.05.09.dfsg~/src/pawlib/comis/deccc/cstrcmp.c 1997-09-02 15:50:44.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/pawlib/comis/deccc/cstrcmp.c 2005-12-09 13:27:46.975359816 +0000 +@@ -36,6 +36,27 @@ + #else + int cstrcmp_(ja,na,jb,nb) + #endif ++ ++/* ++ * 64-bit pointer systems require a special treatment of addresses - see below - ++ * using the CERNLIB_QMLXIA64 cpp flag (H. Vogt - Sep 2005) ++ */ ++ ++#if defined(CERNLIB_QMLXIA64) ++ int *ja, *jb; ++ int *na, *nb; ++{ ++ ++ int i,la,lb,k; char *a,*b; ++ if ( *na >= *nb ) ++ { ++ a=*ja; b=*jb; la=*na; lb=*nb; k=1; ++ } ++ else ++ { ++ a=*jb; b=*ja; la=*nb; lb=*na; k=-1; ++ } ++#else + char **ja, **jb; + int *na, *nb; + { +@@ -48,6 +69,7 @@ + { + a=*jb; b=*ja; la=*nb; lb=*na; k=-1; + } ++#endif + for ( i=0; i b[i]) ? k : -k ); } +diff -urNad cernlib-2005.05.09.dfsg~/src/pawlib/paw/ntuple/c_hcntpar.h cernlib-2005.05.09.dfsg/src/pawlib/paw/ntuple/c_hcntpar.h +--- cernlib-2005.05.09.dfsg~/src/pawlib/paw/ntuple/c_hcntpar.h 1996-04-23 18:37:45.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/pawlib/paw/ntuple/c_hcntpar.h 2005-12-09 13:27:46.975359816 +0000 +@@ -47,7 +47,7 @@ + #define ZID 12 + #define ZITMP 10 + #define ZNTMP 6 +-#define ZNTMP1 3 ++#define ZNTMP1 4 + #define ZLINK 6 + + #endif /* CERN_C_HCNTPAR */ +diff -urNad cernlib-2005.05.09.dfsg~/src/pawlib/paw/ntuple/qp_execute.c cernlib-2005.05.09.dfsg/src/pawlib/paw/ntuple/qp_execute.c +--- cernlib-2005.05.09.dfsg~/src/pawlib/paw/ntuple/qp_execute.c 2001-09-18 13:41:35.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/pawlib/paw/ntuple/qp_execute.c 2005-12-09 13:31:01.495788216 +0000 +@@ -184,12 +184,19 @@ + /* all definitions for the stack */ + #undef INIT_STACK_TO_NULL /* are kept together in this file */ + ++#if defined(CERNLIB_QMLXIA64) ++# undef HBALLOC ++# undef HGNTBF ++# define HBALLOC HBALLOC64 ++# define HGNTBF HGNTBF64 ++#endif ++ + /* extern functions */ + extern void qp_exec_evt( QueryExe *, long, long, QPCmd *, int *); + + typedef char tName[MAX_NAME_LEN+1]; + tName *namelist; +-int *offsetlist; ++long *offsetlist; + int *indexlist; + + +@@ -245,7 +252,23 @@ + char ntname[MAX_NAME_LEN+6]; + int i, ierr, indx, itype, isize, ielem; + Int32 * addr; +- int ibase[1], ioff, nuse; ++ ++ /* LP64 compatibility: ++ - use static for ibase (at least) because its address is stored ++ as Int32 in structure CWNBlock ++ static takes ibase from the stack and puts it the code area. ++ - use type long for ioff and offsetlist[i] ++ (for 32 bit architectures type long is 4 Bytes as it is used ++ also in packlib/hbook/chbook/halloc.c in hballo1 !) ++ The x86-64 ABI has the code area in the 32 bit address space ++ but addresses to the stack and to dynamically allocated areas ++ may and will be above the 32 bit address space (below 0x80000000000). ++ See also: http://www.x86-64.org/documentation/abi-0.96.pdf ++ (H. Vogt, Oct. 2005) */ ++ ++ static int ibase[1]; ++ long ioff; ++ int nuse; + int id = qe->id; + char * path = qe->path; + char * title; +@@ -286,7 +309,11 @@ + CWNBlock = (RefCWN *) calloc( CWNCount + 1, sizeof( RefCWN ) ); + qp_assert( MAX_NAME_LEN == 32 ); /* see hbook.h (HGNTBF) */ + namelist = (tName *) calloc( CWNCount + 1, sizeof(tName) ); +- offsetlist = (int *) calloc( CWNCount + 1, sizeof(int) ); ++ ++ /* offsetlist should be of type long (see above) (H. Vogt, Oct. 2005) */ ++ ++ offsetlist = (long *) calloc( CWNCount + 1, sizeof(long) ); ++ + indexlist = (int *) calloc( CWNCount + 1, sizeof(int) ); + qp_assert( + CWNBlock != 0 && +@@ -381,6 +408,7 @@ + offsetlist[nt_load_cnt]= + CWNBlock[index].p - + PAWC.iq_eqv; ++ + strncpy( + namelist[nt_load_cnt], + vi->name, +@@ -871,8 +899,21 @@ + if ( cmd->u.scan.pawpp ) { + char buf[33]; + ++ /* for LP64 ABI matlab and matrow are 64 bit pointer, type is void* ++ but PCADDR.jmlab and PCADDR.jmrow are of type int ++ see: c_pcaddr.h and qp_command.h ++ it is related to CWNBlock -> see above (H. Vogt)*/ ++ ++#if defined(CERNLIB_QMLXIA64) ++ unsigned long long int myjmlab, myjmrow; ++ myjmlab = PCADDR.jmlab; ++ myjmrow = PCADDR.jmrow; ++ c->matlab = (TableCallBack) myjmlab; ++ c->matrow = (TableCallBack) myjmrow; ++#else + c->matlab = (TableCallBack) PCADDR.jmlab; + c->matrow = (TableCallBack) PCADDR.jmrow; ++#endif + + qp_assert( qe->nexpr <= MAX_OUTSTR ); + +diff -urNad cernlib-2005.05.09.dfsg~/src/pawlib/paw/ntuple/qp_hbook_if.c cernlib-2005.05.09.dfsg/src/pawlib/paw/ntuple/qp_hbook_if.c +--- cernlib-2005.05.09.dfsg~/src/pawlib/paw/ntuple/qp_hbook_if.c 1999-07-05 15:43:35.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/pawlib/paw/ntuple/qp_hbook_if.c 2005-12-09 13:27:46.976359664 +0000 +@@ -149,7 +149,15 @@ + int idn, idtmp; + int icycle; + int ierr; +- int izero = 0; ++ ++ /* LP64 compatibility: ++ use static for izero because its address is fetched by hbname_ ++ using locb and locb expects 32 bit addresses only. ++ static takes izero from the stack and puts it the code area ++ and the LP64 ABI has the code area in the 32 bit address space ++ but the stack starts downward from 0x80000000000 (H. Vogt) */ ++ ++ static int izero = 0; + + /* split string into path, id and cycle */ + +diff -urNad cernlib-2005.05.09.dfsg~/src/scripts/cernlib cernlib-2005.05.09.dfsg/src/scripts/cernlib +--- cernlib-2005.05.09.dfsg~/src/scripts/cernlib 2003-01-23 14:00:37.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/scripts/cernlib 2005-12-09 13:27:46.976359664 +0000 +@@ -115,6 +115,12 @@ + [ -d /usr/X11R6/lib ] && SYSGX11="-L/usr/X11R6/lib -lX11" + [ -d /usr/X11R6/lib ] && SYSGMOTIF="-L/usr/X11R6/lib -lXm -lXt -lXp -lXext -lX11" + [ `uname -m` = ppc ] && SYSGMOTIF="$SYSGMOTIF -lSM -lICE -lXpm" ++# add path to lib64 for x86_64 architecture ++ if [ `uname -m` = x86_64 ] && [ -d /usr/X11R6/lib64 ] ; then ++ SYSGDIRS="-L/usr/X11R6/lib -L/usr/X11R6/lib64" ++ SYSGX11="$SYSGDIRS -lX11" ++ SYSGMOTIF="$SYSGDIRS -lXm -lXt -lXp -lXext -lX11" ++ fi + ;; + NeXT) SYSGX11="/usr/lib/X11/libX11.r" ; + SYSGMOTIF="-lXm -lXt /usr/lib/X11/libX11.r" ;; --- cernlib-2005.05.09.dfsg.orig/debian/patches/117-fix-optimizer-bug-in-gphot.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/117-fix-optimizer-bug-in-gphot.dpatch @@ -0,0 +1,29 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 117-fix-optimizer-bug-in-gphot.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Patch by Harald Vogt to work around compiler +## DP: optimization problems in src/geant321/gphys/gphot.F. + +@DPATCH@ +diff -urNad cernlib-2005.05.09.dfsg~/src/geant321/gphys/gphot.F cernlib-2005.05.09.dfsg/src/geant321/gphys/gphot.F +--- cernlib-2005.05.09.dfsg~/src/geant321/gphys/gphot.F 1995-10-24 06:21:29.000000000 -0400 ++++ cernlib-2005.05.09.dfsg/src/geant321/gphys/gphot.F 2005-12-07 15:01:52.558184613 -0500 +@@ -240,7 +240,7 @@ + ELSE + C Radiative shell decay + JS = JFN+1+2*NSHELL+ISHELL +- JS = JPHFN+Q(JS) ++ JS = JPHFN + INT (Q(JS)) ! compiler optimiztion problem H. Vogt 2004/04/29 + NPOINT = Q(JS) + DO 40 I = 1,NPOINT + IF(RN05.LT.Q(JS+I)) THEN +@@ -296,7 +296,7 @@ + ELSE + c Nonradiative decay + JS = JFN+1+3*NSHELL+ISHELL +- JS = JPHFN+Q(JS) ++ JS = JPHFN + INT (Q(JS)) ! compiler optimiztion problem H. Vogt 2004/04/29 + NPOINT = Q(JS) + DO 60 I = 1,NPOINT + IF(RN05.LT.Q(JS+I)) THEN --- cernlib-2005.05.09.dfsg.orig/debian/patches/315-fixes-for-MacOSX.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/315-fixes-for-MacOSX.dpatch @@ -0,0 +1,757 @@ +#! /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/config/Imake.rules cernlib-2005.05.09.dfsg/src/config/Imake.rules +--- cernlib-2005.05.09.dfsg~/src/config/Imake.rules 2005-04-18 11:39:25.000000000 -0400 ++++ cernlib-2005.05.09.dfsg/src/config/Imake.rules 2005-12-07 14:47:34.139148983 -0500 +@@ -2171,7 +2171,7 @@ + #define CppScriptTarget(dst,src,defs,deplist) @@\ + dst:: src deplist @@\ + RemoveFile($@) @@\ +- $(CPP) defs $@ @@\ ++ $(CPP) defs src | CppSedMagic >$@ @@\ + chmod a+x $@ @@\ + @@\ + clean:: @@\ +@@ -2203,7 +2203,7 @@ + #define CppFileTarget(dst,src,defs,deplist) @@\ + dst:: src deplist @@\ + RemoveFile($@) @@\ +- $(CPP) defs $@ @@\ ++ $(CPP) defs src | CppSedMagic >$@ @@\ + @@\ + clean:: @@\ + RemoveFiles(dst) +diff -urNad cernlib-2005.05.09.dfsg~/src/config/MacOSX.cf cernlib-2005.05.09.dfsg/src/config/MacOSX.cf +--- cernlib-2005.05.09.dfsg~/src/config/MacOSX.cf 1969-12-31 19:00:00.000000000 -0500 ++++ cernlib-2005.05.09.dfsg/src/config/MacOSX.cf 2005-12-07 14:47:34.140148771 -0500 +@@ -0,0 +1,170 @@ ++XCOMM platform: $SFO: MOSXS.cf,v 1.0 95/11/19 23:21:00 sl Exp $ ++ ++#define OSVendor Apple Computer, Inc. ++#ifdef MacOSXArchitecture ++#define OSName MacOSX ++#define OSMajorVersion DefaultOSMajorVersion ++#define OSMinorVersion DefaultOSMinorVersion ++#define OSTeenyVersion 0 ++#endif ++ ++#define ProjectRulesFile ++#define ProjectTmplFile ++ ++#define InstKmemFlags -m 2755 -g kmem ++/* #define ConstructMFLAGS NO */ ++ ++#define HasNdbm YES ++#define SetTtyGroup YES ++#define HasBsearch YES ++#ifdef MacOSXArchitecture ++#define HasPutenv YES ++#define MathLibrary /**/ ++#define DBMLibrary /**/ ++#define TermcapLibrary /**/ ++#define HasBSD44Sockets YES ++#define HAS_SNPRINTF YES ++#endif ++ ++#define NeedConstPrototypes YES ++#define NeedVarargsPrototypes YES ++#define NeedFunctionPrototypes YES ++#define NeedWidePrototypes NO ++ ++#define GzipFontCompression YES ++#define CompressAllFonts YES ++ ++#ifndef HasShm ++# define HasShm YES ++#endif ++#ifndef BuildGlxExt ++# define BuildGlxExt YES ++# define GlxUseNSGL YES ++#endif ++#define BuildServer YES ++#define BuildXprint NO ++#define BuildFonts YES ++#define BuildDPMS NO ++ ++#define TenonServer YES ++#define XprtServer NO ++#define XVendorString "Tenon Intersystems Xtools" ++#define XVendorRelease 1000 ++#ifndef UseRgbTxt ++#define UseRgbTxt YES ++#endif ++ ++#define BuildPexExt NO ++ ++#ifndef BuildGLXLibrary ++# define BuildGLXLibrary YES ++#endif ++ ++/* no direct graphics extension */ ++#define BuildXF86DGA NO ++ ++/* no extra tablets and weird input devices */ ++#define BuildXInputExt NO ++ ++/* Build Xinerama (aka panoramiX) extension */ ++#define BuildXinerama YES ++ ++/* no Display Power Management extension */ ++#define BuildDPMSExt NO ++ ++# define BuildXvExt NO ++ ++#ifndef OptimizationLevel ++# define OptimizationLevel -O ++#endif ++#define OptimizedCDebugFlags OptimizationLevel -fPIC -pipe ++#define ExtraLoadFlags -L/usr/X11R6/lib -L/sw/lib -L/usr/lib -lc ++ ++#define BuildExamples YES ++ ++#define StandardDefines -DCERNLIB_LINUX -DCERNLIB_PPC -DCERNLIB_MACOSX \ ++ -Dunix=unix -D__powerpc__ -D__DARWIN__ ++/* -DX_NOT_POSIX -DX_LOCALE */ ++ ++#define HasVoidSignalReturn YES ++ ++#ifndef DependFlags ++#define DependFlags -I/usr/include/ansi -I/usr/include/bsd -I/sw/include ++#endif ++ ++#define StandardIncludes -I/sw/include ++ ++#define InstallCmd install /* unlink old */ ++ ++/* #define ArCmd libtool -a -o */ ++#define ArCmd ar -r ++ ++#ifndef RanlibCmd ++#define RanlibCmd ranlib -c -s ++#endif ++ ++/* see below for ServerDefines */ ++ ++#define PrimaryScreenResolution 95 /* for 17 inch screen */ ++ ++#define ServerCDebugFlags OptimizationLevel -fPIC -g -pipe ++ ++#ifndef HasGcc ++#define HasGcc YES ++#endif ++ ++#undef CcCmd ++#undef CplusplusCmd ++#ifdef MacOSXArchitecture ++#define CcCmd cc -g -arch "ppc" -no-cpp-precomp ++#define CplusplusCmd c++ -g -no-cpp-precomp ++#endif ++#ifndef CcCmd ++#define CcCmd cc -g ++#endif ++ ++#define CppCmd /usr/bin/cpp ++ ++#include ++#include ++#undef XFree86Server ++/* #define GLX_DIRECT_RENDERING */ ++ ++#define f2cFortran YES ++#define FortranCmd g77 -g ++#define XargsCmd xargs ++#define FortranSaveFlags /* */ /* Everything static !? */ ++#define OptimisedFortranFlags OptimizationLevel -fPIC -funroll-loops \ ++ -fomit-frame-pointer ++#define DefaultCCOptions OptimizationLevel ++#define DefaultFCOptions -fno-automatic \ ++ -fno-second-underscore \ ++ -fno-f90 -fugly-complex -fno-globals \ ++ -fugly-init -Wno-globals OptimizationLevel ++ ++#ifndef CernlibLocalDefines ++# define CernlibLocalDefines ++#endif ++#define CernlibSystem -DCERNLIB_LINUX -DCERNLIB_UNIX -DCERNLIB_LNX \ ++ -DCERNLIB_PPC -DCERNLIB_QMGLIBC \ ++ -DCERNLIB_MACOSX CernlibLocalDefines ++ ++#undef CERNLIB_SHIFT ++ ++#define CERNLIB_LINUX ++#define CERNLIB_UNIX ++#define CERNLIB_LNX ++#define CERNLIB_PPC ++#define CERNLIB_QMGLIBC ++#define CERNLIB_MACOSX ++ ++#define X11Includes -I/usr/X11R6/include ++ ++/* ++ * Create a Make Variable to allow building with/out Motif ++ */ ++#undef MotifDependantMakeVar ++#define MotifDependantMakeVar(variable,value) variable=value ++/* End CERNLIB changes */ ++ ++ +diff -urNad cernlib-2005.05.09.dfsg~/src/config/MacOSX.rules cernlib-2005.05.09.dfsg/src/config/MacOSX.rules +--- cernlib-2005.05.09.dfsg~/src/config/MacOSX.rules 1969-12-31 19:00:00.000000000 -0500 ++++ cernlib-2005.05.09.dfsg/src/config/MacOSX.rules 2005-12-07 14:47:34.140148771 -0500 +@@ -0,0 +1,123 @@ ++XCOMM $XConsortium: MOSXS.rules,v 1.1 97/12/12 15:34:45 sl Exp $ ++ ++/* ++ * MacOSX shared library rules ++ */ ++ ++#define HasSharedLibraries YES ++ ++#define ForceNormalLib NO ++ ++#ifndef SharedDataSeparation ++#define SharedDataSeparation YES ++#endif ++#ifndef SharedCodeDef ++#define SharedCodeDef ++#endif ++#ifndef SharedLibraryDef ++#define SharedLibraryDef -fno-common ++#endif ++ ++#define ShLibIncludeFile ++ ++#ifndef SharedLibraryLoadFlags ++#define SharedLibraryLoadFlags ++#endif ++#ifndef PositionIndependentCFlags ++#define PositionIndependentCFlags ++#endif ++ ++ ++/* ++ * InstallSharedLibrary - generate rules to install the shared library. ++ * Edited 2003-05-09 by Kevin McCarty to add an install.shlib target. ++ */ ++#ifndef InstallSharedLibrary ++#define InstallSharedLibrary(libname,rev,dest) @@\ ++.PHONY: install.shlib shlib/libname @@\ ++shlib/libname:: $(DESTDIR)dest/SharedLibraryTargetName(libname) @@\ ++ @@\ ++install.shlib:: $(DESTDIR)dest/SharedLibraryTargetName(libname) @@\ ++ @@\ ++$(DESTDIR)dest/SharedLibraryTargetName(libname): SharedLibraryTargetName(libname) @@\ ++ MakeDir($(DESTDIR)dest) @@\ ++ $(INSTALL) $(INSTALLFLAGS) $(INSTBINFLAGS) Concat(lib,libname.rev.dylib) $(DESTDIR)dest @@\ ++ (T=`echo Concat($(DESTDIR)dest/lib,libname.rev.dylib) | sed 's/\.[^\.d]*\.dylib/\.dylib/'`;\ @@\ ++ $(RM) $$T && $(LN) Concat(lib,libname.rev.dylib) $$T) @@\ ++ $(RM) Concat($(DESTDIR)dest/lib,libname.dylib) @@\ ++ $(LN) Concat(lib,libname.rev.dylib) Concat($(DESTDIR)dest/lib,libname.dylib) ++#endif /* InstallSharedLibrary */ ++ ++/* ++ * NormalSharedLibraryTarget - generate rules to create a shared library; ++ * build it into a different name so that the we do not hose people by having ++ * the library gone for long periods. ++ */ ++#ifndef SharedLibraryTarget ++#define SharedLibraryTarget(libname,rev,solist,down,up) @@\ ++AllTarget(Concat(lib,libname.dylib)) @@\ ++ @@\ ++Concat(lib,libname.dylib): solist $(EXTRALIBRARYDEPS) @@\ ++ $(RM) $@~ @@\ ++ (cd down; $(CC) -I/usr/X11R6/lib -dynamiclib -undefined suppress -install_name /usr/X11R6/lib/$@ -o up/$@~ $(SHLIBLDFLAGS) solist $(REQUIREDLIBS)) @@\ ++ $(MV) $@~ $@ @@\ ++ LinkBuildLibrary($@) @@\ ++ @@\ ++clean:: @@\ ++ $(RM) Concat(lib,libname.dylib) ++ ++#endif /* SharedLibraryTarget */ ++ ++/* ++ * SharedDepLibraryTarget - generate rules to create a shared library. ++ */ ++#ifndef SharedDepLibraryTarget ++#define SharedDepLibraryTarget(libname,rev,deplist,solist,down,up) @@\ ++AllTarget(Concat(lib,libname.dylib)) @@\ ++ @@\ ++Concat(lib,libname.dylib): deplist $(EXTRALIBRARYDEPS) @@\ ++ $(RM) $@~ @@\ ++ (cd down; $(CC) -I/usr/X11R6/lib -dynamiclib -undefined suppress -install_name /usr/X11R6/lib/$@ -o up/$@~ $(SHLIBLDFLAGS) solist $(REQUIREDLIBS)) @@\ ++ $(RM) $@ @@\ ++ $(MV) $@~ $@ @@\ ++ LinkBuildLibrary($@) @@\ ++ @@\ ++clean:: @@\ ++ $(RM) Concat(lib,libname.dylib) ++ ++#endif /* SharedDepLibraryTarget */ ++ ++/* ++ * SharedLibraryDataTarget - generate rules to create shlib data file; ++ */ ++#ifndef SharedLibraryDataTarget ++#define SharedLibraryDataTarget(libname,rev,salist) ++#endif /* SharedLibraryDataTarget */ ++ ++#ifndef InstallSharedLibraryData ++#define InstallSharedLibraryData(libname,rev,dest) ++#endif /* InstallSharedLibraryData */ ++ ++/* ++ * SharedLibReferences - variables for shared libraries ++ */ ++#ifndef SharedLibReferences ++#define SharedLibReferences(varname,libname,libsource,revname,rev) @@\ ++revname = rev @@\ ++Concat3(DEP,varname,LIB) = SharedLibDependencies(libname,libsource,revname) @@\ ++Concat(varname,LIB) = LoaderLibPrefix Concat(-l,libname) @@\ ++LintLibReferences(varname,libname,libsource) ++#endif ++ ++/* ++ * SharedDSLibReferences - variables for shared libraries ++ */ ++#ifndef SharedDSLibReferences ++#define SharedDSLibReferences(varname,libname,libsource,revname,rev) @@\ ++revname = rev @@\ ++Concat3(DEP,varname,LIB) = SharedDSLibDependencies(libname,libsource,revname) @@\ ++Concat(varname,LIB) = LoaderLibPrefix Concat(-l,libname) Concat3(Shared,libname,Reqs) @@\ ++LintLibReferences(varname,libname,libsource) ++#endif ++ ++ +diff -urNad cernlib-2005.05.09.dfsg~/src/config/MacOSX.tmpl cernlib-2005.05.09.dfsg/src/config/MacOSX.tmpl +--- cernlib-2005.05.09.dfsg~/src/config/MacOSX.tmpl 1969-12-31 19:00:00.000000000 -0500 ++++ cernlib-2005.05.09.dfsg/src/config/MacOSX.tmpl 2005-12-07 14:47:34.140148771 -0500 +@@ -0,0 +1,67 @@ ++XCOMM $XConsortium: MOSXS.tmpl,v 1.2 97/12/12 19:07:12 sl Exp $ ++ ++/* ++ * Xnext shared library template ++ */ ++ ++ ++ ++#ifndef SharedXtReqs ++#define SharedXtReqs /**/ ++#endif ++#ifndef SharedXawReqs ++#define SharedXawReqs /**/ ++#endif ++#ifndef SharedXmuReqs ++#define SharedXmuReqs $(LDPRELIB) $(XTOOLONLYLIB) $(XONLYLIB) ++#endif ++ ++#define SharedLibX11 YES ++#define SharedX11Rev F ++SharedLibReferences(XONLY,X11,$(XLIBSRC),SOXLIBREV,SharedX11Rev) ++ ++#define SharedLibXau NO /* don't need shared form */ ++#define SharedLibXdmcp NO /* don't need shared form */ ++ ++#define SharedLibXmu YES ++#define SharedXmuRev F ++ ++#define SharedOldXRev F ++ ++#define SharedLibXext YES ++#define SharedXextRev F ++ ++#define SharedLibXt YES ++#define SharedXtRev F ++SharedDSLibReferences(XTOOLONLY,Xt,$(TOOLKITSRC),SOXTREV,SharedXtRev) ++ ++#define SharedXawRev F ++ ++#define SharedXtfRev A ++ ++#define SharedLibXi YES ++#define SharedXiRev F ++SharedLibReferences(XI,Xi,$(XILIBSRC),SOXINPUTREV,SharedXiRev) ++ ++#define SharedLibXtst YES ++#define SharedXtstRev F ++SharedLibReferences(XTEST,Xtst,$(XTESTLIBSRC),SOXTESTREV,SharedXtstRev) ++ ++ ++#define SharedPexRev F ++SharedLibReferences(PEX,PEX5,$(PEXLIBSRC),SOPEXREV,SharedPexRev) ++ ++#define SharedLibXie YES ++#define SharedXieRev F ++ ++#define SharedLibICE YES ++#define SharedICERev F ++SharedLibReferences(ICE,ICE,$(ICESRC),SOICEREV,SharedICERev) ++ ++#define SharedLibSM YES ++#define SharedSMRev F ++SharedLibReferences(SM,SM,$(SMSRC),SOSMREV,SharedSMRev) ++ ++#define SharedFSRev F ++SharedLibReferences(FS,FS,$(FSLIBSRC),SOFSREV,SharedFSRev) ++ +diff -urNad cernlib-2005.05.09.dfsg~/src/config/site.def cernlib-2005.05.09.dfsg/src/config/site.def +--- cernlib-2005.05.09.dfsg~/src/config/site.def 2002-04-26 10:46:04.000000000 -0400 ++++ cernlib-2005.05.09.dfsg/src/config/site.def 2005-12-07 14:47:34.140148771 -0500 +@@ -99,9 +99,7 @@ + /* if it is already defined and false, undef it! */ + /* do not use shift by default + #if defined(CERNLIB_UNIX) && !defined(CERNLIB_WINNT) +-#if ! defined(CERNLIB_SHIFT) +-#define CERNLIB_SHIFT +-#elif ! CERNLIB_SHIFT ++#if defined(CERNLIB_SHIFT) && !CERNLIB_SHIFT + #undef CERNLIB_SHIFT + #endif + #endif +diff -urNad cernlib-2005.05.09.dfsg~/src/geant321/gxint/Imakefile cernlib-2005.05.09.dfsg/src/geant321/gxint/Imakefile +--- cernlib-2005.05.09.dfsg~/src/geant321/gxint/Imakefile 1997-01-29 11:37:40.000000000 -0500 ++++ cernlib-2005.05.09.dfsg/src/geant321/gxint/Imakefile 2005-12-07 14:47:34.140148771 -0500 +@@ -30,7 +30,7 @@ + + gxint321.f: gxint.F + RemoveFile($@) +- $(CPP) $(FORTRANALLDEFMDEPEND) < $^ | sed -e '/^$$/d' | CppSedMagic >$@ ++ FortranCmd -E $(FORTRANALLDEFMDEPEND) $^ | sed -e '/^$$/d' | CppSedMagic >$@ + + install.lib:: $(CERN_LIBDIR)/gxint.f + +diff -urNad cernlib-2005.05.09.dfsg~/src/mathlib/gen/tests/c327m.F cernlib-2005.05.09.dfsg/src/mathlib/gen/tests/c327m.F +--- cernlib-2005.05.09.dfsg~/src/mathlib/gen/tests/c327m.F 1996-04-01 10:01:17.000000000 -0500 ++++ cernlib-2005.05.09.dfsg/src/mathlib/gen/tests/c327m.F 2005-12-07 14:47:34.141148558 -0500 +@@ -92,7 +92,11 @@ + #endif + ENDIF + WRITE(Z,'(2D26.16)') H,T ++#if defined(CERNLIB_MACOSX) ++ READ(Z,'(2(4X,D22.16))') H1,T1 ++#else + READ(Z,'(2(D22.16,4X))') H1,T1 ++#endif + IF(IDS .EQ. 1) THEN + ERRMAX=MAX(ERRMAX,ABS(H1-T1)) + LTEST= LTEST .AND. ERRMAX .LE. TSTERR +diff -urNad cernlib-2005.05.09.dfsg~/src/mathlib/gen/tests/c342m.F cernlib-2005.05.09.dfsg/src/mathlib/gen/tests/c342m.F +--- cernlib-2005.05.09.dfsg~/src/mathlib/gen/tests/c342m.F 1996-04-01 10:01:19.000000000 -0500 ++++ cernlib-2005.05.09.dfsg/src/mathlib/gen/tests/c342m.F 2005-12-07 14:47:34.141148558 -0500 +@@ -70,7 +70,11 @@ + #endif + END IF + WRITE(Z,'(2D26.16)') R,T ++#if defined(CERNLIB_MACOSX) ++ READ(Z,'(2(4X,D22.16))') R1,T1 ++#else + READ(Z,'(2(D22.16,4X))') R1,T1 ++#endif + ERMAX= MAX(ERMAX,ABS(R1-T1)) + IF(IDS .EQ. 3 .OR. IDS .EQ. 4) THEN + WRITE(LOUT,'(1X,F10.3,2F25.16,1P,D10.1)') SX,R,T,ABS(R1-T1) +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) + +diff -urNad cernlib-2005.05.09.dfsg~/src/packlib/cspack/sysreq/log.c cernlib-2005.05.09.dfsg/src/packlib/cspack/sysreq/log.c +--- cernlib-2005.05.09.dfsg~/src/packlib/cspack/sysreq/log.c 2003-09-02 08:47:16.000000000 -0400 ++++ cernlib-2005.05.09.dfsg/src/packlib/cspack/sysreq/log.c 2005-12-07 14:47:34.142148345 -0500 +@@ -80,7 +80,7 @@ + static int pid; /* process identifier */ + static int logfd ; /* logging file descriptor */ + #if !defined(SOLARIS) && !defined(linux) && !defined(_AIX) \ +- && !defined(IRIX5) && !defined(apollo) ++ && !defined(IRIX5) && !defined(apollo) && !defined(__DARWIN__) + extern int syslog(); + #endif /* !SOLARIS && !IRIX5 && !apollo && !linux && !AIX */ + extern char *getenv(); +diff -urNad cernlib-2005.05.09.dfsg~/src/packlib/cspack/tcpaw/tcpaw.c cernlib-2005.05.09.dfsg/src/packlib/cspack/tcpaw/tcpaw.c +--- cernlib-2005.05.09.dfsg~/src/packlib/cspack/tcpaw/tcpaw.c 2005-12-07 14:47:25.920897902 -0500 ++++ cernlib-2005.05.09.dfsg/src/packlib/cspack/tcpaw/tcpaw.c 2005-12-07 14:47:34.146147494 -0500 +@@ -2569,7 +2569,7 @@ + #if !defined(IBM) && !defined(_WIN32) + /* I provide "getpass" myself as standard version truncates to 8 characters */ + #include +-#ifdef CBREAK ++#if defined(CBREAK) || defined(CERNLIB_MACOSX) + #define BSDTTY /* First find out if BSD or SYSV terminal handling.. */ + #endif + +@@ -2577,6 +2577,10 @@ + #include + #else + #include ++# if defined(CERNLIB_MACOSX) ++# define gtty(x,y) ioctl(x,TIOCGETP,y) ++# define stty(x,y) ioctl(x,TIOCSETP,y) ++# endif + #endif + + /* Fails with gcc 3.4.3 +@@ -3540,3 +3544,20 @@ + + } + #endif ++ ++#if defined(CERNLIB_MACOSX) ++ /* need to define cuserid() for OS X */ ++ ++char * getlogin(); ++ ++char * ++cuserid(char *string) ++{ ++ static char cuserid_str[L_cuserid]; ++ char *result = (string ? string : cuserid_str); ++ ++ strncpy(result, getlogin(), L_cuserid - 1); ++ result[L_cuserid - 1] = '\0'; ++ return result; ++} ++#endif /* CERNLIB_MACOSX */ +diff -urNad cernlib-2005.05.09.dfsg~/src/packlib/kernlib/kernbit/z268/systems.c cernlib-2005.05.09.dfsg/src/packlib/kernlib/kernbit/z268/systems.c +--- cernlib-2005.05.09.dfsg~/src/packlib/kernlib/kernbit/z268/systems.c 1998-08-25 08:45:56.000000000 -0400 ++++ cernlib-2005.05.09.dfsg/src/packlib/kernlib/kernbit/z268/systems.c 2005-12-07 14:47:34.146147494 -0500 +@@ -200,7 +200,7 @@ + || defined(_IBMR2) \ + || defined(__convexc__) \ + || defined(_OSK) \ +-|| defined(__linux) || defined(__FreeBSD__) ++|| defined(__linux) || defined(__FreeBSD__) || defined(__DARWIN__) + + void systems_( command, buf, buflen, l, chars, rc, ovflw ) + +diff -urNad cernlib-2005.05.09.dfsg~/src/packlib/kernlib/kernnum/d704fort/Imakefile cernlib-2005.05.09.dfsg/src/packlib/kernlib/kernnum/d704fort/Imakefile +--- cernlib-2005.05.09.dfsg~/src/packlib/kernlib/kernnum/d704fort/Imakefile 1996-06-12 06:03:53.000000000 -0400 ++++ cernlib-2005.05.09.dfsg/src/packlib/kernlib/kernnum/d704fort/Imakefile 2005-12-07 14:47:34.146147494 -0500 +@@ -4,6 +4,10 @@ + FDEBUGFLAGS=NoOpFortranDebugFlags + #endif + ++#if defined(CERNLIB_MACOSX) ++FDEBUGFLAGS=-O0 -fPIC ++#endif ++ + FORTRANSAVEOPTION=FortranSaveFlags + + SubdirLibraryTarget(NullParameter,NullParameter) +diff -urNad cernlib-2005.05.09.dfsg~/src/packlib/kernlib/kernnum/f002fort/Imakefile cernlib-2005.05.09.dfsg/src/packlib/kernlib/kernnum/f002fort/Imakefile +--- cernlib-2005.05.09.dfsg~/src/packlib/kernlib/kernnum/f002fort/Imakefile 1996-06-12 06:04:09.000000000 -0400 ++++ cernlib-2005.05.09.dfsg/src/packlib/kernlib/kernnum/f002fort/Imakefile 2005-12-07 14:47:34.146147494 -0500 +@@ -10,6 +10,10 @@ + FDEBUGFLAGS=NoOpFortranDebugFlags + #endif + ++#if defined(CERNLIB_MACOSX) ++FDEBUGFLAGS=-O0 -fPIC ++#endif ++ + FORTRANSAVEOPTION=FortranSaveFlags + + SubdirLibraryTarget(NullParameter,NullParameter) +diff -urNad cernlib-2005.05.09.dfsg~/src/packlib/kernlib/kernnum/f003fort/Imakefile cernlib-2005.05.09.dfsg/src/packlib/kernlib/kernnum/f003fort/Imakefile +--- cernlib-2005.05.09.dfsg~/src/packlib/kernlib/kernnum/f003fort/Imakefile 1996-06-12 06:04:12.000000000 -0400 ++++ cernlib-2005.05.09.dfsg/src/packlib/kernlib/kernnum/f003fort/Imakefile 2005-12-07 14:47:34.147147281 -0500 +@@ -11,6 +11,10 @@ + FDEBUGFLAGS=NoOpFortranDebugFlags + #endif + ++#if defined(CERNLIB_MACOSX) ++FDEBUGFLAGS=-O0 -fPIC ++#endif ++ + FORTRANSAVEOPTION=FortranSaveFlags + + SubdirLibraryTarget(NullParameter,NullParameter) +diff -urNad cernlib-2005.05.09.dfsg~/src/packlib/kernlib/kernnum/f004fort/Imakefile cernlib-2005.05.09.dfsg/src/packlib/kernlib/kernnum/f004fort/Imakefile +--- cernlib-2005.05.09.dfsg~/src/packlib/kernlib/kernnum/f004fort/Imakefile 1996-06-12 06:04:16.000000000 -0400 ++++ cernlib-2005.05.09.dfsg/src/packlib/kernlib/kernnum/f004fort/Imakefile 2005-12-07 14:47:34.147147281 -0500 +@@ -6,6 +6,10 @@ + FDEBUGFLAGS=NoOpFortranDebugFlags + #endif + ++#if defined(CERNLIB_MACOSX) ++FDEBUGFLAGS=-O0 -fPIC ++#endif ++ + FORTRANSAVEOPTION=FortranSaveFlags + + SubdirLibraryTarget(NullParameter,NullParameter) +diff -urNad cernlib-2005.05.09.dfsg~/src/packlib/kernlib/kernnum/f010fort/Imakefile cernlib-2005.05.09.dfsg/src/packlib/kernlib/kernnum/f010fort/Imakefile +--- cernlib-2005.05.09.dfsg~/src/packlib/kernlib/kernnum/f010fort/Imakefile 1996-06-12 06:04:19.000000000 -0400 ++++ cernlib-2005.05.09.dfsg/src/packlib/kernlib/kernnum/f010fort/Imakefile 2005-12-07 14:47:34.147147281 -0500 +@@ -7,6 +7,10 @@ + FDEBUGFLAGS=NoOpFortranDebugFlags + #endif + ++#if defined(CERNLIB_MACOSX) ++FDEBUGFLAGS=-O0 -fPIC ++#endif ++ + FORTRANSAVEOPTION=FortranSaveFlags + + +diff -urNad cernlib-2005.05.09.dfsg~/src/packlib/kernlib/kernnum/f011fort/Imakefile cernlib-2005.05.09.dfsg/src/packlib/kernlib/kernnum/f011fort/Imakefile +--- cernlib-2005.05.09.dfsg~/src/packlib/kernlib/kernnum/f011fort/Imakefile 1996-06-12 06:04:24.000000000 -0400 ++++ cernlib-2005.05.09.dfsg/src/packlib/kernlib/kernnum/f011fort/Imakefile 2005-12-07 14:47:34.147147281 -0500 +@@ -7,6 +7,10 @@ + FDEBUGFLAGS=NoOpFortranDebugFlags + #endif + ++#if defined(CERNLIB_MACOSX) ++FDEBUGFLAGS=-O0 -fPIC ++#endif ++ + FORTRANSAVEOPTION=FortranSaveFlags + + SubdirLibraryTarget(NullParameter,NullParameter) +diff -urNad cernlib-2005.05.09.dfsg~/src/packlib/kuip/kuip/ksys.h cernlib-2005.05.09.dfsg/src/packlib/kuip/kuip/ksys.h +--- cernlib-2005.05.09.dfsg~/src/packlib/kuip/kuip/ksys.h 1997-09-02 10:50:01.000000000 -0400 ++++ cernlib-2005.05.09.dfsg/src/packlib/kuip/kuip/ksys.h 2005-12-07 14:47:34.147147281 -0500 +@@ -188,6 +188,17 @@ + #endif + + ++#ifdef CERNLIB_MACOSX ++# define MACOSX ++# define MACHINE_NAME "MACOSX" ++# define UNIX ++# define HAVE_MEMMOVE ++# define HAVE_STRCASECMP ++# define HAVE_SELECT ++# define MATCH_REGCOMP /* use regcomp/regexec */ ++#endif ++ ++ + #ifdef MSDOS + # define MACHINE_NAME "IBMPC" + # define OS_NAME "MSDOS" +diff -urNad cernlib-2005.05.09.dfsg~/src/pawlib/comis/code/csaddr.F cernlib-2005.05.09.dfsg/src/pawlib/comis/code/csaddr.F +--- cernlib-2005.05.09.dfsg~/src/pawlib/comis/code/csaddr.F 2005-12-07 14:47:25.807921944 -0500 ++++ cernlib-2005.05.09.dfsg/src/pawlib/comis/code/csaddr.F 2005-12-07 14:55:23.810167859 -0500 +@@ -38,7 +38,12 @@ + IFCS=-2 + CALL CSRTGPL(I) + #else ++c thanks to Keisuke Fujii for this patch for OS X ++#if defined (CERNLIB_MACOSX) ++ IADGP=CS_GET_FUNC('_'//NAME(1:NC)//'_') ++#else + IADGP=CS_GET_FUNC(NAME(1:NC)//'_') ++#endif + IF(IADGP.NE.0)THEN + IFCS=-2 + CALL CSRTGP(I) +@@ -58,7 +63,11 @@ + I=CSITGPL(IPVS) + ENDIF + #else ++#if defined (CERNLIB_MACOSX) ++ IADGP=CS_GET_FUNC('_'//NAME(1:NC)//'_') ++#else + IADGP=CS_GET_FUNC(NAME(1:NC)//'_') ++#endif + IF(IADGP.NE.0)THEN + IFCS=-2 + ITYPGP=-2 +diff -urNad cernlib-2005.05.09.dfsg~/src/pawlib/comis/code/cscrexec.F cernlib-2005.05.09.dfsg/src/pawlib/comis/code/cscrexec.F +--- cernlib-2005.05.09.dfsg~/src/pawlib/comis/code/cscrexec.F 2005-12-07 14:47:25.687947476 -0500 ++++ cernlib-2005.05.09.dfsg/src/pawlib/comis/code/cscrexec.F 2005-12-07 14:47:34.148147068 -0500 +@@ -82,11 +82,19 @@ + IF(FEXT.EQ.'.c')THEN + L=LENOCC(CHCC) + * 'cc -c .... -fPIC name.c' ++#if defined(CERNLIB_MACOSX) ++ CHLINE=CHCC(:L)//' -fPIC -fno-common '//NAME(:LN)// '.c' ++#else + CHLINE=CHCC(:L)//' -fPIC '//NAME(:LN)// '.c' ++#endif + ELSE + L=LENOCC(CHF77) + * 'f77 -c .... -fPIC name.f' ++#if defined(CERNLIB_MACOSX) ++ CHLINE=CHF77(:L)//' -fPIC -fno-common '//NAME(:LN)// '.f' ++#else + CHLINE=CHF77(:L)//' -fPIC '//NAME(:LN)// '.f' ++#endif + ENDIF + L=LENOCC(CHLINE) + WRITE(LUNOUT,'(A)')CHLINE(:L) +@@ -176,8 +184,15 @@ + ENDIF + #endif + #if defined(CERNLIB_LINUX) ++# if defined(CERNLIB_MACOSX) ++ CHLINE= 'g77 -bundle -bind_at_load -bundle_loader ' ++ + '`/usr/bin/which pawX11` -o ' ++ + // NAME(:LN) //'.sl '// NAME(:LN) //'.o' ++C thanks to Keisuke Fujii for the above compiler command ++# else + CHLINE= 'g77 -shared -o ' + + // NAME(:LN) //'.sl '// NAME(:LN) //'.o' ++# endif + #endif + #if defined(CERNLIB_ALPHA_OSF) + CHLINE= 'ld -shared -o ' +diff -urNad cernlib-2005.05.09.dfsg~/src/pawlib/paw/programs/Imakefile cernlib-2005.05.09.dfsg/src/pawlib/paw/programs/Imakefile +--- cernlib-2005.05.09.dfsg~/src/pawlib/paw/programs/Imakefile 2002-04-25 06:20:11.000000000 -0400 ++++ cernlib-2005.05.09.dfsg/src/pawlib/paw/programs/Imakefile 2005-12-07 14:47:34.148147068 -0500 +@@ -9,7 +9,7 @@ + EXTRA_LDOPTIONS=-Wl,-E + #endif + +-#if defined(CERNLIB_LINUX) ++#if defined(CERNLIB_LINUX) && !defined(CERNLIB_MACOSX) + EXTRA_LDOPTIONS=-Wl,-E + #endif + --- cernlib-2005.05.09.dfsg.orig/debian/patches/116-fix-fconc64-spaghetti-code.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/116-fix-fconc64-spaghetti-code.dpatch @@ -0,0 +1,334 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 116-fix-fconc64-spaghetti-code.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Work around FTBFS on ia64 with recent binutils, apparently caused +## DP: by assignment of goto labels in this file. + +@DPATCH@ +diff -urNad cernlib-2005.05.09.dfsg~/src/mathlib/gen/c/fconc64.F cernlib-2005.05.09.dfsg/src/mathlib/gen/c/fconc64.F +--- cernlib-2005.05.09.dfsg~/src/mathlib/gen/c/fconc64.F 1996-04-01 10:02:04.000000000 -0500 ++++ cernlib-2005.05.09.dfsg/src/mathlib/gen/c/fconc64.F 2005-12-12 12:58:23.885981128 -0500 +@@ -190,15 +190,167 @@ + A=HF*((HF-FM)-TI) + B=HF*((HF-FM)+TI) + C=HF +- ASSIGN 1 TO JP +- GO TO 20 ++ 20 IF(LTA) THEN ++ Y=-X1 ++ Y2=Y**2 ++ Y3=Y*Y2 ++ W(1)=A+1 ++ W(2)=A+2 ++ W(3)=B+1 ++ W(4)=B+2 ++ W(5)=C+1 ++ W(6)=C*W(5) ++ W(7)=A+B ++ W(8)=A*B ++ W(9)=(W(8)/C)*Y ++ W(10)=W(1)*W(3) ++ W(11)=W(2)*W(4) ++ W(12)=1+(W(11)/(W(5)+W(5)))*Y ++ W(13)=W(7)-6 ++ W(14)=W(7)+6 ++ W(15)=2-W(8) ++ W(16)=W(15)-W(7)-W(7) ++ ++ V(0)=1 ++ V(1)=1+(W(10)/(C+C))*Y ++ V(2)=W(12)+(W(10)*W(11)/(12*W(6)))*Y2 ++ U(0)=1 ++ U(1)=V(1)-W(9) ++ U(2)=V(2)-W(9)*W(12)+(W(8)*W(10)/(W(6)+W(6)))*Y2 ++ ++ R=1 ++ DO 21 N = 3,NMAX ++ FN=N ++ RR=R ++ H(1)=FN-1 ++ H(2)=FN-2 ++ H(3)=FN-3 ++ H(4)=FN+FN ++ H(5)=H(4)-3 ++ H(6)=H(5)+H(5) ++ H(7)=4*(H(4)-1)*H(5) ++ H(8)=8*H(5)**2*(H(4)-5) ++ H(9)=3*FN**2 ++ W(1)=A+H(1) ++ W(2)=A+H(2) ++ W(3)=B+H(1) ++ W(4)=B+H(2) ++ W(5)=C+H(1) ++ W(6)=C+H(2) ++ W(7)=C+H(3) ++ W(8)=H(2)-A ++ W(9)=H(2)-B ++ W(10)=H(1)-C ++ W(11)=W(1)*W(3) ++ W(12)=W(5)*W(6) ++ ++ W(17)=1+((H(9)+W(13)*FN+W(16))/(H(6)*W(5)))*Y ++ W(18)=-((W(11)*W(10)/H(6)+(H(9)-W(14)*FN+W(15))*W(11)*Y/H(7))/ ++ 1 W(12))*Y ++ W(19)=(W(2)*W(11)*W(4)*W(8)*W(9)/(H(8)*W(7)*W(12)))*Y3 ++ V(3)=W(17)*V(2)+W(18)*V(1)+W(19)*V(0) ++ U(3)=W(17)*U(2)+W(18)*U(1)+W(19)*U(0) ++ R=U(3)/V(3) ++ IF(ABS(R-RR) .LT. EPS) GO TO 1 ++ DO 22 J = 1,3 ++ V(J-1)=V(J) ++ 22 U(J-1)=U(J) ++ 21 CONTINUE ++ ELSE ++ W(1)=X1*A*B/C ++ R=1+W(1) ++ DO 23 N = 1,NMAX ++ FN=N ++ RR=R ++ W(1)=W(1)*X1*(A+FN)*(B+FN)/((C+FN)*(FN+1)) ++ R=R+W(1) ++ IF(ABS(R-RR) .LT. EPS) GO TO 1 ++ 23 CONTINUE ++ END IF ++ GO TO 24 + 1 R1=R + R1=R1/ABS(CGM(A+HF))**2 + A=HF*((TH-FM)-TI) + B=HF*((TH-FM)+TI) + C=TH +- ASSIGN 2 TO JP +- GO TO 20 ++ 120 IF(LTA) THEN ++ Y=-X1 ++ Y2=Y**2 ++ Y3=Y*Y2 ++ W(1)=A+1 ++ W(2)=A+2 ++ W(3)=B+1 ++ W(4)=B+2 ++ W(5)=C+1 ++ W(6)=C*W(5) ++ W(7)=A+B ++ W(8)=A*B ++ W(9)=(W(8)/C)*Y ++ W(10)=W(1)*W(3) ++ W(11)=W(2)*W(4) ++ W(12)=1+(W(11)/(W(5)+W(5)))*Y ++ W(13)=W(7)-6 ++ W(14)=W(7)+6 ++ W(15)=2-W(8) ++ W(16)=W(15)-W(7)-W(7) ++ ++ V(0)=1 ++ V(1)=1+(W(10)/(C+C))*Y ++ V(2)=W(12)+(W(10)*W(11)/(12*W(6)))*Y2 ++ U(0)=1 ++ U(1)=V(1)-W(9) ++ U(2)=V(2)-W(9)*W(12)+(W(8)*W(10)/(W(6)+W(6)))*Y2 ++ ++ R=1 ++ DO 121 N = 3,NMAX ++ FN=N ++ RR=R ++ H(1)=FN-1 ++ H(2)=FN-2 ++ H(3)=FN-3 ++ H(4)=FN+FN ++ H(5)=H(4)-3 ++ H(6)=H(5)+H(5) ++ H(7)=4*(H(4)-1)*H(5) ++ H(8)=8*H(5)**2*(H(4)-5) ++ H(9)=3*FN**2 ++ W(1)=A+H(1) ++ W(2)=A+H(2) ++ W(3)=B+H(1) ++ W(4)=B+H(2) ++ W(5)=C+H(1) ++ W(6)=C+H(2) ++ W(7)=C+H(3) ++ W(8)=H(2)-A ++ W(9)=H(2)-B ++ W(10)=H(1)-C ++ W(11)=W(1)*W(3) ++ W(12)=W(5)*W(6) ++ ++ W(17)=1+((H(9)+W(13)*FN+W(16))/(H(6)*W(5)))*Y ++ W(18)=-((W(11)*W(10)/H(6)+(H(9)-W(14)*FN+W(15))*W(11)*Y/H(7))/ ++ 1 W(12))*Y ++ W(19)=(W(2)*W(11)*W(4)*W(8)*W(9)/(H(8)*W(7)*W(12)))*Y3 ++ V(3)=W(17)*V(2)+W(18)*V(1)+W(19)*V(0) ++ U(3)=W(17)*U(2)+W(18)*U(1)+W(19)*U(0) ++ R=U(3)/V(3) ++ IF(ABS(R-RR) .LT. EPS) GO TO 2 ++ DO 122 J = 1,3 ++ V(J-1)=V(J) ++ 122 U(J-1)=U(J) ++ 121 CONTINUE ++ ELSE ++ W(1)=X1*A*B/C ++ R=1+W(1) ++ DO 123 N = 1,NMAX ++ FN=N ++ RR=R ++ W(1)=W(1)*X1*(A+FN)*(B+FN)/((C+FN)*(FN+1)) ++ R=R+W(1) ++ IF(ABS(R-RR) .LT. EPS) GO TO 2 ++ 123 CONTINUE ++ END IF ++ GO TO 24 + 2 R2=R + FC=RPI*(R1-2*X*R2/ABS(CGM(A-HF))**2) + IF(LM1) FC=2*FC/SQRT(1-X1) +@@ -209,8 +361,84 @@ + A=(HF+FM)-TI + B=(HF+FM)+TI + C=FM+1 +- ASSIGN 3 TO JP +- GO TO 20 ++ 220 IF(LTA) THEN ++ Y=-X1 ++ Y2=Y**2 ++ Y3=Y*Y2 ++ W(1)=A+1 ++ W(2)=A+2 ++ W(3)=B+1 ++ W(4)=B+2 ++ W(5)=C+1 ++ W(6)=C*W(5) ++ W(7)=A+B ++ W(8)=A*B ++ W(9)=(W(8)/C)*Y ++ W(10)=W(1)*W(3) ++ W(11)=W(2)*W(4) ++ W(12)=1+(W(11)/(W(5)+W(5)))*Y ++ W(13)=W(7)-6 ++ W(14)=W(7)+6 ++ W(15)=2-W(8) ++ W(16)=W(15)-W(7)-W(7) ++ ++ V(0)=1 ++ V(1)=1+(W(10)/(C+C))*Y ++ V(2)=W(12)+(W(10)*W(11)/(12*W(6)))*Y2 ++ U(0)=1 ++ U(1)=V(1)-W(9) ++ U(2)=V(2)-W(9)*W(12)+(W(8)*W(10)/(W(6)+W(6)))*Y2 ++ ++ R=1 ++ DO 221 N = 3,NMAX ++ FN=N ++ RR=R ++ H(1)=FN-1 ++ H(2)=FN-2 ++ H(3)=FN-3 ++ H(4)=FN+FN ++ H(5)=H(4)-3 ++ H(6)=H(5)+H(5) ++ H(7)=4*(H(4)-1)*H(5) ++ H(8)=8*H(5)**2*(H(4)-5) ++ H(9)=3*FN**2 ++ W(1)=A+H(1) ++ W(2)=A+H(2) ++ W(3)=B+H(1) ++ W(4)=B+H(2) ++ W(5)=C+H(1) ++ W(6)=C+H(2) ++ W(7)=C+H(3) ++ W(8)=H(2)-A ++ W(9)=H(2)-B ++ W(10)=H(1)-C ++ W(11)=W(1)*W(3) ++ W(12)=W(5)*W(6) ++ ++ W(17)=1+((H(9)+W(13)*FN+W(16))/(H(6)*W(5)))*Y ++ W(18)=-((W(11)*W(10)/H(6)+(H(9)-W(14)*FN+W(15))*W(11)*Y/H(7))/ ++ 1 W(12))*Y ++ W(19)=(W(2)*W(11)*W(4)*W(8)*W(9)/(H(8)*W(7)*W(12)))*Y3 ++ V(3)=W(17)*V(2)+W(18)*V(1)+W(19)*V(0) ++ U(3)=W(17)*U(2)+W(18)*U(1)+W(19)*U(0) ++ R=U(3)/V(3) ++ IF(ABS(R-RR) .LT. EPS) GO TO 3 ++ DO 222 J = 1,3 ++ V(J-1)=V(J) ++ 222 U(J-1)=U(J) ++ 221 CONTINUE ++ ELSE ++ W(1)=X1*A*B/C ++ R=1+W(1) ++ DO 223 N = 1,NMAX ++ FN=N ++ RR=R ++ W(1)=W(1)*X1*(A+FN)*(B+FN)/((C+FN)*(FN+1)) ++ R=R+W(1) ++ IF(ABS(R-RR) .LT. EPS) GO TO 3 ++ 223 CONTINUE ++ END IF ++ GO TO 24 + 3 FC=R + IF(LM1) FC=SIGN(HF,1-X)*(TAU**2+HF**2)*SQRT(ABS(X**2-1))*FC + GO TO 99 +@@ -220,15 +448,7 @@ + A=HF*((HF-FM)-TI) + B=HF*((TH-FM)-TI) + C=1-TI +- ASSIGN 4 TO JP +- GO TO 20 +- 4 R1=EXP((TI-HF)*LOG(X+X)+CLG(1+TI)-CLG((TH-FM)+TI))* +- 1 R*((HF-FM)+TI)/TI +- FC=RPW*R1 +- IF(LM1) FC=FC/SQRT(1-X1) +- GO TO 99 +- +- 20 IF(LTA) THEN ++ 320 IF(LTA) THEN + Y=-X1 + Y2=Y**2 + Y3=Y*Y2 +@@ -257,7 +477,7 @@ + U(2)=V(2)-W(9)*W(12)+(W(8)*W(10)/(W(6)+W(6)))*Y2 + + R=1 +- DO 21 N = 3,NMAX ++ DO 321 N = 3,NMAX + FN=N + RR=R + H(1)=FN-1 +@@ -289,23 +509,29 @@ + V(3)=W(17)*V(2)+W(18)*V(1)+W(19)*V(0) + U(3)=W(17)*U(2)+W(18)*U(1)+W(19)*U(0) + R=U(3)/V(3) +- IF(ABS(R-RR) .LT. EPS) GO TO JP, (1,2,3,4) +- DO 22 J = 1,3 ++ IF(ABS(R-RR) .LT. EPS) GO TO 4 ++ DO 322 J = 1,3 + V(J-1)=V(J) +- 22 U(J-1)=U(J) +- 21 CONTINUE ++ 322 U(J-1)=U(J) ++ 321 CONTINUE + ELSE + W(1)=X1*A*B/C + R=1+W(1) +- DO 23 N = 1,NMAX ++ DO 323 N = 1,NMAX + FN=N + RR=R + W(1)=W(1)*X1*(A+FN)*(B+FN)/((C+FN)*(FN+1)) + R=R+W(1) +- IF(ABS(R-RR) .LT. EPS) GO TO JP, (1,2,3,4) +- 23 CONTINUE ++ IF(ABS(R-RR) .LT. EPS) GO TO 4 ++ 323 CONTINUE + END IF +- FC=0 ++ GO TO 24 ++ 4 R1=EXP((TI-HF)*LOG(X+X)+CLG(1+TI)-CLG((TH-FM)+TI))* ++ 1 R*((HF-FM)+TI)/TI ++ FC=RPW*R1 ++ IF(LM1) FC=FC/SQRT(1-X1) ++ GO TO 99 ++ 24 FC=0 + WRITE(ERRTXT,102) X + CALL MTLPRT(NAME,'C331.2',ERRTXT) + #if defined(CERNLIB_DOUBLE) --- cernlib-2005.05.09.dfsg.orig/debian/patches/302-scripts-comply-with-FHS.dpatch.in +++ cernlib-2005.05.09.dfsg/debian/patches/302-scripts-comply-with-FHS.dpatch.in @@ -0,0 +1,229 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 302-scripts-comply-with-FHS.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Put data files under @DATADIR@ and assume $CERN is @PREFIX@ by default +## DP: in scripts. (These values are filled in from add-ons/Makefile.) +## DP: Also some other improvements. + +@DPATCH@ +diff -urNad cernlib-2005.05.09.dfsg~/src/graflib/dzdoc/dzedit/dzedit.script cernlib-2005.05.09.dfsg/src/graflib/dzdoc/dzedit/dzedit.script +--- cernlib-2005.05.09.dfsg~/src/graflib/dzdoc/dzedit/dzedit.script 1996-05-05 11:16:16.000000000 -0400 ++++ cernlib-2005.05.09.dfsg/src/graflib/dzdoc/dzedit/dzedit.script 2005-12-13 10:07:57.712733227 -0500 +@@ -13,9 +13,9 @@ + + SHOPT="d:h:v:" + #SEQ,GETOPTD. +- drv="X11" ; hst="0" +- [ -z "$CERN" ] && CERN="/cern" +- [ -z "$CERN_LEVEL" ] && ver="pro" || ver="$CERN_LEVEL" ++ drv="X11" ; hst="" ++ [ -z "$CERN" ] && CERN="@PREFIX@" ++ [ -z "$CERN_LEVEL" ] && ver="." || ver="$CERN_LEVEL" + + while [ $# -gt 0 ] + do case $1 in +@@ -35,12 +35,12 @@ + # inlib $GKS_INLIB + GDIR=$CERN/gks/$ver/bin + fi +- if [ "$drv" = "X11" ] ; then +- DISPLAY="$hst:0" ; export DISPLAY ++ if [ "$drv" = "X11" -a -n "$hst" ] ; then ++ DISPLAY="$hst:0.0" ; export DISPLAY + fi +- if [ "$ver" != "pro" ] ; then ++ if [ "$ver" != "." ] ; then + echo + echo " Calling $ver version of dzedit-$drv..." + echo + fi +- $GDIR/dze$drv $* ++exec $GDIR/dze$drv "$@" +diff -urNad cernlib-2005.05.09.dfsg~/src/scripts/gxint cernlib-2005.05.09.dfsg/src/scripts/gxint +--- cernlib-2005.05.09.dfsg~/src/scripts/gxint 2005-04-18 11:41:16.000000000 -0400 ++++ cernlib-2005.05.09.dfsg/src/scripts/gxint 2005-12-13 10:07:57.789716862 -0500 +@@ -1,4 +1,4 @@ +-#!/bin/sh ++#!/bin/bash + # + #******************************************* + # +@@ -17,8 +17,7 @@ + #******************************************* + line="******************************************************" + +- +-if [ $# -eq 0 ] ; then ++print_help() { + cat << EoD + + GXINT [options] file(s) +@@ -32,9 +31,13 @@ + on all systems. X11 is the default. + -v version + version of the program library to use. Possible values +- include pro ( default ), new and old. ++ include pro, new and old. This option only makes sense if you ++ have installed a non-Debian version of Cernlib. In that case ++ you must have defined the environment variable \$CERN. + -g geant_version +- which version of geant to use. Current default is 315. ++ which version of geant to use. Current default is 321. This ++ also makes sense only if you have installed a non-Debian version ++ of Cernlib. + -h host + useful with the -d X11 option only. Specify the hostname + used for the display. Syntax identical to that of DISPLAY. +@@ -43,16 +46,20 @@ + Do not immediately run GEANT, but produce an executable + file named outputfile. + -L path +- additional loader search path. Usefull if additional libraries +- are specified with -l option. This option may be repeated to ++ additional loader search path. Useful if additional libraries ++ are specified with -l option. This option may be repeated to + more than one pathname. +- -l libary ++ -l library + specify additional libraries. This option may be repeated to + add several libs. + -m do NOT use main program from cernlib area. + + EoD +-exit ++} ++ ++ ++if [ $# -eq 0 ] ; then ++ print_help + fi + + if [ -f /usr/bin/uname ] ; then +@@ -66,52 +73,47 @@ + fi + + SHOPT="d:v:g:h:o:L:l:m" +- cmd=$0 + # Check option set and give default values + if [ -f /bin/getopt -o -f /usr/bin/getopt ] ; then + set -- `getopt $SHOPT $*` ; cc=$? + if [ $cc -ne 0 ] ; then + echo "" + echo "Usage:" +- exec $cmd +- exit ++ print_help ; exit 0 + fi + fi +- +-drv="/X11" ; ver="pro" ; OUT="${HOME}/GEANT$$" ++ ++if [ -z "$TMPDIR" ] || [ "$TMPDIR" = "/tmp" ] ; then ++ TMPDIR="$HOME" ++fi ++drv="/X11" ; ver="" ; OUT="$TMPDIR/GEANT$$" + gxint="" + + while [ $# -gt 0 ] + do case $1 in +- -d) drv="/$2"; shift ;; ++ -d) drv="/$2"; shift ;; + -v) ver=$2; shift ;; + -g) gvs=$2; shift ;; + -h) DISPLAY=$2;export DISPLAY; shift ;; + -o) OUT=$2; norun="1"; shift ;; +- -L) userpath="$userpath -L$2"; shift ;; +- -l) userlibs="$userlibs -l$2"; shift ;; ++ -L) userpath="$userpath -L$2"; shift ;; ++ -l) userlibs="$userlibs -l$2"; shift ;; + -m) _m="1" ;; + --) shift ; break ;; ++ --help|-\?) print_help ; exit 0 ;; + *) break ;; + esac + shift + done + + if [ $# -gt 0 ] ; then +- pgm="$*" ++ pgm="$@" + else + echo "gxint_Warning: no user program specified" + fi + + +- +-if [ -z "$CERN" ] ; then +- if [ ! -d /cern ]; then +- echo "gxint_Error: shell variable CERN must be set or /cern must exist" +- exit 1 +- fi +- CERN="/cern" ; export CERN +-fi ++[ -z "$CERN" ] && export CERN="@PREFIX@" + + if [ "$drv" = "/GKS" ] ; then + if [ -z "$GKSR" ] ; then +@@ -143,6 +145,7 @@ + CLIB="geant${gvs} pawlib graflib$drv packlib mathlib" + + [ -z "$_m" ] && gxint="${CERN}/${ver}/lib/gxint${gvs}.$_o" ++[ "$CERN" = "@PREFIX@" -a -z "$ver" ] && gxint=@DATADIR@/geant321/gxint.f + + cat << EoD + $line +@@ -155,8 +158,10 @@ + * gxint used : ${gxint:-user supplied} + $line + EoD +- +-$LDN -o $OUT $gxint $pgm $userpath $userlibs `cernlib -v $ver $CLIB`; cc=$? ++ ++[ -z "$ver" ] && verflag="" || verflag="-v" ++$LDN -o $OUT $gxint $pgm $userpath $userlibs `cernlib $verflag $ver $CLIB` ; \ ++cc=$? + + [ $cc -ne 0 ] && exit $cc + +diff -urNad cernlib-2005.05.09.dfsg~/src/scripts/paw cernlib-2005.05.09.dfsg/src/scripts/paw +--- cernlib-2005.05.09.dfsg~/src/scripts/paw 1995-02-07 04:54:06.000000000 -0500 ++++ cernlib-2005.05.09.dfsg/src/scripts/paw 2005-12-13 10:10:17.850939931 -0500 +@@ -21,9 +21,9 @@ + SHOPT="d:h:v:" + #SEQ,GETOPTD. + [ "`uname -s`" = "DomainOS" ] && drv="GKS" || drv="X11" +- [ -z "$CERN" ] && CERN="/cern" +- [ -z "$CERN_LEVEL" ] && ver="pro" || ver="$CERN_LEVEL" +- ++ [ -z "$CERN" ] && CERN="@PREFIX@" ++ [ -z "$CERN_LEVEL" ] && ver="" || ver="$CERN_LEVEL" ++ [ -e "$CERN/$CERN_LEVEL/bin/pawX11" ] || drv="++" # use paw++ if no pawX11 + while [ $# -gt 0 ] + do case $1 in + -d) drv=$2 ; shift ;; +@@ -43,15 +43,20 @@ + # inlib $GKS_INLIB + GDIR=$CERN/$ver/gksbin + fi +- if [ "$drv" = "X11" -a -n "$hst" ] ; then ++ if [ \( "$drv" = "X11" -o "$drv" = "++" \) -a -n "$hst" ] ; then + nw=`echo $hst | awk -F: '{ print NF }'` + [ $nw -eq 1 ] && hst="$hst:0" + DISPLAY="$hst" ; export DISPLAY + fi +- if [ "$ver" != "pro" ] ; then ++ if [ -n "$ver" ] ; then + echo + echo " Calling $ver version of paw-$drv" + echo + fi +- $GDIR/paw$drv $* +- [ ! -s paw.metafile ] && rm paw.metafile ++ if [ ! -x "$GDIR/paw$drv" ] ; then ++ echo " Error: PAW executable $GDIR/paw${drv} does not exist!" ++ exit 1 ++ fi ++ "$GDIR/paw$drv" "$@" ++ [ ! -s paw.metafile ] && rm -f paw.metafile ++ [ ! -s PAW.METAFILE ] && rm -f PAW.METAFILE --- cernlib-2005.05.09.dfsg.orig/debian/patches/115-rsrtnt64-goto-outer-block.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/115-rsrtnt64-goto-outer-block.dpatch @@ -0,0 +1,179 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 115-rsrtnt64-goto-outer-block.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Patch from Patrice Dumas to fix spaghetti code in +## DP: rsrtnt64.F that breaks linking step on Itanium. + +@DPATCH@ +diff -urNad cernlib-2005.05.09.dfsg~/src/mathlib/gen/b/rsrtnt64.F cernlib-2005.05.09.dfsg/src/mathlib/gen/b/rsrtnt64.F +--- cernlib-2005.05.09.dfsg~/src/mathlib/gen/b/rsrtnt64.F 1996-04-01 10:01:51.000000000 -0500 ++++ cernlib-2005.05.09.dfsg/src/mathlib/gen/b/rsrtnt64.F 2005-12-06 11:22:08.500724891 -0500 +@@ -117,8 +117,15 @@ + ENDIF + ELSE + IF(N .EQ. 1) THEN +- ASSIGN 11 TO JMP1 +- GO TO 10 ++ C2=2*C ++ IF(DELTA .GT. 0 .OR. DELTA .LT. 0 .AND. C .GT. 0) THEN ++ H=LOG(ABS((2*SQRT(C*P(V))+C2*V+B)/ ++ 1 (2*SQRT(C*P(U))+C2*U+B)))/SQRT(C) ++ ELSEIF(DELTA .EQ. 0) THEN ++ H=ABS(LOG(ABS((C2*V+B)/(C2*U+B))))/SQRT(C) ++ ELSE ++ H=(ASIN((C2*U+B)/RTD)-ASIN((C2*V+B)/RTD))/SQRT(-C) ++ ENDIF + 11 IF(K .EQ. 0) THEN + H=H + ELSEIF(K .EQ. 1) THEN +@@ -174,14 +181,28 @@ + H=2*((H1+B*U)/RT(U)-(H1+B*V)/RT(V))/DELTA + LB1=11 + ELSEIF(K .EQ. 2) THEN +- ASSIGN 12 TO JMP1 +- GO TO 10 ++ C2=2*C ++ IF(DELTA .GT. 0 .OR. DELTA .LT. 0 .AND. C .GT. 0) THEN ++ H=LOG(ABS((2*SQRT(C*P(V))+C2*V+B)/ ++ 1 (2*SQRT(C*P(U))+C2*U+B)))/SQRT(C) ++ ELSEIF(DELTA .EQ. 0) THEN ++ H=ABS(LOG(ABS((C2*V+B)/(C2*U+B))))/SQRT(C) ++ ELSE ++ H=(ASIN((C2*U+B)/RTD)-ASIN((C2*V+B)/RTD))/SQRT(-C) ++ ENDIF + 12 H1=DELTA-B**2 + H2=2*A*B + H=(((H1*U-H2)/RT(U)-(H1*V-H2)/RT(V))/DELTA+H)/C + ELSEIF(K .EQ. 3) THEN +- ASSIGN 13 TO JMP1 +- GO TO 10 ++ C2=2*C ++ IF(DELTA .GT. 0 .OR. DELTA .LT. 0 .AND. C .GT. 0) THEN ++ H=LOG(ABS((2*SQRT(C*P(V))+C2*V+B)/ ++ 1 (2*SQRT(C*P(U))+C2*U+B)))/SQRT(C) ++ ELSEIF(DELTA .EQ. 0) THEN ++ H=ABS(LOG(ABS((C2*V+B)/(C2*U+B))))/SQRT(C) ++ ELSE ++ H=(ASIN((C2*U+B)/RTD)-ASIN((C2*V+B)/RTD))/SQRT(-C) ++ ENDIF + 13 H1=C*DELTA + G1=A*C + G2=3*B**2 +@@ -217,8 +238,32 @@ + ENDIF + ELSE + IF(N .EQ. 1) THEN +- ASSIGN 21 TO JMP2 +- GO TO 20 ++ IF(C .EQ. 0) THEN ++ IF(B .EQ. 0) THEN ++ H=LOG(ABS(V/U))/SQRT(A) ++ ELSE ++ IF(A .LT. 0) THEN ++ H=2*(ATAN(SQRT(-(A+B*V)/A))-ATAN(SQRT(-(A+B*U)/A)))/SQRT(-A) ++ ELSE ++ WA=SQRT(A) ++ WU=SQRT(A+B*U) ++ WV=SQRT(A+B*V) ++ H=LOG(ABS((WV-WA)*(WU+WA)/((WV+WA)*(WU-WA))))/WA ++ ENDIF ++ ENDIF ++ ELSE ++ A2=2*A ++ IF(DELTA .GT. 0 .OR. DELTA .LT. 0 .AND. A .GT. 0) THEN ++ H=LOG(ABS((-2*SQRT(A*P(V))+B*V+A2)*U/ ++ 1 ((-2*SQRT(A*P(U))+B*U+A2)*V)))/SQRT(A) ++ ELSEIF(DELTA .EQ. 0) THEN ++ H=LOG(ABS((B*U+A2)*V/((B*V+A2)*U)))/SQRT(A) ++ IF(U*V .GT. 0) H=SIGN(H,U) ++ ELSE ++ H=(ASIN((B*V+A2)/(V*RTD))-ASIN((B*U+A2)/(U*RTD)))/SQRT(-A) ++ IF(U .LT. 0 .AND. V .LT. 0) H=-H ++ ENDIF ++ ENDIF + 21 IF(K .EQ. -1) THEN + H=H + ELSEIF(K .EQ. -2) THEN +@@ -257,8 +302,32 @@ + IF(U. LT. -X0) H=-H + ENDIF + ELSE +- ASSIGN 22 TO JMP2 +- GO TO 20 ++ IF(C .EQ. 0) THEN ++ IF(B .EQ. 0) THEN ++ H=LOG(ABS(V/U))/SQRT(A) ++ ELSE ++ IF(A .LT. 0) THEN ++ H=2*(ATAN(SQRT(-(A+B*V)/A))-ATAN(SQRT(-(A+B*U)/A)))/SQRT(-A) ++ ELSE ++ WA=SQRT(A) ++ WU=SQRT(A+B*U) ++ WV=SQRT(A+B*V) ++ H=LOG(ABS((WV-WA)*(WU+WA)/((WV+WA)*(WU-WA))))/WA ++ ENDIF ++ ENDIF ++ ELSE ++ A2=2*A ++ IF(DELTA .GT. 0 .OR. DELTA .LT. 0 .AND. A .GT. 0) THEN ++ H=LOG(ABS((-2*SQRT(A*P(V))+B*V+A2)*U/ ++ 1 ((-2*SQRT(A*P(U))+B*U+A2)*V)))/SQRT(A) ++ ELSEIF(DELTA .EQ. 0) THEN ++ H=LOG(ABS((B*U+A2)*V/((B*V+A2)*U)))/SQRT(A) ++ IF(U*V .GT. 0) H=SIGN(H,U) ++ ELSE ++ H=(ASIN((B*V+A2)/(V*RTD))-ASIN((B*U+A2)/(U*RTD)))/SQRT(-A) ++ IF(U .LT. 0 .AND. V .LT. 0) H=-H ++ ENDIF ++ ENDIF + 22 IF(K .EQ. -1) THEN + H1=B*C + H2=B**2-2*A*C +@@ -287,46 +356,7 @@ + ENDIF + ENDIF + ENDIF +- GO TO 9 +- +- 10 C2=2*C +- IF(DELTA .GT. 0 .OR. DELTA .LT. 0 .AND. C .GT. 0) THEN +- H=LOG(ABS((2*SQRT(C*P(V))+C2*V+B)/ +- 1 (2*SQRT(C*P(U))+C2*U+B)))/SQRT(C) +- ELSEIF(DELTA .EQ. 0) THEN +- H=ABS(LOG(ABS((C2*V+B)/(C2*U+B))))/SQRT(C) +- ELSE +- H=(ASIN((C2*U+B)/RTD)-ASIN((C2*V+B)/RTD))/SQRT(-C) +- ENDIF +- GO TO JMP1, (11,12,13) + +- 20 IF(C .EQ. 0) THEN +- IF(B .EQ. 0) THEN +- H=LOG(ABS(V/U))/SQRT(A) +- ELSE +- IF(A .LT. 0) THEN +- H=2*(ATAN(SQRT(-(A+B*V)/A))-ATAN(SQRT(-(A+B*U)/A)))/SQRT(-A) +- ELSE +- WA=SQRT(A) +- WU=SQRT(A+B*U) +- WV=SQRT(A+B*V) +- H=LOG(ABS((WV-WA)*(WU+WA)/((WV+WA)*(WU-WA))))/WA +- ENDIF +- ENDIF +- ELSE +- A2=2*A +- IF(DELTA .GT. 0 .OR. DELTA .LT. 0 .AND. A .GT. 0) THEN +- H=LOG(ABS((-2*SQRT(A*P(V))+B*V+A2)*U/ +- 1 ((-2*SQRT(A*P(U))+B*U+A2)*V)))/SQRT(A) +- ELSEIF(DELTA .EQ. 0) THEN +- H=LOG(ABS((B*U+A2)*V/((B*V+A2)*U)))/SQRT(A) +- IF(U*V .GT. 0) H=SIGN(H,U) +- ELSE +- H=(ASIN((B*V+A2)/(V*RTD))-ASIN((B*U+A2)/(U*RTD)))/SQRT(-A) +- IF(U .LT. 0 .AND. V .LT. 0) H=-H +- ENDIF +- ENDIF +- GO TO JMP2, (21,22) + + 9 RES=SIGN(R1,V1-U1)*H + LRL=LLL --- cernlib-2005.05.09.dfsg.orig/debian/patches/307-use-canonical-cfortran.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/307-use-canonical-cfortran.dpatch @@ -0,0 +1,273 @@ +#! /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 17:17:09.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/cfortran/cfortran.doc 2005-12-09 18:01:09.000000000 +0000 +@@ -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.] +@@ -643,7 +644,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 +875,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 +1836,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 +2018,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 17:05:51.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/cfortran/cfortran.h 2005-12-09 18:01:09.000000000 +0000 +@@ -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,6 +11,35 @@ + MODIFYING, COPYING AND DISTRIBUTING THE CFORTRAN.H PACKAGE. + */ + ++/* The following modifications were made by the authors of CFITSIO or by me. ++ * I've flagged them below with "(CFITSIO)" or "(KMCCARTY)". ++ * PDW = Peter Wilson ++ * DM = Doug Mink ++ * LEB = ?? ++ * -- Kevin McCarty, for Debian (11/29/2003) */ ++ ++/******* ++ 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) ++ *******/ ++ + /* + Avoid symbols already used by compilers and system *.h: + __ - OSF1 zukal06 V3.0 347 alpha, cc -c -std1 cfortest.c +@@ -75,7 +104,8 @@ + + /* Remainder of cfortran.h depends on the Fortran compiler. */ + +-#if defined(CLIPPERFortran) || defined(pgiFortran) ++/* 11/29/2003 (KMCCARTY): add *INTEL_COMPILER symbols here */ ++#if defined(CLIPPERFortran) || defined(pgiFortran) || defined(__INTEL_COMPILER) || defined(INTEL_COMPILER) + #define f2cFortran + #endif + +@@ -90,6 +120,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 +182,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. \ +@@ -151,7 +203,8 @@ + - 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 +217,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 +322,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 +567,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 +@@ -540,7 +595,8 @@ + } + return (int)num; + } +-#endif ++/* #endif removed 2/10/98 (CFITSIO) */ ++ + /*-------------------------------------------------------------------------*/ + + /* UTILITIES FOR C TO USE STRINGS IN FORTRAN COMMON BLOCKS */ +@@ -1451,7 +1507,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) ++/* 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 +@@ -2088,7 +2149,12 @@ + #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) ++/* 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 +2170,12 @@ + #endif + #else + #if ! (defined(FLOATFUNCTIONTYPE)&&defined(ASSIGNFLOAT)&&defined(RETURNFLOAT)) ++#if defined (f2cFortran) ++/* 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,7 +2189,12 @@ + #define BYTE_cfF(UN,LN) BYTE_cfFZ(UN,LN) + #define DOUBLE_cfF(UN,LN) DOUBLE_cfFZ(UN,LN) + #ifndef __CF_KnR ++#if defined (f2cFortran) ++/* 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 --- cernlib-2005.05.09.dfsg.orig/debian/patches/001-fix-missing-fluka.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/001-fix-missing-fluka.dpatch @@ -0,0 +1,47 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 001-fix-missing-fluka.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Deal with FLUKA code having been purged from Debian's Cernlib source. + +@DPATCH@ +diff -urNad cernlib-2005.05.09.dfsg~/src/geant321/Imakefile cernlib-2005.05.09.dfsg/src/geant321/Imakefile +--- cernlib-2005.05.09.dfsg~/src/geant321/Imakefile 1998-03-05 11:20:07.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/geant321/Imakefile 2005-11-23 17:41:29.886310858 +0000 +@@ -4,10 +4,11 @@ + + AllTarget(geant321) + +-LIBDIRS= block cdf cgpack fiface fluka gbase gcons gdraw \ @@\ ++/* Fluka removed from Debian source package for copyright reasons. */ ++LIBDIRS= cdf cgpack gbase gcons gdraw \ @@\ + geocad ggeom gheisha ghits ghrout ghutils giface \ @@\ + giopa gkine gphys gscan gstrag gtrak guser gxint \ @@\ +- miface miguti neutron peanut ++ miface miguti neutron + + + SUBDIRS= $(LIBDIRS) data examples gxuser geant321 +@@ -25,9 +26,12 @@ + InstallLibrary(geant321,$(CERN_LIBDIR)) + InstallLibraryAlias(geant321,geant,$(CERN_LIBDIR)) + ++/* Fluka removed from Debian source package for copyright reasons. */ ++/* + SubdirDataFile($(LIBRARY),flukaaf.dat,data) + + InstallNonExecFileTarget(install.lib,flukaaf.dat,$(CERN_LIBDIR)) ++*/ + + /* This will install the correct link for xsneut95.dat at CERN; + * If you want a local copy of the file, just copy it there +diff -urNad cernlib-2005.05.09.dfsg~/src/geant321/miface/Imakefile cernlib-2005.05.09.dfsg/src/geant321/miface/Imakefile +--- cernlib-2005.05.09.dfsg~/src/geant321/miface/Imakefile 1995-10-24 10:21:53.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/geant321/miface/Imakefile 2005-11-23 17:41:52.230563421 +0000 +@@ -1,5 +1,5 @@ + SRCS_F= \ @@\ +- gfmdis.F gfmfin.F gmicap.F gmiset.F gmorin.F gmplxs.F gmxsec.F ++ gmicap.F gmiset.F gmorin.F gmplxs.F gmxsec.F + + #ifdef CERNLIB_QMVAOS + FORTRANSAVEOPTION=FortranSaveFlags --- cernlib-2005.05.09.dfsg.orig/debian/patches/optional/900-use-ifort-and-icc-compilers.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/optional/900-use-ifort-and-icc-compilers.dpatch @@ -0,0 +1,31 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 900-use-ifort-and-icc-compilers.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/config/linux.cf /tmp/dpep.v1XaKl/cernlib-2005.05.09/src/config/linux.cf +--- cernlib-2005.05.09/src/config/linux.cf 2005-06-10 15:04:03.506949273 -0400 ++++ /tmp/dpep.v1XaKl/cernlib-2005.05.09/src/config/linux.cf 2005-06-10 15:04:38.699410961 -0400 +@@ -416,6 +416,8 @@ + #include + /* #include */ + ++#define HasIntelifc YES ++ + #ifdef HasPgf77 + #define f2cFortran YES + #define FortranCmd pgf77 +diff -urNad cernlib-2005.05.09/src/packlib/kuip/programs/kxterm/Imakefile /tmp/dpep.v1XaKl/cernlib-2005.05.09/src/packlib/kuip/programs/kxterm/Imakefile +--- cernlib-2005.05.09/src/packlib/kuip/programs/kxterm/Imakefile 2005-06-10 15:04:03.613926358 -0400 ++++ /tmp/dpep.v1XaKl/cernlib-2005.05.09/src/packlib/kuip/programs/kxterm/Imakefile 2005-06-10 15:04:19.742471594 -0400 +@@ -13,7 +13,7 @@ + DefinePackageLibrary(kxtlib) + + #if defined(CERNLIB_UNIX) +-CLIBS= -G Motif Xm ++CLIBS= -G Motif Xm -no_formain + #endif + + #if defined(CERNLIB_VAXVMS) --- cernlib-2005.05.09.dfsg.orig/debian/patches/optional/901-dont-compile-spdf.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/optional/901-dont-compile-spdf.dpatch @@ -0,0 +1,25 @@ +#! /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)) --- cernlib-2005.05.09.dfsg.orig/debian/patches/optional/902-no-isajet-on-m68k.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/optional/902-no-isajet-on-m68k.dpatch @@ -0,0 +1,25 @@ +#! /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,12 @@ + 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 + SubdirDataFile($(LIBRARY),isajet.dat,data) + + /* install the data file : */ --- cernlib-2005.05.09.dfsg.orig/debian/patches/000-unpack.sh.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/000-unpack.sh.dpatch @@ -0,0 +1,16 @@ +#!/bin/sh + +# This is a fake patch used to convince dpatch-edit-patch to unpack the +# Cernlib source code before trying to generate a diff from it. +# This is a no-op if called when the source has already been unpacked, e.g. +# if running "fakeroot debian/rules patch". +# +# Yes, this is an ugly hack. + +set -e +case "$1" in + -patch) [ -e Makefile ] || cp -p debian/add-ons/Makefile . + make stampdir/configure-stamp ;; + -unpatch) exit 0 ;; + *) exit 1 ;; +esac --- cernlib-2005.05.09.dfsg.orig/debian/patches/002-fix-missing-mclibs.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/002-fix-missing-mclibs.dpatch @@ -0,0 +1,36 @@ +#! /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 cernlib-2005.05.09/src/mclibs/Imakefile /tmp/dpep.pmIy0R/cernlib-2005.05.09/src/mclibs/Imakefile +--- cernlib-2005.05.09/src/mclibs/Imakefile 1999-05-20 09:30:20.000000000 -0400 ++++ /tmp/dpep.pmIy0R/cernlib-2005.05.09/src/mclibs/Imakefile 2005-06-08 15:39:37.783591646 -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)) + --- cernlib-2005.05.09.dfsg.orig/debian/patches/701-patch-hbook-comis-Imakefiles.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/701-patch-hbook-comis-Imakefiles.dpatch @@ -0,0 +1,35 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 701-patch-hbook-comis-Imakefiles.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix up makefiles after moving hkfill.F and hkf1q.F in the other +## DP: 701 dpatch (a shell script). + +@DPATCH@ +diff -urNad cernlib-2005.05.09.dfsg~/src/packlib/hbook/code/Imakefile cernlib-2005.05.09.dfsg/src/packlib/hbook/code/Imakefile +--- cernlib-2005.05.09.dfsg~/src/packlib/hbook/code/Imakefile 1997-09-02 09:09:01.000000000 -0400 ++++ cernlib-2005.05.09.dfsg/src/packlib/hbook/code/Imakefile 2005-12-07 14:59:31.519940694 -0500 +@@ -19,8 +19,8 @@ + hgn.F hgnf.F hgnpar.F hgstat.F hhipar.F hhxye.F hi.F \ @@\ + hictoi.F hid1.F hid2.F hidall.F hidopt.F hidpos.F hie.F \ @@\ + hif.F hij.F hije.F hijxy.F hindex.F hinprx.F hinteg.F \ @@\ +- hipak1.F histdo.F histgo.F hix.F hkf1.F hkf1q.F hkf2.F \ @@\ +- hkff1.F hkff2.F hkffi1.F hkfi1.F hkfil2.F hkfill.F hkfilpf.F \ @@\ ++ hipak1.F histdo.F histgo.F hix.F hkf1.F hkf2.F \ @@\ ++ hkff1.F hkff2.F hkffi1.F hkfi1.F hkfil2.F hkfilpf.F \ @@\ + hkind.F hknul1.F hknuli.F hlabel.F hlabeq.F hlabnb.F \ @@\ + hlattr.F hlccmp.F hldir.F hldir1.F hldir2.F hldirt.F \ @@\ + hlgnxt.F hlhcmp.F hlimit.F hllsq.F hlnext.F hlocat.F \ @@\ +diff -urNad cernlib-2005.05.09.dfsg~/src/pawlib/comis/code/Imakefile cernlib-2005.05.09.dfsg/src/pawlib/comis/code/Imakefile +--- cernlib-2005.05.09.dfsg~/src/pawlib/comis/code/Imakefile 2005-12-07 14:59:22.782783593 -0500 ++++ cernlib-2005.05.09.dfsg/src/pawlib/comis/code/Imakefile 2005-12-07 14:59:31.519940694 -0500 +@@ -37,7 +37,8 @@ + csspar.F cssubr.F cssvpt.F cstadv.F cstarr.F csterr.F cstext.F \ @@\ + cstfrf.F cstinf.F cstlgb.F cstlog.F cstpar.F cstran.F cstrer.F \ @@\ + cstypar.F cstype.F csubad.F csunam.F csundf.F csxpar.F \ @@\ +- mcline.F mcsident.F ++ mcline.F mcsident.F \ @@\ ++ hkfill.F hkf1q.F /* moved here from src/packlib/hbook/code */ + + #if defined(CERNLIB_PAW) + SRCS_F := $(SRCS_F) cspawi.F cskuix.F cktoiv.F cspawv.F csmkvd.F \ @@\ --- cernlib-2005.05.09.dfsg.orig/debian/patches/003-geant-dummy-functions.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/003-geant-dummy-functions.dpatch @@ -0,0 +1,229 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 003-geant-dummy-functions.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Add stub Geant functions to avoid missing symbols due to Fluka removal. + +@DPATCH@ +diff -urNad cernlib-2005.05.09.dfsg~/src/geant321/gkine/Imakefile cernlib-2005.05.09.dfsg/src/geant321/gkine/Imakefile +--- cernlib-2005.05.09.dfsg~/src/geant321/gkine/Imakefile 1996-03-28 16:21:20.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/geant321/gkine/Imakefile 2005-11-29 15:59:27.035065621 +0000 +@@ -1,6 +1,9 @@ + SRCS_F= gfkine.F gfvert.F gludky.F glund.F glundi.F gpkine.F \ @@\ + gpkinx.F gpvert.F gskine.F gskinu.F gsvert.F gsveru.F gtau.F + ++/* Dummy file containing stubs for deleted Fluka and mclibs functions: */ ++SRCS_C= dummy.c ++ + #ifdef CERNLIB_QMVAOS + FORTRANSAVEOPTION=FortranSaveFlags + FORTRANOPTIONS = -math_library accurate $(FORTRANSAVEOPTION) +diff -urNad cernlib-2005.05.09.dfsg~/src/geant321/gkine/dummy.c cernlib-2005.05.09.dfsg/src/geant321/gkine/dummy.c +--- cernlib-2005.05.09.dfsg~/src/geant321/gkine/dummy.c 1970-01-01 00:00:00.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/geant321/gkine/dummy.c 2005-11-29 16:55:14.274440352 +0000 +@@ -0,0 +1,205 @@ ++/* Dummy file to avoid undefined symbols in the library */ ++/* Kevin McCarty, 14 Jan 2003 */ ++/* Last revised 22 November 2005 */ ++ ++#include ++#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) __ ## x ++ ++#define DUMMY(domain, UPPERNAME, fortranname_, returntype) \ ++returntype fortranname_() {print_dummy(#domain,#UPPERNAME);} ++ ++#define WEAKDUMMY(domain, UPPERNAME, fortranname_, returntype) \ ++static returntype underline(fortranname_)() {print_dummy(#domain,#UPPERNAME);} \ ++void fortranname_() \ ++ __attribute__ ((weak, alias (stringify(underline(fortranname_))) )) ++ ++static void print_dummy(const char *domain, const char *function) ++{ ++ fprintf(stderr, "Geant321: Now in dummy %s routine.\n", function); ++ fprintf(stderr, ++"If you see this message, you are presumably trying to call (possibly\n" ++"indirectly) the %s routine"); ++ ++ if (strcmp(domain, "Jetset") == 0) ++ fprintf(stderr, ++" in the Jetset library.\n" ++#if defined (CERNLIB_DEBIAN) ++"To obtain the Jetset library, please see the file\n" ++"/usr/share/doc/geant321/README.Debian\n" ++#endif ++ ); ++ ++ else if (strcmp(domain, "Fluka") == 0) ++ fprintf(stderr, ++" in the FLUKA library.\n" ++"FLUKA is unfortunately not available in this distribution of Cernlib for\n" ++"licensing reasons" ++#if defined (CERNLIB_DEBIAN) ++"; please see the file /usr/share/doc/geant321/README.Debian\n" ++"for details.\n" ++#else ++".\n" ++#endif ++ ); ++ ++ else if (strcmp(domain, "User") == 0) ++ fprintf(stderr, ". This routine is not built into Geant;\n" ++"you must write code for it yourself. Please see the documentation" ++#if defined (CERNLIB_DEBIAN) ++"\n(for instance in the geant321-doc package)" ++#endif ++".\n"); ++ ++ exit(EXIT_FAILURE); ++} ++ ++/* Functions that the user is supposed to set up */ ++WEAKDUMMY(User, UGINIT, uginit_, void); ++WEAKDUMMY(User, UGLAST, uglast_, void); ++ ++/* Functions in the non-free Jetset library, which can be used ++ * if it's installed */ ++WEAKDUMMY(Jetset, LU1ENT, lu1ent_, void); ++WEAKDUMMY(Jetset, LUCOMP, lucomp_, int); ++WEAKDUMMY(Jetset, LUEEVT, lueevt_, void); ++WEAKDUMMY(Jetset, LUEXEC, luexec_, void); ++ ++/* N.B. When the libgeant321 dynamic soversion is bumped, at the same time ++ * everything below this point except the dummy FLDIST and FLINIT subroutines ++ * may be deleted; those should be turned into weak aliases in case anyone ++ * wants to create a separate GEANT-FLUKA library. */ ++ ++/* From src/geant321/fluka (not the complete set of functions, just ++ * those referenced from external files) */ ++WEAKDUMMY(Fluka, DOST, dost_, double); ++WEAKDUMMY(Fluka, EEXLVL, eexlvl_, void); ++WEAKDUMMY(Fluka, EVENTV, eventv_, void); ++WEAKDUMMY(Fluka, EVEVAP, evevap_, void); ++WEAKDUMMY(Fluka, EVVINI, evvini_, void); ++WEAKDUMMY(Fluka, FKENER, fkener_, double); ++WEAKDUMMY(Fluka, FKZERO, fkzero_, void); ++WEAKDUMMY(Fluka, NIZLNW, nizlnw_, void); ++WEAKDUMMY(Fluka, NUCREL, nucrel_, void); ++WEAKDUMMY(Fluka, RACO, raco_, void); ++WEAKDUMMY(Fluka, SAMCST, samcst_, void); ++WEAKDUMMY(Fluka, SIGEL, sigel_, void); ++WEAKDUMMY(Fluka, SITSAO, sitsao_, double); ++ ++/* The following dummy functions are added due to the removal ++ * of the corresponding code from Geant (it is also part of FLUKA). ++ * We are constrained to keep the ABI for the dynamic library, so ++ * these dummy functions must be kept until next time the libgeant321 ++ * soversion is changed. */ ++ ++/* From src/geant321/fiface */ ++DUMMY(Fluka, FLDIST, fldist_, void); ++DUMMY(Fluka, FLINIT, flinit_, void); ++DUMMY(Fluka, FLUFIN, flufin_, void); ++ ++/* From src/geant321/miface */ ++DUMMY(Fluka, GFMFIN, gfmfin_, void); ++DUMMY(Fluka, GFMDIS, gfmdis_, void); ++ ++/* From src/geant321/block */ ++DUMMY(Fluka, FDEVAP, fdevap_, void); ++DUMMY(Fluka, FDNOPT, fdnopt_, void); ++DUMMY(Fluka, FDPREE, fdpree_, void); ++DUMMY(Fluka, FLKDT1, flkdt1_, void); ++DUMMY(Fluka, FLKDT2, flkdt2_, void); ++DUMMY(Fluka, FLKDT3, flkdt3_, void); ++DUMMY(Fluka, FLKDT4, flkdt4_, void); ++DUMMY(Fluka, FLKDT5, flkdt5_, void); ++DUMMY(Fluka, FLKDT6, flkdt6_, void); ++DUMMY(Fluka, FLKDT7, flkdt7_, void); ++ ++/* From src/geant321/peanut */ ++DUMMY(Fluka, BIMNXT, bimnxt_, void); /* alternate entry to BIMSEL */ ++DUMMY(Fluka, BIMSEL, bimsel_, void); ++DUMMY(Fluka, COSLEG, cosleg_, double); ++DUMMY(Fluka, FEKFNC, fekfnc_, double); ++DUMMY(Fluka, FPFRNC, fpfrnc_, double); ++DUMMY(Fluka, FRADNC, fradnc_, double); ++DUMMY(Fluka, FRHINC, frhinc_, double); ++DUMMY(Fluka, FRHONC, frhonc_, double); ++DUMMY(Fluka, NCLVFX, nclvfx_, double); /* alternate entry to PFNCLV */ ++DUMMY(Fluka, NCLVIN, nclvin_, void); ++DUMMY(Fluka, NCLVST, nclvst_, void); ++DUMMY(Fluka, NUCNUC, nucnuc_, void); ++DUMMY(Fluka, NWINXT, nwinxt_, void); /* alternate entry to NWISEL */ ++DUMMY(Fluka, NWISEL, nwisel_, void); ++DUMMY(Fluka, PEANUT, peanut_, void); ++DUMMY(Fluka, PFNCLV, pfnclv_, double); ++DUMMY(Fluka, PHDSET, phdset_, void); ++DUMMY(Fluka, PHDWLL, phdwll_, void); ++DUMMY(Fluka, PIOABS, pioabs_, void); ++DUMMY(Fluka, PREPRE, prepre_, void); ++DUMMY(Fluka, RSCOMP, rscomp_, void); /* alternate entry to SBCOMP */ ++DUMMY(Fluka, RSTNXT, rstnxt_, void); /* alternate entry to RSTSEL */ ++DUMMY(Fluka, RSTSEL, rstsel_, void); ++DUMMY(Fluka, SBCOMP, sbcomp_, void); ++DUMMY(Fluka, SIGFER, sigfer_, void); ++DUMMY(Fluka, UMOFIN, umofin_, void); ++DUMMY(Fluka, XINNEU, xinneu_, double); ++DUMMY(Fluka, XINPRO, xinpro_, double); ++ ++/* The following dummy common blocks are added for the same reason. ++ * The number of bytes required was determined by inspecting the existing ++ * shared libraries in the 12 official Debian architectures and determining ++ * the maximum size of each common block there. */ ++ ++#define COMMON(fortranname_, size) \ ++ struct { char c[size]; } fortranname_ = { { 0, } } ++ ++COMMON(fkadhn_, 1376); ++COMMON(fkadhp_, 3712); ++COMMON(fkbala_, 288); ++COMMON(fkcd97_, 1152); ++COMMON(fkchpa_, 1472); ++COMMON(fkchpr_, 576); ++COMMON(fkcmcy_, 176); ++COMMON(fkcomc_, 7424); ++COMMON(fkcosp_, 64); ++COMMON(fkdecc_,10816); ++COMMON(fkdech_, 4328); ++COMMON(fkenco_, 16); ++COMMON(fkeva0_,60960); ++COMMON(fkfinu_,52000); ++COMMON(fkhadf_, 352); ++COMMON(fkheac_, 96); ++COMMON(fkheav_, 5408); ++COMMON(fkhet7_, 64); ++COMMON(fkhetp_, 32); ++COMMON(fkhigf_, 1632); ++COMMON(fkidgb_, 16); ++COMMON(fkinpf_, 32); ++COMMON(fkisot_,10208); ++COMMON(fkmapa_, 5824); ++COMMON(fknegx_, 128); ++COMMON(fknuct_, 16); ++COMMON(fknuda_, 1248); ++COMMON(fknuge_, 1120); ++COMMON(fknugi_,26944); ++COMMON(fknuii_, 1888); ++COMMON(fknule_,18048); ++COMMON(fknupw_, 32); ++COMMON(fkpapr_, 2400); ++COMMON(fkpare_, 256); ++COMMON(fkparn_, 7296); ++COMMON(fkpart_, 9696); ++COMMON(fkploc_, 2864); ++COMMON(fkquar_, 832); ++COMMON(fkreac_,50976); ++COMMON(fkredv_, 2368); ++COMMON(fkresn_, 256); ++COMMON(fkrun_, 32); ++COMMON(fkslop_, 608); ++COMMON(fkxsep_,13600); ++ --- cernlib-2005.05.09.dfsg.orig/debian/patches/301-datafiles-comply-with-FHS.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/301-datafiles-comply-with-FHS.dpatch @@ -0,0 +1,56 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 301-datafiles-comply-with-FHS.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Put data files under /usr/share (defined in add-ons/Makefile). + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/geant321/miface/gmorin.F /tmp/dpep.5a0xP1/cernlib-2005.05.09/src/geant321/miface/gmorin.F +--- cernlib-2005.05.09/src/geant321/miface/gmorin.F 1996-09-30 10:26:05.000000000 -0400 ++++ /tmp/dpep.5a0xP1/cernlib-2005.05.09/src/geant321/miface/gmorin.F 2005-06-08 16:39:21.850830809 -0400 +@@ -112,7 +112,8 @@ + OPEN(UNIT=MICROS,FILE=XSFILE, STATUS='OLD',READONLY) + #endif + #if defined(CERNLIB_UNIX)||defined(CERNLIB_CRAY) +- XSFILE = 'xsneut95.dat' ++ XSFILE = '/usr/share' ++ + // '/geant321-data/xsneut95.dat' + INQUIRE(FILE=XSFILE,EXIST=EXISTS) + IF(.NOT.EXISTS) THEN + CHROOT=' ' +diff -urNad cernlib-2005.05.09/src/mclibs/cojets/test/test.F /tmp/dpep.5a0xP1/cernlib-2005.05.09/src/mclibs/cojets/test/test.F +--- cernlib-2005.05.09/src/mclibs/cojets/test/test.F 1996-03-25 07:53:36.000000000 -0500 ++++ /tmp/dpep.5a0xP1/cernlib-2005.05.09/src/mclibs/cojets/test/test.F 2005-06-08 16:39:52.846851314 -0400 +@@ -6,7 +6,7 @@ + #if defined(CERNLIB_IBMVM) + PARAMETER (DFILE='/COJETS DATA *') + #else +- PARAMETER (DFILE='cojets.dat') ++ PARAMETER (DFILE='/usr/share/cojets/cojets.dat') + #endif + C + C MAIN PROGRAM FOR COJETS +diff -urNad cernlib-2005.05.09/src/mclibs/eurodec/eurodec/eufiles.inc /tmp/dpep.5a0xP1/cernlib-2005.05.09/src/mclibs/eurodec/eurodec/eufiles.inc +--- cernlib-2005.05.09/src/mclibs/eurodec/eurodec/eufiles.inc 1996-03-08 11:58:49.000000000 -0500 ++++ /tmp/dpep.5a0xP1/cernlib-2005.05.09/src/mclibs/eurodec/eurodec/eufiles.inc 2005-06-08 16:40:14.175049565 -0400 +@@ -18,7 +18,7 @@ + PARAMETER (ETFILE='/EUTITLE DAT *') + #endif + CHARACTER*(*) EDFILE,ETFILE +- PARAMETER (EDFILE='eurodec.dat') ++ PARAMETER (EDFILE='/usr/share/eurodec/eurodec.dat') + PARAMETER (ETFILE='eutitle.dat') + + #endif +diff -urNad cernlib-2005.05.09/src/mclibs/isajet/test/isajett.F /tmp/dpep.5a0xP1/cernlib-2005.05.09/src/mclibs/isajet/test/isajett.F +--- cernlib-2005.05.09/src/mclibs/isajet/test/isajett.F 1997-03-14 12:32:39.000000000 -0500 ++++ /tmp/dpep.5a0xP1/cernlib-2005.05.09/src/mclibs/isajet/test/isajett.F 2005-06-08 16:40:43.746393067 -0400 +@@ -8,7 +8,7 @@ + #if defined(CERNLIB_VAXVMS) + PARAMETER (DFILE='CERN_ROOT:[lib]isajet.dat') + #else +- PARAMETER (DFILE='isajet.dat') ++ PARAMETER (DFILE='/usr/share/isajet/isajet.dat') + #endif + #endif + C --- cernlib-2005.05.09.dfsg.orig/debian/patches/300-skip-duplicate-lenocc.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/300-skip-duplicate-lenocc.dpatch @@ -0,0 +1,30 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 300-skip-duplicate-lenocc.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Only compile one of the two "lenocc()" functions. + +@DPATCH@ +diff -urNad cernlib-2005.05.09.dfsg~/src/packlib/kernlib/kerngen/ccgen/Imakefile cernlib-2005.05.09.dfsg/src/packlib/kernlib/kerngen/ccgen/Imakefile +--- cernlib-2005.05.09.dfsg~/src/packlib/kernlib/kerngen/ccgen/Imakefile 2002-09-19 16:44:52.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/packlib/kernlib/kerngen/ccgen/Imakefile 2005-11-28 19:59:28.690293288 +0000 +@@ -19,7 +19,9 @@ + SRCS_C += apofsz.c + #endif + +-#if defined(CERNLIB_WINNT) ++#if defined(CERNLIB_WINNT) || defined(CERNLIB_LINUX) ++/* Do not use lenocc.c in Linux; favor packlib/kernlib/kerngen/tcgen/lenocc.F ++ * instead. --Kevin McCarty, for Debian */ + SRCS_C += lnblnk.c + #endif + +@@ -29,7 +31,7 @@ + + #if defined(CERNLIB_DECS) || defined(CERNLIB_QMVAOS) \ + || defined(CERNLIB_HPUX) || defined(CERNLIB_IBMRT) || defined(CERNLIB_IBMRTD) \ +- || defined(CERNLIB_OS9) || defined(CERNLIB_LINUX) ++ || defined(CERNLIB_OS9) + SRCS_C += lenocc.c lnblnk.c + #endif + --- cernlib-2005.05.09.dfsg.orig/debian/patches/303-shadow-passwords-supported.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/303-shadow-passwords-supported.dpatch @@ -0,0 +1,102 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 303-shadow-passwords-supported.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Allow Cern's server code to read from /etc/shadow. + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/packlib/cspack/tcpaw/tcpaw.c /tmp/dpep.KyLyTI/cernlib-2005.05.09/src/packlib/cspack/tcpaw/tcpaw.c +--- cernlib-2005.05.09/src/packlib/cspack/tcpaw/tcpaw.c 2005-04-18 11:39:28.000000000 -0400 ++++ /tmp/dpep.KyLyTI/cernlib-2005.05.09/src/packlib/cspack/tcpaw/tcpaw.c 2005-06-08 16:55:00.088372396 -0400 +@@ -28,6 +28,9 @@ + * + */ + #include "cspack/pilot.h" ++#if defined(CERNLIB_LINUX) && ! defined(CERNLIB_MACOSX) ++#define SHADOW_SUPPORT /* for Debian */ ++#endif + #if !defined(CERNLIB_IBM)||defined(CERNLIB_TCPSOCK) + /*N.B. Must define sequence TCPLOG if a log file is required, e.g.*/ + /*#define LOGFILE "disk$dd:-ben.socks-serv.log"*/ /* VMS */ +@@ -231,7 +234,7 @@ + #endif /* OSK */ + #endif /* AUTHENT */ + +-#ifdef linux_softland ++#if defined(linux_softland) || defined(SHADOW_SUPPORT) + #include + #endif /* linux_softland */ + +@@ -1780,10 +1783,10 @@ + union wait ret; + #endif /* APOPWD1 */ + +- char *xpasswd, *crypt(); ++ char *xpasswd, *encrypted, *crypt(); + struct passwd *pw; + +-#ifdef linux_softland ++#if defined(linux_softland) || defined(SHADOW_SUPPORT) + struct spwd *spwd; + #endif /* linux_softland */ + +@@ -1798,6 +1801,7 @@ + reply("Unknown user %s.\n", user); + return(-2); + } ++ encrypted = pw->pw_passwd; + + #ifdef linux_softland + spwd = getspnam(user); +@@ -1805,6 +1809,29 @@ + reply("User %s has illegal shadow password\n",user); + return(-2); + } ++ encrypted = spwd->sp_pwdp; ++ ++#elif defined(SHADOW_SUPPORT) ++ /* shadow passwords may not be enabled in Debian, so must check */ ++ { ++ FILE *test = fopen("/etc/shadow", "r"); ++ if (test) { ++ fclose(test); ++ spwd = getspnam(user); ++ if (spwd == NULL) { ++ reply("User %s has illegal shadow password\n", ++ user); ++ return(-2); ++ } ++ encrypted = spwd->sp_pwdp; ++ } ++ else if (errno == EACCES) { ++ reply("Server has insufficient permissions to " ++ "read /etc/shadow file\n"); ++ return(-2); ++ } ++ } ++ + #endif /* linux_softland */ + + #ifdef APOPWD1 +@@ -1850,15 +1877,16 @@ + #else + + #ifdef linux_softland +- xpasswd = pw_encrypt(pass,spwd->sp_pwdp); ++ xpasswd = pw_encrypt(pass, encrypted); + #else +- xpasswd = crypt(pass, pw->pw_passwd); ++ xpasswd = crypt(pass, encrypted); + #endif /* linux_softland */ ++ + /* The strcmp does not catch null passwords! */ +-#ifdef linux_softland +- if (spwd->sp_pwdp == '\0' || strcmp(xpasswd,spwd->sp_pwdp)) { ++#if defined(linux_softland) || defined(SHADOW_SUPPORT) ++ if (*encrypted == '\0' || strcmp(xpasswd,spwd->sp_pwdp)) { + #else +- if (*pw->pw_passwd == '\0' || strcmp(xpasswd,pw->pw_passwd)) { ++ if (*encrypted == '\0' || strcmp(xpasswd,pw->pw_passwd)) { + #endif /* linux_softland */ + + #endif /* AFS */ --- cernlib-2005.05.09.dfsg.orig/debian/patches/101-undefine-PPC.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/101-undefine-PPC.dpatch @@ -0,0 +1,27 @@ +#! /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 --- cernlib-2005.05.09.dfsg.orig/debian/patches/200-comis-allow-special-chars-in-path.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/200-comis-allow-special-chars-in-path.dpatch @@ -0,0 +1,31 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 200-comis-allow-special-chars-in-path.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/pawlib/paw/code/pawfca.F /tmp/dpep.gkT1Y2/cernlib-2005.05.09/src/pawlib/paw/code/pawfca.F +--- cernlib-2005.05.09/src/pawlib/paw/code/pawfca.F 1997-05-20 05:37:58.000000000 -0400 ++++ /tmp/dpep.gkT1Y2/cernlib-2005.05.09/src/pawlib/paw/code/pawfca.F 2005-06-08 19:34:43.101436210 -0400 +@@ -29,6 +29,7 @@ + C. * CHFUNC may be the name of a COMIS function * + C. * or a file name. A file cannot contain one of * + C. * the following characters: +*=-()<> * ++C. * [n.b. patched to work around this. --Kevin McCarty] * + C. * * + C. ****************************************************************** + #include "paw/pawcfu.inc" +@@ -60,7 +61,11 @@ + IF(NCH.LE.0)GO TO 99 + IFILE=0 + TFILE=' ' +- IF(INDEX(CHFUNC,']').EQ.0.AND.INDEX(CHFUNC,':').EQ.0)THEN ++* Added '/' as a character symbolizing a filename; otherwise Unix paths ++* containing +, *, =, -, etc. return a bogus "Unknown routine" error ++* (Fix by Kevin McCarty) ++ IF(INDEX(CHFUNC,']').EQ.0.AND.INDEX(CHFUNC,':').EQ.0.AND. ++ + INDEX(CHFUNC,'/').EQ.0)THEN + IF(INDEX(CHFUNC,'+').NE.0.OR. + + INDEX(CHFUNC,'*').NE.0.OR. + + INDEX(CHFUNC,'=').NE.0.OR. --- cernlib-2005.05.09.dfsg.orig/debian/patches/109-fix-broken-xsneut95.dat-link.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/109-fix-broken-xsneut95.dat-link.dpatch @@ -0,0 +1,19 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 109-fix-broken-xsneut95.dat-link.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Link to xsneut95.dat in the correct place. + +@DPATCH@ +diff -urNad cernlib-2005.05.09.dfsg~/src/geant321/Imakefile cernlib-2005.05.09.dfsg/src/geant321/Imakefile +--- cernlib-2005.05.09.dfsg~/src/geant321/Imakefile 2005-11-23 15:38:52.663383751 +0000 ++++ cernlib-2005.05.09.dfsg/src/geant321/Imakefile 2005-11-23 15:39:00.618680825 +0000 +@@ -41,7 +41,7 @@ + install.lib:: $(CERN_LIBDIR)/xsneut95.dat + + $(CERN_LIBDIR)/xsneut95.dat: +- cd $(@D);$(LN) ../share/lib/$(@F) $(@F) ++ cd $(@D) && $(LN) ../src/geant321/data/$(@F) $(@F) + + #endif + #if defined(CERNLIB_VAXVMS) --- cernlib-2005.05.09.dfsg.orig/debian/patches/305-use-POWERPC-not-PPC-as-test.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/305-use-POWERPC-not-PPC-as-test.dpatch @@ -0,0 +1,45 @@ +#! /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 + +diff -urNad cernlib-2005.05.09/src/pawlib/paw/code/Imakefile /tmp/dpep.fQy2EP/cernlib-2005.05.09/src/pawlib/paw/code/Imakefile +--- cernlib-2005.05.09/src/pawlib/paw/code/Imakefile 1998-09-25 05:33:51.000000000 -0400 ++++ /tmp/dpep.fQy2EP/cernlib-2005.05.09/src/pawlib/paw/code/Imakefile 2005-06-09 10:50:47.068482917 -0400 +@@ -56,7 +56,7 @@ + + SubdirLibraryTarget(NullParameter,NullParameter) + +-#if defined(CERNLIB_LINUX) && defined(CERNLIB_PPC) ++#if defined(CERNLIB_LINUX) && defined(CERNLIB_POWERPC) + SpecialFortranLibObjectRule(pawins,pawins,-O0,NullParameter) + #endif + +diff -urNad cernlib-2005.05.09/src/pawlib/paw/ntuple/Imakefile /tmp/dpep.fQy2EP/cernlib-2005.05.09/src/pawlib/paw/ntuple/Imakefile +--- cernlib-2005.05.09/src/pawlib/paw/ntuple/Imakefile 1999-09-14 05:20:08.000000000 -0400 ++++ /tmp/dpep.fQy2EP/cernlib-2005.05.09/src/pawlib/paw/ntuple/Imakefile 2005-06-09 10:51:15.807396176 -0400 +@@ -46,7 +46,7 @@ + + SubdirLibraryTarget(NullParameter,NullParameter) + +-#if defined(CERNLIB_LINUX) && defined(CERNLIB_PPC) ++#if defined(CERNLIB_LINUX) && defined(CERNLIB_POWERPC) + SpecialObjectRule(archive/qp_execute.o,qp_execute.c archive/qp_execute.d,-O0 -o $@) + SpecialObjectRule(debug/qp_execute.o,qp_execute.c debug/qp_execute.d,-O0 -o $@) + SpecialObjectRule(shared/qp_execute.o,qp_execute.c shared/qp_execute.d,-O0 -o $@) --- cernlib-2005.05.09.dfsg.orig/debian/patches/102-dont-optimize-some-code.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/102-dont-optimize-some-code.dpatch @@ -0,0 +1,125 @@ +#! /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 cernlib-2005.05.09/src/mathlib/gen/d/Imakefile /tmp/dpep.hNz5sX/cernlib-2005.05.09/src/mathlib/gen/d/Imakefile +--- cernlib-2005.05.09/src/mathlib/gen/d/Imakefile 1996-06-12 11:25:38.000000000 -0400 ++++ /tmp/dpep.hNz5sX/cernlib-2005.05.09/src/mathlib/gen/d/Imakefile 2005-06-09 11:14:52.470486750 -0400 +@@ -19,6 +19,11 @@ + SRCS_F:= $(SRCS_F) cgauss64.F dgquad.F dgset.F gauss64.F minfc64.F \ @@\ + rcauch.F rdeqbs.F rdeqmr.F rderiv.F rfrdh1.F rgmlt.F rkstp64.F \ @@\ + simps64.F triint64.F ++#if defined(CERNLIB_LINUX) ++/* -O3 optimization breaks in g77 3.2 */ ++SpecialFortranLibObjectRule(rderiv,rderiv,-O0,NullParameter) ++SpecialFortranLibObjectRule(rfrdh1,rfrdh1,-O0,NullParameter) ++#endif + #else + SRCS_F:= $(SRCS_F) cgauss128.F cauchy.F cauchy128.F deqbs128.F deqmr128.F \ @@\ + deriv128.F minfc128.F rfrdh128.F rgmlt128.F rkstp128.F simps128.F \ @@\ +@@ -37,6 +42,16 @@ + IMAKE_DEFINES=-DFortranDoesCpp=NO + #endif + ++#if defined(CERNLIB_LINUX) ++/* -O3 optimization breaks in g77 3.2 */ ++SpecialFortranLibObjectRule(rknysd,rknysd,-O0,NullParameter) ++SpecialFortranLibObjectRule(old506,old506,-O0,NullParameter) ++ ++/* -O1 -fno-automatic optimization creates wrong code in g77 2.95, 3.3, 3.4 ++ due to x86 chip extended precision, cf. http://bugs.debian.org/290438 */ ++SpecialFortranLibObjectRule(radmul,radmul,-O0,NullParameter) ++#endif ++ + FORTRANSAVEOPTION = FortranSaveFlags + + SubdirLibraryTarget(NullParameter,NullParameter) +diff -urNad cernlib-2005.05.09/src/mathlib/gen/e/Imakefile /tmp/dpep.hNz5sX/cernlib-2005.05.09/src/mathlib/gen/e/Imakefile +--- cernlib-2005.05.09/src/mathlib/gen/e/Imakefile 1996-05-01 09:21:54.000000000 -0400 ++++ /tmp/dpep.hNz5sX/cernlib-2005.05.09/src/mathlib/gen/e/Imakefile 2005-06-09 11:16:07.058731880 -0400 +@@ -12,6 +12,11 @@ + + #if defined(CERNLIB_DOUBLE) + SRCS_F:= $(SRCS_F) chsum.F dchebn.F rchecf.F rcspln.F ++#if defined(CERNLIB_LINUX) ++/* -O3 optimization breaks in g77 3.2 */ ++SpecialFortranLibObjectRule(rchecf,rchecf,-O0,NullParameter) ++SpecialFortranLibObjectRule(rcspln,rcspln,-O0,NullParameter) ++#endif + #else + SRCS_F:= $(SRCS_F) chsum128.F rchebn.F rcspln128.F + #endif +diff -urNad cernlib-2005.05.09/src/mclibs/isajet/isatape/Imakefile /tmp/dpep.hNz5sX/cernlib-2005.05.09/src/mclibs/isajet/isatape/Imakefile +--- cernlib-2005.05.09/src/mclibs/isajet/isatape/Imakefile 1996-05-06 11:19:44.000000000 -0400 ++++ /tmp/dpep.hNz5sX/cernlib-2005.05.09/src/mclibs/isajet/isatape/Imakefile 2005-06-09 11:16:58.039286811 -0400 +@@ -4,4 +4,8 @@ + + FORTRANSAVEOPTION = FortranSaveFlags + ++#if defined(CERNLIB_LINUX) ++SpecialFortranLibObjectRule(isawev,isawev,-O0,NullParameter) ++#endif ++ + SubdirLibraryTarget(NullParameter,NullParameter) +diff -urNad cernlib-2005.05.09/src/mclibs/pdf/spdf/Imakefile /tmp/dpep.hNz5sX/cernlib-2005.05.09/src/mclibs/pdf/spdf/Imakefile +--- cernlib-2005.05.09/src/mclibs/pdf/spdf/Imakefile 2000-04-19 09:51:56.000000000 -0400 ++++ /tmp/dpep.hNz5sX/cernlib-2005.05.09/src/mclibs/pdf/spdf/Imakefile 2005-06-09 11:22:02.812494322 -0400 +@@ -97,4 +97,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) +diff -urNad cernlib-2005.05.09/src/packlib/kernlib/kernnum/c204fort/Imakefile /tmp/dpep.hNz5sX/cernlib-2005.05.09/src/packlib/kernlib/kernnum/c204fort/Imakefile +--- cernlib-2005.05.09/src/packlib/kernlib/kernnum/c204fort/Imakefile 1996-06-10 06:20:57.000000000 -0400 ++++ /tmp/dpep.hNz5sX/cernlib-2005.05.09/src/packlib/kernlib/kernnum/c204fort/Imakefile 2005-06-09 11:09:34.621022534 -0400 +@@ -14,6 +14,11 @@ + FDEBUGFLAGS=+O1 + #endif + ++#if defined(CERNLIB_LINUX) ++/* -O3 optimization breaks in g77 3.2 */ ++SpecialFortranLibObjectRule(muller,muller,-O0,NullParameter) ++#endif ++ + FORTRANSAVEOPTION = FortranSaveFlags + + SubdirLibraryTarget(NullParameter,NullParameter) +diff -urNad cernlib-2005.05.09/src/packlib/kernlib/kernnum/g900fort/Imakefile /tmp/dpep.hNz5sX/cernlib-2005.05.09/src/packlib/kernlib/kernnum/g900fort/Imakefile +--- cernlib-2005.05.09/src/packlib/kernlib/kernnum/g900fort/Imakefile 1996-06-12 06:04:36.000000000 -0400 ++++ /tmp/dpep.hNz5sX/cernlib-2005.05.09/src/packlib/kernlib/kernnum/g900fort/Imakefile 2005-06-09 11:10:40.068274255 -0400 +@@ -4,6 +4,11 @@ + FDEBUGFLAGS=NoOpFortranDebugFlags + #endif + ++#if defined(CERNLIB_LINUX) ++/* -O3 optimization breaks in g77 3.2 */ ++SpecialFortranLibObjectRule(ranget,ranget,-O0,NullParameter) ++#endif ++ + FORTRANSAVEOPTION=FortranSaveFlags + + SubdirLibraryTarget(NullParameter,NullParameter) +diff -urNad cernlib-2005.05.09/src/pawlib/comis/code/Imakefile /tmp/dpep.hNz5sX/cernlib-2005.05.09/src/pawlib/comis/code/Imakefile +--- cernlib-2005.05.09/src/pawlib/comis/code/Imakefile 2001-09-14 09:08:51.000000000 -0400 ++++ /tmp/dpep.hNz5sX/cernlib-2005.05.09/src/pawlib/comis/code/Imakefile 2005-06-09 11:19:57.756983183 -0400 +@@ -101,4 +101,10 @@ + SpecialFortranLibObjectRule(cskide,cskide,-O0,NullParameter) + #endif + ++#if defined(CERNLIB_LINUX) ++/* optimizing this file, even at -O1, causes runtime breakage with g77 3.3 ++ cf. http://bugs.debian.org/233689 */ ++SpecialFortranLibObjectRule(csrfun,csrfun,-O0,NullParameter) ++#endif ++ + SubdirLibraryTarget(NullParameter,NullParameter) --- cernlib-2005.05.09.dfsg.orig/debian/patches/100-fix-isajet-manual-corruption.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/100-fix-isajet-manual-corruption.dpatch @@ -0,0 +1,20 @@ +#! /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 --- cernlib-2005.05.09.dfsg.orig/debian/patches/604-put-pawserv-logs-in-own-directory.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/604-put-pawserv-logs-in-own-directory.dpatch @@ -0,0 +1,31 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 604-put-pawserv-logs-in-own-directory.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Put Pawserv/Zserv log files into their own directory, /var/log/pawserv. +## DP: (We assume it already exists as it's shipped in the .deb file.) + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/packlib/cspack/programs/zs/zs.F /tmp/dpep.7plSC5/cernlib-2005.05.09/src/packlib/cspack/programs/zs/zs.F +--- cernlib-2005.05.09/src/packlib/cspack/programs/zs/zs.F 2005-04-18 11:39:27.000000000 -0400 ++++ /tmp/dpep.7plSC5/cernlib-2005.05.09/src/packlib/cspack/programs/zs/zs.F 2005-06-09 11:59:59.897651273 -0400 +@@ -62,7 +62,7 @@ + #if !defined(CERNLIB_IBM)||defined(CERNLIB_TCPSOCK) + INTEGER STATUS + INTEGER SSETUP,SCLOSE +- CHARACTER*26 CHFILE ++ CHARACTER*34 CHFILE + #endif + #if defined(CERNLIB_IBM) + CHARACTER*80 ARGS +@@ -91,8 +91,8 @@ + CHFILE=' ' + CALL DATIME(ND,NT) + WRITE(CHFILE,1000)ND,NT +- 1000 FORMAT('/var/log/zs',I6,I4,'.log') +- DO 1 I=11,23 ++ 1000 FORMAT('/var/log/pawserv/zs',I6,I4,'.log') ++ DO 1 I=19,31 + IF(CHFILE(I:I).EQ.' ')CHFILE(I:I)='0' + 1 CONTINUE + OPEN(UNIT=LUNCZ,FILE=CHFILE,STATUS='UNKNOWN',IOSTAT=ISTAT) --- cernlib-2005.05.09.dfsg.orig/debian/patches/601-paw-bugreport-goes-to-BTS.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/601-paw-bugreport-goes-to-BTS.dpatch @@ -0,0 +1,65 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 601-paw-bugreport-goes-to-BTS.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Have the bug submission interface in Paw and Paw++ send a properly +## DP: formatted email to the Debian BTS instead of the Paw developers. + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/pawlib/paw/cpaw/bugrep.c /tmp/dpep.QWKYCz/cernlib-2005.05.09/src/pawlib/paw/cpaw/bugrep.c +--- cernlib-2005.05.09/src/pawlib/paw/cpaw/bugrep.c 2005-04-18 11:41:09.000000000 -0400 ++++ /tmp/dpep.QWKYCz/cernlib-2005.05.09/src/pawlib/paw/cpaw/bugrep.c 2005-06-09 12:19:24.483117822 -0400 +@@ -194,6 +194,14 @@ + #endif + /* template for user info, !! keep identical to br_mail_motif !! */ + static char *br_tmpl_user[] = { ++#if defined(CERNLIB_DEBIAN) ++ ++ /* For Debian, submit bug to the BTS in proper format */ ++ "Package: paw", ++ "Version: " DEBIAN_VERSION , ++ "", ++ ++#endif + "-----------------------------------------------------------", + "* Please fill in the following fields *", + "", +@@ -578,7 +586,13 @@ + + addr = getenv( "PAWSUPPORT" ); + if ( addr == 0 ) { ++#if defined(CERNLIB_DEBIAN) ++ ++ ++ addr = "submit@bugs.debian.org"; ++#else + addr = "Paw.Support@cern.ch"; ++#endif + } + r = br_mail_file( addr, s , tmp_file ); + } +@@ -668,6 +682,10 @@ + fprintf( fp, "%-16s%s\n", *s, phone ); + } else if ( strcmp( "Email address:", *s ) == 0 ) { + fprintf( fp, "%-16s%s\n", *s, email ); ++#if defined(CERNLIB_DEBIAN) ++ } else if ( strcmp( "Package: paw", *s ) == 0 ) { ++ fprintf( fp, "%s++\n", *s ); ++#endif + } else { + fputs( *s, fp ); + fputc( '\n', fp ); +@@ -685,7 +703,13 @@ + + addr = getenv( "PAWSUPPORT" ); + if ( addr == 0 ) { ++#if defined(CERNLIB_DEBIAN) ++ ++ ++ addr = "submit@bugs.debian.org"; ++#else + addr = "Paw.Support@cern.ch"; ++#endif + } + r = br_mail_file( addr, st , tmp_file ); + --- cernlib-2005.05.09.dfsg.orig/debian/patches/201-update-kuip-helper-apps.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/201-update-kuip-helper-apps.dpatch @@ -0,0 +1,41 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 201-update-kuip-helper-apps.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Instead of "ghostview" and "lp", call the more modern helper apps +## DP: "gv" and "lpr" from KUIP. + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/packlib/kuip/code_kuip/kuinit.c /tmp/dpep.WCaWVF/cernlib-2005.05.09/src/packlib/kuip/code_kuip/kuinit.c +--- cernlib-2005.05.09/src/packlib/kuip/code_kuip/kuinit.c 2003-02-13 09:25:23.000000000 -0500 ++++ /tmp/dpep.WCaWVF/cernlib-2005.05.09/src/packlib/kuip/code_kuip/kuinit.c 2005-06-09 12:34:49.057760462 -0400 +@@ -249,7 +249,7 @@ + host_psviewer = getenv( "PSVIEWER" ); + if( host_psviewer == NULL ) { + #ifdef UNIX +- host_psviewer = "ghostview"; ++ host_psviewer = "gv"; + #endif + #ifdef vms + host_psviewer = "VIEW/FORM=PS/INTERFACE=DECWINDOWS"; +@@ -277,7 +277,7 @@ + # if defined(MSDOS) || defined(CERNLIB_WINNT) + ku_exel( "/KUIP/SET_SHOW/HOST_PRINTER 'print $*'" ); + # else +- ku_exel( "/KUIP/SET_SHOW/HOST_PRINTER 'lp $*'" ); ++ ku_exel( "/KUIP/SET_SHOW/HOST_PRINTER 'lpr $*'" ); + # endif + #else + ku_exel( "/KUIP/SET_SHOW/HOST_PRINTER 'XPRINT $*'" ); +diff -urNad cernlib-2005.05.09/src/packlib/kuip/code_kuip/kuipcdf.cdf /tmp/dpep.WCaWVF/cernlib-2005.05.09/src/packlib/kuip/code_kuip/kuipcdf.cdf +--- cernlib-2005.05.09/src/packlib/kuip/code_kuip/kuipcdf.cdf 1997-09-25 10:02:25.000000000 -0400 ++++ /tmp/dpep.WCaWVF/cernlib-2005.05.09/src/packlib/kuip/code_kuip/kuipcdf.cdf 2005-06-09 12:35:59.499480148 -0400 +@@ -925,7 +925,7 @@ + The startup value can be defined by the environment variables + 'KUIPPSVIEWER' or 'PSVIEWER'. + . +-On Unix workstations it is by default set to 'ghostview'. ++On Unix workstations it is by default set to 'gv'. + On VAX/VMS the default commands is 'VIEW/FORM=PS/INTERFACE=DECWINDOWS'. + + >Action kxhostpsviewer%C --- cernlib-2005.05.09.dfsg.orig/debian/patches/602-debianize-kuip-helper-apps.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/602-debianize-kuip-helper-apps.dpatch @@ -0,0 +1,71 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 602-debianize-kuip-helper-apps.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Use Debian-specific programs for some KUIP helper apps. + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/packlib/kuip/code_kuip/kedit.c /tmp/dpep.pc4SP7/cernlib-2005.05.09/src/packlib/kuip/code_kuip/kedit.c +--- cernlib-2005.05.09/src/packlib/kuip/code_kuip/kedit.c 2005-04-18 11:40:45.000000000 -0400 ++++ /tmp/dpep.pc4SP7/cernlib-2005.05.09/src/packlib/kuip/code_kuip/kedit.c 2005-06-09 12:42:46.165208333 -0400 +@@ -686,7 +686,11 @@ + && ( strncmp( kc_value.set_host_editor, "vi ", 3 ) == 0 + || strcmp( kc_value.set_host_editor, "vi&" ) == 0 ) ) { + char *p = kc_value.set_host_editor; ++# ifdef CERNLIB_DEBIAN ++ kc_value.set_host_editor = str2dup( "x-terminal-emulator -e ", p ); ++# else + kc_value.set_host_editor = str2dup( "xterm -e ", p ); ++# endif + free( p ); + } + } +diff -urNad cernlib-2005.05.09/src/packlib/kuip/code_kuip/kuinit.c /tmp/dpep.pc4SP7/cernlib-2005.05.09/src/packlib/kuip/code_kuip/kuinit.c +--- cernlib-2005.05.09/src/packlib/kuip/code_kuip/kuinit.c 2005-06-09 12:38:30.128976378 -0400 ++++ /tmp/dpep.pc4SP7/cernlib-2005.05.09/src/packlib/kuip/code_kuip/kuinit.c 2005-06-09 12:40:39.470389223 -0400 +@@ -212,7 +212,11 @@ + host_editor = "edit"; + # endif + # else ++# ifdef CERNLIB_DEBIAN ++ host_editor = "sensible-editor"; ++# else + host_editor = "vi"; ++# endif + # endif + # ifdef APOLLO + if( kc_window.is_a_pad ) +@@ -266,7 +270,11 @@ + #ifdef vms + host_pager = "TYPE/PAGE"; + #else ++# ifdef CERNLIB_DEBIAN ++ host_pager = "sensible-pager"; ++# else + host_pager = kc_value.set_host_editor; ++# endif + #endif + } + line = str3dup( "/KUIP/SET_SHOW/HOST_PAGER '", host_pager, "'" ); +diff -urNad cernlib-2005.05.09/src/packlib/kuip/code_kuip/kuipcdf.cdf /tmp/dpep.pc4SP7/cernlib-2005.05.09/src/packlib/kuip/code_kuip/kuipcdf.cdf +--- cernlib-2005.05.09/src/packlib/kuip/code_kuip/kuipcdf.cdf 2005-06-09 12:38:30.129976188 -0400 ++++ /tmp/dpep.pc4SP7/cernlib-2005.05.09/src/packlib/kuip/code_kuip/kuipcdf.cdf 2005-06-09 12:41:45.505797517 -0400 +@@ -849,7 +849,8 @@ + . + The startup value can be defined by the environment variable 'EDITOR'. + Otherwise it is set to a system dependent default: +-'DM' (Apollo), 'EDT' (VMS), 'XEDIT' (VM/CMS), 'vi' (Unix). ++'DM' (Apollo), 'EDT' (VMS), 'XEDIT' (VM/CMS), 'vi' (Unix), ++'sensible-editor' (Debian). + >Action kxhosteditor%C + + +@@ -878,7 +879,7 @@ + 'KUIPPAGER' or 'PAGER'. + If neither of them is defined the value set by the HOST_EDITOR command + is used. +-On VAX/VMS the startup value is 'TYPE/PAGE'. ++On VAX/VMS the startup value is 'TYPE/PAGE'; on Debian it is 'sensible-pager'. + >Action kxhostpager%C + + --- cernlib-2005.05.09.dfsg.orig/debian/patches/306-patch-assert.h-for-makedepend.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/306-patch-assert.h-for-makedepend.dpatch @@ -0,0 +1,165 @@ +#! /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 */ --- cernlib-2005.05.09.dfsg.orig/debian/patches/308-use-canonical-cfortran-location.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/308-use-canonical-cfortran-location.dpatch @@ -0,0 +1,32 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 308-use-canonical-cfortran-location.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: All code compiled at Cernlib build-time should look for cfortran.h +## DP: at . + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/graflib/higz/higzcc/tkhigz.c /tmp/dpep.d3syqe/cernlib-2005.05.09/src/graflib/higz/higzcc/tkhigz.c +--- cernlib-2005.05.09/src/graflib/higz/higzcc/tkhigz.c 1996-02-14 08:10:26.000000000 -0500 ++++ /tmp/dpep.d3syqe/cernlib-2005.05.09/src/graflib/higz/higzcc/tkhigz.c 2005-06-09 13:13:22.079711057 -0400 +@@ -39,7 +39,7 @@ + * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. + */ + +-#include "higz/cfortran.h" ++#include + #if !defined(VMS) && !defined(_WINDOWS) + #include "higz/tkConfig.h" + #endif +diff -urNad cernlib-2005.05.09/src/pawlib/paw/testsuite/tuple/tuple.c /tmp/dpep.d3syqe/cernlib-2005.05.09/src/pawlib/paw/testsuite/tuple/tuple.c +--- cernlib-2005.05.09/src/pawlib/paw/testsuite/tuple/tuple.c 1996-04-17 10:46:29.000000000 -0400 ++++ /tmp/dpep.d3syqe/cernlib-2005.05.09/src/pawlib/paw/testsuite/tuple/tuple.c 2005-06-09 13:14:58.654908060 -0400 +@@ -16,7 +16,7 @@ + #include + + +-#include "cfortran.h" ++#include + + /* #include "packlib.h" */ + #include "hbook_interface.h" --- cernlib-2005.05.09.dfsg.orig/debian/patches/202-fix-includes-in-minuit-example.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/202-fix-includes-in-minuit-example.dpatch @@ -0,0 +1,21 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 202-fix-includes-in-minuit-example.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: minuit-main example should have <> instead of "" around include files. + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/cfortran/Examples/minuit-main.c /tmp/dpep.SuauEf/cernlib-2005.05.09/src/cfortran/Examples/minuit-main.c +--- cernlib-2005.05.09/src/cfortran/Examples/minuit-main.c 2001-04-18 04:56:22.000000000 -0400 ++++ /tmp/dpep.SuauEf/cernlib-2005.05.09/src/cfortran/Examples/minuit-main.c 2005-06-09 13:22:59.567224997 -0400 +@@ -15,8 +15,8 @@ + #define FCN fcn + #endif + +-#include "cfortran.h" +-#include "minuit.h" ++#include ++#include + #define Ncont 20 + int main() + { --- cernlib-2005.05.09.dfsg.orig/debian/patches/309-define-dummy-herwig-routines.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/309-define-dummy-herwig-routines.dpatch @@ -0,0 +1,66 @@ +#! /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); ++ --- cernlib-2005.05.09.dfsg.orig/debian/patches/310-define-dummy-fowl-routines.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/310-define-dummy-fowl-routines.dpatch @@ -0,0 +1,103 @@ +#! /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 --- cernlib-2005.05.09.dfsg.orig/debian/patches/203-compile-geant-with-ertrak.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/203-compile-geant-with-ertrak.dpatch @@ -0,0 +1,25 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 203-compile-geant-with-ertrak.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Ertrak code added to library in Debian since I saw no reason to exclude. + +@DPATCH@ +diff -urNad cernlib-2005.05.09.dfsg~/src/geant321/Imakefile cernlib-2005.05.09.dfsg/src/geant321/Imakefile +--- cernlib-2005.05.09.dfsg~/src/geant321/Imakefile 2005-11-23 15:41:44.798536817 +0000 ++++ cernlib-2005.05.09.dfsg/src/geant321/Imakefile 2005-11-23 15:43:39.618959247 +0000 +@@ -5,11 +5,12 @@ + AllTarget(geant321) + + /* Fluka removed from Debian source package for copyright reasons. */ ++/* Ertrak added to Debian since I saw no reason to leave it out. */ + LIBDIRS= cdf cgpack gbase gcons gdraw \ @@\ + geocad ggeom gheisha ghits ghrout ghutils giface \ @@\ + giopa gkine gphys gscan gstrag gtrak guser gxint \ @@\ +- miface miguti neutron +- ++ miface miguti neutron \ @@\ ++ erdecks erpremc matx55 + + SUBDIRS= $(LIBDIRS) data examples gxuser geant321 + --- cernlib-2005.05.09.dfsg.orig/debian/patches/204-compile-isajet-with-isasrt.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/204-compile-isajet-with-isasrt.dpatch @@ -0,0 +1,20 @@ +#! /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 \ @@\ --- cernlib-2005.05.09.dfsg.orig/debian/patches/311-skip-duplicate-qnext.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/311-skip-duplicate-qnext.dpatch @@ -0,0 +1,30 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 311-skip-duplicate-qnext.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Don't compile in redundant versions of qnext. + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/packlib/kernlib/kerngen/tcgenc/Imakefile /tmp/dpep.5v33rR/cernlib-2005.05.09/src/packlib/kernlib/kerngen/tcgenc/Imakefile +--- cernlib-2005.05.09/src/packlib/kernlib/kerngen/tcgenc/Imakefile 1998-03-05 08:17:18.000000000 -0500 ++++ /tmp/dpep.5v33rR/cernlib-2005.05.09/src/packlib/kernlib/kerngen/tcgenc/Imakefile 2005-06-09 14:28:05.755053006 -0400 +@@ -1,5 +1,6 @@ ++/* don't compile qnexte.F --Kevin*/ + SRCS_F= abend.F accessf.F exitf.F \ @@\ +- intrac.F jumpxn.F lnblnk.F locb.F locf.F qnexte.F unlinkf.F ++ intrac.F jumpxn.F lnblnk.F locb.F locf.F unlinkf.F + + #ifndef CERNLIB_OS9 + SRCS_F := $(SRCS_F) timed.F timel.F timex.F +diff -urNad cernlib-2005.05.09/src/packlib/zebra/qutil/Imakefile /tmp/dpep.5v33rR/cernlib-2005.05.09/src/packlib/zebra/qutil/Imakefile +--- cernlib-2005.05.09/src/packlib/zebra/qutil/Imakefile 1996-03-06 05:47:15.000000000 -0500 ++++ /tmp/dpep.5v33rR/cernlib-2005.05.09/src/packlib/zebra/qutil/Imakefile 2005-06-09 14:28:05.755053006 -0400 +@@ -1,6 +1,7 @@ ++/* don't compile qnext.F --Kevin*/ + SRCS_F= izbcd.F izbcdt.F izbcdv.F izchav.F izhnum.F lzbyt.F \ @@\ + lzfind.F lzfval.F lzlast.F lzlong.F nzbank.F nzfind.F nzlong.F \ @@\ +- qnext.F zhtoi.F zitoh.F zkrak.F zkrakn.F znumid.F zpress.F \ @@\ ++ zhtoi.F zitoh.F zkrak.F zkrakn.F znumid.F zpress.F \ @@\ + zshunt.F zsort.F zsorth.F zsorti.F zsorv.F zsorvh.F zsorvi.F \ @@\ + ztopsy.F + --- cernlib-2005.05.09.dfsg.orig/debian/patches/312-skip-duplicate-gamma.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/312-skip-duplicate-gamma.dpatch @@ -0,0 +1,25 @@ +#! /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 \ @@\ --- cernlib-2005.05.09.dfsg.orig/debian/patches/104-fix-undefined-insertchar-warning.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/104-fix-undefined-insertchar-warning.dpatch @@ -0,0 +1,28 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 104-fix-undefined-insertchar-warning.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Correct Lesstif warning about undefined InsertChar. + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/packlib/kuip/programs/kxterm/kuipio.c /tmp/dpep.XJ5w0K/cernlib-2005.05.09/src/packlib/kuip/programs/kxterm/kuipio.c +--- cernlib-2005.05.09/src/packlib/kuip/programs/kxterm/kuipio.c 1996-03-08 10:33:04.000000000 -0500 ++++ /tmp/dpep.XJ5w0K/cernlib-2005.05.09/src/packlib/kuip/programs/kxterm/kuipio.c 2005-06-09 14:36:52.509109480 -0400 +@@ -573,7 +573,7 @@ + EditMenu, + RES_CONVERT( XmNlabelString, "Copy" ), + RES_CONVERT( XmNmnemonic, "C" ), +- XmNaccelerator, "CtrlInsertChar", ++ XmNaccelerator, "CtrlInsert", + RES_CONVERT( XmNacceleratorText, "Ctrl+Ins" ), + NULL ); + UxPutContext( copyButton, (char *) UxKuipIoContext ); +@@ -585,7 +585,7 @@ + EditMenu, + RES_CONVERT( XmNlabelString, "Paste" ), + RES_CONVERT( XmNmnemonic, "P" ), +- XmNaccelerator, "ShiftInsertChar", ++ XmNaccelerator, "ShiftInsert", + RES_CONVERT( XmNacceleratorText, "Shift+Ins" ), + NULL ); + UxPutContext( pasteButton, (char *) UxKuipIoContext ); --- cernlib-2005.05.09.dfsg.orig/debian/patches/105-fix-obsolete-xmfontlistcreate-warning.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/105-fix-obsolete-xmfontlistcreate-warning.dpatch @@ -0,0 +1,60 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 105-fix-obsolete-xmfontlistcreate-warning.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix Lesstif warning about use of obsolete XmFontListCreate() function + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/packlib/kuip/code_motif/mkuip.c /tmp/dpep.kv7bf1/cernlib-2005.05.09/src/packlib/kuip/code_motif/mkuip.c +--- cernlib-2005.05.09/src/packlib/kuip/code_motif/mkuip.c 1996-10-24 08:13:41.000000000 -0400 ++++ /tmp/dpep.kv7bf1/cernlib-2005.05.09/src/packlib/kuip/code_motif/mkuip.c 2005-06-09 14:39:00.831812710 -0400 +@@ -776,6 +776,7 @@ + ***********************************************************************/ + static void init_data () + { ++ /* This function edited not to use obsolete function XmFontListCreate() */ + int k; + + km_charset = XmSTRING_DEFAULT_CHARSET; +@@ -792,8 +793,11 @@ + if (help_font_struct == NULL) + printf ("%s Warning: Font loaded for HELP (%s) is NULL \n", + main_prompt, srec.Help_font); +- else +- help_font = XmFontListCreate (help_font_struct,km_charset); ++ else { ++ XmFontListEntry entry = XmFontListEntryCreate( ++ km_charset, XmFONT_IS_FONT, (XtPointer)help_font_struct ); ++ help_font = XmFontListAppendEntry( NULL, entry ); ++ } + } + + /* +diff -urNad cernlib-2005.05.09/src/pawlib/paw/cmotif/att_font.c /tmp/dpep.kv7bf1/cernlib-2005.05.09/src/pawlib/paw/cmotif/att_font.c +--- cernlib-2005.05.09/src/pawlib/paw/cmotif/att_font.c 2000-10-03 10:11:22.000000000 -0400 ++++ /tmp/dpep.kv7bf1/cernlib-2005.05.09/src/pawlib/paw/cmotif/att_font.c 2005-06-09 14:39:00.803818666 -0400 +@@ -215,18 +215,22 @@ + *****************************************************************************/ + static void MajButton(Widget w, Widget font,Widget pre,int postab) + { ++ /* this function edited not to use obsolete function XmFontListCreate() */ + XmFontList police; ++ XmFontListEntry entry; + XFontStruct *info_police; + char strlabel[20]; + int prenum,policenum; +- ++ + XtVaGetValues(pre,XmNuserData,&prenum,NULL); + prenum--; + XtVaGetValues(font,XmNuserData,&policenum,NULL); + policenum--; + if (( info_police=XLoadQueryFont(UxDisplay,StrFontTab[policenum]))== NULL) + fprintf(stderr,"Unable to load font %s \n ",StrFontTab[policenum]); +- police=XmFontListCreate(info_police,XmSTRING_DEFAULT_CHARSET); ++ entry = XmFontListEntryCreate(XmSTRING_DEFAULT_CHARSET,XmFONT_IS_FONT, ++ (XtPointer)info_police); ++ police=XmFontListAppendEntry(NULL,entry); + XtVaSetValues(w,XmNfontList,police,NULL); + /* XFreeFont(UxDisplay,info_police);*/ + --- cernlib-2005.05.09.dfsg.orig/debian/patches/106-fix-paw++-menus-in-lesstif.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/106-fix-paw++-menus-in-lesstif.dpatch @@ -0,0 +1,103 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 106-fix-paw++-menus-in-lesstif.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix odd behavior of Paw++ menus when compiled against Lesstif. The +## DP: problem is that Paw++ Motif code does some awfully weird things that +## DP: Lesstif doesn't support; cf. http://bugs.debian.org/270862 . + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/packlib/kuip/code_motif/mkuip.c /tmp/dpep.KorIaA/cernlib-2005.05.09/src/packlib/kuip/code_motif/mkuip.c +--- cernlib-2005.05.09/src/packlib/kuip/code_motif/mkuip.c 2005-06-09 14:41:14.451377612 -0400 ++++ /tmp/dpep.KorIaA/cernlib-2005.05.09/src/packlib/kuip/code_motif/mkuip.c 2005-06-09 14:41:22.929573007 -0400 +@@ -1066,7 +1066,7 @@ + { + int narg; + Arg arglist[2]; +- Widget id_pdm; ++ Widget id_pdm, id_pdm_shell; + Widget PdMenu[15]; + + /* +@@ -1076,8 +1076,19 @@ + UxKuipBrowserContext = (_UxCkuipBrowser *)UxGetContext(parent); + + /* create pulldown_menu */ +- id_pdm = XmCreatePulldownMenu (browserMenu,"OptionsPdMenu",arglist,0); +- ++ id_pdm_shell = XtVaCreatePopupShell ("OptionsPdMenu_shell", ++ xmMenuShellWidgetClass, browserMenu, ++ XmNwidth, 1, ++ XmNheight, 1, ++ XmNallowShellResize, TRUE, ++ XmNoverrideRedirect, TRUE, ++ NULL ); ++ id_pdm = XtVaCreateWidget( "OptionsPdMenu", ++ xmRowColumnWidgetClass, ++ id_pdm_shell, ++ XmNrowColumnType, XmMENU_PULLDOWN, ++ NULL ); ++/* id_pdm = XmCreatePulldownMenu (browserMenu,"OptionsPdMenu",arglist,0); */ + + /* create pulldown_menu_entry "Options" */ + XtVaCreateManagedWidget( "optionsMenu", +@@ -1091,7 +1102,7 @@ + /* create list of push_buttons and separators for menu "Option" */ + /* create pulldown_menu for "Raise Window" (with list of appl. shells) */ + narg = 0; +-#if XmREVISION == 99 /* problem with REVISION 2 ! */ ++#if XmVERSION > 1 || XmREVISION >= 2 + XtSetArg(arglist[narg], XmNtearOffModel, XmTEAR_OFF_ENABLED); narg++; + #endif + kuipControlShellM = XmCreatePulldownMenu +@@ -1312,9 +1323,7 @@ + static void create_command_menu(parent) + Widget parent; + { +- Widget id_pdme, id_pdm; +- Arg arglist[2]; +- int narg; ++ Widget id_pdme, id_pdm, id_pdm_shell; + + /* + * find and restore the context for Browser +@@ -1323,12 +1332,26 @@ + UxKuipBrowserContext = (_UxCkuipBrowser *)UxGetContext(parent); + + /* create pulldown_menu_entry "Commands" for all commands */ +- narg = 0; ++ ++ id_pdm_shell = XtVaCreatePopupShell ("CommandsPdMenu_shell", ++ xmMenuShellWidgetClass, browserMenu, ++ XmNwidth, 1, ++ XmNheight, 1, ++ XmNallowShellResize, TRUE, ++ XmNoverrideRedirect, TRUE, ++ NULL ); ++ ++ id_pdm = XtVaCreateWidget( "CommandsPdMenu", ++ xmRowColumnWidgetClass, ++ id_pdm_shell, ++ XmNrowColumnType, XmMENU_PULLDOWN, + #if XmVERSION > 1 || XmREVISION >= 2 +- XtSetArg(arglist[narg], XmNtearOffModel, XmTEAR_OFF_ENABLED); narg++; ++ XmNtearOffModel, XmTEAR_OFF_ENABLED, + #endif +- id_pdm = XmCreatePulldownMenu +- (browserMenu, "CommandsPdMenu", arglist, narg); ++ NULL ); ++ ++/* XmCreatePulldownMenu ++ (browserMenu, "CommandsPdMenu", arglist, narg); */ + + id_pdme = XtVaCreateManagedWidget( "id_pdme", + xmCascadeButtonGadgetClass, browserMenu, +@@ -1927,7 +1950,7 @@ + if (kuipControlShellM != NULL) XtDestroyWidget (kuipControlShellM); + + narg = 0; +-#if XmREVISION == 99 /* problem with REVISION 2 ! */ ++#if XmVERSION > 1 || XmREVISION >= 2 + XtSetArg(arglist[narg], XmNtearOffModel, XmTEAR_OFF_ENABLED); narg++; + #endif + kuipControlShellM = XmCreatePulldownMenu --- cernlib-2005.05.09.dfsg.orig/debian/patches/107-define-strdup-macro-safely.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/107-define-strdup-macro-safely.dpatch @@ -0,0 +1,32 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 107-define-strdup-macro-safely.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: In some cases strdup() and strndup() are macros, causing a build +## DP: failure. Ensure any such macros are undefined before redeclaring them. + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/packlib/kuip/kuip/kstring.h /tmp/dpep.ieQnkg/cernlib-2005.05.09/src/packlib/kuip/kuip/kstring.h +--- cernlib-2005.05.09/src/packlib/kuip/kuip/kstring.h 1997-03-14 12:16:39.000000000 -0500 ++++ /tmp/dpep.ieQnkg/cernlib-2005.05.09/src/packlib/kuip/kuip/kstring.h 2005-06-09 14:58:22.446739916 -0400 +@@ -32,6 +32,9 @@ + + extern char* strrstr( const char* str1, const char* str2 ); + ++#ifdef strdup ++# undef strdup /* otherwise the next function declaration may bomb */ ++#endif + #define strdup Strdup /* prototype without const */ + extern char* strdup( const char* str ); + +@@ -46,6 +49,10 @@ + const char* str4 ); + extern char* str5dup( const char* str1, const char* str2, const char* str3, + const char* str4, const char* str5 ); ++ ++#ifdef strndup ++# undef strndup /* otherwise the next function declaration may bomb */ ++#endif + extern char* strndup( const char* buf, size_t n ); + extern char* stridup( int i ); + --- cernlib-2005.05.09.dfsg.orig/debian/patches/103-ignore-overly-long-macro-in-gen.h.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/103-ignore-overly-long-macro-in-gen.h.dpatch @@ -0,0 +1,24 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 103-ignore-overly-long-macro-in-gen.h.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Comment out macro in cfortran/gen.h with too many arguments for cfortran +## DP: to accept. + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/cfortran/gen.h /tmp/dpep.weQ8Dc/cernlib-2005.05.09/src/cfortran/gen.h +--- cernlib-2005.05.09/src/cfortran/gen.h 2000-06-23 06:13:58.000000000 -0400 ++++ /tmp/dpep.weQ8Dc/cernlib-2005.05.09/src/cfortran/gen.h 2005-06-09 11:43:16.729842789 -0400 +@@ -1123,10 +1123,10 @@ + + PROTOCCALLSFSUB3(NAMEZB,namezb,FLOAT,INT,INT) + #define NAMEZB(A1,A2,A3) CCALLSFSUB3(NAMEZB,namezb,FLOAT,INT,INT,A1,A2,A3) +- ++/* + PROTOCCALLSFSUB29(NEWPTQ,newptq,DOUBLE,DOUBLE,DOUBLE,DOUBLE,DOUBLE,PDOUBLE,PDOUBLE,DOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PINT,PINT) + #define NEWPTQ(A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14,A15,A16,A17,A18,A19,A20,A21,A22,A23,A24,A25,A26,A27,A28,A29) CCALLSFSUB29(NEWPTQ,newptq,DOUBLE,DOUBLE,DOUBLE,DOUBLE,DOUBLE,PDOUBLE,PDOUBLE,DOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PDOUBLE,PINT,PINT,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14,A15,A16,A17,A18,A19,A20,A21,A22,A23,A24,A25,A26,A27,A28,A29) +- ++*/ + PROTOCCALLSFSUB9(NEWRO,newro,INT,INT,INT,FLOAT,PFLOAT,FLOATV,FLOATV,FLOATV,FLOATV) + #define NEWRO(A1,A2,A3,A4,A5,A6,A7,A8,A9) CCALLSFSUB9(NEWRO,newro,INT,INT,INT,FLOAT,PFLOAT,FLOATV,FLOATV,FLOATV,FLOATV,A1,A2,A3,A4,A5,A6,A7,A8,A9) + --- cernlib-2005.05.09.dfsg.orig/debian/patches/603-trim-build-output.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/603-trim-build-output.dpatch @@ -0,0 +1,85 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 603-trim-build-output.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Trim compiler flags from build output to reduce size of logs on buildds. + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/config/fortran.rules /tmp/dpep.NZAyHH/cernlib-2005.05.09/src/config/fortran.rules +--- cernlib-2005.05.09/src/config/fortran.rules 1997-05-30 12:25:18.000000000 -0400 ++++ /tmp/dpep.NZAyHH/cernlib-2005.05.09/src/config/fortran.rules 2005-06-09 16:36:43.413985115 -0400 +@@ -137,6 +137,22 @@ + #endif + + /* ++ * PrettyPrintCmd - Execute the compiler command, but remove all -flags ++ * from the printout, in order to reduce the size of build logs. ++ * -- Kevin McCarty, for Debian. */ ++#ifndef PrettyPrintCmd ++#define PrettyPrintCmd(command)@( set -e ; \ @@\ ++ PRETTYCMD="`echo 'command' | sed -e 's/Null$qParameter//g' \ @@\ ++ -e 's/[[:space:]]-[^[:space:]]*/ /g' \ @@\ ++ -e 's/[[:space:]][^[:space:]]*\.o[[:space:]]/ /g' \ @@\ ++ -e 's/[[:space:]][^[:space:]]*\.o$$//g' \ @@\ ++ -e 's,/[^[:space:]]*/,,g' \ @@\ ++ -e 's/[[:space:]][[:space:]]*/ /g'`" ; \ @@\ ++ echo $$PRETTYCMD ; EXIT="" ; \ @@\ ++ command > /dev/null || EXIT=$$? ; [ -n "$$EXIT" ] && \ @@\ ++ echo Failing c$qommand: 'command' || true; exit $$EXIT ) ++#endif ++/* + * FortranLinkRule - link a fortran program + */ + #ifndef FortranLinkRule +@@ -291,15 +307,15 @@ + #ifndef ObjectFortranCompile + #if FortranDoesCpp + #ifdef SGIArchitecture +-#define ObjectFortranCompile(options) RemoveFile($@) @@\ ++#define ObjectFortranCompile(options) @RemoveFile($@) @@\ + sed -e "/^#[ ]*else/s/else/elif 1/" $< > s_$( /dev/null @@\ + @ sed 's=$*\.o=& $@=g' $@.tmp > $@ @@\ + @ RemoveFiles($@.tmp $@.tmp.bak) + #endif --- cernlib-2005.05.09.dfsg.orig/debian/patches/205-max-path-length-to-256.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/205-max-path-length-to-256.dpatch @@ -0,0 +1,19 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 205-max-path-length-to-256.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Set max path length to 256 in Hbook. + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/packlib/hbook/hbook/hcdire.inc /tmp/dpep.ceXWNa/cernlib-2005.05.09/src/packlib/hbook/hbook/hcdire.inc +--- cernlib-2005.05.09/src/packlib/hbook/hbook/hcdire.inc 2003-02-07 07:13:37.000000000 -0500 ++++ /tmp/dpep.ceXWNa/cernlib-2005.05.09/src/packlib/hbook/hbook/hcdire.inc 2005-06-09 15:20:49.541661646 -0400 +@@ -20,7 +20,7 @@ + * + *CMZ : 4.20/03 28/07/93 09.33.32 by Rene Brun + *-- Author : +- PARAMETER (NLPATM=100, MXFILES=50, LENHFN=128) ++ PARAMETER (NLPATM=100, MXFILES=50, LENHFN=256) + COMMON /HCDIRN/NLCDIR,NLNDIR,NLPAT,ICDIR,NCHTOP,ICHTOP(MXFILES) + + ,ICHTYP(MXFILES),ICHLUN(MXFILES) + CHARACTER*16 CHNDIR, CHCDIR, CHPAT ,CHTOP --- cernlib-2005.05.09.dfsg.orig/debian/patches/206-herwig-uses-DBLE-not-REAL.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/206-herwig-uses-DBLE-not-REAL.dpatch @@ -0,0 +1,31 @@ +#! /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 cernlib-2005.05.09/src/mclibs/herwig/code/hwhiga.F /tmp/dpep.1kYOCO/cernlib-2005.05.09/src/mclibs/herwig/code/hwhiga.F +--- cernlib-2005.05.09/src/mclibs/herwig/code/hwhiga.F 1996-12-03 09:16:56.000000000 -0500 ++++ /tmp/dpep.1kYOCO/cernlib-2005.05.09/src/mclibs/herwig/code/hwhiga.F 2005-06-09 15:22:00.263743792 -0400 +@@ -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)) + 20 TAMPR(I)=-IMAG(TAMP(I)) + C Square and add prefactors + WTGG=0.03125*FLOAT(NCOLO*(NCOLO**2-1)) +diff -urNad cernlib-2005.05.09/src/mclibs/herwig/code/hwuli2.F /tmp/dpep.1kYOCO/cernlib-2005.05.09/src/mclibs/herwig/code/hwuli2.F +--- cernlib-2005.05.09/src/mclibs/herwig/code/hwuli2.F 1996-12-03 09:17:04.000000000 -0500 ++++ /tmp/dpep.1kYOCO/cernlib-2005.05.09/src/mclibs/herwig/code/hwuli2.F 2005-06-09 15:22:00.263743792 -0400 +@@ -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) + XI=IMAG(X) + R2=XR*XR+XI*XI + IF (R2.GT.ONE.AND.(XR/R2).GT.HALF) THEN --- cernlib-2005.05.09.dfsg.orig/debian/patches/313-comis-preserves-filename-case.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/313-comis-preserves-filename-case.dpatch @@ -0,0 +1,55 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 313-comis-preserves-filename-case.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Have COMIS preserve filename case when interpreting FORTRAN code. + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/packlib/kuip/code_kuip/kuinit.c /tmp/dpep.GROFhd/cernlib-2005.05.09/src/packlib/kuip/code_kuip/kuinit.c +--- cernlib-2005.05.09/src/packlib/kuip/code_kuip/kuinit.c 2003-02-13 09:25:23.000000000 -0500 ++++ /tmp/dpep.GROFhd/cernlib-2005.05.09/src/packlib/kuip/code_kuip/kuinit.c 2005-06-09 15:24:32.751560586 -0400 +@@ -200,6 +200,14 @@ + ku_exel( "/KUIP/SET_SHOW/COLUMNS -1" ); + ku_exel( "/KUIP/SET_SHOW/DOLLAR 'ON'" ); + ++#if defined(UNIX) && (defined(WINNT) || !defined(MSDOS)) ++/* Correct the default behavior of converting filenames to lower-case ++ * on a case-sensitive operating system... Not that I'm bitter or anything. ++ * --Kevin McCarty, for Debian ++ */ ++ ku_exel( "/KUIP/SET_SHOW/FILECASE 'KEEP'" ); ++#endif ++ + host_editor = getenv( "KUIPEDITOR" ); + if( host_editor == NULL ) + host_editor = getenv( "EDITOR" ); +diff -urNad cernlib-2005.05.09/src/packlib/kuip/code_kuip/kuipcdf.cdf /tmp/dpep.GROFhd/cernlib-2005.05.09/src/packlib/kuip/code_kuip/kuipcdf.cdf +--- cernlib-2005.05.09/src/packlib/kuip/code_kuip/kuipcdf.cdf 1997-09-25 10:02:25.000000000 -0400 ++++ /tmp/dpep.GROFhd/cernlib-2005.05.09/src/packlib/kuip/code_kuip/kuipcdf.cdf 2005-06-09 15:23:49.276738602 -0400 +@@ -1064,11 +1064,12 @@ + . + This command has only an effect on Unix systems to select whether filenames + are kept as entered on the command line. +-The startup value is 'CONVERT', i.e. filenames are converted to lowercase. ++The startup value is 'KEEP', i.e. filename cases are preserved. With ++the 'CONVERT' setting, filenames are converted to lowercase. + . + On other systems filenames are always converted to uppercase. + . +-The 'RESTORE' option set the conversion mode to the value effective ++The 'RESTORE' option sets the conversion mode to the value effective + before the last FILECASE KEEP/CONVERT command. + E.g. the sequence + FILECASE KEEP; EDIT Read.Me; FILECASE RESTORE +diff -urNad cernlib-2005.05.09/src/pawlib/paw/code/pawint3.F /tmp/dpep.GROFhd/cernlib-2005.05.09/src/pawlib/paw/code/pawint3.F +--- cernlib-2005.05.09/src/pawlib/paw/code/pawint3.F 1999-05-20 03:37:18.000000000 -0400 ++++ /tmp/dpep.GROFhd/cernlib-2005.05.09/src/pawlib/paw/code/pawint3.F 2005-06-09 15:23:49.276738602 -0400 +@@ -140,7 +140,7 @@ + CHUTIT = ' ' + * + IF (IPIAF.EQ.0) THEN +- CALL KUOPEN(10,'PAW.METAFILE','UNKNOWN',ISTAT) ++ CALL KUOPEN(10,'paw.metafile','UNKNOWN',ISTAT) + #if (defined(CERNLIB_IBM))&&(!defined(CERNLIB_IBMMVS)) + CALL HERMES(19) + CALL VMCMS('FILEDEF 19 DISK GKSERROR OUTPUT A',IRET) --- cernlib-2005.05.09.dfsg.orig/debian/patches/108-quote-protect-comis-script.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/108-quote-protect-comis-script.dpatch @@ -0,0 +1,28 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 108-quote-protect-comis-script.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/pawlib/comis/code/cscrexec.F /tmp/dpep.tIRzzG/cernlib-2005.05.09/src/pawlib/comis/code/cscrexec.F +--- cernlib-2005.05.09/src/pawlib/comis/code/cscrexec.F 2000-09-25 10:16:36.000000000 -0400 ++++ /tmp/dpep.tIRzzG/cernlib-2005.05.09/src/pawlib/comis/code/cscrexec.F 2005-06-09 15:41:16.757077306 -0400 +@@ -70,7 +70,7 @@ + LEXEC=LENOCC(FEXEC) + OPEN(LUNOUT,FILE=FEXEC(:LEXEC), STATUS='UNKNOWN',ERR=99) + WRITE(LUNOUT,'(A)') '#!/bin/sh' +- WRITE(LUNOUT,'(A)') 'olddir=`pwd`' ++ WRITE(LUNOUT,'(A)') 'olddir="`pwd`"' + * WRITE(LUNOUT,'(A)') 'cd '//CHPATH(:LPATH) + CHLINE= 'cd '//CHPATH(:LPATH) + L=LENOCC(CHLINE) +@@ -206,7 +206,7 @@ + CHLINE= '/bin/rm -f '//NAME(:LN)//'.o' + L=LENOCC(CHLINE) + WRITE(LUNOUT,'(A)')CHLINE(:L) +- WRITE(LUNOUT,'(A)') 'cd $olddir' ++ WRITE(LUNOUT,'(A)') 'cd "$olddir"' + WRITE(LUNOUT,'(A)') 'exit 0' + CALL CSCLOS(LUNOUT) + CLOSE(LUNOUT) --- cernlib-2005.05.09.dfsg.orig/debian/patches/207-compile-temp-libs-with-fPIC.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/207-compile-temp-libs-with-fPIC.dpatch @@ -0,0 +1,36 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 207-compile-temp-libs-with-fPIC.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Compile temporary COMIS libraries with -fPIC for non-x86 arches. + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/pawlib/comis/code/cscrexec.F /tmp/dpep.srSRmd/cernlib-2005.05.09/src/pawlib/comis/code/cscrexec.F +--- cernlib-2005.05.09/src/pawlib/comis/code/cscrexec.F 2000-09-25 10:16:36.000000000 -0400 ++++ /tmp/dpep.srSRmd/cernlib-2005.05.09/src/pawlib/comis/code/cscrexec.F 2005-06-09 15:47:44.859676286 -0400 +@@ -81,12 +81,12 @@ + WRITE(LUNOUT,'(A)')CHLINE(:L) + IF(FEXT.EQ.'.c')THEN + L=LENOCC(CHCC) +-* 'cc -c .... name.c' +- CHLINE=CHCC(:L)//' '//NAME(:LN)// '.c' ++* 'cc -c .... -fPIC name.c' ++ CHLINE=CHCC(:L)//' -fPIC '//NAME(:LN)// '.c' + ELSE + L=LENOCC(CHF77) +-* 'f77 -c .... name.f' +- CHLINE=CHF77(:L)//' '//NAME(:LN)// '.f' ++* 'f77 -c .... -fPIC name.f' ++ CHLINE=CHF77(:L)//' -fPIC '//NAME(:LN)// '.f' + ENDIF + L=LENOCC(CHLINE) + WRITE(LUNOUT,'(A)')CHLINE(:L) +@@ -176,7 +176,7 @@ + ENDIF + #endif + #if defined(CERNLIB_LINUX) +- CHLINE= 'ld -shared -o ' ++ CHLINE= 'g77 -shared -o ' + + // NAME(:LN) //'.sl '// NAME(:LN) //'.o' + #endif + #if defined(CERNLIB_ALPHA_OSF) --- cernlib-2005.05.09.dfsg.orig/debian/patches/314-permit-using-regcomp-for-re_comp.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/314-permit-using-regcomp-for-re_comp.dpatch @@ -0,0 +1,80 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 314-permit-using-regcomp-for-re_comp.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Add a possibility to use regcomp() instead of re_comp() (selected at +## DP: compile time) + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/packlib/kuip/code_motif/kmfile.c /tmp/dpep.OUDE1M/cernlib-2005.05.09/src/packlib/kuip/code_motif/kmfile.c +--- cernlib-2005.05.09/src/packlib/kuip/code_motif/kmfile.c 1996-03-08 10:33:08.000000000 -0500 ++++ /tmp/dpep.OUDE1M/cernlib-2005.05.09/src/packlib/kuip/code_motif/kmfile.c 2005-06-09 15:49:30.689188356 -0400 +@@ -18,6 +18,11 @@ + #include "kuip/mkutfu.h" + #include "mkutda.h" + ++#ifdef MATCH_REGCOMP ++#include ++#include /* for regex_t */ ++#endif ++ + static char **ftype_list = NULL; + static char **class_list = NULL; + static char **stext_list = NULL; +@@ -92,8 +97,12 @@ + DIR *dirp; + struct dirent *dp; + char *pattern; ++#ifdef MATCH_REGCOMP ++ regex_t *re = (regex_t *)malloc( sizeof(regex_t) ); ++#else + char *re; + #endif ++#endif + struct stat filestatus; + + ndlist = 0; +@@ -221,11 +230,15 @@ + } + } + pattern = mstrcat( pattern, "$" ); ++#ifdef MATCH_REGCOMP ++ regcomp( re, pattern, REG_NEWLINE ); ++#else + #ifdef MATCH_RE_COMP + re = re_comp( pattern ); + #else + re = regcmp( pattern, NULL ); + #endif ++#endif + free( pattern ); + + /* +@@ -260,12 +273,16 @@ + } + else if( (filestatus.st_mode & S_IFMT) == S_IFREG ) { + /* regular file: match name against regexp */ ++#ifdef MATCH_REGCOMP ++ int match = (regexec( re, dp->d_name, 0, NULL, 0 ) == 0); ++#else + #ifdef MATCH_RE_COMP + int match = re_exec( dp->d_name ); + #else + int match = (regex( re, dp->d_name ) != NULL); + #endif +- if( match == 1 ) { ++#endif ++ if( match ) { + filelist = (char**)realloc( (char*)filelist, + (nflist+1) * sizeof(char*) ); + filelist[nflist] = strdup( dp->d_name ); +@@ -276,6 +293,9 @@ + closedir( dirp ); + } + ++#ifdef MATCH_REGCOMP ++ regfree( re ); ++#endif + #ifndef MATCH_RE_COMP + free( re ); + #endif --- cernlib-2005.05.09.dfsg.orig/debian/patches/802-create-shared-libraries.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/802-create-shared-libraries.dpatch @@ -0,0 +1,228 @@ +#! /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 +@@ -2,7 +2,7 @@ + #define PassCDebugFlags + + +-LIBDIRS= kernlib packlib code_motif pawlib paw_motif graflib mathlib geant321 mclibs phtools ++LIBDIRS= kernlib packlib mathlib graflib code_motif mclibs phtools pawlib paw_motif geant321 + + SUBDIRS= $(LIBDIRS) patchy cfortran + +@@ -15,6 +15,7 @@ + #endif + + InstallLibSubdirs($(LIBDIRS)) ++InstallSharedLibSubdirs($(LIBDIRS)) + + INCLUDEDIRS= $(LIBDIRS) cfortran + +diff -urNad cernlib-2005.05.09.dfsg~/src/code_motif/Imakefile cernlib-2005.05.09.dfsg/src/code_motif/Imakefile +--- cernlib-2005.05.09.dfsg~/src/code_motif/Imakefile 2005-12-01 15:19:24.062295137 +0000 ++++ cernlib-2005.05.09.dfsg/src/code_motif/Imakefile 2005-12-01 15:19:31.186783665 +0000 +@@ -31,3 +31,4 @@ + SubdirLibraryTarget(packlib-lesstif,NullParameter) + + InstallLibrary(packlib-lesstif,$(CERN_LIBDIR)) ++InstallSharedLibrary(packlib-lesstif,$(LIB_SONAME).$(CERN_LEVEL),$(CERN_SHLIBDIR)) +diff -urNad cernlib-2005.05.09.dfsg~/src/geant321/Imakefile cernlib-2005.05.09.dfsg/src/geant321/Imakefile +--- cernlib-2005.05.09.dfsg~/src/geant321/Imakefile 2005-12-01 15:19:23.018516575 +0000 ++++ cernlib-2005.05.09.dfsg/src/geant321/Imakefile 2005-12-01 15:19:31.186783665 +0000 +@@ -26,6 +26,7 @@ + + InstallLibrary(geant321,$(CERN_LIBDIR)) + InstallLibraryAlias(geant321,geant,$(CERN_LIBDIR)) ++InstallSharedLibrary(geant321,$(LIB_SONAME).$(CERN_LEVEL),$(CERN_SHLIBDIR)) + + /* Fluka removed from Debian source package for copyright reasons. */ + /* +diff -urNad cernlib-2005.05.09.dfsg~/src/geant321/gparal/Imakefile cernlib-2005.05.09.dfsg/src/geant321/gparal/Imakefile +--- cernlib-2005.05.09.dfsg~/src/geant321/gparal/Imakefile 1996-12-19 14:19:18.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/geant321/gparal/Imakefile 2005-12-01 15:19:31.186783665 +0000 +@@ -10,6 +10,7 @@ + SubdirLibraryTarget(geant321_parallel,NullParameter) + + InstallLibrary(geant321_parallel,$(CERN_LIBDIR)) ++InstallSharedLibrary(geant321_parallel,$(LIB_SONAME).$(CERN_LEVEL),$(CERN_SHLIBDIR)) + + CopyFile(../gbase/grun.F,grun.F) + +diff -urNad cernlib-2005.05.09.dfsg~/src/graflib/Imakefile cernlib-2005.05.09.dfsg/src/graflib/Imakefile +--- cernlib-2005.05.09.dfsg~/src/graflib/Imakefile 2001-12-11 15:06:28.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/graflib/Imakefile 2005-12-01 15:19:31.186783665 +0000 +@@ -11,9 +11,12 @@ + + SubdirLibraryTarget(graflib,$(LIBDIRS)) + +-InstallLibrary(graflib,$(CERN_LIBDIR)) +- + InstallLibSubdirs(higz) ++InstallSharedLibSubdirs(higz) ++ ++/* these lines follow the above because graflib depends on grafX11 */ ++InstallLibrary(graflib,$(CERN_LIBDIR)) ++InstallSharedLibrary(graflib,$(LIB_SONAME).$(CERN_LEVEL),$(CERN_SHLIBDIR)) + + TestSubdirs(higz) + +diff -urNad cernlib-2005.05.09.dfsg~/src/graflib/higz/Imakefile cernlib-2005.05.09.dfsg/src/graflib/higz/Imakefile +--- cernlib-2005.05.09.dfsg~/src/graflib/higz/Imakefile 1997-09-02 13:34:47.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/graflib/higz/Imakefile 2005-12-01 15:19:31.186783665 +0000 +@@ -13,6 +13,7 @@ + SubdirLibraryTarget(grafX11,$(LIBDIRS)) + + InstallLibrary(grafX11,$(CERN_LIBDIR)) ++InstallSharedLibrary(grafX11,$(LIB_SONAME).$(CERN_LEVEL),$(CERN_SHLIBDIR)) + + TestSubdirs(examples) + +diff -urNad cernlib-2005.05.09.dfsg~/src/kernlib/Imakefile cernlib-2005.05.09.dfsg/src/kernlib/Imakefile +--- cernlib-2005.05.09.dfsg~/src/kernlib/Imakefile 2002-04-26 14:37:20.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/kernlib/Imakefile 2005-12-01 15:19:31.187783453 +0000 +@@ -14,6 +14,7 @@ + + InstallLibrary(kernlib,$(CERN_LIBDIR)) + InstallLibraryAlias(kernlib,kernlib-shift,$(CERN_LIBDIR)) ++InstallSharedLibrary(kernlib,$(LIB_SONAME).$(CERN_LEVEL),$(CERN_SHLIBDIR)) + + test:: LibraryTargetName(kernlib) + +diff -urNad cernlib-2005.05.09.dfsg~/src/mathlib/Imakefile cernlib-2005.05.09.dfsg/src/mathlib/Imakefile +--- cernlib-2005.05.09.dfsg~/src/mathlib/Imakefile 2005-12-01 15:19:24.005307227 +0000 ++++ cernlib-2005.05.09.dfsg/src/mathlib/Imakefile 2005-12-01 15:19:31.187783453 +0000 +@@ -19,6 +19,7 @@ + SubdirLibraryTarget(mathlib,$(LIBDIRS)) + + InstallLibrary(mathlib,$(CERN_LIBDIR)) ++InstallSharedLibrary(mathlib,$(LIB_SONAME).$(CERN_LEVEL),$(CERN_SHLIBDIR)) + + InstallIncludeSubdirs($(LIBDIRS)) + +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/packlib/Imakefile cernlib-2005.05.09.dfsg/src/packlib/Imakefile +--- cernlib-2005.05.09.dfsg~/src/packlib/Imakefile 2005-12-01 15:19:23.885332680 +0000 ++++ cernlib-2005.05.09.dfsg/src/packlib/Imakefile 2005-12-01 15:19:31.188783241 +0000 +@@ -14,6 +14,7 @@ + + InstallLibrary(packlib,$(CERN_LIBDIR)) + InstallLibraryAlias(packlib,packlib-shift,$(CERN_LIBDIR)) ++InstallSharedLibrary(packlib,$(LIB_SONAME).$(CERN_LEVEL),$(CERN_SHLIBDIR)) + + TestSubdirs($(LIBDIRS)) + +diff -urNad cernlib-2005.05.09.dfsg~/src/paw_motif/Imakefile cernlib-2005.05.09.dfsg/src/paw_motif/Imakefile +--- cernlib-2005.05.09.dfsg~/src/paw_motif/Imakefile 2005-12-01 15:19:24.192267563 +0000 ++++ cernlib-2005.05.09.dfsg/src/paw_motif/Imakefile 2005-12-01 15:19:31.188783241 +0000 +@@ -30,4 +30,5 @@ + SubdirLibraryTarget(pawlib-lesstif,$(LIBDIRS)) + + InstallLibrary(pawlib-lesstif,$(CERN_LIBDIR)) ++InstallSharedLibrary(pawlib-lesstif,$(LIB_SONAME).$(CERN_LEVEL),$(CERN_SHLIBDIR)) + +diff -urNad cernlib-2005.05.09.dfsg~/src/pawlib/Imakefile cernlib-2005.05.09.dfsg/src/pawlib/Imakefile +--- cernlib-2005.05.09.dfsg~/src/pawlib/Imakefile 1996-10-01 14:12:23.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/pawlib/Imakefile 2005-12-01 15:19:31.188783241 +0000 +@@ -11,6 +11,7 @@ + SubdirLibraryTarget(pawlib,$(LIBDIRS)) + + InstallLibrary(pawlib,$(CERN_LIBDIR)) ++InstallSharedLibrary(pawlib,$(LIB_SONAME).$(CERN_LEVEL),$(CERN_SHLIBDIR)) + + InstallIncludeSubdirs($(LIBDIRS)) + +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) + --- cernlib-2005.05.09.dfsg.orig/debian/patches/801-non-optimized-rule-uses-fPIC-g.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/801-non-optimized-rule-uses-fPIC-g.dpatch @@ -0,0 +1,52 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 801-non-optimized-rule-uses-fPIC-g.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Ensure that special rules for creating non-optimized object files +## DP: use -fPIC for files that go into shared libs, and -g for all files. + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/config/fortran.rules /tmp/dpep.gResDB/cernlib-2005.05.09/src/config/fortran.rules +--- cernlib-2005.05.09/src/config/fortran.rules 1997-05-30 12:25:18.000000000 -0400 ++++ /tmp/dpep.gResDB/cernlib-2005.05.09/src/config/fortran.rules 2005-06-09 10:37:19.092244331 -0400 +@@ -345,9 +345,9 @@ + + #ifndef SpecialFortranLibObjectRule + #define SpecialFortranLibObjectRule(baseobj,basedep,options,cppoptions) @@\ +-SpecialFortranArchiveObjectRule(baseobj,basedep,options,cppoptions) @@\ +-SpecialFortranSharedObjectRule(baseobj,basedep,options,cppoptions) @@\ +-SpecialFortranDebugObjectRule(baseobj,basedep,options,cppoptions) ++SpecialFortranArchiveObjectRule(baseobj,basedep,options -g,cppoptions) @@\ ++SpecialFortranSharedObjectRule(baseobj,basedep,options -g -fPIC,cppoptions) @@\ ++SpecialFortranDebugObjectRule(baseobj,basedep,options -g,cppoptions) + #endif + + #ifndef SpecialFortranArchiveObjectRule +diff -urNad cernlib-2005.05.09/src/paw_motif/fmotif/Imakefile /tmp/dpep.gResDB/cernlib-2005.05.09/src/paw_motif/fmotif/Imakefile +--- cernlib-2005.05.09/src/paw_motif/fmotif/Imakefile 1996-09-23 10:20:46.000000000 -0400 ++++ /tmp/dpep.gResDB/cernlib-2005.05.09/src/paw_motif/fmotif/Imakefile 2005-06-09 10:37:55.631538119 -0400 +@@ -3,7 +3,7 @@ + plotisto.F pmhist.F pminit.F show_chain.F + + #ifdef CERNLIB_LINUX +-FORTRANOPTIONS = -fno-backslash $(FORTRANSAVEOPTION) -fno-second-underscore ++FORTRANOPTIONS = -g -fno-backslash $(FORTRANSAVEOPTION) -fno-second-underscore + #endif + + SubdirLibraryTarget(NullParameter,NullParameter) +diff -urNad cernlib-2005.05.09/src/pawlib/paw/ntuple/Imakefile /tmp/dpep.gResDB/cernlib-2005.05.09/src/pawlib/paw/ntuple/Imakefile +--- cernlib-2005.05.09/src/pawlib/paw/ntuple/Imakefile 1999-09-14 05:20:08.000000000 -0400 ++++ /tmp/dpep.gResDB/cernlib-2005.05.09/src/pawlib/paw/ntuple/Imakefile 2005-06-09 10:40:47.421285771 -0400 +@@ -46,8 +46,8 @@ + + SubdirLibraryTarget(NullParameter,NullParameter) + +-#if defined(CERNLIB_LINUX) && defined(CERNLIB_POWERPC) +-SpecialObjectRule(archive/qp_execute.o,qp_execute.c archive/qp_execute.d,-O0 -o $@) +-SpecialObjectRule(debug/qp_execute.o,qp_execute.c debug/qp_execute.d,-O0 -o $@) +-SpecialObjectRule(shared/qp_execute.o,qp_execute.c shared/qp_execute.d,-O0 -o $@) ++#if defined(CERNLIB_LINUX) ++SpecialObjectRule(archive/qp_execute.o,qp_execute.c archive/qp_execute.d,-O0 -g -o $@) ++SpecialObjectRule(debug/qp_execute.o,qp_execute.c debug/qp_execute.d,-O0 -g -o $@) ++SpecialObjectRule(shared/qp_execute.o,qp_execute.c shared/qp_execute.d,-O0 -g -fPIC -o $@) + #endif --- cernlib-2005.05.09.dfsg.orig/debian/patches/803-link-binaries-dynamically.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/803-link-binaries-dynamically.dpatch @@ -0,0 +1,88 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 803-link-binaries-dynamically.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Link binaries dynamically against Cern libraries. + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/config/fortran.rules /tmp/dpep.E9pQlc/cernlib-2005.05.09/src/config/fortran.rules +--- cernlib-2005.05.09/src/config/fortran.rules 2005-06-13 15:26:19.991403858 -0400 ++++ /tmp/dpep.E9pQlc/cernlib-2005.05.09/src/config/fortran.rules 2005-06-13 15:26:23.699609849 -0400 +@@ -189,13 +189,13 @@ + */ + #ifndef CernlibDependLibrary + #define CernlibDependLibrary(cernlibs)\ +-$(filter-out +%,$(filter-out -%,$(shell cernlib cernlibs))) ++$(filter-out +%,$(filter-out -%,$(shell cernlib -dy cernlibs))) + #endif + + /* Helper to use cernlib command + */ + #ifndef CernlibCmd +-#define CernlibCmd(libraries)cernlib libraries ++#define CernlibCmd(libraries)cernlib -dy libraries + #endif + /* + * CernlibFortranProgramTarget - rule to link fortran program using +@@ -207,7 +207,7 @@ + ProgramTargetName(program): SetWin32ObjSuffix(objects) deplibs CernlibDependLibrary(cernlibs) @@\ + RemoveTargetProgram($@) @@\ + @echo "Linking with cern libraries" @@\ +- @cernlib cernlibs @@\ ++ @cernlib -dy cernlibs @@\ + CernlibFortranLinkRule($@,$(FCLDOPTIONS),objects,locallibs $(LDLIBS),CernlibCmd(cernlibs)) @@\ + @@\ + clean:: @@\ +@@ -233,8 +233,8 @@ + ProgramTargetName(program): objects deplibs CernlibDependLibrary(cernlibs) @@\ + RemoveTargetProgram($@) @@\ + @echo "Linking with cern libraries" @@\ +- @cernlib cernlibs @@\ +- CernlibLinkRule($@,$(LDOPTIONS),objects,locallibs $(LDLIBS),cernlib cernlibs) @@\ ++ @cernlib -dy cernlibs @@\ ++ CernlibLinkRule($@,$(LDOPTIONS),objects,locallibs $(LDLIBS),cernlib -dy cernlibs) @@\ + @@\ + clean:: @@\ + RemoveFile(ProgramTargetName(program)) @@\ +diff -urNad cernlib-2005.05.09/src/packlib/kuip/programs/kxterm/Imakefile /tmp/dpep.E9pQlc/cernlib-2005.05.09/src/packlib/kuip/programs/kxterm/Imakefile +--- cernlib-2005.05.09/src/packlib/kuip/programs/kxterm/Imakefile 2005-06-13 15:26:18.903636773 -0400 ++++ /tmp/dpep.E9pQlc/cernlib-2005.05.09/src/packlib/kuip/programs/kxterm/Imakefile 2005-06-13 15:26:23.699609849 -0400 +@@ -13,14 +13,14 @@ + DefinePackageLibrary(kxtlib) + + #if defined(CERNLIB_UNIX) +-CLIBS= -G Motif kernlib ++CLIBS= -G Motif Xm + #endif + + #if defined(CERNLIB_VAXVMS) +-CLIBS= graflib/motif packlib kernlib ++CLIBS= -G Motif Xm + #endif + + +-CernlibCcProgramTarget(kxterm,kxterm.o,libkxtlib.a,libkxtlib.a,$(CLIBS)) ++CernlibFortranProgramTarget(kxterm,kxterm.o,libkxtlib.a,libkxtlib.a,$(CLIBS)) + + InstallProgram(kxterm,$(CERN_BINDIR)) +diff -urNad cernlib-2005.05.09/src/pawlib/paw/programs/Imakefile /tmp/dpep.E9pQlc/cernlib-2005.05.09/src/pawlib/paw/programs/Imakefile +--- cernlib-2005.05.09/src/pawlib/paw/programs/Imakefile 2005-06-13 15:26:19.418526524 -0400 ++++ /tmp/dpep.E9pQlc/cernlib-2005.05.09/src/pawlib/paw/programs/Imakefile 2005-06-13 15:27:38.102678258 -0400 +@@ -20,7 +20,7 @@ + InstallScript(paw,$(CERN_BINDIR)) + + #if defined (CERNLIB_UNIX) && !defined(CERNLIB_WINNT) +-CernlibFortranProgramTarget(pawX11,0pamain.o,NullParameter,NullParameter,pawlib graflib/X11 packlib mathlib kernlib) ++CernlibFortranProgramTarget(pawX11,0pamain.o,NullParameter,NullParameter,-G X11 pawlib) + + InstallProgram(pawX11,$(CERN_BINDIR)) + +@@ -34,7 +34,7 @@ + /* This is a gmake ifeq, not a Imake/cpp #if... ! */ + ifeq ($(DO_PAW_PP),YES) + +-CernlibFortranProgramTarget(paw++,0pamainm.o,NullParameter,NullParameter,pawlib graflib/Motif packlib mathlib kernlib) ++CernlibFortranProgramTarget(paw++,0pamainm.o,NullParameter,NullParameter,-G Motif pawlib) + + InstallProgram(paw++,$(CERN_BINDIR)) + --- cernlib-2005.05.09.dfsg.orig/debian/patches/110-ignore-included-lapack-rule.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/110-ignore-included-lapack-rule.dpatch @@ -0,0 +1,23 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 110-ignore-included-lapack-rule.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Comment out rule requiring liblapack in a subdirectory of mathlib code. + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/mathlib/Imakefile /tmp/dpep.Ib8j9x/cernlib-2005.05.09/src/mathlib/Imakefile +--- cernlib-2005.05.09/src/mathlib/Imakefile 1999-11-09 12:07:49.000000000 -0500 ++++ /tmp/dpep.Ib8j9x/cernlib-2005.05.09/src/mathlib/Imakefile 2005-06-10 11:24:47.771309475 -0400 +@@ -5,9 +5,12 @@ + + LIBDIRS= gen bvsl + ++/* Lapack is independent of Cernlib and should be installed as one of ++ the build dependencies. + #ifndef WIN32 + LIBDIRS := $(LIBDIRS) lapack + #endif ++*/ + + SUBDIRS= $(LIBDIRS) + --- cernlib-2005.05.09.dfsg.orig/debian/patches/208-fix-redundant-packlib-dependencies.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/208-fix-redundant-packlib-dependencies.dpatch @@ -0,0 +1,79 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 208-fix-redundant-packlib-dependencies.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Remove some redundancy in the libraries listed to be linked against. + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/graflib/dzdoc/dzedit/Imakefile /tmp/dpep.ZL6s2h/cernlib-2005.05.09/src/graflib/dzdoc/dzedit/Imakefile +--- cernlib-2005.05.09/src/graflib/dzdoc/dzedit/Imakefile 1996-05-09 10:32:43.000000000 -0400 ++++ /tmp/dpep.ZL6s2h/cernlib-2005.05.09/src/graflib/dzdoc/dzedit/Imakefile 2005-06-10 11:54:49.270360036 -0400 +@@ -20,7 +20,7 @@ + NeedTcpipLib + #endif + +-CernlibFortranProgramTarget(dzeX11,dzedit.o,$(PACKAGE_LIB),$(PACKAGE_LIB),graflib/X11 packlib) ++CernlibFortranProgramTarget(dzeX11,dzedit.o,libdzdoc.a,libdzdoc.a,graflib/X11 packlib) + + InstallProgram(dzeX11,$(CERN_BINDIR)) + InstallScript(dzedit,$(CERN_BINDIR)) +diff -urNad cernlib-2005.05.09/src/packlib/cspack/programs/zftp/Imakefile /tmp/dpep.ZL6s2h/cernlib-2005.05.09/src/packlib/cspack/programs/zftp/Imakefile +--- cernlib-2005.05.09/src/packlib/cspack/programs/zftp/Imakefile 1996-04-16 04:09:49.000000000 -0400 ++++ /tmp/dpep.ZL6s2h/cernlib-2005.05.09/src/packlib/cspack/programs/zftp/Imakefile 2005-06-10 11:55:33.872780414 -0400 +@@ -14,6 +14,6 @@ + + NeedTcpipLib + +-CernlibFortranProgramTarget(zftp,zftp.o,$(PACKAGE_LIB),$(PACKAGE_LIB),packlib) ++CernlibFortranProgramTarget(zftp,zftp.o,libzftplib.a,libzftplib.a,packlib) + + InstallProgram(zftp,$(CERN_BINDIR)) +diff -urNad cernlib-2005.05.09/src/packlib/cspack/programs/zs/Imakefile /tmp/dpep.ZL6s2h/cernlib-2005.05.09/src/packlib/cspack/programs/zs/Imakefile +--- cernlib-2005.05.09/src/packlib/cspack/programs/zs/Imakefile 1996-05-05 05:40:20.000000000 -0400 ++++ /tmp/dpep.ZL6s2h/cernlib-2005.05.09/src/packlib/cspack/programs/zs/Imakefile 2005-06-10 11:56:23.109221943 -0400 +@@ -31,10 +31,10 @@ + + DefinePackageLibrary(zservlib) + +-CernlibFortranProgramTarget(zserv,zs.o,$(PACKAGE_LIB),$(PACKAGE_LIB),packlib) ++CernlibFortranProgramTarget(zserv,zs.o,libzservlib.a,libzservlib.a,packlib) + + InstallProgram(zserv,$(CERN_BINDIR)) + +-CernlibFortranProgramTarget(pawserv,zs.o,$(PACKAGE_LIB),$(PACKAGE_LIB),packlib) ++CernlibFortranProgramTarget(pawserv,zs.o,libzservlib.a,libzservlib.a,packlib) + + InstallProgram(pawserv,$(CERN_BINDIR)) +diff -urNad cernlib-2005.05.09/src/packlib/fatmen/programs/fmkuip/Imakefile /tmp/dpep.ZL6s2h/cernlib-2005.05.09/src/packlib/fatmen/programs/fmkuip/Imakefile +--- cernlib-2005.05.09/src/packlib/fatmen/programs/fmkuip/Imakefile 1996-11-05 04:32:29.000000000 -0500 ++++ /tmp/dpep.ZL6s2h/cernlib-2005.05.09/src/packlib/fatmen/programs/fmkuip/Imakefile 2005-06-10 11:56:54.779438847 -0400 +@@ -28,6 +28,6 @@ + NeedSysexe + #endif + +-CernlibFortranProgramTarget(fatmen,fatmen.o,$(PACKAGE_LIB),$(PACKAGE_LIB),packlib) ++CernlibFortranProgramTarget(fatmen,fatmen.o,libfmkuip.a,libfmkuip.a,packlib) + + InstallProgram(fatmen,$(CERN_BINDIR)) +diff -urNad cernlib-2005.05.09/src/packlib/hepdb/programs/hepdb/Imakefile /tmp/dpep.ZL6s2h/cernlib-2005.05.09/src/packlib/hepdb/programs/hepdb/Imakefile +--- cernlib-2005.05.09/src/packlib/hepdb/programs/hepdb/Imakefile 1996-04-02 05:03:43.000000000 -0500 ++++ /tmp/dpep.ZL6s2h/cernlib-2005.05.09/src/packlib/hepdb/programs/hepdb/Imakefile 2005-06-10 11:57:39.794807919 -0400 +@@ -17,6 +17,6 @@ + SpecialFortranObjectRule(hepdb,hepdb,'-WF,-P',NullParameter) + #endif + +-CernlibFortranProgramTarget(hepdb,hepdb.o,$(PACKAGE_LIB),$(PACKAGE_LIB),packlib) ++CernlibFortranProgramTarget(hepdb,hepdb.o,libdbmodule.a,libdbmodule.a,packlib) + + InstallProgram(hepdb,$(CERN_BINDIR)) +diff -urNad cernlib-2005.05.09/src/packlib/kuip/programs/kxterm/Imakefile /tmp/dpep.ZL6s2h/cernlib-2005.05.09/src/packlib/kuip/programs/kxterm/Imakefile +--- cernlib-2005.05.09/src/packlib/kuip/programs/kxterm/Imakefile 1996-04-18 12:33:08.000000000 -0400 ++++ /tmp/dpep.ZL6s2h/cernlib-2005.05.09/src/packlib/kuip/programs/kxterm/Imakefile 2005-06-10 12:00:35.355791756 -0400 +@@ -21,6 +21,6 @@ + #endif + + +-CernlibCcProgramTarget(kxterm,kxterm.o,$(PACKAGE_LIB),$(PACKAGE_LIB),$(CLIBS)) ++CernlibCcProgramTarget(kxterm,kxterm.o,libkxtlib.a,libkxtlib.a,$(CLIBS)) + + InstallProgram(kxterm,$(CERN_BINDIR)) --- cernlib-2005.05.09.dfsg.orig/debian/patches/111-fix-kuesvr-install-location.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/111-fix-kuesvr-install-location.dpatch @@ -0,0 +1,16 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 111-fix-kuesvr-install-location.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix install location of kuesvr binary. + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/packlib/kuip/programs/kuesvr/Imakefile /tmp/dpep.ZmakmH/cernlib-2005.05.09/src/packlib/kuip/programs/kuesvr/Imakefile +--- cernlib-2005.05.09/src/packlib/kuip/programs/kuesvr/Imakefile 1996-03-11 10:43:22.000000000 -0500 ++++ /tmp/dpep.ZmakmH/cernlib-2005.05.09/src/packlib/kuip/programs/kuesvr/Imakefile 2005-06-10 12:03:32.706178628 -0400 +@@ -1,4 +1,4 @@ + + NormalProgramTarget(kuesvr,kuesvr.o,NullParameter,NullParameter,NullParameter) + +-InstallProgram(kuesvr,$(CERN)/$(CERN_LEVEL)/bin) ++InstallProgram(kuesvr,$(CERN_BINDIR)) --- cernlib-2005.05.09.dfsg.orig/debian/patches/209-ignore-unneeded-headers-in-kmutil.c.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/209-ignore-unneeded-headers-in-kmutil.c.dpatch @@ -0,0 +1,27 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 209-ignore-unneeded-headers-in-kmutil.c.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Comment out header files not actually needed in kmutil.c. +## DP: (This will be helpful when we move this file elsewhere to be part of +## DP: the Lesstif-dependent library split out from packlib.) + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/packlib/kuip/code_motif/kmutil.c /tmp/dpep.BncUU7/cernlib-2005.05.09/src/packlib/kuip/code_motif/kmutil.c +--- cernlib-2005.05.09/src/packlib/kuip/code_motif/kmutil.c 1996-03-08 10:33:09.000000000 -0500 ++++ /tmp/dpep.BncUU7/cernlib-2005.05.09/src/packlib/kuip/code_motif/kmutil.c 2005-06-10 12:06:07.198547576 -0400 +@@ -20,12 +20,13 @@ + /******************************************************************************/ + + #include "kuip/kuip.h" ++/* commented out, since this file doesn't need these includes. --Kevin McCarty + #include "kuip/kfor.h" + #include "kuip/kmenu.h" + + #include "mkutda.h" + #include "kuip/mkutfu.h" +- ++*/ + + /*********************************************************************** + * * --- cernlib-2005.05.09.dfsg.orig/debian/patches/600-support-deb-build-options.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/600-support-deb-build-options.dpatch @@ -0,0 +1,31 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 600-support-deb-build-options.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Add stubs to .cf files where $DEB_BUILD_OPTIONS can be implemented. + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/config/linux.cf /tmp/dpep.68wCAR/cernlib-2005.05.09/src/config/linux.cf +--- cernlib-2005.05.09/src/config/linux.cf 2005-06-10 14:34:57.858011831 -0400 ++++ /tmp/dpep.68wCAR/cernlib-2005.05.09/src/config/linux.cf 2005-06-10 14:36:23.102713351 -0400 +@@ -1,3 +1,8 @@ ++/* Config options to support $DEB_BUILD_OPTIONS */ ++ ++#define InstPgmFlags -s ++#define CernlibLocalDefines -DCERNLIB_DEBIAN -DDEBIAN_VERSION=\"2005.05.09.dfsg-3\" ++ + /* $Id: linux.cf,v 1.19 2004/10/05 15:56:45 mclareni Exp $ + * + * $Log: linux.cf,v $ +diff -urNad cernlib-2005.05.09/src/config/MacOSX.cf /tmp/dpep.68wCAR/cernlib-2005.05.09/src/config/MacOSX.cf +--- cernlib-2005.05.09/src/config/MacOSX.cf 2005-06-10 14:34:58.142950664 -0400 ++++ /tmp/dpep.68wCAR/cernlib-2005.05.09/src/config/MacOSX.cf 2005-06-10 14:36:49.800982577 -0400 +@@ -1,3 +1,8 @@ ++/* Config options to support $DEB_BUILD_OPTIONS */ ++ ++#define InstPgmFlags -s ++#define CernlibLocalDefines -DCERNLIB_DEBIAN -DDEBIAN_VERSION=\"2005.05.09.dfsg-3\" ++ + XCOMM platform: $SFO: MOSXS.cf,v 1.0 95/11/19 23:21:00 sl Exp $ + + #define OSVendor Apple Computer, Inc. --- cernlib-2005.05.09.dfsg.orig/debian/patches/210-improve-cfortran-header-files.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/210-improve-cfortran-header-files.dpatch @@ -0,0 +1,371 @@ +#! /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/comis.h /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/comis.h +--- cernlib-2005.05.09/src/cfortran/comis.h 1999-10-29 07:41:26.000000000 -0400 ++++ /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/comis.h 2005-06-10 12:51:30.985999665 -0400 +@@ -1,3 +1,11 @@ ++#ifndef _COMIS_H ++#define _COMIS_H ++#include ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++ + PROTOCCALLSFFUN1(INT,CSADDR,csaddr,STRING) + #define CSADDR(CHFILE) CCALLSFFUN1(CSADDR,csaddr,STRING,CHFILE) + +@@ -30,3 +38,9 @@ + + PROTOCCALLSFSUB2(CSTYPE,cstype,INT,PSTRING) + #define CSTYPE(CADR,CHTYPE) CCALLSFSUB2(CSTYPE,cstype,INT,PSTRING,CADR,CHTYPE) ++ ++#ifdef __cplusplus ++} /* extern "C" */ ++#endif ++ ++#endif /* #ifndef _COMIS_H */ +diff -urNad cernlib-2005.05.09/src/cfortran/cspack.h /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/cspack.h +--- cernlib-2005.05.09/src/cfortran/cspack.h 1999-10-29 07:42:56.000000000 -0400 ++++ /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/cspack.h 2005-06-10 12:51:31.013993690 -0400 +@@ -1,5 +1,19 @@ ++#ifndef _CSPACK_H ++#define _CSPACK_H ++#include ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++ + PROTOCCALLSFSUB2(CZPUTA,czputa,STRING,PINT) + #define CZPUTA(CHMAIL,ISTAT) CCALLSFSUB2(CZPUTA,czputa,STRING,PINT,CHMAIL,ISTAT) + + PROTOCCALLSFSUB2(CZGETA,czgeta,PSTRING,PINT) + #define CZGETA(CHMAIL,ISTAT) CCALLSFSUB2(CZGETA,czgeta,PSTRING,PINT,CHMAIL,ISTAT) ++ ++#ifdef __cplusplus ++} /* extern "C" */ ++#endif ++ ++#endif /* #ifndef _CSPACK_H */ +diff -urNad cernlib-2005.05.09/src/cfortran/geant315.h /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/geant315.h +--- cernlib-2005.05.09/src/cfortran/geant315.h 1996-05-15 05:24:06.000000000 -0400 ++++ /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/geant315.h 2005-06-10 12:51:31.080979393 -0400 +@@ -1,3 +1,11 @@ ++#ifndef _GEANT315_H ++#define _GEANT315_H ++#include ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++ + /*------------------------------------------------------------------ + fortran filename : /cern/new/src/cfs/geant315/abbrch.f + ------------------------------------------------------------------*/ +@@ -4797,3 +4805,9 @@ + + #define ZEREGS() CCALLSFSUB0(ZEREGS,zeregs) + ++ ++#ifdef __cplusplus ++} /* extern "C" */ ++#endif ++ ++#endif /* #ifndef _GEANT315_H */ +diff -urNad cernlib-2005.05.09/src/cfortran/geant321.h /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/geant321.h +--- cernlib-2005.05.09/src/cfortran/geant321.h 1996-05-15 05:24:07.000000000 -0400 ++++ /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/geant321.h 2005-06-10 12:51:31.148964883 -0400 +@@ -1,3 +1,11 @@ ++#ifndef _GEANT321_H ++#define _GEANT321_H ++#include ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++ + /*------------------------------------------------------------------ + fortran filename : abbrch.f + ------------------------------------------------------------------*/ +@@ -6099,3 +6107,9 @@ + PROTOCCALLSFFUN3(DOUBLE,XSEPRO,xsepro,DOUBLE,DOUBLE,DOUBLE) + #define XSEPRO(A2,A3,A4) CCALLSFFUN3(XSEPRO,xsepro,DOUBLE,DOUBLE,DOUBLE,A2,A3,A4) + ++ ++#ifdef __cplusplus ++} /* extern "C" */ ++#endif ++ ++#endif /* #ifndef _GEANT321_H */ +diff -urNad cernlib-2005.05.09/src/cfortran/gen.h /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/gen.h +--- cernlib-2005.05.09/src/cfortran/gen.h 2005-06-10 12:51:00.965407158 -0400 ++++ /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/gen.h 2005-06-10 12:51:31.190955921 -0400 +@@ -1,3 +1,11 @@ ++#ifndef _GEN_H ++#define _GEN_H ++#include ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++ + /* Subroutines/Functions with COMPLEX not supported *** + + #define CBSJA(A1,A2,A3,A4,A5) CCALLSFSUB5(CBSJA,cbsja,COMPLEX,FLOAT,INT,INT,PCOMPLEX,A1,A2,A3,A4,A5) +@@ -1489,3 +1497,9 @@ + + PROTOCCALLSFSUB6(ZEROX,zerox,FLOAT,FLOAT,FLOAT,INT,FLOAT,INT) + #define ZEROX(A1,A2,A3,A4,A5,A6) CCALLSFSUB6(ZEROX,zerox,FLOAT,FLOAT,FLOAT,INT,FLOAT,INT,A1,A2,A3,A4,A5,A6) ++ ++#ifdef __cplusplus ++} /* extern "C" */ ++#endif ++ ++#endif /* #ifndef _GEN_H */ +diff -urNad cernlib-2005.05.09/src/cfortran/graflib.h /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/graflib.h +--- cernlib-2005.05.09/src/cfortran/graflib.h 1998-01-29 05:49:27.000000000 -0500 ++++ /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/graflib.h 2005-06-10 12:51:31.220949519 -0400 +@@ -1,2 +1,16 @@ +-#include "higz.h" +-#include "hplot.h" ++#ifndef _GRAFLIB_H ++#define _GRAFLIB_H ++#include ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++ ++#include ++#include ++ ++#ifdef __cplusplus ++} /* extern "C" */ ++#endif ++ ++#endif /* #ifndef _GRAFLIB_H */ +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/kernlib.h /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/kernlib.h +--- cernlib-2005.05.09/src/cfortran/kernlib.h 2000-03-16 11:58:18.000000000 -0500 ++++ /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/kernlib.h 2005-06-10 12:51:31.291934368 -0400 +@@ -1,3 +1,11 @@ ++#ifndef _KERNLIB_H ++#define _KERNLIB_H ++#include ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++ + PROTOCCALLSFFUN1(FLOAT,ALOGAM,alogam,FLOAT) + #define ALOGAM(A2) CCALLSFFUN1(ALOGAM,alogam,FLOAT,A2) + +@@ -1512,3 +1520,9 @@ + + PROTOCCALLSFSUB1(WORDSEP,wordsep,STRING) + #define WORDSEP(A1) CCALLSFSUB1(WORDSEP,wordsep,STRING,A1) ++ ++#ifdef __cplusplus ++} /* extern "C" */ ++#endif ++ ++#endif /* #ifndef _KERNLIB_H */ +diff -urNad cernlib-2005.05.09/src/cfortran/kuip.h /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/kuip.h +--- cernlib-2005.05.09/src/cfortran/kuip.h 2000-10-05 10:27:54.000000000 -0400 ++++ /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/kuip.h 2005-06-10 12:51:31.319928394 -0400 +@@ -1,3 +1,11 @@ ++#ifndef _KUIP_H ++#define _KUIP_H ++#include ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++ + PROTOCCALLSFSUB3(KUCLOS,kuclos,INT,STRING,INT) + #define KUCLOS(A1,A2,A3) CCALLSFSUB3(KUCLOS,kuclos,INT,STRING,INT,A1,A2,A3) + +@@ -6,3 +14,9 @@ + + PROTOCCALLSFSUB0(KUWHAG,kuwhag) + #define KUWHAG() CCALLSFSUB0(KUWHAG,kuwhag) ++ ++#ifdef __cplusplus ++} /* extern "C" */ ++#endif ++ ++#endif /* #ifndef _KUIP_H */ +diff -urNad cernlib-2005.05.09/src/cfortran/lapack.h /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/lapack.h +--- cernlib-2005.05.09/src/cfortran/lapack.h 2000-06-23 06:13:58.000000000 -0400 ++++ /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/lapack.h 2005-06-10 12:51:31.348922205 -0400 +@@ -1,2 +1,16 @@ ++#ifndef _LAPACK_H ++#define _LAPACK_H ++#include ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++ + PROTOCCALLSFSUB11(DGELS,dgels,STRING,INT,INT,INT,DOUBLEV,INT,DOUBLEV,INT,DOUBLEV,INT,PINT) + #define DGELS(TRANS,M,N,NRHS,A,LDA,B,LDB,WORK,LWORK,INFO) CCALLSFSUB11(DGELS,dgels,STRING,INT,INT,INT,DOUBLEV,INT,DOUBLEV,INT,DOUBLEV,INT,PINT,TRANS,M,N,NRHS,A,LDA,B,LDB,WORK,LWORK,INFO) ++ ++#ifdef __cplusplus ++} /* extern "C" */ ++#endif ++ ++#endif /* #ifndef _LAPACK_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 */ +diff -urNad cernlib-2005.05.09/src/cfortran/minuit.h /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/minuit.h +--- cernlib-2005.05.09/src/cfortran/minuit.h 1999-10-27 11:30:23.000000000 -0400 ++++ /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/minuit.h 2005-06-10 12:51:31.407909615 -0400 +@@ -1,3 +1,11 @@ ++#ifndef _MINUIT_H ++#define _MINUIT_H ++#include ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++ + /* + * Interface to minuit using cfortran.h + * +@@ -190,3 +198,9 @@ + + PROTOCCALLSFSUB0(STAND,stand) + #define STAND() CCALLSFSUB0(STAND,stand) ++ ++#ifdef __cplusplus ++} /* extern "C" */ ++#endif ++ ++#endif /* #ifndef _MINUIT_H */ +diff -urNad cernlib-2005.05.09/src/cfortran/packlib.h /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/packlib.h +--- cernlib-2005.05.09/src/cfortran/packlib.h 1998-01-29 11:17:45.000000000 -0500 ++++ /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/packlib.h 2005-06-10 12:51:31.436903427 -0400 +@@ -1,4 +1,18 @@ +-#include "hbook.h" +-#include "minuit.h" +-#include "kuip.h" +-#include "zebra.h" ++#ifndef _PACKLIB_H ++#define _PACKLIB_H ++#include ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++ ++#include ++#include ++#include ++#include ++ ++#ifdef __cplusplus ++} /* extern "C" */ ++#endif ++ ++#endif /* #ifndef _PACKLIB_H */ +diff -urNad cernlib-2005.05.09/src/cfortran/paw.h /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/paw.h +--- cernlib-2005.05.09/src/cfortran/paw.h 2000-10-05 10:27:55.000000000 -0400 ++++ /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/paw.h 2005-06-10 12:51:31.464897452 -0400 +@@ -1,6 +1,20 @@ ++#ifndef _PAW_H ++#define _PAW_H ++#include ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++ + PROTOCCALLSFSUB2(PAW,paw,INT,INT) + #define PAW(A1,A2) CCALLSFSUB2(PAW,paw,INT,INT,A1,A2) + + PROTOCCALLSFSUB0(PAEXIT,paexit) + #define PAEXIT() CCALLSFSUB0(PAEXIT,paexit) + ++ ++#ifdef __cplusplus ++} /* extern "C" */ ++#endif ++ ++#endif /* #ifndef _PAW_H */ +diff -urNad cernlib-2005.05.09/src/cfortran/zebra.h /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/zebra.h +--- cernlib-2005.05.09/src/cfortran/zebra.h 1999-10-29 07:35:47.000000000 -0400 ++++ /tmp/dpep.Al0dBQ/cernlib-2005.05.09/src/cfortran/zebra.h 2005-06-10 12:51:31.496890624 -0400 +@@ -1,5 +1,19 @@ ++#ifndef _ZEBRA_H ++#define _ZEBRA_H ++#include ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++ + PROTOCCALLSFSUB1(MZEBRA,mzebra,INT) + #define MZEBRA(A1) CCALLSFSUB1(MZEBRA,mzebra,INT,A1) + + PROTOCCALLSFSUB2(MZPAW,mzpaw,INT,STRING) + #define MZPAW(A1,A2) CCALLSFSUB2(MZPAW,mzpaw,INT,STRING,A1,A2) ++ ++#ifdef __cplusplus ++} /* extern "C" */ ++#endif ++ ++#endif /* #ifndef _ZEBRA_H */ --- cernlib-2005.05.09.dfsg.orig/debian/patches/301-datafiles-comply-with-FHS.dpatch.in +++ cernlib-2005.05.09.dfsg/debian/patches/301-datafiles-comply-with-FHS.dpatch.in @@ -0,0 +1,56 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 301-datafiles-comply-with-FHS.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Put data files under @DATADIR@ (defined in add-ons/Makefile). + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/geant321/miface/gmorin.F /tmp/dpep.5a0xP1/cernlib-2005.05.09/src/geant321/miface/gmorin.F +--- cernlib-2005.05.09/src/geant321/miface/gmorin.F 1996-09-30 10:26:05.000000000 -0400 ++++ /tmp/dpep.5a0xP1/cernlib-2005.05.09/src/geant321/miface/gmorin.F 2005-06-08 16:39:21.850830809 -0400 +@@ -112,7 +112,8 @@ + OPEN(UNIT=MICROS,FILE=XSFILE, STATUS='OLD',READONLY) + #endif + #if defined(CERNLIB_UNIX)||defined(CERNLIB_CRAY) +- XSFILE = 'xsneut95.dat' ++ XSFILE = '@DATADIR@' ++ + // '/geant321-data/xsneut95.dat' + INQUIRE(FILE=XSFILE,EXIST=EXISTS) + IF(.NOT.EXISTS) THEN + CHROOT=' ' +diff -urNad cernlib-2005.05.09/src/mclibs/cojets/test/test.F /tmp/dpep.5a0xP1/cernlib-2005.05.09/src/mclibs/cojets/test/test.F +--- cernlib-2005.05.09/src/mclibs/cojets/test/test.F 1996-03-25 07:53:36.000000000 -0500 ++++ /tmp/dpep.5a0xP1/cernlib-2005.05.09/src/mclibs/cojets/test/test.F 2005-06-08 16:39:52.846851314 -0400 +@@ -6,7 +6,7 @@ + #if defined(CERNLIB_IBMVM) + PARAMETER (DFILE='/COJETS DATA *') + #else +- PARAMETER (DFILE='cojets.dat') ++ PARAMETER (DFILE='@DATADIR@/cojets/cojets.dat') + #endif + C + C MAIN PROGRAM FOR COJETS +diff -urNad cernlib-2005.05.09/src/mclibs/eurodec/eurodec/eufiles.inc /tmp/dpep.5a0xP1/cernlib-2005.05.09/src/mclibs/eurodec/eurodec/eufiles.inc +--- cernlib-2005.05.09/src/mclibs/eurodec/eurodec/eufiles.inc 1996-03-08 11:58:49.000000000 -0500 ++++ /tmp/dpep.5a0xP1/cernlib-2005.05.09/src/mclibs/eurodec/eurodec/eufiles.inc 2005-06-08 16:40:14.175049565 -0400 +@@ -18,7 +18,7 @@ + PARAMETER (ETFILE='/EUTITLE DAT *') + #endif + CHARACTER*(*) EDFILE,ETFILE +- PARAMETER (EDFILE='eurodec.dat') ++ PARAMETER (EDFILE='@DATADIR@/eurodec/eurodec.dat') + PARAMETER (ETFILE='eutitle.dat') + + #endif +diff -urNad cernlib-2005.05.09/src/mclibs/isajet/test/isajett.F /tmp/dpep.5a0xP1/cernlib-2005.05.09/src/mclibs/isajet/test/isajett.F +--- cernlib-2005.05.09/src/mclibs/isajet/test/isajett.F 1997-03-14 12:32:39.000000000 -0500 ++++ /tmp/dpep.5a0xP1/cernlib-2005.05.09/src/mclibs/isajet/test/isajett.F 2005-06-08 16:40:43.746393067 -0400 +@@ -8,7 +8,7 @@ + #if defined(CERNLIB_VAXVMS) + PARAMETER (DFILE='CERN_ROOT:[lib]isajet.dat') + #else +- PARAMETER (DFILE='isajet.dat') ++ PARAMETER (DFILE='@DATADIR@/isajet/isajet.dat') + #endif + #endif + C --- cernlib-2005.05.09.dfsg.orig/debian/patches/700-remove-kernlib-from-packlib-Imakefile.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/700-remove-kernlib-from-packlib-Imakefile.dpatch @@ -0,0 +1,55 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 700-remove-kernlib-from-packlib-Imakefile.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/Imakefile /tmp/dpep.VNPUUt/cernlib-2005.05.09/src/Imakefile +--- cernlib-2005.05.09/src/Imakefile 2005-06-10 16:46:36.495568752 -0400 ++++ /tmp/dpep.VNPUUt/cernlib-2005.05.09/src/Imakefile 2005-06-10 16:50:33.508709032 -0400 +@@ -2,7 +2,7 @@ + #define PassCDebugFlags + + +-LIBDIRS= packlib pawlib graflib mathlib geant321 mclibs phtools ++LIBDIRS= kernlib packlib pawlib graflib mathlib geant321 mclibs phtools + + SUBDIRS= $(LIBDIRS) patchy cfortran + +@@ -23,5 +23,5 @@ + DelegateTarget(bin/kuipc,packlib) + + DelegateTarget(lib/packlib,packlib) +-DelegateTarget(lib/kernlib,packlib) ++DelegateTarget(lib/kernlib,kernlib) + +diff -urNad cernlib-2005.05.09/src/packlib/Imakefile /tmp/dpep.VNPUUt/cernlib-2005.05.09/src/packlib/Imakefile +--- cernlib-2005.05.09/src/packlib/Imakefile 1997-10-02 10:09:19.000000000 -0400 ++++ /tmp/dpep.VNPUUt/cernlib-2005.05.09/src/packlib/Imakefile 2005-06-10 16:48:25.928085636 -0400 +@@ -4,7 +4,7 @@ + + + LIBDIRS= cspack epio fatmen ffread hbook hepdb kapack kuip \ @@\ +- minuit zbook zebra kernlib ++ minuit zbook zebra + + SUBDIRS= $(LIBDIRS) + +@@ -17,14 +17,10 @@ + + TestSubdirs($(LIBDIRS)) + +-#ifndef CERNLIB_VAXVMS +- +-InstallLibSubdirs(kernlib) +- +-#else ++#ifdef CERNLIB_VAXVMS + + SUBDIRS := $(SUBDIRS) vmslibfiles +-InstallLibSubdirs(kernlib vmslibfiles) ++InstallLibSubdirs(vmslibfiles) + + #endif + --- cernlib-2005.05.09.dfsg.orig/debian/patches/800-implement-shared-library-rules-in-Imake.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/800-implement-shared-library-rules-in-Imake.dpatch @@ -0,0 +1,158 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 800-implement-shared-library-rules-in-Imake.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Implement macros for shared libraries on Linux in the Imake cfg files. + +@DPATCH@ +diff -urNad cernlib-2005.05.09.dfsg~/src/config/Imake.rules cernlib-2005.05.09.dfsg/src/config/Imake.rules +--- cernlib-2005.05.09.dfsg~/src/config/Imake.rules 2005-11-29 17:07:32.035570303 +0000 ++++ cernlib-2005.05.09.dfsg/src/config/Imake.rules 2005-11-29 17:07:40.003888782 +0000 +@@ -904,6 +904,8 @@ + * InstallSharedLibrary - generate rules to install the indicated sharable + * Library + */ ++/* Commented out because this appears to be overriding the definition ++ * in lnxLib.rules --Kevin McCarty, 16 May 2002 + #undef InstallSharedLibrary + #ifndef InstallSharedLibrary + #define InstallSharedLibrary(libname,rev,dest) @@\ +@@ -917,7 +919,8 @@ + $(INSTALL) $(INSTALLFLAGS) $(INSTLIBFLAGS) $< $@ @@\ + RemoveFile($<) @@\ + $(LN) $@ $< +-#endif /* InstallSharedLibrary */ ++#endif InstallSharedLibrary ++*/ + + /* + * InstallLinkKitLibrary - rule to install Link Kit library. +@@ -1963,6 +1966,15 @@ + #endif /* InstallSubdirs */ + + /* ++ * InstallSharedLibSubdirs - generate rules to recursively install shared ++ * libraries. Added by Kevin McCarty for Debian, 15 May 2002 ++ */ ++#ifndef InstallSharedLibSubdirs ++#define InstallSharedLibSubdirs(dirs) \ ++NamedTargetSubdirs(install.shlib,dirs,"installing",DESTDIR=$(DESTDIR),install.shlib) ++#endif /* InstallSharedLibSubdirs */ ++ ++/* + * InstallBinSubdirs - generate rules to recursively install programs and + * scripts + */ +@@ -2341,9 +2353,12 @@ + */ + #ifndef DefinePackageLibrary + #define DefinePackageLibrary(locallib) \ ++/* commented out since these will be .so files. -Kevin */ @@\ ++/* @@\ + ifeq ($(strip $(PACKAGE_LIB)),) @@\ + PACKAGE_LIB=$(TOP)$(PACKAGETOP)/LibraryTargetName($(PACKAGE_NAME)) @@\ + endif @@\ ++*/ @@\ + ifneq (locallib,) @@\ + override PACKAGE_LIB:= LibraryTargetName(locallib) $(PACKAGE_LIB) @@\ + @@\ +diff -urNad cernlib-2005.05.09.dfsg~/src/config/biglib.rules cernlib-2005.05.09.dfsg/src/config/biglib.rules +--- cernlib-2005.05.09.dfsg~/src/config/biglib.rules 2000-04-19 10:51:01.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/config/biglib.rules 2005-11-29 17:09:29.336812562 +0000 +@@ -227,7 +227,7 @@ + RanLibrary($@) + #endif + +-#if defined(HPArchitecture) ++#if defined(HPArchitecture) && !defined(LinuxArchitecture) + + #ifndef SharedLibraryTargetName + #define SharedLibraryTargetName(name)Concat(lib,name.sl) +@@ -264,7 +264,7 @@ + @date + #endif + +-#elif defined(AlphaArchitecture) ++#elif defined(AlphaArchitecture) && !defined(LinuxArchitecture) + + #ifndef SharedLibraryTargetName + #define SharedLibraryTargetName(name)Concat(lib,name.so) +@@ -281,6 +281,41 @@ + @date + #endif + ++#elif defined(LinuxArchitecture) /* added by Kevin McCarty ++ for Debian, 15 May 2002 */ ++#ifndef SharedLibraryTargetName ++#define SharedLibraryTargetName(name)Concat(lib,name.so.$(LIB_SONAME).$(CERN_LEVEL)) ++#endif ++ ++#ifndef SharedLibraryBuild ++#define SharedLibraryBuild(libname,version) @@\ ++SharedLibraryTargetName(libname): version/objects.list @@\ ++ @echo rebuild version library $@ in $(CURRENT_DIR) @@\ ++ @$(RM) $@ @@\ ++ @date @@\ ++ @$(FCLINK) -shared -Wl,-soname=Concat(lib,libname.so.$(LIB_SONAME))\ @@\ ++ -o $@ `cat version/objects.list` `cernlib -v "" -dy libname\ @@\ ++ | sed s/Concat(-l,libname)//g` @@\ ++ @date ++#endif ++ ++#elif defined(DarwinArchitecture) /* added by Kevin McCarty ++ for fink, 10 May 2003 */ ++#ifndef SharedLibraryTargetName ++#define SharedLibraryTargetName(name)Concat(lib,name.$(LIB_SONAME).$(CERN_LEVEL).dylib) ++#endif ++ ++#ifndef SharedLibraryBuild ++#define SharedLibraryBuild(libname,version) @@\ ++SharedLibraryTargetName(libname): version/objects.list @@\ ++ @echo rebuild version library $@ in $(CURRENT_DIR) @@\ ++ @$(RM) $@ @@\ ++ @/usr/bin/libtool -dynamic -o $@ -compatibility_version $(LIB_SONAME) \ @@\ ++ `cat version/objects.list` `cernlib -v "" -dy libname \ @@\ ++ | sed s/Concat(-l,libname)//g` @@\ ++ @date ++#endif ++ + #elif 1 + #ifndef SharedLibraryBuild + #define SharedLibraryBuild(libname,version) @@\ +diff -urNad cernlib-2005.05.09.dfsg~/src/config/lnxLib.rules cernlib-2005.05.09.dfsg/src/config/lnxLib.rules +--- cernlib-2005.05.09.dfsg~/src/config/lnxLib.rules 1995-12-20 15:26:45.000000000 +0000 ++++ cernlib-2005.05.09.dfsg/src/config/lnxLib.rules 2005-11-29 17:07:40.004888571 +0000 +@@ -43,6 +43,9 @@ + #ifndef PositionIndependentCplusplusFlags + #define PositionIndependentCplusplusFlags -fPIC + #endif ++#ifndef PositionIndependentFortranFlags ++#define PositionIndependentFortranFlags -fPIC ++#endif + + /* + * InstallSharedLibrary - generate rules to install the shared library. +@@ -50,13 +53,20 @@ + */ + #ifndef InstallSharedLibrary + #define InstallSharedLibrary(libname,rev,dest) @@\ +-install:: Concat(lib,libname.so.rev) @@\ ++.PHONY: install.shlib shlib/libname @@\ ++shlib/libname:: $(DESTDIR)dest/SharedLibraryTargetName(libname) @@\ ++ @@\ ++install.shlib:: $(DESTDIR)dest/SharedLibraryTargetName(libname) @@\ ++ @@\ ++$(DESTDIR)dest/SharedLibraryTargetName(libname): SharedLibraryTargetName(libname) @@\ + MakeDir($(DESTDIR)dest) @@\ +- $(INSTALL) $(INSTALLFLAGS) $(INSTBINFLAGS) Concat(lib,libname.so.rev) $(DESTDIR)dest @@\ ++ $(INSTALL) $(INSTALLFLAGS) $(INSTLIBFLAGS) Concat(lib,libname.so.rev) $(DESTDIR)dest @@\ + (T=`echo Concat($(DESTDIR)dest/lib,libname.so.rev) | sed 's/\.[^\.]*$$//'`;\ + $(RM) $$T && $(LN) Concat(lib,libname.so.rev) $$T) @@\ + $(RM) Concat($(DESTDIR)dest/lib,libname.so) @@\ +- $(LN) Concat(lib,libname.so.rev) Concat($(DESTDIR)dest/lib,libname.so) ++ $(LN) Concat(lib,libname.so.rev) Concat($(DESTDIR)dest/lib,libname.so) @@\ ++ $(RM) $< @@\ ++ $(LN) $@ $< + #endif /* InstallSharedLibrary */ + + /* --- cernlib-2005.05.09.dfsg.orig/debian/patches/600-support-deb-build-options.dpatch.in +++ cernlib-2005.05.09.dfsg/debian/patches/600-support-deb-build-options.dpatch.in @@ -0,0 +1,31 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 600-support-deb-build-options.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Add stubs to .cf files where $DEB_BUILD_OPTIONS can be implemented. + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/config/linux.cf /tmp/dpep.68wCAR/cernlib-2005.05.09/src/config/linux.cf +--- cernlib-2005.05.09/src/config/linux.cf 2005-06-10 14:34:57.858011831 -0400 ++++ /tmp/dpep.68wCAR/cernlib-2005.05.09/src/config/linux.cf 2005-06-10 14:36:23.102713351 -0400 +@@ -1,3 +1,8 @@ ++/* Config options to support $DEB_BUILD_OPTIONS */ ++@OPTIMIZED_OPTS@ ++#define InstPgmFlags @INSTALL_OPTS@ ++#define CernlibLocalDefines @LOCAL_DEFINES@ ++ + /* $Id: linux.cf,v 1.19 2004/10/05 15:56:45 mclareni Exp $ + * + * $Log: linux.cf,v $ +diff -urNad cernlib-2005.05.09/src/config/MacOSX.cf /tmp/dpep.68wCAR/cernlib-2005.05.09/src/config/MacOSX.cf +--- cernlib-2005.05.09/src/config/MacOSX.cf 2005-06-10 14:34:58.142950664 -0400 ++++ /tmp/dpep.68wCAR/cernlib-2005.05.09/src/config/MacOSX.cf 2005-06-10 14:36:49.800982577 -0400 +@@ -1,3 +1,8 @@ ++/* Config options to support $DEB_BUILD_OPTIONS */ ++@OPTIMIZED_OPTS@ ++#define InstPgmFlags @INSTALL_OPTS@ ++#define CernlibLocalDefines @LOCAL_DEFINES@ ++ + XCOMM platform: $SFO: MOSXS.cf,v 1.0 95/11/19 23:21:00 sl Exp $ + + #define OSVendor Apple Computer, Inc. --- cernlib-2005.05.09.dfsg.orig/debian/patches/700-move-kernlib-to-top-level.sh.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/700-move-kernlib-to-top-level.sh.dpatch @@ -0,0 +1,27 @@ +#!/bin/sh + +# Script to move the "kernlib" directory to the top level so its code +# isn't compiled into packlib as well. + +set -e + +case "$1" in + -patch) + ORIGIN=src/packlib/kernlib + TARGET=src/kernlib + ;; + + -unpatch) + ORIGIN=src/kernlib + TARGET=src/packlib/kernlib + ;; + + *) exit 1 ;; +esac + +if [ ! -d $TARGET ] ; then + mv $ORIGIN $TARGET +else + exit 1 +fi + --- cernlib-2005.05.09.dfsg.orig/debian/patches/701-move-packlib-hkfill-to-comis.sh.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/701-move-packlib-hkfill-to-comis.sh.dpatch @@ -0,0 +1,28 @@ +#!/bin/sh + +# Script to move hkf1q.F and hkfill.F out of packlib/hbook and into +# pawlib/comis where they obviously belong (it even says so in the files!) + +set -e +cd src + +case "$1" in + -patch) + mv packlib/hbook/code/hkf1q.F pawlib/comis/code/ + mv packlib/hbook/code/hkfill.F pawlib/comis/code/ + # these files also need some headers to go with them: + mkdir pawlib/comis/hbook + cp -p packlib/hbook/hbook/pilot.h pawlib/comis/hbook/ + cp -p packlib/hbook/hbook/hcbook.inc pawlib/comis/hbook/ + cp -p packlib/hbook/hbook/hcbits.inc pawlib/comis/hbook/ + cp -p packlib/hbook/hbook/hcfast.inc pawlib/comis/hbook/ + ;; + + -unpatch) + rm -r pawlib/comis/hbook + mv pawlib/comis/code/hkfill.F packlib/hbook/code/ + mv pawlib/comis/code/hkf1q.F packlib/hbook/code/ + ;; + + *) exit 1 ;; +esac --- cernlib-2005.05.09.dfsg.orig/debian/patches/702-patch-Imakefiles-for-packlib-mathlib.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/702-patch-Imakefiles-for-packlib-mathlib.dpatch @@ -0,0 +1,130 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 702-patch-Imakefiles-for-packlib-mathlib.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Hacks to Imakefiles to go along with the 702 shellscript for moving +## DP: files around. + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/mathlib/gen/d/Imakefile /tmp/dpep.aVAPwe/cernlib-2005.05.09/src/mathlib/gen/d/Imakefile +--- cernlib-2005.05.09/src/mathlib/gen/d/Imakefile 2005-06-10 22:19:15.720962444 -0400 ++++ /tmp/dpep.aVAPwe/cernlib-2005.05.09/src/mathlib/gen/d/Imakefile 2005-06-10 22:24:26.783925145 -0400 +@@ -1,6 +1,8 @@ + DoIncludePackage(gen) + #include "pilot.h" + ++/* rgmlt*.F have been moved into packlib/hbook to remove circular dependencies. ++ --Kevin McCarty, for Debian. */ + SRCS_F= arithm.F c128.F c256.F c512.F c64.F cauchy64.F cft.F cfstft.F \ @@\ + rfstft.F cgauss.F d107d1.F d107r1.F d501l1.F d501l2.F d501n1.F \ @@\ + d501n2.F d501p1.F d501p2.F d501sf.F d700su.F d701bd.F \ @@\ +@@ -10,14 +12,14 @@ + epditr.F epdje.F epdloc.F epdsrt.F epdtab.F errorf.F esolve.F \ @@\ + fcn1.F fftrc.F fumili.F gauss.F i128.F i32.F i64.F linsq.F \ @@\ + mconv.F mft.F minfc.F minsq.F monito.F newro.F old506.F radapt.F \ @@\ +- radmul.F rca.F rfrdh164.F rfrdh264.F rft.F rgmlt64.F rgquad.F \ @@\ ++ radmul.F rca.F rfrdh164.F rfrdh264.F rft.F rgquad.F \ @@\ + rgs56p.F rgset.F riwiad.F riwibd.F rknys64.F rknysd.F rkstp.F \ @@\ + rpa.F rps.F rrkstp.F rsa.F rtriint.F s128.F s256.F s512.F \ @@\ + s64.F scal.F sgz.F simps.F synt.F traper.F triint.F vd01a.F + + #if defined(CERNLIB_DOUBLE) + SRCS_F:= $(SRCS_F) cgauss64.F dgquad.F dgset.F gauss64.F minfc64.F \ @@\ +- rcauch.F rdeqbs.F rdeqmr.F rderiv.F rfrdh1.F rgmlt.F rkstp64.F \ @@\ ++ rcauch.F rdeqbs.F rdeqmr.F rderiv.F rfrdh1.F rkstp64.F \ @@\ + simps64.F triint64.F + #if defined(CERNLIB_LINUX) + /* -O3 optimization breaks in g77 3.2 */ +@@ -26,7 +28,7 @@ + #endif + #else + SRCS_F:= $(SRCS_F) cgauss128.F cauchy.F cauchy128.F deqbs128.F deqmr128.F \ @@\ +- deriv128.F minfc128.F rfrdh128.F rgmlt128.F rkstp128.F simps128.F \ @@\ ++ deriv128.F minfc128.F rfrdh128.F rkstp128.F simps128.F \ @@\ + triint128.F + #endif + +diff -urNad cernlib-2005.05.09/src/mathlib/gen/Imakefile /tmp/dpep.aVAPwe/cernlib-2005.05.09/src/mathlib/gen/Imakefile +--- cernlib-2005.05.09/src/mathlib/gen/Imakefile 1996-10-02 12:09:45.000000000 -0400 ++++ /tmp/dpep.aVAPwe/cernlib-2005.05.09/src/mathlib/gen/Imakefile 2005-06-10 22:20:55.683416711 -0400 +@@ -8,7 +8,8 @@ + IMAKE_DEFINES=-DFortranDoesCpp=NO + #endif + +-LIBDIRS= a b c d divon e f g h j m n s u v x ++/* "n" subdir moved to packlib/hbook/ --Kevin McCarty, for Debian */ ++LIBDIRS= a b c d divon e f g h j m s u v x + + SUBDIRS= $(LIBDIRS) gen tests + +diff -urNad cernlib-2005.05.09/src/mathlib/hbook/Imakefile /tmp/dpep.aVAPwe/cernlib-2005.05.09/src/mathlib/hbook/Imakefile +--- cernlib-2005.05.09/src/mathlib/hbook/Imakefile 1969-12-31 19:00:00.000000000 -0500 ++++ /tmp/dpep.aVAPwe/cernlib-2005.05.09/src/mathlib/hbook/Imakefile 2004-06-30 21:54:11.000000000 -0400 +@@ -0,0 +1,12 @@ ++/* this Imakefile used to get hdiff to compile within the mathlib tree */ ++ ++#define IHaveSubdirs ++#define PassCDebugFlags ++ ++LIBDIRS= hdiff ++SUBDIRS= $(LIBDIRS) hbook ++ ++TopOfPackage(hbook) ++SubdirLibraryTarget(hbook,$(LIBDIRS)) ++DoIncludePackage(hbook) ++InstallIncludeSubdirs(hbook) +diff -urNad cernlib-2005.05.09/src/mathlib/Imakefile /tmp/dpep.aVAPwe/cernlib-2005.05.09/src/mathlib/Imakefile +--- cernlib-2005.05.09/src/mathlib/Imakefile 2005-06-10 22:19:15.834937877 -0400 ++++ /tmp/dpep.aVAPwe/cernlib-2005.05.09/src/mathlib/Imakefile 2005-06-10 22:20:05.279280394 -0400 +@@ -3,7 +3,7 @@ + #define PassCDebugFlags + + +-LIBDIRS= gen bvsl ++LIBDIRS= gen bvsl hbook /* hdiff stuff moved from packlib */ + + /* Lapack is independent of Cernlib and should be installed as one of + the build dependencies. +diff -urNad cernlib-2005.05.09/src/packlib/hbook/d/Imakefile /tmp/dpep.aVAPwe/cernlib-2005.05.09/src/packlib/hbook/d/Imakefile +--- cernlib-2005.05.09/src/packlib/hbook/d/Imakefile 1969-12-31 19:00:00.000000000 -0500 ++++ /tmp/dpep.aVAPwe/cernlib-2005.05.09/src/packlib/hbook/d/Imakefile 2004-06-30 21:54:11.000000000 -0400 +@@ -0,0 +1,25 @@ ++/* this Imakefile is used to get some things from mathlib/gen/d to compile ++ within the packlib/hbook tree */ ++ ++DoIncludePackage(gen) ++#include "pilot.h" ++ ++SRCS_F= rgmlt64.F ++ ++#if defined(CERNLIB_DOUBLE) ++SRCS_F:= $(SRCS_F) rgmlt.F ++#else ++SRCS_F:= $(SRCS_F) rgmlt128.F ++#endif ++ ++#ifdef CERNLIB_HPUX ++FORTRANOPTIONS += -WF,-P ++#endif ++ ++#if defined(CERNLIB_SGI) ++IMAKE_DEFINES=-DFortranDoesCpp=NO ++#endif ++ ++FORTRANSAVEOPTION = FortranSaveFlags ++ ++SubdirLibraryTarget(NullParameter,NullParameter) +diff -urNad cernlib-2005.05.09/src/packlib/hbook/Imakefile /tmp/dpep.aVAPwe/cernlib-2005.05.09/src/packlib/hbook/Imakefile +--- cernlib-2005.05.09/src/packlib/hbook/Imakefile 1997-04-28 04:21:23.000000000 -0400 ++++ /tmp/dpep.aVAPwe/cernlib-2005.05.09/src/packlib/hbook/Imakefile 2005-06-10 22:26:27.063010420 -0400 +@@ -2,7 +2,9 @@ + #define IHaveSubdirs + #define PassCDebugFlags + +-LIBDIRS= hdiff hmerge hquad chbook fpclassc \ @@\ ++/* hdiff moved to mathlib to avoid circular DLL dependencies; "d" and "n" ++ moved here from mathlib for the same reasons */ ++LIBDIRS= d n hmerge hquad chbook fpclassc \ @@\ + hrz code hmcstat hntup + + #ifdef CERNLIB_VAX --- cernlib-2005.05.09.dfsg.orig/debian/patches/702-fix-packlib-mathlib-circular-mess.sh.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/702-fix-packlib-mathlib-circular-mess.sh.dpatch @@ -0,0 +1,38 @@ +#!/bin/sh + +# Shell script to move around various files between packlib and mathlib. +# The goal is to have mathlib depend upon packlib but not vice versa. +# (Originally these two libs were a mess of dependencies on each other.) + +set -e +cd src + +case "$1" in + -patch) + # Hdiff depends upon a bunch of mathlib files; move it into + # mathlib. + mkdir mathlib/hbook + mv packlib/hbook/hdiff mathlib/hbook/ + cp -r packlib/hbook/hbook mathlib/hbook/ + + # Meanwhile, other packlib files depend upon these mathlib + # files which are easily moved: + mkdir packlib/hbook/d + mv mathlib/gen/d/rgmlt*.F packlib/hbook/d/ + mv mathlib/gen/n packlib/hbook/ + cp -r mathlib/gen/gen packlib/hbook/ + ;; + + -unpatch) + rm -r packlib/hbook/gen + mv packlib/hbook/n mathlib/gen/ + mv packlib/hbook/d/rgmlt*.F mathlib/gen/d/ + rm -r packlib/hbook/d + + mv mathlib/hbook/hdiff packlib/hbook/ + rm -r mathlib/hbook + ;; + + *) exit 1 ;; +esac + --- cernlib-2005.05.09.dfsg.orig/debian/patches/804-workaround-for-comis-mdpool-struct-location.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/804-workaround-for-comis-mdpool-struct-location.dpatch @@ -0,0 +1,184 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 804-workaround-for-comis-mdpool-struct-location.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Hack to workaround Comis not liking it when code has a negative +## DP: offset from the mdpool struct (as is the case when using shared +## DP: libraries on some arches). + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/cfortran/Examples/pamain.c /tmp/dpep.nHIc6F/cernlib-2005.05.09/src/cfortran/Examples/pamain.c +--- cernlib-2005.05.09/src/cfortran/Examples/pamain.c 2002-09-12 12:05:18.000000000 -0400 ++++ /tmp/dpep.nHIc6F/cernlib-2005.05.09/src/cfortran/Examples/pamain.c 2005-06-11 09:59:51.875449396 -0400 +@@ -2,6 +2,7 @@ + #include + #include + #include ++#include + + #define PAWC_SIZE 9000000 + +diff -urNad cernlib-2005.05.09/src/pawlib/comis/comis/cspar.inc /tmp/dpep.nHIc6F/cernlib-2005.05.09/src/pawlib/comis/comis/cspar.inc +--- cernlib-2005.05.09/src/pawlib/comis/comis/cspar.inc 2000-05-30 09:53:58.000000000 -0400 ++++ /tmp/dpep.nHIc6F/cernlib-2005.05.09/src/pawlib/comis/comis/cspar.inc 2005-06-11 09:59:51.876449180 -0400 +@@ -15,7 +15,9 @@ + * + * cspar.inc + * +- PARAMETER (LHP=50006, KON1=17694720, KON2=KON1 ++#include "comis/mdsize.h" ++ ++ PARAMETER (LHP=MDSIZE, KON1=17694720, KON2=KON1 + +, KON3=2**16, LRECU=8,NRECU=5,MLRECU=NRECU*LRECU + +, MXRECU=MLRECU-LRECU + 1, LASTK=2000,LSSTK=50,KLENID=32 +diff -urNad cernlib-2005.05.09/src/pawlib/comis/comis/mdpool.h /tmp/dpep.nHIc6F/cernlib-2005.05.09/src/pawlib/comis/comis/mdpool.h +--- cernlib-2005.05.09/src/pawlib/comis/comis/mdpool.h 1969-12-31 19:00:00.000000000 -0500 ++++ /tmp/dpep.nHIc6F/cernlib-2005.05.09/src/pawlib/comis/comis/mdpool.h 2004-06-30 21:54:11.000000000 -0400 +@@ -0,0 +1,33 @@ ++#ifndef _MDPOOL_H ++#define _MDPOOL_H ++ ++/* mdpool.h */ ++ ++/* #include or in one source code file of ++ * your executable program dynamically linked against libpaw ++ * so that MDPOOL is defined in your executable. This is ++ * necessary for proper functioning of the COMIS interpreter when ++ * dynamically linked. ++ */ ++ ++/* define MDSIZE: */ ++#include ++ ++#include ++ ++#ifdef __cplusplus ++extern "C" { ++#endif ++ ++typedef struct { ++ int iq[MDSIZE]; ++} mdpool_def; ++ ++#define MDPOOL COMMON_BLOCK(MDPOOL, mdpool) ++COMMON_BLOCK_DEF(mdpool_def, MDPOOL); ++ ++#ifdef __cplusplus ++} /* extern "C" */ ++#endif ++ ++#endif /* _MDPOOL_H */ +diff -urNad cernlib-2005.05.09/src/pawlib/comis/comis/mdpool.inc /tmp/dpep.nHIc6F/cernlib-2005.05.09/src/pawlib/comis/comis/mdpool.inc +--- cernlib-2005.05.09/src/pawlib/comis/comis/mdpool.inc 1996-02-26 12:16:34.000000000 -0500 ++++ /tmp/dpep.nHIc6F/cernlib-2005.05.09/src/pawlib/comis/comis/mdpool.inc 2005-06-11 09:59:51.876449180 -0400 +@@ -12,6 +12,8 @@ + * + * mdpool.inc + * ++#include "comis/cspar.inc" ++ + COMMON/MDPOOL/IQ(LHP) + INTEGER ISEM(LHP),KD(LHP),IDA(LHP),KD1(99),KD2(99),KD3(99) + EQUIVALENCE (IQ,ISEM),(IQ,KD),(IQ,IDA) +diff -urNad cernlib-2005.05.09/src/pawlib/comis/comis/mdsize.h /tmp/dpep.nHIc6F/cernlib-2005.05.09/src/pawlib/comis/comis/mdsize.h +--- cernlib-2005.05.09/src/pawlib/comis/comis/mdsize.h 1969-12-31 19:00:00.000000000 -0500 ++++ /tmp/dpep.nHIc6F/cernlib-2005.05.09/src/pawlib/comis/comis/mdsize.h 2004-06-30 21:54:11.000000000 -0400 +@@ -0,0 +1,6 @@ ++#ifndef _MDSIZE_H ++#define _MDSIZE_H ++ ++#define MDSIZE 50006 ++ ++#endif +diff -urNad cernlib-2005.05.09/src/pawlib/comis/deccc/csallo.c /tmp/dpep.nHIc6F/cernlib-2005.05.09/src/pawlib/comis/deccc/csallo.c +--- cernlib-2005.05.09/src/pawlib/comis/deccc/csallo.c 1999-11-15 08:36:24.000000000 -0500 ++++ /tmp/dpep.nHIc6F/cernlib-2005.05.09/src/pawlib/comis/deccc/csallo.c 2005-06-11 09:59:51.875449396 -0400 +@@ -39,21 +39,20 @@ + /*-- Author :*/ + + #include ++#include ++#include ++#include "comis/mdsize.h" + + typedef struct { +- int iq[6]; ++ int iq[MDSIZE]; /* instead of int iq[6] */ + } mdpool_def; + + #define MDPOOL COMMON_BLOCK(MDPOOL,mdpool) +-COMMON_BLOCK_DEF(mdpool_def,MDPOOL); ++extern COMMON_BLOCK_DEF(mdpool_def,MDPOOL); + +-unsigned long iqpntr = (unsigned long)MDPOOL.iq; ++unsigned long iqpntr = 0; + + +-#ifdef CERNLIB_WINNT +-# include +-#endif +- + #if defined(CERNLIB_QX_SC) + int type_of_call csallo_(lenb) + #endif +@@ -65,11 +64,31 @@ + #endif + int *lenb; + { +- long lpntr; ++ unsigned long lpntr; + int pntr; + ++ if (! iqpntr) ++ iqpntr = (unsigned long)MDPOOL.iq; + lpntr= (long)( malloc(*lenb) ); +- pntr=lpntr - iqpntr; ++ if (! lpntr) { ++ fprintf(stderr, ++ "CSALLO: not enough dynamic memory to allocate %d bytes\n", *lenb); ++ exit(EXIT_FAILURE); ++ } ++ ++ pntr = (long)lpntr - (long)iqpntr; ++ if (pntr < 0) { ++ fprintf(stderr, "CSALLO: heap below bss?!"); ++#if defined (CERNLIB_DEBIAN) ++ fprintf(stderr, "\n" ++"See the file /usr/share/doc/libpawlib2-dev/README.Debian for more information.\n" ++"If it does not help to solve this problem, please file a bug report against\n" ++"the libpawlib2 package, including the source code of your executable.\n"); ++#else ++ fprintf(stderr, " Try linking against pawlib statically.\n"); ++#endif ++ exit(EXIT_FAILURE); ++ } + return pntr; + } + +diff -urNad cernlib-2005.05.09/src/pawlib/paw/paw/pawsiz.inc /tmp/dpep.nHIc6F/cernlib-2005.05.09/src/pawlib/paw/paw/pawsiz.inc +--- cernlib-2005.05.09/src/pawlib/paw/paw/pawsiz.inc 1996-03-01 11:50:06.000000000 -0500 ++++ /tmp/dpep.nHIc6F/cernlib-2005.05.09/src/pawlib/paw/paw/pawsiz.inc 2005-06-11 09:59:51.875449396 -0400 +@@ -28,5 +28,9 @@ + #include "paw/pawsmall.inc" + #endif + ++C Include this file so that MDPOOL/IQ is present in pawX11 and ++C paw++ dynamically linked executables. ++C -- Kevin McCarty, for Debian, 1 Nov 2003 ++#include "comis/mdpool.inc" + + #endif +diff -urNad cernlib-2005.05.09/src/paw_motif/paw/pawsiz.inc /tmp/dpep.nHIc6F/cernlib-2005.05.09/src/paw_motif/paw/pawsiz.inc +--- cernlib-2005.05.09/src/paw_motif/paw/pawsiz.inc 1996-03-01 11:50:06.000000000 -0500 ++++ /tmp/dpep.nHIc6F/cernlib-2005.05.09/src/paw_motif/paw/pawsiz.inc 2005-06-11 09:59:51.875449396 -0400 +@@ -28,5 +28,9 @@ + #include "paw/pawsmall.inc" + #endif + ++C Include this file so that MDPOOL/IQ is present in pawX11 and ++C paw++ dynamically linked executables. ++C -- Kevin McCarty, for Debian, 1 Nov 2003 ++#include "comis/mdpool.inc" + + #endif --- cernlib-2005.05.09.dfsg.orig/debian/patches/805-expunge-missing-mathlib-kernlib-symbols.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/805-expunge-missing-mathlib-kernlib-symbols.dpatch @@ -0,0 +1,74 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 805-expunge-missing-mathlib-kernlib-symbols.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Remove some unreferenced symbols from mathlib and kernlib. + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/kernlib/kerngen/ccgen/Imakefile /tmp/dpep.Thtt1b/cernlib-2005.05.09/src/kernlib/kerngen/ccgen/Imakefile +--- cernlib-2005.05.09/src/kernlib/kerngen/ccgen/Imakefile 2002-09-19 12:44:52.000000000 -0400 ++++ /tmp/dpep.Thtt1b/cernlib-2005.05.09/src/kernlib/kerngen/ccgen/Imakefile 2005-06-13 11:20:33.838151240 -0400 +@@ -1,6 +1,8 @@ + #ifndef CERNLIB_VAXVMS + +-SRCS_F= accessf.F chdirf.F getenvf.F getwdf.F lstatf.F perrorf.F \ @@\ ++/* perrorf.F has been removed since it depends upon files which introduce ++ unreferenced dependencies into the shared libraries. --Kevin McCarty */ ++SRCS_F= accessf.F chdirf.F getenvf.F getwdf.F lstatf.F \ @@\ + readlnf.F renamef.F setenvf.F statf.F systemf.F tmpro.F \ @@\ + tmproi.F toslat.F unlinkf.F + +diff -urNad cernlib-2005.05.09/src/mathlib/gen/d/Imakefile /tmp/dpep.Thtt1b/cernlib-2005.05.09/src/mathlib/gen/d/Imakefile +--- cernlib-2005.05.09/src/mathlib/gen/d/Imakefile 2005-06-13 11:12:24.894703741 -0400 ++++ /tmp/dpep.Thtt1b/cernlib-2005.05.09/src/mathlib/gen/d/Imakefile 2005-06-13 11:16:54.864966246 -0400 +@@ -2,20 +2,22 @@ + #include "pilot.h" + + /* rgmlt*.F have been moved into packlib/hbook to remove circular dependencies. ++ Some other files have been removed from this list because they depend upon ++ non-existent functions. + --Kevin McCarty, for Debian. */ +-SRCS_F= arithm.F c128.F c256.F c512.F c64.F cauchy64.F cft.F cfstft.F \ @@\ ++SRCS_F= c128.F c256.F c512.F c64.F cauchy64.F cft.F cfstft.F \ @@\ + rfstft.F cgauss.F d107d1.F d107r1.F d501l1.F d501l2.F d501n1.F \ @@\ + d501n2.F d501p1.F d501p2.F d501sf.F d700su.F d701bd.F \ @@\ + dadapt.F deqbs64.F deqmr64.F deriv64.F dfunft.F dgs56p.F \ @@\ + dmaxlk.F dsumsq.F elanal.F elpahy.F epdbps.F epdchk.F \ @@\ +- epdchn.F epdcj.F epde1.F epdecc.F epdfix.F epdin.F \ @@\ +- epditr.F epdje.F epdloc.F epdsrt.F epdtab.F errorf.F esolve.F \ @@\ +- fcn1.F fftrc.F fumili.F gauss.F i128.F i32.F i64.F linsq.F \ @@\ +- mconv.F mft.F minfc.F minsq.F monito.F newro.F old506.F radapt.F \ @@\ ++ epdcj.F epdfix.F epdin.F \ @@\ ++ epditr.F epdje.F epdloc.F epdsrt.F epdtab.F esolve.F \ @@\ ++ fftrc.F gauss.F i128.F i32.F i64.F \ @@\ ++ mconv.F mft.F minfc.F monito.F newro.F radapt.F \ @@\ + radmul.F rca.F rfrdh164.F rfrdh264.F rft.F rgquad.F \ @@\ + rgs56p.F rgset.F riwiad.F riwibd.F rknys64.F rknysd.F rkstp.F \ @@\ + rpa.F rps.F rrkstp.F rsa.F rtriint.F s128.F s256.F s512.F \ @@\ +- s64.F scal.F sgz.F simps.F synt.F traper.F triint.F vd01a.F ++ s64.F scal.F simps.F synt.F traper.F triint.F vd01a.F + + #if defined(CERNLIB_DOUBLE) + SRCS_F:= $(SRCS_F) cgauss64.F dgquad.F dgset.F gauss64.F minfc64.F \ @@\ +diff -urNad cernlib-2005.05.09/src/mathlib/gen/divon/Imakefile /tmp/dpep.Thtt1b/cernlib-2005.05.09/src/mathlib/gen/divon/Imakefile +--- cernlib-2005.05.09/src/mathlib/gen/divon/Imakefile 1996-05-01 09:21:53.000000000 -0400 ++++ /tmp/dpep.Thtt1b/cernlib-2005.05.09/src/mathlib/gen/divon/Imakefile 2005-06-13 11:19:42.456136998 -0400 +@@ -1,9 +1,12 @@ +-SRCS_F= addbnd.F bfgs.F bndopt.F bndtst.F bounds.F bucmve.F \ @@\ +- bufopt.F delbnd.F delete.F delslv.F divon.F dvcopy.F dvdot.F \ @@\ +- dvnbkd.F dvnopt.F exmbuc.F feasmv.F feqn.F fun.F genpnt.F \ @@\ +- grdcmp.F intgrl.F ldlsol.F locsch.F modchl.F mulchk.F mxstep.F \ @@\ +- newptq.F nmdchl.F nocut.F nodaud.F orthvc.F partn.F quad.F \ @@\ +- quasi.F ranums.F recpar.F rlen.F settol.F shrnk.F split.F \ @@\ ++/* Some files deleted from the below list since they depend upon the ++ lepto63 library, which cannot be included in Debian for licensing reasons. */ ++ ++SRCS_F= addbnd.F bfgs.F bndtst.F bounds.F bucmve.F \ @@\ ++ delbnd.F delete.F dvcopy.F dvdot.F \ @@\ ++ dvnbkd.F dvnopt.F exmbuc.F feasmv.F feqn.F \ @@\ ++ ldlsol.F modchl.F mxstep.F \ @@\ ++ newptq.F nmdchl.F nodaud.F orthvc.F quad.F \ @@\ ++ quasi.F ranums.F rlen.F settol.F shrnk.F \ @@\ + treaud.F tredmp.F tstext.F usrint.F usrtrm.F + + FORTRANSAVEOPTION = FortranSaveFlags --- cernlib-2005.05.09.dfsg.orig/debian/patches/605-move-kuesvr-to-usrlib.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/605-move-kuesvr-to-usrlib.dpatch @@ -0,0 +1,81 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 605-move-kuesvr-to-usrlib.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Move kuesvr into /usr/lib/libpacklib1 in conformance with Policy 8.1. + +@DPATCH@ +diff -urNad --exclude=CVS --exclude=.svn ./src/packlib/kuip/code_kuip/kedit.c /tmp/dpep-work.Ee7d3Y/cernlib-2005.05.09/src/packlib/kuip/code_kuip/kedit.c +--- ./src/packlib/kuip/code_kuip/kedit.c 2005-07-15 20:50:03.364033336 +0000 ++++ /tmp/dpep-work.Ee7d3Y/cernlib-2005.05.09/src/packlib/kuip/code_kuip/kedit.c 2005-07-15 21:02:07.386883015 +0000 +@@ -184,8 +184,12 @@ + } + } + close( fid ); +- ++ ++#if defined(CERNLIB_DEBIAN) ++ line = strdup( "/usr/lib/libpacklib1/kuesvr -p " ); ++#else + line = strdup( "kuesvr -p " ); ++#endif + line = mstricat( line, getpid() ); + line = mstr2cat( line, " -t ", editor_tmp ); + line = mstr4cat( line, " -c ", ku_path(), " -e '", +@@ -679,7 +683,11 @@ + if( strchr( kc_value.set_host_editor, '&' ) != NULL ) { + /* must be a workstation and kuesvr in search path to use server */ + kc_flags.use_server = ++#if defined(CERNLIB_DEBIAN) ++ (getenv( "DISPLAY" ) != NULL); /* for Debian, kuesvr not in $PATH */ ++#else + (getenv( "DISPLAY" ) != NULL) && (ku_qexe( "kuesvr" ) != NULL); ++#endif + + /* vi must be wrapped into xterm */ + if( kc_flags.use_server +diff -urNad --exclude=CVS --exclude=.svn ./src/packlib/kuip/code_kuip/kiinit.F /tmp/dpep-work.Ee7d3Y/cernlib-2005.05.09/src/packlib/kuip/code_kuip/kiinit.F +--- ./src/packlib/kuip/code_kuip/kiinit.F 1997-10-23 16:53:58.000000000 +0000 ++++ /tmp/dpep-work.Ee7d3Y/cernlib-2005.05.09/src/packlib/kuip/code_kuip/kiinit.F 2005-07-15 21:01:19.252193868 +0000 +@@ -272,17 +272,29 @@ + IF (EDITOR(LE-1:LE) .EQ. 'vi') THEN + IF (EDITOR(1:1) .EQ. '/' .OR. EDITOR(1:2) .EQ. 'vi') THEN + SERVER = .FALSE. ++#if defined(CERNLIB_DEBIAN) ++C For Debian, kuesvr is in /usr/lib/libpacklib1/ so don't test ++C for it in PATH ++ ELSE ++ SERVER = .TRUE. ++#else + ELSEIF (KUQEXE('kuesvr')) THEN + SERVER = .TRUE. + ELSE + SERVER = .FALSE. ++#endif + ENDIF ++#if defined(CERNLIB_DEBIAN) ++ ELSE ++ SERVER = .TRUE. ++#else + #ifndef CERNLIB_WINNT + ELSEIF (KUQEXE('kuesvr')) THEN + SERVER = .TRUE. + #endif + ELSE + SERVER = .FALSE. ++#endif + ENDIF + #endif + NSVFIL = 0 +diff -urNad --exclude=CVS --exclude=.svn ./src/packlib/kuip/code_kuip/kuipcdf.cdf /tmp/dpep-work.Ee7d3Y/cernlib-2005.05.09/src/packlib/kuip/code_kuip/kuipcdf.cdf +--- ./src/packlib/kuip/code_kuip/kuipcdf.cdf 2005-07-15 20:50:03.365033123 +0000 ++++ /tmp/dpep-work.Ee7d3Y/cernlib-2005.05.09/src/packlib/kuip/code_kuip/kuipcdf.cdf 2005-07-15 21:03:13.955630301 +0000 +@@ -832,6 +832,8 @@ + can continue to receive commands. + In order to do that the following conditions must be fulfilled: + - The KUIP edit server 'kuesvr' must be found in the search path. ++ (This is not necessary in Debian, where it is installed into the ++ /usr/lib/libpacklib1 directory.) + - The editor command set by HOST_EDITOR must end with an ampersand ('&'). + - The environment variable 'DISPLAY' must be set. + . --- cernlib-2005.05.09.dfsg.orig/debian/patches/704-patch-code_kuip-higzcc-Imakefiles.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/704-patch-code_kuip-higzcc-Imakefiles.dpatch @@ -0,0 +1,31 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 704-patch-code_kuip-higzcc-Imakefiles.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Patch Imakefiles after moving kuwhag.c from packlib to grafX11. + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/graflib/higz/higzcc/Imakefile /tmp/dpep.IDWarm/cernlib-2005.05.09/src/graflib/higz/higzcc/Imakefile +--- cernlib-2005.05.09/src/graflib/higz/higzcc/Imakefile 1998-11-16 04:36:53.000000000 -0500 ++++ /tmp/dpep.IDWarm/cernlib-2005.05.09/src/graflib/higz/higzcc/Imakefile 2005-06-13 09:45:37.637201936 -0400 +@@ -1,7 +1,7 @@ + DoIncludePackage(higz) + #include "pilot.h" + +-SRCS_C= igvers.c ++SRCS_C= igvers.c kuwhag.c /* <-- moved here from packlib/kuip/code_kuip */ + + #if defined(CERNLIB_FALCO) && !defined(CERNLIB_VAX) + SRCS_C := $(SRCS_C) falint.c +diff -urNad cernlib-2005.05.09/src/packlib/kuip/code_kuip/Imakefile /tmp/dpep.IDWarm/cernlib-2005.05.09/src/packlib/kuip/code_kuip/Imakefile +--- cernlib-2005.05.09/src/packlib/kuip/code_kuip/Imakefile 2005-06-13 09:44:00.536042728 -0400 ++++ /tmp/dpep.IDWarm/cernlib-2005.05.09/src/packlib/kuip/code_kuip/Imakefile 2005-06-13 09:44:41.448261682 -0400 +@@ -2,7 +2,7 @@ + + SRCS_C= getline.c kalias.c kbrow.c kedit.c kexec.c khash.c kicon.c \ @@\ + kienbr.c kipiaf.c kkern.c kmacro.c kmath.c kmenu.c kmisc.c \ @@\ +- kmodel.c kmterm.c kuinit.c kutrue.c kuvers.c kuwhag.c \ @@\ ++ kmodel.c kmterm.c kuinit.c kutrue.c kuvers.c \ @@\ + kuwhat.c kvect.c \ @@\ + kmutil.c + /* ^^ moved here from code_motif. --Kevin McCarty */ --- cernlib-2005.05.09.dfsg.orig/debian/patches/317-copy-converter.h-to-installed-headers-dir.sh.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/317-copy-converter.h-to-installed-headers-dir.sh.dpatch @@ -0,0 +1,14 @@ +#!/bin/sh + +# Script to copy pawlib/paw/tree/converter.h to somewhere where it will +# be picked up and installed. + +set -e +cd src + +case "$1" in + -patch) cp pawlib/paw/tree/converter.h pawlib/paw/paw/ ;; + -unpatch) rm pawlib/paw/paw/converter.h ;; + *) exit 1 ;; +esac + --- cernlib-2005.05.09.dfsg.orig/debian/patches/704-move-kuwhag.c-to-grafX11.sh.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/704-move-kuwhag.c-to-grafX11.sh.dpatch @@ -0,0 +1,23 @@ +#!/bin/sh + +# Script to move the file kuwhag.c from packlib/kuip/code_kuip/kuwhag.c +# into graflib/higz/higzcc. It appears to be the only file in code_kuip +# that depends upon grafX11 and libX11, so it fits in better here. + +set -e +cd src + +case "$1" in + -patch) + mv packlib/kuip/code_kuip/kuwhag.c graflib/higz/higzcc/ + cp -r packlib/kuip/kuip graflib/higz/ + ;; + + -unpatch) + rm -r graflib/higz/kuip + mv graflib/higz/higzcc/kuwhag.c packlib/kuip/code_kuip/ + ;; + + *) exit 1 ;; +esac + --- cernlib-2005.05.09.dfsg.orig/debian/patches/703-move-code_motif-to-top-level.sh.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/703-move-code_motif-to-top-level.sh.dpatch @@ -0,0 +1,24 @@ +#!/bin/sh + +# Script to move packlib/kuip/code_motif to top level, splitting it out +# from packlib. But keep kmutil.c in packlib, it's otherwise used. + +set -e +cd src + +case "$1" in + -patch) + mv packlib/kuip/code_motif/kmutil.c packlib/kuip/code_kuip/ + mv packlib/kuip/code_motif ./ + cp -r packlib/kuip/kuip code_motif/ + ;; + + -unpatch) + rm -r code_motif/kuip + mv code_motif packlib/kuip/ + mv packlib/kuip/code_kuip/kmutil.c packlib/kuip/code_motif/ + ;; + + *) exit 1 ;; +esac + --- cernlib-2005.05.09.dfsg.orig/debian/patches/703-patch-code_motif-packlib-Imakefiles.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/703-patch-code_motif-packlib-Imakefiles.dpatch @@ -0,0 +1,79 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 703-patch-code_motif-packlib-Imakefiles.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix up Imakefiles, etc. so that code_motif becomes a separate library +## DP: after moving it around in the patch 703 shell script. + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/code_motif/Imakefile /tmp/dpep.mcTNBz/cernlib-2005.05.09/src/code_motif/Imakefile +--- cernlib-2005.05.09/src/code_motif/Imakefile 1996-12-10 10:20:59.000000000 -0500 ++++ /tmp/dpep.mcTNBz/cernlib-2005.05.09/src/code_motif/Imakefile 2005-06-12 10:31:56.480928814 -0400 +@@ -10,8 +10,10 @@ + kuxxt.c mkdcmp.c mkdgra.c mkdpan.c mkmpan.c mkuip.c + + MotifDependantMakeVar(SRCS_C,$(MOTIF_SRCS_C)) +- ++ ++/* Commented out since kmutil.c has been moved to packlib/kuip/code_kuip + SRCS_C:= $(SRCS_C) kmutil.c ++*/ + + #if defined(CERNLIB_VAXVMS) + +@@ -22,4 +24,10 @@ + + PACKAGE_INCLUDES := $(PACKAGE_INCLUDES) MotifIncludes X11Includes + +-SubdirLibraryTarget(NullParameter,NullParameter) ++/* Top of package boilerplate to split this out as a separate library */ ++ ++TopOfPackage(packlib-lesstif) ++ ++SubdirLibraryTarget(packlib-lesstif,NullParameter) ++ ++InstallLibrary(packlib-lesstif,$(CERN_LIBDIR)) +diff -urNad cernlib-2005.05.09/src/Imakefile /tmp/dpep.mcTNBz/cernlib-2005.05.09/src/Imakefile +--- cernlib-2005.05.09/src/Imakefile 2005-06-12 10:31:54.221414133 -0400 ++++ /tmp/dpep.mcTNBz/cernlib-2005.05.09/src/Imakefile 2005-06-12 10:32:20.947673659 -0400 +@@ -2,7 +2,7 @@ + #define PassCDebugFlags + + +-LIBDIRS= kernlib packlib pawlib graflib mathlib geant321 mclibs phtools ++LIBDIRS= kernlib packlib code_motif pawlib graflib mathlib geant321 mclibs phtools + + SUBDIRS= $(LIBDIRS) patchy cfortran + +diff -urNad cernlib-2005.05.09/src/packlib/kuip/code_kuip/Imakefile /tmp/dpep.mcTNBz/cernlib-2005.05.09/src/packlib/kuip/code_kuip/Imakefile +--- cernlib-2005.05.09/src/packlib/kuip/code_kuip/Imakefile 1999-11-24 04:52:07.000000000 -0500 ++++ /tmp/dpep.mcTNBz/cernlib-2005.05.09/src/packlib/kuip/code_kuip/Imakefile 2005-06-12 10:31:56.480928814 -0400 +@@ -3,7 +3,9 @@ + SRCS_C= getline.c kalias.c kbrow.c kedit.c kexec.c khash.c kicon.c \ @@\ + kienbr.c kipiaf.c kkern.c kmacro.c kmath.c kmenu.c kmisc.c \ @@\ + kmodel.c kmterm.c kuinit.c kutrue.c kuvers.c kuwhag.c \ @@\ +- kuwhat.c kvect.c ++ kuwhat.c kvect.c \ @@\ ++ kmutil.c ++ /* ^^ moved here from code_motif. --Kevin McCarty */ + + #ifdef CERNLIB_WINNT + SRCS_C :=$(SRCS_C) kmutil0.c +diff -urNad cernlib-2005.05.09/src/packlib/kuip/Imakefile /tmp/dpep.mcTNBz/cernlib-2005.05.09/src/packlib/kuip/Imakefile +--- cernlib-2005.05.09/src/packlib/kuip/Imakefile 1997-11-28 12:26:56.000000000 -0500 ++++ /tmp/dpep.mcTNBz/cernlib-2005.05.09/src/packlib/kuip/Imakefile 2005-06-12 10:31:56.480928814 -0400 +@@ -4,11 +4,14 @@ + + LIBDIRS= code_kuip + ++/* Commented out so that code_motif gives a separate shared library ++ * --Kevin McCarty + #ifndef CERNLIB_WINNT + LIBDIRS := $(LIBDIRS) code_motif + #else + LIBDIRS := $(LIBDIRS) code_windows + #endif ++*/ + + SUBDIRS= $(LIBDIRS) programs examples kuip + --- cernlib-2005.05.09.dfsg.orig/debian/patches/806-bump-mathlib-and-dependents-sonames.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/806-bump-mathlib-and-dependents-sonames.dpatch @@ -0,0 +1,114 @@ +#! /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/geant321/Imakefile cernlib-2005.05.09.dfsg/src/geant321/Imakefile +--- cernlib-2005.05.09.dfsg~/src/geant321/Imakefile 2005-11-23 15:49:19.722162373 +0000 ++++ cernlib-2005.05.09.dfsg/src/geant321/Imakefile 2005-11-23 15:49:27.431512287 +0000 +@@ -2,6 +2,8 @@ + #define IHaveSubdirs + #define PassCDebugFlags + ++export LIB_SONAME := 2 ++ + AllTarget(geant321) + + /* Fluka removed from Debian source package for copyright reasons. */ +diff -urNad cernlib-2005.05.09.dfsg~/src/mathlib/Imakefile cernlib-2005.05.09.dfsg/src/mathlib/Imakefile +--- cernlib-2005.05.09.dfsg~/src/mathlib/Imakefile 2005-11-23 15:49:19.723162159 +0000 ++++ cernlib-2005.05.09.dfsg/src/mathlib/Imakefile 2005-11-23 15:49:27.431512287 +0000 +@@ -2,6 +2,7 @@ + #define IHaveSubdirs + #define PassCDebugFlags + ++export LIB_SONAME := 2 + + LIBDIRS= gen bvsl hbook /* hdiff stuff moved from packlib */ + +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 := 2 ++ + 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/paw_motif/Imakefile cernlib-2005.05.09.dfsg/src/paw_motif/Imakefile +--- cernlib-2005.05.09.dfsg~/src/paw_motif/Imakefile 2005-11-23 15:49:19.724161945 +0000 ++++ cernlib-2005.05.09.dfsg/src/paw_motif/Imakefile 2005-11-23 15:49:27.432512073 +0000 +@@ -1,6 +1,8 @@ + DoIncludePackage(paw) + #include "paw/pilot.h" + ++export LIB_SONAME := 2 ++ + #define IHaveSubdirs + #define PassCDebugFlags + +diff -urNad cernlib-2005.05.09.dfsg~/src/pawlib/Imakefile cernlib-2005.05.09.dfsg/src/pawlib/Imakefile +--- cernlib-2005.05.09.dfsg~/src/pawlib/Imakefile 2005-11-23 15:49:19.724161945 +0000 ++++ cernlib-2005.05.09.dfsg/src/pawlib/Imakefile 2005-11-23 15:49:27.432512073 +0000 +@@ -2,6 +2,7 @@ + #define IHaveSubdirs + #define PassCDebugFlags + ++export LIB_SONAME := 2 + + LIBDIRS= comis paw sigma + SUBDIRS= $(LIBDIRS) +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 --- cernlib-2005.05.09.dfsg.orig/debian/patches/705-patch-paw_motif-paw-Imakefiles.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/705-patch-paw_motif-paw-Imakefiles.dpatch @@ -0,0 +1,121 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 705-patch-paw_motif-paw-Imakefiles.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/Imakefile /tmp/dpep.Rec1V8/cernlib-2005.05.09/src/Imakefile +--- cernlib-2005.05.09/src/Imakefile 2005-06-13 16:04:27.418461884 -0400 ++++ /tmp/dpep.Rec1V8/cernlib-2005.05.09/src/Imakefile 2005-06-13 16:04:48.698899728 -0400 +@@ -2,7 +2,7 @@ + #define PassCDebugFlags + + +-LIBDIRS= kernlib packlib code_motif pawlib graflib mathlib geant321 mclibs phtools ++LIBDIRS= kernlib packlib code_motif pawlib paw_motif graflib mathlib geant321 mclibs phtools + + SUBDIRS= $(LIBDIRS) patchy cfortran + +diff -urNad cernlib-2005.05.09/src/pawlib/paw/cdf/Imakefile /tmp/dpep.Rec1V8/cernlib-2005.05.09/src/pawlib/paw/cdf/Imakefile +--- cernlib-2005.05.09/src/pawlib/paw/cdf/Imakefile 1999-08-31 04:47:07.000000000 -0400 ++++ /tmp/dpep.Rec1V8/cernlib-2005.05.09/src/pawlib/paw/cdf/Imakefile 2005-06-13 16:05:01.263206159 -0400 +@@ -1,6 +1,6 @@ + #define IHaveCDF + +-SRCS_CDF= pawcdf.cdf pamcdf.cdf mlpdef.cdf ++SRCS_CDF= pawcdf.cdf mlpdef.cdf + + #ifdef CERNLIB_IBMRT + /* Otherwise cc dies with internal compiler error on pawcdf. +diff -urNad cernlib-2005.05.09/src/pawlib/paw/code/Imakefile /tmp/dpep.Rec1V8/cernlib-2005.05.09/src/pawlib/paw/code/Imakefile +--- cernlib-2005.05.09/src/pawlib/paw/code/Imakefile 2005-06-13 16:04:26.689618135 -0400 ++++ /tmp/dpep.Rec1V8/cernlib-2005.05.09/src/pawlib/paw/code/Imakefile 2005-06-13 16:04:33.962059051 -0400 +@@ -11,8 +11,8 @@ + pautit.F pavect.F paw.F pawbrk.F pawdef.F pawfca.F \ @@\ + pawfitz.F pawfop.F pawfu1.F pawfu2.F \ @@\ + pawfu3.F pawfud.F pawfun.F pawfuy.F pawild.F pawins.F pawint.F \ @@\ +- pawint1.F pawint2.F pawint3.F pawint4.F pawintm.F \ @@\ +- pawjoj.F pawloc.F pawork.F pawpp.F pawrit.F pawrop.F \ @@\ ++ pawint1.F pawint2.F pawint3.F pawint4.F \ @@\ ++ pawjoj.F pawloc.F pawork.F pawrit.F pawrop.F \ @@\ + pawsim.F pawusr.F pawuwf.F paxcut.F pazdz.F pazfz.F pazrz.F \ @@\ + pchain.F pchclo.F pchncd.F pchrop.F pcnext.F pfclos.F \ @@\ + pfhigz.F pfindc.F pfindf.F pfindf1.F pfindv.F pfinit.F pflog.F \ @@\ +diff -urNad cernlib-2005.05.09/src/pawlib/paw/Imakefile /tmp/dpep.Rec1V8/cernlib-2005.05.09/src/pawlib/paw/Imakefile +--- cernlib-2005.05.09/src/pawlib/paw/Imakefile 2000-06-27 11:27:03.000000000 -0400 ++++ /tmp/dpep.Rec1V8/cernlib-2005.05.09/src/pawlib/paw/Imakefile 2005-06-13 16:04:33.962059051 -0400 +@@ -9,6 +9,9 @@ + + LIBDIRS= code cpaw cdf ntuple mlpfit + ++/* Comment out this whole section; Motif code has been moved to ++ paw_motif at top level. -- Kevin McCarty */ ++#if 0 + #ifndef CERNLIB_WINNT + LIBDIRS :=$(LIBDIRS) $(MOTIF_DIRS) $(PAWPP_DIRS) + #endif +@@ -22,6 +25,7 @@ + MotifDependantMakeVar(PAWPP_DIRS,xbaevms) + LIBDIRS := $(LIBDIRS) $(PAWPP_DIRS) + #endif ++#endif + + SUBDIRS= $(LIBDIRS) programs piafs hbpiaf stagerd paw + +diff -urNad cernlib-2005.05.09/src/paw_motif/cdf/Imakefile /tmp/dpep.Rec1V8/cernlib-2005.05.09/src/paw_motif/cdf/Imakefile +--- cernlib-2005.05.09/src/paw_motif/cdf/Imakefile 1969-12-31 19:00:00.000000000 -0500 ++++ /tmp/dpep.Rec1V8/cernlib-2005.05.09/src/paw_motif/cdf/Imakefile 2005-06-13 16:04:33.963058837 -0400 +@@ -0,0 +1,5 @@ ++#define IHaveCDF ++ ++SRCS_CDF= pamcdf.cdf ++ ++SubdirLibraryTarget(NullParameter,NullParameter) +diff -urNad cernlib-2005.05.09/src/paw_motif/code/Imakefile /tmp/dpep.Rec1V8/cernlib-2005.05.09/src/paw_motif/code/Imakefile +--- cernlib-2005.05.09/src/paw_motif/code/Imakefile 1969-12-31 19:00:00.000000000 -0500 ++++ /tmp/dpep.Rec1V8/cernlib-2005.05.09/src/paw_motif/code/Imakefile 2005-06-13 16:04:33.963058837 -0400 +@@ -0,0 +1,7 @@ ++SRCS_F= pawintm.F pawpp.F ++ ++DoIncludePackage(paw) ++#include "pilot.h" ++ ++SubdirLibraryTarget(NullParameter,NullParameter) ++ +diff -urNad cernlib-2005.05.09/src/paw_motif/Imakefile /tmp/dpep.Rec1V8/cernlib-2005.05.09/src/paw_motif/Imakefile +--- cernlib-2005.05.09/src/paw_motif/Imakefile 2000-06-27 11:27:03.000000000 -0400 ++++ /tmp/dpep.Rec1V8/cernlib-2005.05.09/src/paw_motif/Imakefile 2005-06-13 16:04:33.963058837 -0400 +@@ -7,7 +7,7 @@ + MotifDependantMakeVar(MOTIF_DIRS,cmotif fmotif fpanelsc) + MotifDependantMakeVar(PAWPP_DIRS,fpanelsf tree uimx) + +-LIBDIRS= code cpaw cdf ntuple mlpfit ++LIBDIRS= code cdf + + #ifndef CERNLIB_WINNT + LIBDIRS :=$(LIBDIRS) $(MOTIF_DIRS) $(PAWPP_DIRS) +@@ -23,19 +23,11 @@ + LIBDIRS := $(LIBDIRS) $(PAWPP_DIRS) + #endif + +-SUBDIRS= $(LIBDIRS) programs piafs hbpiaf stagerd paw +- +-#if defined CERNLIB_WINNT +-SUBDIRS := $(LIBDIRS) programs +-#endif +- +-TopOfPackage(paw) +- +-SubdirLibraryTarget(paw,$(LIBDIRS)) ++SUBDIRS= $(LIBDIRS) + +-InstallBinSubdirs(programs) ++TopOfPackage(pawlib-lesstif) + +-TestSubdirs(test) ++SubdirLibraryTarget(pawlib-lesstif,$(LIBDIRS)) + +-InstallIncludeSubdirs(paw) ++InstallLibrary(pawlib-lesstif,$(CERN_LIBDIR)) + --- cernlib-2005.05.09.dfsg.orig/debian/patches/705-move-paw++-code-to-top-level.sh.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/705-move-paw++-code-to-top-level.sh.dpatch @@ -0,0 +1,36 @@ +#!/bin/sh + +# Script to move Lesstif-dependent Paw code into its own library. + +set -e +cd src + +case "$1" in + -patch) + mkdir paw_motif + mv pawlib/paw/?motif pawlib/paw/fpanels? paw_motif/ + mv pawlib/paw/tree pawlib/paw/uimx pawlib/paw/xbae* paw_motif/ + cp -p pawlib/paw/Imakefile paw_motif/ + + mkdir paw_motif/code + mv pawlib/paw/code/pawpp.F paw_motif/code/ + mv pawlib/paw/code/pawintm.F paw_motif/code/ + + mkdir paw_motif/cdf + mv pawlib/paw/cdf/pamcdf.cdf paw_motif/cdf/ + + cp -pr pawlib/paw/paw paw_motif/ + cp -pr pawlib/paw/hpaw paw_motif/ + ;; + + -unpatch) + mv paw_motif/code/*.F pawlib/paw/code/ + mv paw_motif/?motif paw_motif/fpanels? pawlib/paw/ + mv paw_motif/tree paw_motif/uimx paw_motif/xbae* pawlib/paw/ + mv paw_motif/cdf/pamcdf.cdf pawlib/paw/cdf/ + rm -r paw_motif + ;; + + *) exit 1 ;; +esac + --- cernlib-2005.05.09.dfsg.orig/debian/patches/318-additional-gcc-3.4-fixes.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/318-additional-gcc-3.4-fixes.dpatch @@ -0,0 +1,47 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 318-additional-gcc-3.4-fixes.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Additional fixes for gcc 3.4, courtesy of Andreas Jochens. + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/packlib/cspack/tcpaw/tcpaw.c /tmp/dpep.f5SU0N/cernlib-2005.05.09/src/packlib/cspack/tcpaw/tcpaw.c +--- cernlib-2005.05.09/src/packlib/cspack/tcpaw/tcpaw.c 2005-06-14 12:31:12.078969103 -0400 ++++ /tmp/dpep.f5SU0N/cernlib-2005.05.09/src/packlib/cspack/tcpaw/tcpaw.c 2005-06-14 12:33:16.618251997 -0400 +@@ -2405,6 +2405,7 @@ + */ + + static FILE *cfile; ++static rnetrc(), token(); + + ruserpass(host, aname, apass) + char *host, **aname, **apass; +@@ -2592,6 +2593,8 @@ + /*** NOTE MAXPASSWD IS DEFINED AS 8 IN ALL STANDARD UNIX SYSTEMS, BUT THIS + *** GIVES US PROBLEMS INTERWORKING WITH VMS AND CRAY-SECURID SYSTEMS. ***/ + #define MAXPASSWD 20 /* max significant characters in password */ ++ ++static void (*sig)(), catch(); + + char * + getpass(prompt) +@@ -2608,7 +2611,6 @@ + register int c; + FILE *fi; + static char pbuf[ MAXPASSWD + 1 ]; +- void (*sig)(), catch(); + + if((fi = fopen("/dev/tty", "r")) == NULL) + return((char*)NULL); +diff -urNad cernlib-2005.05.09/src/packlib/kuip/code_motif/iconwidget.c /tmp/dpep.f5SU0N/cernlib-2005.05.09/src/packlib/kuip/code_motif/iconwidget.c +--- cernlib-2005.05.09/src/packlib/kuip/code_motif/iconwidget.c 1996-03-08 10:33:10.000000000 -0500 ++++ /tmp/dpep.f5SU0N/cernlib-2005.05.09/src/packlib/kuip/code_motif/iconwidget.c 2005-06-14 12:33:43.511482468 -0400 +@@ -31,7 +31,7 @@ + /* _Xm routine definitions */ + void _XmHighlightBorder (); + void _XmUnhighlightBorder (); +-void _XmDrawShadow (); ++/* void _XmDrawShadow (); */ + + /* Motif1.1 ( except apollo, hpux has _XmPrimitive... with two args only + * Gunter 30-jan-95 --- cernlib-2005.05.09.dfsg.orig/debian/patches/112-remove-nonexistent-prototypes-from-gen.h.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/112-remove-nonexistent-prototypes-from-gen.h.dpatch @@ -0,0 +1,151 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 112-remove-nonexistent-prototypes-from-gen.h.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Remove prototypes from gen.h of functions that don't exist in mathlib. +## DP: Because of the way cfortran works, their existence otherwise causes +## DP: linking failures in third-party code. + +@DPATCH@ +diff -urNad cernlib-2005.05.09/src/cfortran/gen.h /tmp/dpep.3jFEkx/cernlib-2005.05.09/src/cfortran/gen.h +--- cernlib-2005.05.09/src/cfortran/gen.h 2005-06-27 10:02:17.225463958 -0400 ++++ /tmp/dpep.3jFEkx/cernlib-2005.05.09/src/cfortran/gen.h 2005-06-27 10:05:41.503584328 -0400 +@@ -84,10 +84,10 @@ + + PROTOCCALLSFFUN1(FLOAT,ALGAMA,algama,FLOAT) + #define ALGAMA(A2) CCALLSFFUN1(ALGAMA,algama,FLOAT,A2) +- ++/* + PROTOCCALLSFFUN1(FLOAT,QLGAMA,qlgama,FLOAT) + #define QLGAMA(A2) CCALLSFFUN1(QLGAMA,qlgama,FLOAT,A2) +- ++*/ + PROTOCCALLSFFUN1(DOUBLE,DLGAMA,dlgama,DOUBLE) + #define DLGAMA(A2) CCALLSFFUN1(DLGAMA,dlgama,DOUBLE,A2) + +@@ -141,10 +141,10 @@ + + PROTOCCALLSFFUN5(DOUBLE,DCAUCH,dcauch,DOUBLE,DOUBLE,DOUBLE,DOUBLE,DOUBLE) + #define DCAUCH(A2,A3,A4,A5,A6) CCALLSFFUN5(DCAUCH,dcauch,DOUBLE,DOUBLE,DOUBLE,DOUBLE,DOUBLE,A2,A3,A4,A5,A6) +- ++/* + PROTOCCALLSFFUN6(DOUBLE,CHEBQU,chebqu,DOUBLE,DOUBLE,DOUBLE,PDOUBLE,INT,DOUBLE) + #define CHEBQU(A2,A3,A4,A5,A6,A7) CCALLSFFUN6(CHEBQU,chebqu,DOUBLE,DOUBLE,DOUBLE,PDOUBLE,INT,DOUBLE,A2,A3,A4,A5,A6,A7) +- ++*/ + PROTOCCALLSFFUN2(FLOAT,CHISIN,chisin,FLOAT,INT) + #define CHISIN(A2,A3) CCALLSFFUN2(CHISIN,chisin,FLOAT,INT,A2,A3) + +@@ -204,13 +204,13 @@ + + PROTOCCALLSFFUN3(DOUBLE,DVDOT,dvdot,INT,DOUBLEV,DOUBLEV) + #define DVDOT(A2,A3,A4) CCALLSFFUN3(DVDOT,dvdot,INT,DOUBLEV,DOUBLEV,A2,A3,A4) +- ++/* + PROTOCCALLSFFUN2(DOUBLE,E401BD,e401bd,DOUBLE,DOUBLE) + #define E401BD(A2,A3) CCALLSFFUN2(E401BD,e401bd,DOUBLE,DOUBLE,A2,A3) + + PROTOCCALLSFFUN2(FLOAT,ELIN1,elin1,FLOAT,FLOAT) + #define ELIN1(A2,A3) CCALLSFFUN2(ELIN1,elin1,FLOAT,FLOAT,A2,A3) +- ++*/ + PROTOCCALLSFFUN1(FLOAT,ERF,erf,FLOAT) + #define ERF(A2) CCALLSFFUN1(ERF,erf,FLOAT,A2) + +@@ -237,13 +237,13 @@ + + PROTOCCALLSFFUN2(FLOAT,FREARG,frearg,FLOAT,FLOAT) + #define FREARG(A2,A3) CCALLSFFUN2(FREARG,frearg,FLOAT,FLOAT,A2,A3) +- ++/* + PROTOCCALLSFFUN3(FLOAT,FRED2,fred2,FLOAT,FLOAT,FLOAT) + #define FRED2(A2,A3,A4) CCALLSFFUN3(FRED2,fred2,FLOAT,FLOAT,FLOAT,A2,A3,A4) + + PROTOCCALLSFFUN1(FLOAT,FRED3,fred3,FLOAT) + #define FRED3(A2) CCALLSFFUN1(FRED3,fred3,FLOAT,A2) +- ++*/ + PROTOCCALLSFFUN1(FLOAT,FREQ,freq,FLOAT) + #define FREQ(A2) CCALLSFFUN1(FREQ,freq,FLOAT,A2) + +@@ -255,10 +255,10 @@ + + PROTOCCALLSFFUN1(DOUBLE,DFRSIN,dfrsin,DOUBLE) + #define DFRSIN(A2) CCALLSFFUN1(DFRSIN,dfrsin,DOUBLE,A2) +- ++/* + PROTOCCALLSFFUN2(FLOAT,FUN,fun,INT,FLOATV) + #define FUN(A2,A3) CCALLSFFUN2(FUN,fun,INT,FLOATV,A2,A3) +- ++*/ + PROTOCCALLSFFUN1(FLOAT,G116F1,g116f1,FLOAT) + #define G116F1(A2) CCALLSFFUN1(G116F1,g116f1,FLOAT,A2) + +@@ -270,10 +270,10 @@ + + PROTOCCALLSFFUN1(FLOAT,GAMMA,gamma,FLOAT) + #define GAMMA(A2) CCALLSFFUN1(GAMMA,gamma,FLOAT,A2) +- ++/* + PROTOCCALLSFFUN1(FLOAT,QGAMMA,qgamma,FLOAT) + #define QGAMMA(A2) CCALLSFFUN1(QGAMMA,qgamma,FLOAT,A2) +- ++*/ + PROTOCCALLSFFUN1(DOUBLE,DGAMMA,dgamma,DOUBLE) + #define DGAMMA(A2) CCALLSFFUN1(DGAMMA,dgamma,DOUBLE,A2) + +@@ -297,16 +297,16 @@ + + PROTOCCALLSFFUN4(FLOAT,GAUSS,gauss,ROUTINE,FLOAT,FLOAT,FLOAT) + #define GAUSS(A2,A3,A4,A5) CCALLSFFUN4(GAUSS,gauss,ROUTINE,FLOAT,FLOAT,FLOAT,A2,A3,A4,A5) +- ++/* + PROTOCCALLSFFUN4(FLOAT,QGAUSS,qgauss,ROUTINE,FLOAT,FLOAT,FLOAT) + #define QGAUSS(A2,A3,A4,A5) CCALLSFFUN4(QGAUSS,qgauss,ROUTINE,FLOAT,FLOAT,FLOAT,A2,A3,A4,A5) +- ++*/ + PROTOCCALLSFFUN4(DOUBLE,DGAUSS,dgauss,ROUTINE,DOUBLE,DOUBLE,DOUBLE) + #define DGAUSS(A2,A3,A4,A5) CCALLSFFUN4(DGAUSS,dgauss,ROUTINE,DOUBLE,DOUBLE,DOUBLE,A2,A3,A4,A5) +- ++/* + PROTOCCALLSFFUN6(DOUBLE,GPINDP,gpindp,DOUBLE,DOUBLE,DOUBLE,PDOUBLE,DOUBLE,INT) + #define GPINDP(A2,A3,A4,A5,A6,A7) CCALLSFFUN6(GPINDP,gpindp,DOUBLE,DOUBLE,DOUBLE,PDOUBLE,DOUBLE,INT,A2,A3,A4,A5,A6,A7) +- ++*/ + PROTOCCALLSFFUN2(INT,IGET,iget,INTV,INT) + #define IGET(A2,A3) CCALLSFFUN2(IGET,iget,INTV,INT,A2,A3) + +@@ -315,16 +315,16 @@ + + PROTOCCALLSFFUN3(INT,ILSUM,ilsum,INT,LOGICALV,INT) + #define ILSUM(A2,A3,A4) CCALLSFFUN3(ILSUM,ilsum,INT,LOGICALV,INT,A2,A3,A4) +- ++/* + PROTOCCALLSFFUN10(FLOAT,QLINSQ,qlinsq,INT,INT,INT,FLOATV,PFLOAT,FLOATV,FLOATV,FLOATV,PDOUBLE,INT) + #define QLINSQ(A2,A3,A4,A5,A6,A7,A8,A9,A10,A11) CCALLSFFUN10(QLINSQ,qlinsq,INT,INT,INT,FLOATV,PFLOAT,FLOATV,FLOATV,FLOATV,PDOUBLE,INT,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11) +- ++*/ + PROTOCCALLSFFUN3(INT,LKKSPL,lkkspl,DOUBLE,DOUBLEV,INT) + #define LKKSPL(A2,A3,A4) CCALLSFFUN3(LKKSPL,lkkspl,DOUBLE,DOUBLEV,INT,A2,A3,A4) +- ++/* + PROTOCCALLSFFUN4(INT,LOCHAR,lochar,INTV,INT,INTV,INT) + #define LOCHAR(A2,A3,A4,A5) CCALLSFFUN4(LOCHAR,lochar,INTV,INT,INTV,INT,A2,A3,A4,A5) +- ++*/ + PROTOCCALLSFFUN2(INT,MAXFZE,maxfze,FLOATV,INT) + #define MAXFZE(A2,A3) CCALLSFFUN2(MAXFZE,maxfze,FLOATV,INT,A2,A3) + +@@ -339,10 +339,10 @@ + + PROTOCCALLSFFUN2(INT,NDIGIT,ndigit,DOUBLE,DOUBLE) + #define NDIGIT(A2,A3) CCALLSFFUN2(NDIGIT,ndigit,DOUBLE,DOUBLE,A2,A3) +- ++/* + PROTOCCALLSFFUN1(INT,NEAR1,near1,FLOAT) + #define NEAR1(A2) CCALLSFFUN1(NEAR1,near1,FLOAT,A2) +- ++*/ + PROTOCCALLSFFUN1(INT,NIC311,nic311,FLOAT) + #define NIC311(A2) CCALLSFFUN1(NIC311,nic311,FLOAT,A2) + --- cernlib-2005.05.09.dfsg.orig/debian/patches/804-link-to-comis-includes.sh.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/804-link-to-comis-includes.sh.dpatch @@ -0,0 +1,17 @@ +#!/bin/sh + +# Shell script to link pawlib/comis/comis into the top-level include directory. + +set -e +cd src + +case "$1" in + -patch) + ln -s ../pawlib/comis/comis include/comis ;; + + -unpatch) + rm -f include/comis ;; + + *) exit 1 ;; +esac + --- cernlib-2005.05.09.dfsg.orig/debian/patches/113-cups-postscript-fix.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/113-cups-postscript-fix.dpatch @@ -0,0 +1,26 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 113-cups-postscript-fix.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Re-order PostScript output to work around CUPS printing issue. + +@DPATCH@ +diff -urNad cernlib-2005.05.09~/src/graflib/higz/ipost/ipdef.F cernlib-2005.05.09/src/graflib/higz/ipost/ipdef.F +--- cernlib-2005.05.09~/src/graflib/higz/ipost/ipdef.F 2003-03-20 09:14:10.000000000 +0000 ++++ cernlib-2005.05.09/src/graflib/higz/ipost/ipdef.F 2005-09-20 18:59:21.992348547 +0000 +@@ -316,6 +316,7 @@ + CALL IPPSTR('%%EndProlog@') + * + CALL IPPSTR('%%BeginSetup@') ++ CALL IPPSTR('%%EndSetup@') + CALL IPPSTF(8,'newpath ') + CALL IPSVRT(1) + IF (MODE.EQ.1.OR.MODE.EQ.4) THEN +@@ -333,7 +334,6 @@ + ENDIF + CALL IPPSTF(15,' .25 .25 scale ') + IF (MODE.NE.3) CALL IPSVRT(1) +- CALL IPPSTR('%%EndSetup@') + * + NBSAV0 = NBSAVE + IF (MODE.NE.3) CALL IPPSTR('%%Page: number 1@') --- cernlib-2005.05.09.dfsg.orig/debian/patches/114-install-scripts-properly.dpatch +++ cernlib-2005.05.09.dfsg/debian/patches/114-install-scripts-properly.dpatch @@ -0,0 +1,24 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 114-install-scripts-properly.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Install scripts properly (i.e. don't try to strip them). + +@DPATCH@ +diff -urNad cernlib-2005.05.09.dfsg~/src/scripts/Imakefile cernlib-2005.05.09.dfsg/src/scripts/Imakefile +--- cernlib-2005.05.09.dfsg~/src/scripts/Imakefile 2004-07-29 10:17:08.000000000 -0400 ++++ cernlib-2005.05.09.dfsg/src/scripts/Imakefile 2005-12-02 10:45:23.091782817 -0500 +@@ -1,10 +1,10 @@ + +-InstallProgram(paw,$(CERN_BINDIR)) ++InstallNamedProg(paw,paw,$(CERN_BINDIR)) + + #if defined(CERNLIB_SHIFT) + InstallNamedProg(cernlib_shift,cernlib,$(CERN_BINDIR)) + #else +-InstallProgram(cernlib,$(CERN_BINDIR)) ++InstallNamedProg(cernlib,cernlib,$(CERN_BINDIR)) + #endif + +-InstallProgram(gxint,$(CERN_BINDIR)) ++InstallNamedProg(gxint,gxint,$(CERN_BINDIR)) --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/Makefile +++ cernlib-2005.05.09.dfsg/debian/add-ons/Makefile @@ -0,0 +1,523 @@ +# Variables for installation directories, conforming to GNU standards +prefix = /usr/local +exec_prefix = $(prefix) +bindir = $(exec_prefix)/bin +sbindir = $(exec_prefix)/sbin +datadir = $(prefix)/share +sysconfdir = $(prefix)/etc +libdir = $(exec_prefix)/lib +includedir = $(prefix)/include +mandir = $(prefix)/man +man1dir = $(mandir)/man1 +man8dir = $(mandir)/man8 +srcdir = . +abssrcdir = $(strip $(shell cd $(srcdir) && pwd)) + +# Other variables important to Cernlib compilation +export ARCH = $(strip $(shell uname -s)) +export CERN = $(shell pwd) +export CERN_LEVEL = $(strip $(shell \ + tar tzf $(abssrcdir)/upstream/src_Imakefile.tar.gz \ + | cut -d / -f 1)) +export CERN_ROOT = $(CERN) +export CVSCOSRC = $(CERN_ROOT)/src +export CERN_DOCDIR = $(CERN_ROOT)/doc +export CERN_BINDIR = $(CERN_ROOT)/bin +export CERN_LIBDIR = $(CERN_ROOT)/lib +export CERN_SHLIBDIR = $(CERN_ROOT)/shlib +export CERN_BUILDDIR = $(CERN_ROOT)/build + +export SHELL = /bin/sh +export PATCHDIR = $(abssrcdir)/debian/patches +export ADDONDIR = $(abssrcdir)/debian/add-ons +export LIB_SONAME = 1 +export PATH := $(CERN_BINDIR):$(ADDONDIR)/bin:${PATH} +export INSTALL_OPTS = -s +export CC ?= gcc +export DEB_BUILD_ARCH ?= $(shell $(CC) -dumpmachine | \ + sed -e 's/-linux-gnu$$//' -e 's/-linux$$//') +LOCAL_DEFINES = + +# make sure patches are applied in the right order: +export LANG = C +export LC_COLLATE = C + +# DEB_BUILD_OPTIONS support +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + export OPTIMIZED_OPTS= \#define OptimizationLevel -O0 +endif +ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + export INSTALL_OPTS= +endif + +# use this to build cernlib with Intel's ifort (formerly ifc) and icc compiler. +# Note that your /etc/ld.so.conf must include the location of the "libimf.so" +# file included with ifort! +ifneq (,$(findstring ifort,$(DEB_BUILD_OPTIONS))) + export IFORT=yes +endif + +# use this to build cernlib faster for debugging, omitting the spdf code +# from libpdflib804 which takes forever to compile +ifneq (,$(findstring nospdf,$(DEB_BUILD_OPTIONS))) + export NO_SPDF=no_spdf +endif + +KUIPC = $(CERN_BINDIR)/kuipc +NEEDS_MAKEFILE = cfortran code_motif geant321 graflib kernlib mathlib mclibs \ + packlib patchy pawlib paw_motif phtools scripts +BIN_PACKAGES = packlib graflib pawlib # patchy doesn't compile + +# Order here is important! Packages that depend on other packages must be +# compiled later, or the linker risks picking up stuff in /usr/lib instead +# of $(CERN_SHLIBDIR). +LIB_PACKAGES = kernlib packlib mathlib graflib code_motif mclibs phtools \ + pawlib paw_motif geant321 + +MCDOC = $(datadir)/doc/montecarlo-doc +GEANTDOC = $(datadir)/doc/geant321-doc + +all: cernlib-indep cernlib-arch + +cernlib-arch: stampdir/cernlib-arch-stamp +cernlib-indep: stampdir/cernlib-indep-stamp +gunzip: stampdir/gunzip-stamp +patch: stampdir/patch-stamp +install: install-indep install-arch + +stampdir/cernlib-arch-stamp: + [ -e stampdir/cernlib-arch-stamp ] || \ + $(MAKE) cernlib-libraries cernlib-programs cernlib-static \ + cernlib-mc-data cernlib-mc-docs + mkdir -p stampdir + touch stampdir/cernlib-arch-stamp + +stampdir/cernlib-indep-stamp: + [ -e stampdir/cernlib-indep-stamp ] || \ + $(MAKE) cernlib-geant-data cernlib-geant-docs scripts + mkdir -p stampdir + touch stampdir/cernlib-indep-stamp + +stampdir/gunzip-stamp: + chmod a+x $(ADDONDIR)/bin/* + for x in $(abssrcdir)/upstream/src_*.tar.gz ; do tar xzf $$x ; done + # get rid of the needless extra directory whose name changes yearly + mv $(CERN)/$(CERN_LEVEL)/src $(CERN)/ + rmdir $(CERN)/$(CERN_LEVEL) + # get rid of the CVS directories + find $(CVSCOSRC)/ -name CVS | xargs rm -rf + mkdir -p stampdir + touch stampdir/gunzip-stamp + +stampdir/configure-stamp: stampdir/gunzip-stamp + # Add various patches to the patch directory based on environment + # variable options + for patch in $(PATCHDIR)/*.dpatch.in ; do \ + sed -e 's,@PREFIX@,$(prefix),g' -e 's,@DATADIR@,$(datadir),g' \ + -e 's,@OPTIMIZED_OPTS@,$(OPTIMIZED_OPTS),g' \ + -e 's,@INSTALL_OPTS@,$(INSTALL_OPTS),g' \ + -e 's,@LOCAL_DEFINES@,$(LOCAL_DEFINES),g' \ + $$patch > $${patch%.in} ; \ + chmod a+x $${patch%.in} ; \ + done + if [ -n "$(IFORT)" ] ; then \ + cp -p $(PATCHDIR)/optional/900-use-ifort-and-icc-compilers.dpatch $(PATCHDIR) ; \ + echo 900-use-ifort.dpatch >> $(PATCHDIR)/00list ; \ + fi + if [ -n "$(NO_SPDF)" ] ; then \ + cp -p $(PATCHDIR)/optional/901-dont-compile-spdf.dpatch $(PATCHDIR) ; \ + echo 901-dont-compile-spdf.dpatch >> $(PATCHDIR)/00list ; \ + fi + if [ "$(DEB_BUILD_ARCH)" = m68k ] ; then \ + cp -p $(PATCHDIR)/optional/902-no-isajet-on-m68k.dpatch $(PATCHDIR) ; \ + echo 902-no-isajet-on-m68k.dpatch >> $(PATCHDIR)/00list ; \ + fi + mkdir -p stampdir + touch stampdir/configure-stamp + +stampdir/patch-stamp: stampdir/configure-stamp + # A hacky way to use dpatch without actually necessarily + # having it installed. Patches whose name ends in .sh.dpatch + # are really shell scripts. + set -e ; \ + export LC_COLLATE=C ; \ + for patch in $(PATCHDIR)/*.dpatch ; do \ + if [ "$$patch" = "$${patch%.sh.dpatch}" ] ; then \ + patch -f -p1 < "$$patch" ; \ + else \ + chmod a+x "$$patch" ; \ + "$$patch" -patch ; \ + fi ; \ + done + mkdir -p stampdir + touch stampdir/patch-stamp + +buildtree: + mkdir -p $(CERN_BUILDDIR)/log + cd $(CERN_BUILDDIR) && $(CVSCOSRC)/config/imake_boot + +$(KUIPC): buildtree patch + cd $(CERN_BUILDDIR) && $(MAKE) MAKEOVERRIDES= bin/kuipc + +# we need to do this rather than using the scripts Makefile, +# which (stupidly) calls install -s [strip] on shell scripts +scripts: patch + set -e ; \ + mkdir -p $(CERN_BINDIR) ; \ + for script in gxint paw ; do \ + install -p -m 0755 $(CVSCOSRC)/scripts/$$script $(CERN_BINDIR);\ + done + # also, we want to use a completely rewritten cernlib script + sed -e 's,@LIBPREFIX@,$(libdir),g' -e 's,@PREFIX@,$(prefix),g' \ + $(ADDONDIR)/bin/cernlib.in > $(CERN_BINDIR)/cernlib && \ + chmod a+x $(CERN_BINDIR)/cernlib + # and add a paw-demos script + sed -e 's,@DATADIR@,$(datadir),g' $(ADDONDIR)/bin/paw-demos.in \ + > $(CERN_BINDIR)/paw-demos && \ + chmod a+x $(CERN_BINDIR)/paw-demos + +# build libraries (currently I can get shared libraries to compile only +# on Linux) +cernlib-libraries: patch $(KUIPC) scripts + set -e ; \ + for package in $(NEEDS_MAKEFILE) ; do \ + if [ -d $(CVSCOSRC)/$$package ] ; then \ + cd $(CERN_BUILDDIR)/ && $(MAKE) MAKEOVERRIDES= \ + $$package/Makefile ; \ + fi ; \ + done ; \ + for package in $(LIB_PACKAGES) ; do \ + if [ -d $(CVSCOSRC)/$$package ] ; then \ + cd $(CERN_BUILDDIR)/$$package && $(MAKE) \ + MAKEOVERRIDES= install.lib ; \ + if [ "$(ARCH)" = Linux ] ; then \ + cd $(CERN_BUILDDIR)/$$package && $(MAKE) \ + MAKEOVERRIDES= install.shlib ; \ + fi ; \ + fi ; \ + done ; \ + for file in $(CERN_LIBDIR)/lib*-shift.a ; do \ + if [ -L $$file ] ; then rm -f $$file ; fi ; \ + done + +# build programs +cernlib-programs: + set -e ; \ + for package in $(BIN_PACKAGES) ; do \ + if [ -d $(CVSCOSRC)/$$package ] ; then \ + cd $(CERN_BUILDDIR)/$$package && $(MAKE) \ + MAKEOVERRIDES= CERN_LEVEL=. install.bin ; \ + fi ; \ + done + +# now build statically linked programs for *-static packages. +# these will be linked dynamically against system libraries, but +# statically against cernlib libraries. +# This is not necessary on non-Linux archs where I can't yet compile shlibs +# so everything is statically linked anyway. +cernlib-static: + set -e ; \ + [ -d $(CERN_SHLIBDIR) ] || exit 0 ; \ + g77 $(CERN_BUILDDIR)/pawlib/paw/programs/0pamain.o \ + `cernlib -G X11 pawlib` -Wl,-E -o $(CERN_BINDIR)/pawX11.static;\ + g77 $(CERN_BUILDDIR)/pawlib/paw/programs/0pamainm.o \ + `cernlib -G Motif pawlib` -Wl,-E -o $(CERN_BINDIR)/paw++.static + +# these targets build only the arch-independent data files +cernlib-geant-data: patch buildtree + $(MAKE) -C $(CERN_BUILDDIR) MAKEOVERRIDES= geant321/Makefile + $(MAKE) -C $(CERN_BUILDDIR)/geant321 MAKEOVERRIDES= gxint/Makefile + $(MAKE) -C $(CERN_BUILDDIR)/geant321/gxint \ + MAKEOVERRIDES= $(CERN_LIBDIR)/gxint321.f + +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 ; \ + 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 + +# geant321 +cernlib-geant-docs: patch + set -e ; \ + mkdir -p $(CERN_DOCDIR) ; \ + rm -f $(CERN_DOCDIR)/geant321.txt; \ + cd $(CVSCOSRC)/geant321 ; \ + for x in gbase gcons gdraw ggeom ghits giopa gkine gphys gtrak ; do \ + ( echo && echo -n " [" && \ + echo -n $$x | cut -b 2-5 | tr '[a-z]' '[A-Z]' |xargs echo -n\ + && echo "]"&& echo && \ + sed -e '/^\#.*$$/d' -e '1,/^\*-- Author/d' \ + -e '/^\*$$/d' $$x/$$x.doc ) >> \ + $(CERN_DOCDIR)/geant321.txt ; \ + done ; \ + cd doc ; \ + ( echo " ERTRAK Documentation" && \ + echo " ====================" && \ + sed -e '/^\*/d' gedoc ) > $(CERN_DOCDIR)/ertrak.txt ; \ + mkdir -p $(CERN_DOCDIR)/gheisha ; \ + cd ghdoc ; \ + for x in `ls *.doc | sed 's/.doc$$//g'` ; do \ + sed -e '/^\*/d' -e 's/^C\*\*//g' $$x.doc > \ + $(CERN_DOCDIR)/gheisha/$$x.txt;\ + done + +# target to install include files for development packages +install-includes: + install -d -m 0755 $(includedir) $(includedir)/geant + + # install them all (patching includes, e.g. #include "ksys.h" + # -> #include ) + for dir in `cat $(ADDONDIR)/includelist.txt` ; do \ + basedir=`basename $$dir` ; \ + rm -rf $(includedir)/$$basedir ; \ + cp -Rp $(CVSCOSRC)/$$dir $(includedir) ; \ + ls -1 $(includedir)/$$basedir/* | egrep -v '\.(h|inc)$$' \ + | xargs rm -rf ; \ + for file in `ls -1 $(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 + + # move $(includedir)/ntuple to $(includedir)/paw/ntuple + rm -rf $(includedir)/paw/ntuple + mv -f $(includedir)/ntuple $(includedir)/paw/ + for file in `ls -1 $(includedir)/paw/ntuple/*` ; do \ + sed -e 's,]*\)>,,g' $$file \ + > $$file.tmp ; \ + mv -f $$file.tmp $$file ; \ + done + + # install some symlinks, e.g. herwig$$version -> herwig + rm -f $(includedir)/herwig && ln -sf herwig59 $(includedir)/herwig + rm -rf $(includedir)/isajet758 + mv $(includedir)/isajet $(includedir)/isajet758 + ln -sf isajet758 $(includedir)/isajet + rm -rf $(includedir)/pdf804 + mv $(includedir)/pdf $(includedir)/pdf804 + ln -sf pdf804 $(includedir)/pdf + + # install cfortran.doc (if cfortran.h exists; for Debian packaging we + # deleted it earlier) + set -e ; \ + if [ -e $(CVSCOSRC)/cfortran/cfortran.h ] ; then \ + install -d -m 0755 $(datadir)/doc/cfortran ; \ + install -p -m 0644 $(CVSCOSRC)/cfortran/cfortran.doc \ + $(datadir)/doc/cfortran/ ; \ + fi + + # install still more include files + install -p -m 0644 $(CVSCOSRC)/cfortran/*.h $(includedir)/ + install -p -m 0644 $(CVSCOSRC)/car/*.car $(includedir)/ + rm -f $(includedir)/geanh.car && \ + ln -sf geanh321.car $(includedir)/geanh.car + rm -f $(includedir)/geant.car && \ + ln -sf geant321.car $(includedir)/geant.car + ( cd $(includedir)/geant/ && ln -sf ../geant321 gcdes ) + + # a few more needed patches + sed 's,REAL,DOUBLE PRECISION,g' $(includedir)/isajet/hepevt.inc \ + > $(includedir)/isajet/hepevt.inc.tmp && \ + mv -f $(includedir)/isajet/hepevt.inc.tmp $(includedir)/isajet/hepevt.inc + sed '/^#include/s,../comis/,,' $(includedir)/paw/pawsiz.inc \ + > $(includedir)/paw/pawsiz.inc.tmp && \ + mv -f $(includedir)/paw/pawsiz.inc.tmp $(includedir)/paw/pawsiz.inc + sed '/^#include/s,tree,paw,' $(includedir)/paw/tree.h \ + > $(includedir)/paw/tree.h.tmp && \ + mv -f $(includedir)/paw/tree.h.tmp $(includedir)/paw/tree.h + +# target to install files in arch-dependent packages +install-arch: install-includes + install -d -m 0755 $(bindir) $(sbindir) $(libdir) \ + $(datadir)/cojets $(datadir)/isajet $(datadir)/eurodec \ + $(datadir)/pixmaps $(sysconfdir)/X11/app-defaults \ + $(man1dir) $(man8dir) + + # rename some files that conflict with the cdbackup package + set -e ; \ + for file in backup make move serv ; do \ + [ -x $(CERN_BINDIR)/cd$$file ] && \ + mv $(CERN_BINDIR)/cd$$file $(CERN_BINDIR)/hep$$file || true ; \ + done + + # install binaries + for binary in dzedit dzeX11 fatback fatmen fatnew fatsend fatsrv \ + hepbackup hepdb hepmake hepmove hepserv kuesvr kuipc kxterm \ + paw++ pawX11 zftp ; do \ + install -p -m 0755 $(CERN_BINDIR)/$$binary $(bindir)/ ; \ + done + for binary in zserv ; do \ + install -p -m 0755 $(CERN_BINDIR)/$$binary $(sbindir)/ ; \ + done + [ -z "`diff $(sbindir)/zserv $(CERN_BINDIR)/pawserv`" ] \ + && ln -sf zserv $(sbindir)/pawserv \ + || install -p $(CERN_BINDIR)/pawserv $(sbindir)/ + + # install libraries + install -p -m 0644 $(CERN_LIBDIR)/*.a $(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 $(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 + + # install Monte Carlo data files + install -p -m 0644 $(CERN_LIBDIR)/cojets.dat $(datadir)/cojets/ + install -p -m 0644 $(CERN_LIBDIR)/eurodec.dat $(datadir)/eurodec/ + install -p -m 0644 $(CERN_LIBDIR)/isajet.dat $(datadir)/isajet/ + + # install KXterm app-defaults + install -p -m 0644 $(ADDONDIR)/app-defaults/KXterm \ + $(sysconfdir)/X11/app-defaults/ + + # install KXterm icon + install -p -m 0644 $(ADDONDIR)/icons/kxterm*.xpm $(datadir)/pixmaps/ + + # install man pages + for binary in dzedit dzeX11 kuesvr kuipc kxterm paw paw++ pawX11 zftp ;\ + do \ + install -p -m 0644 $(ADDONDIR)/manpages/$$binary.1 \ + $(man1dir)/ ; \ + done + for binary in pawserv zserv ; do \ + install -p -m 0644 $(ADDONDIR)/manpages/$$binary.8 \ + $(man8dir)/ ; \ + done + + # ... 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 + + # separate static and dynamically linked binaries + set -e ; \ + for prog in pawX11 paw++ ; do \ + if [ -x $(CERN_BINDIR)/$$prog.static ] ; then \ + mv -f $(bindir)/$$prog $(bindir)/$$prog.dynamic ; \ + install -p $(CERN_BINDIR)/$$prog.static \ + $(bindir)/$$prog.static ; \ + ln -sf $$prog.static $(bindir)/$$prog ; \ + fi ; \ + done + +# target to install files in arch-independent packages +install-indep: + install -d -m 0755 $(bindir) $(sysconfdir)/X11/app-defaults \ + $(datadir)/geant321 $(datadir)/doc/geant321-doc $(includedir) \ + $(datadir)/geant321-data $(datadir)/paw-demos \ + $(datadir)/pixmaps $(datadir)/aclocal $(man1dir) + + # install some include files for montecarlo-base package + install -p -m 0644 $(CVSCOSRC)/cfortran/jetset74.h \ + $(CVSCOSRC)/cfortran/lepto62.h $(includedir)/ + + # install Geant data file into /usr/share directories + install -p -m 0644 $(CVSCOSRC)/geant321/data/xsneut95.dat \ + $(datadir)/geant321-data/ + rm -f $(CERN_LIBDIR)/xsneut95.dat + + # ... and likewise the gxint.f file used by geant + # (forcing it to call the Lesstif version of Paw) + sed 's/CALL GPAW/CALL GPAWPP/g' $(CERN_LIBDIR)/gxint321.f \ + > $(datadir)/geant321/gxint321.f + ln -sf gxint321.f $(datadir)/geant321/gxint.f + + # ... and Geant documentation + install -p -m 0644 $(CERN_DOCDIR)/geant321.txt \ + $(CERN_DOCDIR)/ertrak.txt $(GEANTDOC)/ + install -d -m 0755 $(GEANTDOC)/gheisha + install -p -m 0644 $(CERN_DOCDIR)/gheisha/* $(GEANTDOC)/gheisha/ + + # ... and paw demos + install -p -m 0644 $(CVSCOSRC)/pawlib/paw/demo/* $(datadir)/paw-demos/ + install -p -m 0755 $(ADDONDIR)/bin/clean_demo $(datadir)/paw-demos/ + + # ... and X11 app-defaults + install -p -m 0644 $(ADDONDIR)/app-defaults/*++ \ + $(sysconfdir)/X11/app-defaults/ + + # ... and PAW icon + install -p -m 0644 $(ADDONDIR)/icons/paw*.xpm $(datadir)/pixmaps/ + + # ... and scripts + man pages + for script in cernlib gxint paw paw-demos ; do \ + install -p -m 0755 $(CERN_BINDIR)/$$script $(bindir)/ ; \ + done + for manpage in cernlib gxint paw paw-demos paw++ pawX11 ; do \ + install -p -m 0644 $(ADDONDIR)/manpages/$$manpage.1 \ + $(man1dir)/ ; \ + done + + # Contributed Autoconf macros + install -p -m 0644 $(ADDONDIR)/misc/cernlib.m4 $(datadir)/aclocal/ + +clean: + rm -rf stampdir src doc bin lib shlib build 200? + rm -f $(PATCHDIR)/9[0-9][0-9]*.dpatch + +.PHONY: all gunzip patch buildtree scripts \ + cernlib-arch cernlib-libraries cernlib-programs cernlib-static \ + cernlib-indep cernlib-geant-data cernlib-mc-data \ + cernlib-geant-docs cernlib-mc-docs \ + install install-arch install-includes install-indep clean + --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/bin/clean_demo +++ cernlib-2005.05.09.dfsg/debian/add-ons/bin/clean_demo @@ -0,0 +1,16 @@ +#!/bin/sh + +# This script is provided to clean the demo directory. You can call it +# by running "paw-demos --clean" [see paw-demos(1)] or by cd'ing to +# the demo directory and running it directly: "./clean_demo" + +rm junk +rm *.hbook +rm last* +rm *.metafile +rm *.mask +rm *.higz +rm *.data +rm pawtest.f +rm pawmlp.f +rm -rf linux/ --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/bin/gmake +++ cernlib-2005.05.09.dfsg/debian/add-ons/bin/gmake @@ -0,0 +1,38 @@ +#!/bin/sh + +# gmake wrapper script + +# This is needed because the name of the make command in the cernlib source +# is assumed to be "gmake", but GNU Make is simply called "make" in most +# Linux distributions. + +# Do not install this script; it should be used only for the cernlib build +# process. + +if [ "x$ADDONDIR" = x ] ; then + echo "gmake: this script is not intended to be used outside the" + echo " cernlib build process!" + exit 1 +fi + +MAKE="" + +# see if there is a "gmake" other than this script +OLDPATH="$PATH" +export PATH="`echo "$OLDPATH" | sed \ + -e 's,:'"${ADDONDIR}"'/bin:,:,g' \ + -e 's,^'"${ADDONDIR}"'/bin:,,g' \ + -e 's,:'"${ADDONDIR}"'/bin$,,g'`" +which gmake > /dev/null 2>&1 && MAKE="`which gmake`" +export PATH="$OLDPATH" + +# if not, try to use "make" +[ "x$MAKE" = x ] && which make > /dev/null 2>&1 && MAKE=make + +if [ "x$MAKE" = x ] ; then + echo "gmake: wrapper script can find neither gmake nor make in \$PATH!" + exit 1 +fi + +exec "$MAKE" "$@" + --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/bin/cernlib.in +++ cernlib-2005.05.09.dfsg/debian/add-ons/bin/cernlib.in @@ -0,0 +1,541 @@ +#!/bin/bash + +# This script is a completely rewritten version of the cernlib script supplied +# with the original Cernlib source. It now does recursive library dependency +# checking, removes duplicate entries, and makes breakfast. (Well, not really.) +# This script is provided under the GNU General Public License. + +# I have tried to maintain cross-platform compatibility, but I don't have +# any other architectures handy to test things on, so it might have broken. +# But this is not a big deal, since it's doubtful that someone would use +# Debian packages on HP-UX, Solaris, etc. anyway. + +# Author: Kevin McCarty, 2002/06/12 +# Last revision 2004/05/07 + +print_help() { + cat <<- EOF + Usage: cernlib [OPTIONS] LIBRARIES + List the linker options required to compile a Cernlib program with the given + library dependencies. Example: "cernlib -G Motif pawlib" on Linux outputs + "-Wl,-static -lpawlib-lesstif -lpawlib -lmathlib -lgraflib + -lpacklib-lesstif -lgrafX11 -lpacklib -lkernlib -Wl,-dy -llapack-3 + -L/usr/X11R6/lib -lm -lXm -lXt -lX11 -lnsl -lcrypt -ldl -lg2c". + + -a Specify an architecture, e.g. Linux (default), AIX, HP-UX, etc. + -dy, -safe Don't assume CERN libraries should be linked against statically. + This flag is also required when using the compiler -static flag. + -G Specify a graphics driver. Options: X11, Motif, GPHIGS, + GKS, GL, GPR. Only the first two are available on Linux. + -P, -s Ignored; for backwards compatibility. + -u Do not include arch-specific libraries in the output. + -v Specify version of \$CERN_LEVEL. This is meaningless unless + you have installed non-Debian versions of Cernlib. In that + case you should export \$CERN or \$CERN_ROOT first. + -?, --help Print this help message and exit. + EOF +} + +# Function to determine system name +sysname() { + local ARCH + + [ -d /NextAdmin ] && ARCH="NeXT" || ARCH=`uname -s` + case $ARCH in + SunOS) [ `uname -r | awk '{ print substr($1,1,1) }'` -ge 5 ] \ + && ARCH="SunSol" + ;; + *) ;; + esac + echo $ARCH +} + +# Function to find system-specific libraries +# Usage: find_sysdeps [ $ARCH ] +find_sysdeps() { + local ARCH SYSLIBS + + [ $# -lt 1 ] && ARCH=`sysname` || ARCH=$1 + [ "$ARCH" = "default" ] && ARCH=`sysname` + SYSLIBS="" + + # SGI needs -lsun, to see yellow pages + # As of 5.x, the yp version is in libc, so -lsun is no longer needed. + # GF. 18-7-96 + # [ -f /usr/lib/libsun.a -o -f /usr/lib/libsun.so ] \ + # && SYSLIBS="-lsun" + [ -f /usr/lib/libulsock.a -o -f /usr/lib/libulsock.so ] \ + && SYSLIBS="$SYSLIBS -lulsock" + # Solaris, many things won't link without -lsocket -lnsl + if [ "$ARCH" = "SunSol" ] ; then + [ -f /usr/lib/libw.so -o -f /usr/lib/libw.a ] \ + && SYSLIBS="$SYSLIBS -lw" + [ -f /usr/ccs/lib/libgen.so -o -f /usr/ccs/lib/libgen.a ] \ + && SYSLIBS="$SYSLIBS -lgen" + [ -f /usr/lib/libsocket.so -o -f /usr/lib/libsocket.a ] \ + && SYSLIBS="$SYSLIBS -lsocket" + [ -f /usr/lib/libnsl.so -o -f /usr/lib/libnsl.a ] \ + && SYSLIBS="$SYSLIBS -lnsl" + [ -f /usr/lib/libintl.so -o -f /usr/lib/libintl.a ] \ + && SYSLIBS="$SYSLIBS -lintl" + SYSLIBS="$SYSLIBS -ldl" + fi + + if [ "$ARCH" = "HP-UX" ] ; then + if [ -f /usr/lib/libU77.a -o -f /usr/lib/libU77.sl ] ; then + SYSLIBS="$SYSLIBS -lU77" + elif [ -f /opt/fortran/lib/libU77.a ] ; then + SYSLIBS="$SYSLIBS /opt/fortran/lib/libU77.a" + elif [ -f /opt/fortran/lib/libU77.sl ] ; then + SYSLIBS="$SYSLIBS /opt/fortran/lib/libU77.sl" + fi + + SYSLIBS="$SYSLIBS /usr/lib/libdld.sl" + [ -f /lib/pa1.1/libm.a ] && SYSLIBS="$SYSLIBS /lib/pa1.1/libm.a" + fi + + [ "$ARCH" = "AIX" ] && SYSLIBS="$SYSLIBS -lld" + [ "$ARCH" = "Linux" ] && SYSLIBS="$SYSLIBS -lnsl -lcrypt -ldl -lg2c" + [ "$ARCH" = "Darwin" ] && SYSLIBS="$SYSLIBS -ldl" + + echo $SYSLIBS +} + +# Function to find graphics libraries +# Usage: find_grafdeps [ $DRIVER [ $ARCH ] ] +find_grafdeps() { + local DRIVER ARCH GRAFLIBS + + [ $# -lt 1 ] && DRIVER=X11 || DRIVER=$1 + [ $# -lt 2 ] && ARCH=`sysname` || ARCH=$2 + [ "$DRIVER" = "default" ] && DRIVER=X11 + [ "$ARCH" = "default" ] && ARCH=`sysname` + + case $ARCH in + AIX) + SYSGGL="-lfgl -lgl" ; + [ -f /usr/lib/libgP.a ] && SYSGGKS="-lgksco -lgP -lX11" + SYSGMOTIF="-lXm -lXt -lX11 -lPW" + ;; + ALLIANT) + SYSGX11="-lX11 -lcurses -lm" + ;; + HP-UX) + if [ -d /usr/lib/X11R5 -a -d /usr/lib/Motif1.2 ] ; then + X11="/usr/lib/X11R5" + Motif="/usr/lib/Motif1.2" + SYSGMOTIF="-L$Motif -lXm -L$X11 -lXt -lX11 -lm -lc -lPW" + else + X11="/usr/lib/X11R4" + Motif="/usr/lib/Motif1.1" + # Xm must appear late, else you get + # unresolved extrernals + SYSGMOTIF="-L$Motif -L$X11 -lXm -lXt -lX11 -lm -lc -lPW" + fi + SYSGX11="-L$X11 -lX11 -lm" + ;; + IBMAIX) + SYSGX11="-lX11 -lm" + ;; + IRIX) + SYSGX11="-lX11 -lbsd" + SYSGGL="-lfgl -lgl_s -lm -lbsd" + SYSGMOTIF="-lXm -lXt -lX11 -lPW" + ;; + IRIX64) + SYSGX11="-lX11 -lbsd" + SYSGGL="-lfgl -lgl_s -lm -lbsd" + SYSGMOTIF="-lXm -lXt -lX11 -lPW" + ;; + Linux) + SYSGX11=-lX11 + SYSGMOTIF="-lXm -lXt -lX11" + XDIR=/usr/X11R6/lib + XDIR64=/usr/X11R6/lib64 + if [ -d $XDIR64 ] ; then + SYSGX11="-L$XDIR64 $SYSGX11" + SYSGMOTIF="-L$XDIR64 $SYSGMOTIF" + fi + if [ -d $XDIR ] ; then + SYSGX11="-L$XDIR $SYSGX11" + SYSGMOTIF="-L$XDIR $SYSGMOTIF" + fi + ;; + Darwin) + SYSGX11=-lX11 + SYSGMOTIF="-lXm -lXt -lXp -lXext -lX11 -lSM -lICE" + XDIR=/usr/X11R6/lib + XDIR64=/usr/X11R6/lib64 + if [ -d $XDIR64 ] ; then + SYSGX11="-L$XDIR64 $SYSGX11" + SYSGMOTIF="-L$XDIR64 $SYSGMOTIF" + fi + if [ -d $XDIR ] ; then + SYSGX11="-L$XDIR $SYSGX11" + SYSGMOTIF="-L$XDIR $SYSGMOTIF" + fi + ;; + + NeXT) + SYSGX11="/usr/lib/X11/libX11.r" + SYSGMOTIF="-lXm -lXt /usr/lib/X11/libX11.r" + ;; + OSF1) + SYSGX11="-lX11 -ldnet_stub" + SYSGMOTIF="-lXm -lXt -lX11 -ldnet_stub -lPW -lXmu" + ;; + SunOS) + [ -d /usr/motif/lib ] && Motif="-L/usr/motif/lib" \ + || Motif=" " + if [ -d /usr/motif12/usr/lib ] ; then + Motif="-L/usr/motif12/usr/lib" + # motif12 needs X11R5 from usr/local/lib + X11="-L/usr/local/lib" + else + X11="" + fi + SYSGMOTIF="$Motif -lXm $X11 -lXt -lX11" + [ -f /usr/lib/libgks77.a ] && \ + SYSGGKS="-lgks77 -lgks -lsuntool -lsunwindow -lpixrect -lm" + ;; + SunSol) + [ -d /usr/motif/lib ] && Motif="-L/usr/motif/lib" \ + || Motif=" " + [ -d /usr/motif12/usr/lib ] && \ + Motif="-L/usr/motif12/usr/lib" + [ -d /usr/dt/lib ] && \ + Motif="-L/usr/dt/lib -R/usr/dt/lib -Bdynamic" + [ -d /usr/openwin/lib ] && \ + X11="-L/usr/openwin/lib" || X11="" + SYSGX11="$X11 -Bdynamic -lX11" + SYSGMOTIF="$Motif -lXm $X11 -Bdynamic -lXt -lX11" + [ -f /usr/lib/libgks77.a ] && \ + SYSGGKS="-lgks77 -lgks -lsuntool -lsunwindow -lpixrect -lm" + ;; + ULTRIX) + [ -f /usr/lib/libGKS3D.a ] && \ + SYSGGKS="-lGKS3Dforbnd -lGKS3D -lddif -ldwt -lc -lX11 -lcursesX -lm" + ;; + DomainOS) + SYSGX11="" + SYSGMOTIF="-L/usr/lib/X11 -lXm -lXt -lX11 -lm" + ;; + esac # case `sysname` in + [ -z "$SYSGX11" ] && SYSGX11="-lX11" + + GRAFLIBS="" + case $DRIVER in + GL) GRAFLIBS="$GRAFLIBS $SYSGGL" ;; + GPR) GRAFLIBS="$GRAFLIBS $SYSGGPR" ;; + X11) GRAFLIBS="$GRAFLIBS $SYSGX11" ;; + Lesstif|Motif) + [ -z "$SYSGMOTIF" ] && SYSGMOTIF="-lXm -lXt $SYSGX11" + GRAFLIBS="$GRAFLIBS $SYSGMOTIF" + ;; + GPHIGS) + [ -z "$SYSGPHIGS" ] && \ + SYSGPHIGS="_-L$CERN/phigs/$_ver/lib _-lgphigsf2c _-lgphigsc" + GRAFLIBS="$GRAFLIBS $SYSGPHIGS" + ;; + GKS) + [ -z "$SYSGGKS" ] && \ + SYSGGKS="_-L$CERN/gks/$_ver/lib _-lGKS _-lGKSdriv $SYSGX11" + GRAFLIBS="$GRAFLIBS $SYSGGKS" + ;; + --) break ;; + *) break ;; + esac # case $DRIVER in + + echo $GRAFLIBS +} + +# Function to find a library +find_library() { + local dirlist="/lib /usr/lib @LIBPREFIX@" + if [ ! "$CERN" = "@PREFIX@" ] ; then + dirlist="$dirlist $CERN_ROOT/shlib $CERN_ROOT/lib" + fi + for ext in so a ; do + for dir in $dirlist ; do + [ -e "$dir/lib$1.$ext" ] && echo $dir/lib$1.$ext \ + && return + done + done +} + +# Function to calculate library dependencies for given library names +# Usage: depend $DRIVER $ARCH $libs +depend() { + local DEPS="" + local d=$1 ; shift + local a=$1 ; shift + + while [ $# -gt 0 ] ; do + case $1 in + # obsolete libnames that no longer exist AFAIK + bvsl|mpalib) + DEPS="$DEPS `depend $d $a mathlib`" ;; + genlib) + DEPS="$DEPS `depend $d $a phtools`" ;; + + # current libraries + blas) + if [ "$a" = "Darwin" ] ; then + DEPS="$DEPS -lcblas -lf77blas -latlas" + else + # Debian: try libblas-3.so alternative + if [ -n "`find_library blas-3`" ] ; + then DEPS="$DEPS -lblas-3" + elif [ -n "`find_library blas3`" ] ; + # maybe we have libblas3.so alternative? + then DEPS="$DEPS -lblas3" + else + DEPS="$DEPS -l$1" + fi + fi + DEPS="$DEPS -lm" + ;; + cojets|pdflib804|phtools) + DEPS="$DEPS _-l$1 `depend $d $a mathlib`" ;; + eurodec|kernlib|photos202) + DEPS="$DEPS _-l$1 -lm" ;; + geant321) + [ -n "`find_library jetset`" ] && \ + DEPS="$DEPS `depend $d $a jetset`" + DEPS="$DEPS _-l$1 `depend Motif $a pawlib`" ;; + herwig59|isajet758) + DEPS="$DEPS _-l$1 `depend $d $a pdflib`" ;; + lapack*) + # Debian: try liblapack-3.so alternative + if [ -n "`find_library lapack-3`" ] ; then + DEPS="$DEPS -llapack-3 -lm" + elif [ -n "`find_library lapack3`" ] ; then + # have liblapack3.so alternative? + DEPS="$DEPS -llapack3 -lm" + else + DEPS="$DEPS -l$1 -lm" + fi + if [ ! "$a" = Linux ] ; then + DEPS="$DEPS `depend $d $a blas`" + fi + ;; + mathlib) + DEPS="$DEPS _-l$1 `depend $d $a lapack packlib`" + ;; + packlib) + if [ -n "`find_library packlib-lesstif`" ] && \ + [ "$d" = Motif -o "$d" = Lesstif ] + then + DEPS="$DEPS _-lpacklib-lesstif \ + _-lgrafX11 `find_grafdeps Motif $a`" + elif [ "$d" = X11 ] ; then + DEPS="$DEPS _-lgrafX11 \ + `find_grafdeps X11 $a`" + fi + DEPS="$DEPS _-l$1 `depend $d $a kernlib`" ;; + + # these are not in the Debian distribution of Cernlib, + # but may be installed via the Debian packages + # ancis and montecarlo-installer-data + ariadne) + DEPS="$DEPS _-l$1 `depend $d $a pythia6`" ;; + ariadne-p5) + DEPS="$DEPS _-l$1 `depend $d $a lepto`" ;; + jetset|pythia|fritiof) + DEPS="$DEPS _-l$1 -lm" ;; + lepto) + DEPS="$DEPS _-l$1 `depend $d $a pythia5 \ + mathlib`" ;; + pythia5) + DEPS="$DEPS _-l$1 `depend $d $a jetset`" ;; + + # graphical libraries + + GKS|gks) + DEPS="$DEPS `find_grafdeps GKS $a`" ;; + naglib) + DEPS="$DEPS _-L$CERN/nag/$_ver/lib _-l$1" ;; + graflib*) + local drv="`echo $1 | sed 's,/, ,g' | \ + awk '{ print $2 }'`" + [ -z "$drv" ] && drv="$d" || d="$drv" + [ "$drv" = "default" -o "$drv" = "Motif" \ + -o "$drv" = "Lesstif" ] && drv="X11" + DEPS="$DEPS _-lgraflib _-lgraf$drv \ + `depend $d $a packlib` \ + `find_grafdeps $d $a`" + ;; + pawlib) + if [ -n "`find_library pawlib-lesstif`" ] && \ + [ "$d" = Motif -o "$d" = Lesstif ] ; + then + DEPS="$DEPS _-lpawlib-lesstif" + fi + DEPS="$DEPS _-l$1 \ + `depend $d $a mathlib` \ + `depend $d $a graflib/$d` \ + `find_grafdeps $d $a`" + ;; + + # needed only for compiling libraries + grafX11) + DEPS="$DEPS _-l$1 `depend $d $a packlib` \ + `find_grafdeps $d $a`" ;; + packlib-lesstif) + DEPS="$DEPS `depend Motif $a packlib` \ + `find_grafdeps Motif $a`" ;; + pawlib-lesstif) + DEPS="$DEPS `depend Motif $a pawlib` \ + `find_grafdeps Motif $a`" ;; + + # aliases + ar) DEPS="$DEPS `depend $d $a ariadne`" ;; + arp5) DEPS="$DEPS `depend $d $a ariadne-p5`" ;; + geant) DEPS="$DEPS `depend $d $a geant321`" ;; + herwig) DEPS="$DEPS `depend $d $a herwig59`" ;; + isajet) DEPS="$DEPS `depend $d $a isajet758`" ;; + pdflib) DEPS="$DEPS `depend $d $a pdflib804`" ;; + photos) DEPS="$DEPS `depend $d $a photos202`" ;; + pythia6) DEPS="$DEPS `depend $d $a pythia`" ;; + + # anything that we don't know what it is and doesn't + # start with a "-", turn into a library + *) DEPS="$DEPS -l$1" ;; + esac + shift + done + + [ "$d" != default ] && DEPS="$DEPS `find_grafdeps $d $a`" + echo $DEPS +} + +# Function to take a list of strings and prefix "-l" to any of them that +# do not begin with "-" +liblink() { + local LIST="" + while [ $# -gt 0 ] ; do + case $1 in + -*) LIST="$LIST $1" ;; + *) LIST="$LIST -l$1" ;; + esac + shift + done + echo $LIST +} + + +# Function to take a list of strings and remove all but the last occurrence +# of each -l and all but the first occurrence of each other string +uniquify() { + local RESULT="" RESULT2="" + + # Cern-related linker options have all been prepended with a "_"; + # put them all first and remove the underscore + for (( num=1 ; num <= $# ; num++ )) ; do + case ${!num} in + _*) RESULT="$RESULT ${!num#_}" ;; + *) RESULT2="$RESULT2 ${!num}" ;; + esac + done + + if [ -z "$_dynamic" ] ; then + RESULT="-Wl,-static $RESULT -Wl,-dy $RESULT2" + else + RESULT="$RESULT $RESULT2" + fi + set - $RESULT + RESULT="" + + # decrement and remove duplicate libnames + for (( num=$# ; num > 0 ; num-- )) ; do + case ${!num} in + -l*) [ -z "`echo $RESULT | grep -- ${!num}`" ] && \ + RESULT="${!num} $RESULT" ;; + *) RESULT="${!num} $RESULT" ;; + esac + done + + set - $RESULT + RESULT="" + + # increment and remove other duplicate strings + for (( num=1 ; num <= $# ; num++ )) ; do + case ${!num} in + -l*) RESULT="$RESULT ${!num}" ;; + *) [ -z "`echo $RESULT | grep -- ${!num}`" ] && \ + RESULT="$RESULT ${!num}" ;; + esac + done + + echo $RESULT +} + + +[ -z "$CERN" ] && CERN="@PREFIX@" +_ver="$CERN_LEVEL" +_u="" ; _arch="`sysname`" ; _driver="default" +_argsdone=false +ARGS="" +COMPFLAGS="" + +while [ $# -gt 0 ] ; do + if [ "$_argsdone" = false ] ; then + case $1 in + -a) _arch="$2" ; shift ;; + -dy|-safe) _dynamic=true ;; + -G) _driver="$2" ; shift ;; + -P|-s) shift ; continue ;; + -u) _u=1 ;; + -v) _ver="$2" ; shift ;; + --) _argsdone=true ; shift ;; + --help) print_help ; exit 0 ;; + -*) print_help ; exit 1 ;; + *) _argsdone=true ;; + esac + fi + + if [ "$_argsdone" = true ] ; then + case $1 in + -l*) ARGS="$ARGS ${1#-l}" ;; + -*) COMPFLAGS="$COMPFLAGS $1" ;; + *) ARGS="$ARGS $1" ;; + esac + fi + shift +done + +if [ -z "$CERN_ROOT" ] ; then + if [ "$CERN" = "@PREFIX@" ] ; then + CERN_ROOT="@PREFIX@" + else + CERN_ROOT="$CERN/$_ver" + fi +fi + +CERNLIB="" +OTHERLIBS="" + +for lib in `echo "$ARGS" | sed -e 's/,/ /g'` ; do + DEPS="`depend $_driver $_arch $lib`" + if [ -n "$DEPS" ] ; then + CERNLIB="$CERNLIB $DEPS" + else + OTHERLIBS="$OTHERLIBS `liblink $lib`" + fi +done + +LIBDIR="" +if [ "$CERN_ROOT" != "@PREFIX@" ] ; then + [ -d "$CERN_ROOT/shlib" ] && [ -n "$_dynamic" ] && \ + LIBDIR="$LIBDIR -L$CERN_ROOT/shlib" + [ -d "$CERN_ROOT/lib" ] && LIBDIR="$LIBDIR -L$CERN_ROOT/lib" + if [ -z "$LIBDIR" ] ; then + echo "Can't find Cernlib libraries in $CERN_ROOT!" 1>&2 + exit 1 + fi +fi +[ -z "$_u" ] && SYSDEPS=`find_sysdeps $_arch` || SYSDEPS="" + +echo $COMPFLAGS $LIBDIR `uniquify $CERNLIB $OTHERLIBS $SYSDEPS` +exit 0 + --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/bin/fixheader +++ cernlib-2005.05.09.dfsg/debian/add-ons/bin/fixheader @@ -0,0 +1,38 @@ +#!/bin/sh + +# shell script to add multiple inclusion protection, etc. to header files + +set -e + +header="$1" +basename=`basename "$header"` +defname=_`echo "$basename" | tr '[a-z].' '[A-Z]_'` +mv "$header" "$header.tmp" + +cat > "$header" << EOF +#ifndef $defname +#define $defname +#include + +#ifdef __cplusplus +extern "C" { +#endif + +EOF + +# convert #include "foo.h" to #include +sed 's,^\([ ]*#[ ]*include\)[ ]*"\([^"]*\)",\1 <\2>,g' \ + "$header.tmp" >> "$header" + +cat >> "$header" << EOF + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif /* #ifndef $defname */ +EOF + +rm -f "$header.tmp" +exit 0 + --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/bin/remove-deadpool +++ cernlib-2005.05.09.dfsg/debian/add-ons/bin/remove-deadpool @@ -0,0 +1,26 @@ +#!/bin/bash + +set -e +cd upstream + +for dir in `tr '/' ' ' < ../debian/deadpool.txt | awk '{print $1}' \ + | sed -e 's/#.*//g' -e '/$^/d' | sort | uniq` ; do + file=src_${dir}.tar.gz + echo Unpacking compressed source from $file... + tar xzf $file + version=`ls -1 | head -n 1` + echo Removing files with bad copyright... + for badfile in `grep '^'$dir ../debian/deadpool.txt \ + | sed 's/\#.*$//g'` ; do + path=$version/src/$badfile + [ -e "$path" ] || echo "Skipping non-existent $path ..." + rm -rf $version/src/$badfile + done + echo Repacking $file. + tar czf $file $version + rm -rf $version +done +echo Done. + +exit 0 + --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/bin/paw-demos.in +++ cernlib-2005.05.09.dfsg/debian/add-ons/bin/paw-demos.in @@ -0,0 +1,88 @@ +#!/bin/sh + +# Short script to run the paw demos in the paw-demos package + +# This script is (C) Kevin B. McCarty, 2003 +# and is licensed under the GNU General Public License. + +print_help() { + cat <<- EOF + Usage: paw-demos [options] [ []] + Options: + --batch Runs in batch mode; output to PS. + --clean Clean the demo directory. + --display Use display (default is $DISPLAY). + --driver Calls paw instead of paw. + --dir Create/use demo directory relative to \$HOME. + (Default demo directory is paw-demos.) + the number of the example to start with; examples + are skipped if example_num > 31. + the number of the test to start with; tests are skipped + if test_num > 8. + EOF + exit 0 +} + +PAW_DRV="" +DEMO_DIR="$HOME"/paw-demos +SOURCE_DIR="@DATADIR@"/paw-demos + +while [ "$#" -gt 0 ] ; do + case "$1" in + --clean) CLEAN_PAW=yes ;; + --display) shift; XDISPLAY="$1" ;; + --driver) shift; PAW_DRV="$1" ;; + --dir) shift; DEMO_DIR=$HOME/"$1" ;; + --batch) BATCH_MODE=B ;; + -*) print_help ;; + *) + if [ -z "$EXAMPLE_NUM" ] ; then + EXAMPLE_NUM=$1 + elif [ -z "$TEST_NUM" ] ; then + TEST_NUM=$1 + else + print_help + fi + ;; + esac + shift +done + +if [ -e "$DEMO_DIR" ] && [ ! -d "$DEMO_DIR" ] ; then + echo "The file $DEMO_DIR exists, but is not a directory." + echo "Please move or rename it in order to run the paw-demos script." + echo "(Or use the --dir option to the script to select a different" + echo "directory.)" + exit 1 +elif [ ! -e "$DEMO_DIR" ] ; then + mkdir -p "$DEMO_DIR" + cp "$SOURCE_DIR"/* "$DEMO_DIR" +fi + +cd "$DEMO_DIR" +if [ ! -e clean_demo ] ; then + echo "The program clean_demo does not exist in the directory" + echo "$DEMO_DIR. Perhaps that directory wasn't" + echo "originally created by this script? Try moving or renaming it," + echo "then run the paw-demos script again." + exit 1 +fi + +chmod a+x clean_demo +./clean_demo 2> /dev/null + +[ "$CLEAN_PAW" ] && exit 0 +[ -z "$TEST_NUM" ] && TEST_NUM=0 +[ -z "$EXAMPLE_NUM" ] && EXAMPLE_NUM=1 +[ "$PAW_DRV" = ++ ] || PAW_FLAGS="-w 1" +[ "$BATCH_MODE" ] && PAW_FLAGS="-w 0" +[ "$XDISPLAY" ] || XDISPLAY="$DISPLAY" + +# make sure PAW uses the right display +sed 's/0\.0/'"$XDISPLAY"'/g' "$SOURCE_DIR"/higz_windows.dat \ + > ./higz_windows.dat + +echo "filecase convert" > pawlogon.kumac +echo "Exec ALL $EXAMPLE_NUM $TEST_NUM $BATCH_MODE" >> pawlogon.kumac +exec paw$PAW_DRV $PAW_FLAGS + --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/scripts/findsym +++ cernlib-2005.05.09.dfsg/debian/add-ons/scripts/findsym @@ -0,0 +1,54 @@ +#!/bin/bash + +# find where a symbol is defined +# argument 1: "has" == what object provides a given symbol? +# "needs" == what object requires a given symbol? +# "requiredby" == what symbols are required by an object +# providing a given symbol? +# argument 2: the symbol to search for +# argument 3: directory to search in ("." if omitted) + + +printresult() { +# printresult: arg1 = file, arg2 = search pattern + local NM=nm + [ -n "`echo "$1" | egrep '\.so(\.|$)'`" ] && NM="nm -D" + local results="`$NM "$1" 2> /dev/null | egrep "$2"`" + [ -n "$results" ] && echo "$results" | sed "s,^,$1: ,g" +} + +dir=. +[ -n "$3" ] && dir="$3" +files="find '$dir' -type f -a \ + \( -name \*.o -o -name \*.a -o -name \*.so -o -name \*.so.\* \)" + +find_has() { + search='[^U]'" $1"'$' + for x in `eval $files` ; do printresult "$x" "$search" ; done +} + +find_needs() { + antisearch='[^U]'" $1"'$' + search=U" $1"'$' + for x in `eval $files` ; do + [ -z "`printresult "$x" "$antisearch"`" ] && \ + printresult "$x" "$search" + done +} + +if [ "$1" = "has" ] ; then + find_has "$2" +elif [ "$1" = "needs" ] ; then + find_needs "$2" +elif [ "$1" = "requiredby" ] ; then + objects="$(echo "$(find_has "$2")" | awk '{print $1}' | tr -d ':')" + for file in $objects ; do + printresult "$file" "U " + done +else + echo "Usage: findsym {has|needs|requiredby} " + exit 1 +fi + +exit 0 + --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/scripts/README +++ cernlib-2005.05.09.dfsg/debian/add-ons/scripts/README @@ -0,0 +1,52 @@ +Nothing in this directory is needed for compiling or building packages. +It's just a few simple scripts that make my life easier when trying to debug +library dependencies. + +makedeplist (no arguments) +-------------------------- + +When run in the top-level cernlib source directory after a compilation (note +that DEB_BUILD_OPTIONS must have been set to "nostrip"), this script will +produce directories bindeps and libdeps. These contain files like this: + +- XXX.symdeps.txt is a list of undefined symbols in a binary or shlib XXX, + found in another Cernlib library +- XXX.filedeps.txt is a summary of XXX.symdeps.txt (just gives the number + of symbols found in each depending library) + +Note that some symbols may be found in more than one library, so the filedeps +file may list unnecessary dependencies. Symbols not found in any library +linked into the shlib directory are listed (for each library and binary) in a +file XXX.not-in-cernlib.txt . + +If you want to include non-Cernlib libraries in the output, symlink to them +from the shlib directory, e.g. shlib/libX11.so -> /usr/X11R6/lib/libX11.so +This is in fact already done automatically for most of the "usual suspects", +libg2c, libc, libm, libdl, libcrypt, and libX*. + +findsym {has|needs|requiredby} [ ] +------------------------------------------------------- + +This script will find needed symbols recursively in any .o, .a, or .so files in +a directory. "findsym has " searches for object files that provide a +given symbol. "findsym needs " searches for object files that have the +symbol undefined. "findsym requiredby " prints a list of symbols +needed by object files that define the given symbol; this command works best +with object files or shared libs. + +An optional third argument specifies the starting directory ("." by default). +Thus, seeing that a file contains the symbol XBell, we run (using an ingenious +guess for the starting directory) "./findsym has XBell /usr/X11R6/lib" to +determine that this symbol is found in libX11.so. + +libcomp +------------------------- + +This script compares the symbols exported by two dynamic libraries that are +supposed to be different versions of the same library. Any symbols in the +first-specified library that are not present in the second-specified library, +or have a different size, are noted. The intent is to check for preservation +of ABI compatibility. + + +--Kevin McCarty --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/scripts/makedeplist +++ cernlib-2005.05.09.dfsg/debian/add-ons/scripts/makedeplist @@ -0,0 +1,101 @@ +#!/bin/bash + +# This script creates lists of all the dependencies and symbols required +# by each shared library in $CERNLEVEL/shlib and program in $CERNLEVEL/bin. +# Should be run while in the top-level cernlib- source dir. + +errormsg() { + echo "Not in correct directory or cernlib not compiled with shlibs" + exit 1 +} + +# remove old files +for file in `(ls -1 *.txt) 2> /dev/null` libdeps bindeps ; do + rm -rf $file +done +if [ ! -d shlib ] ; then errormsg ; fi + +mkdir -p libdeps +[ -d bin ] && mkdir -p bindeps + +# add in several other of the usual suspects +cd shlib +ln -sf /lib/libc.so.6 ./libc.so +ln -sf /lib/libm.so.6 ./libm.so +ln -sf /usr/lib/libg2c.so +ln -sf /usr/lib/libcrypt.so +ln -sf /usr/lib/libdl.so +ln -sf /usr/lib/libblas.so +ln -sf /usr/lib/liblapack.so +ln -sf /usr/lib/libXm.so +for file in /usr/X11R6/lib/libX*.so ; do + ln -sf $file +done + +# create symbol lists... +for lib in lib*.so ; do + nm -D $lib | grep ' U ' | awk '{print $2}' > ../${lib%%.so}.undef.txt + nm -D $lib | grep -v ' U ' | sed 's/@@.*$//g' | \ + awk '{print $3}' > ../${lib%%.so}.def.txt +done + +if [ -d "../bin" ] ; then + cd ../bin + for prog in * ; do + if [ -n "`nm $prog 2> /dev/null`" ] ; then + nm $prog | grep ' U ' | awk '{print $2}' \ + | sed 's/@@.*$//g' > ../$prog.undef.txt + fi + done +fi + +# create lists of symbol dependencies +cd .. +for symlist in *.undef.txt ; do + ( + for symbol in `cat $symlist` ; do + egrep '^'$symbol'$' *.def.txt + done + ) | tr ':.' ' ' | awk '{print $1 " " $4}' | sort | \ + egrep -v '^libc ' >> ${symlist%%.undef.txt}.symdeps.txt +done + +cat *.def.txt > defined.txt + +for symlist in *.undef.txt ; do + ( + for symbol in `cat $symlist` ; do + if [ -z "`egrep -l '^'$symbol'$' defined.txt`" ] ; then + echo $symbol + fi + done + ) | sort > ${symlist%%.undef.txt}.not-in-cernlib.txt +done + +# delete unneeded files +rm -f defined.txt *.def.txt *.undef.txt +for file in shlib/lib*.so ; do + if [ -n "`ls -l $file | grep /lib/`" ] ; then + libname=${file##shlib/} + rm -f $file ${libname%%.so}.*.txt + fi +done + +# create lists of file dependencies with number of dependent symbols +for file in *.symdeps.txt ; do + tempfile=${file%%.symdeps.txt}.filedeps.txt.tmp + cat $file | awk '{ print $1 }' | sort | uniq > $tempfile + for file2 in `cat $tempfile` ; do + echo "$file2 `grep $file2 $file | wc -l`" >> ${tempfile%%.tmp} + done + rm -f $tempfile +done + +# move to proper places +mv lib*.txt libdeps/ +[ -d bindeps ] && mv *.txt bindeps/ +for file in libdeps/* bindeps/* ; do + [ ! -s $file ] && rm -f $file +done + +exit 0 --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/scripts/libcomp +++ cernlib-2005.05.09.dfsg/debian/add-ons/scripts/libcomp @@ -0,0 +1,34 @@ +#!/bin/bash + +# libcomp - Script to check whether the size of library symbols has +# changed between versions. For checking ABI compatibility. +# Requires the "bc" and "binutils" packages to be installed. + +# Arguments: $1 - old library; $2 - new library + +OLD="`nm -D "$1" | egrep '^[0-9]' | sort`" +NEW="`nm -D "$2" | egrep '^[0-9]' | sort`" + +prevaddr=0 +prevname="" +echo "$OLD" | while read addr type name ; do + size=`( echo ibase=16 ; echo $addr - $prevaddr | tr 'a-z' 'A-Z' ) | bc` + #echo $prevname $size + + newlines="`echo "$NEW" | grep --after-context=1 '[[:space:]]'$prevname'$'`" + #echo "$newlines" ; echo --- + if [ -z "$newlines" ] ; then + echo $prevname: not found in new lib + else + newprevaddr=`echo "$newlines" | head -n 1 | awk '{print $1}'` + newaddr=`echo "$newlines" | tail -n 1 | awk '{print $1}'` + newsize=`( echo ibase=16 ; + echo $newaddr - $newprevaddr | tr 'a-z' 'A-Z' ) | bc` + if [ ! "$newsize" = "$size" ] ; then + echo $prevname: oldsize $size, newsize $newsize + fi + fi + prevname=$name + prevaddr=$addr +done + --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/app-defaults/Geant++ +++ cernlib-2005.05.09.dfsg/debian/add-ons/app-defaults/Geant++ @@ -0,0 +1,16 @@ +! Use light gray widgets instead of the hideous default blue + +Geant++*background: gray +Geant++*dirlist*background: white +Geant++*foreground: black + +! use decent fonts +Geant++*XmText*fontList: *-courier-medium-r-normal-*-120-* +Geant++*XmTextField*fontList: *-courier-medium-r-normal-*-120-* +Geant++*kxtermFont: *-helvetica-medium-r-normal-*-120-* +Geant++*kxtermTextFont: *-courier-medium-r-normal-*-120-* +Geant++*dirlist*fontList: *-helvetica-medium-r-normal-*-120-* +Geant++*matrix.fontList: *-helvetica-medium-r-normal-*-120-* +Geant++*helpFont: *-courier-medium-r-normal-*-120-* +Geant++*fontList: *-helvetica-medium-r-normal-*-120-* + --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/app-defaults/Paw++ +++ cernlib-2005.05.09.dfsg/debian/add-ons/app-defaults/Paw++ @@ -0,0 +1,16 @@ +! Use light gray widgets instead of the hideous default blue + +Paw++*background: gray +Paw++*dirlist*background: white +Paw++*foreground: black + +! use decent fonts +Paw++*XmText*fontList: *-courier-medium-r-normal-*-120-* +Paw++*XmTextField*fontList: *-courier-medium-r-normal-*-120-* +Paw++*kxtermFont: *-helvetica-medium-r-normal-*-120-* +Paw++*kxtermTextFont: *-courier-medium-r-normal-*-120-* +Paw++*dirlist*fontList: *-helvetica-medium-r-normal-*-120-* +Paw++*matrix.fontList: *-helvetica-medium-r-normal-*-120-* +Paw++*helpFont: *-courier-medium-r-normal-*-120-* +Paw++*fontList: *-helvetica-medium-r-normal-*-120-* + --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/app-defaults/KxGeant++ +++ cernlib-2005.05.09.dfsg/debian/add-ons/app-defaults/KxGeant++ @@ -0,0 +1,13 @@ +! This file gives X defaults for KXterm when run by Geant. +! Use light gray widgets instead of the hideous default blue + +KxGeant++*background: gray +KxGeant++*dirlist*background: gray90 +KxGeant++*foreground: black + +! and decent fonts instead of "fixed" +KxGeant++*fontList: *-helvetica-medium-r-normal*-120-* +KxGeant++*XmText*fontList: *-courier-medium-r-normal*-120-* + +! and make the transcript pad a reasonable size +KxGeant++*outputForm.height: 200 --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/app-defaults/KxPaw++ +++ cernlib-2005.05.09.dfsg/debian/add-ons/app-defaults/KxPaw++ @@ -0,0 +1,13 @@ +! This file gives X defaults for KXterm when run by Paw++. +! Use light gray widgets instead of the hideous default blue + +KxPaw++*background: gray +KxPaw++*dirlist*background: gray90 +KxPaw++*foreground: black + +! and decent fonts instead of "fixed" +KxPaw++*fontList: *-helvetica-medium-r-normal*-120-* +KxPaw++*XmText*fontList: *-courier-medium-r-normal*-120-* + +! and make the transcript pad a reasonable size +KxPaw++*outputForm.height: 200 --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/app-defaults/KXterm +++ cernlib-2005.05.09.dfsg/debian/add-ons/app-defaults/KXterm @@ -0,0 +1,14 @@ +! Use light gray widgets instead of the hideous default blue +KXterm*background: gray +KXterm*foreground: black + +! and decent fonts instead of "fixed" +KXterm*fontList: *-helvetica-medium-r-normal*-120-* +KXterm*XmText*fontList: *-courier-medium-r-normal*-120-* + +! and make the transcript pad a reasonable size +KXterm*outputForm.height: 200 + +! and give the window a logical name +KXterm*kuipIo_shell.title: KXterm +KXterm*kuipIo_shell.iconName: KXterm --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/manpages/cernlib.1 +++ cernlib-2005.05.09.dfsg/debian/add-ons/manpages/cernlib.1 @@ -0,0 +1,131 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH CERNLIB 1 "Jan 6, 2005" +.\" Please adjust this date whenever revising the manpage. +.\" +.SH NAME +cernlib \- print CERN library dependencies +.SH SYNOPSIS +.B cernlib +.RI [ options ] " libraries" +.SH DESCRIPTION +.PP +\fBcernlib\fP is a tool to list the compiler and linker options necessary +to compile a Cernlib program that has the given library dependencies. +It is generally used within a command substitution, as in the following +example: +.PP +g77 \-o myprogram myprogram.F `cernlib \-G Motif pawlib` +.PP +This version of cernlib has been completely rewritten from the original +script provided by CERN. It now does recursive library dependency checking and +removes duplicate entries. +.PP +Note that by default, the cernlib script assumes that the CERN libraries are +to be linked against statically; if the environment variables $CERN or +$CERN_ROOT are specified, it looks for the libraries only in the +"lib" subdirectory of those locations, not any "shlib" subdirectory. +Furthermore, the script brackets the CERN libraries with linker instructions to +link statically. This is done to preserve the original upstream behavior, in +which all Cernlib libraries exist only in static form. For instance, +"cernlib packlib" outputs: +.PP +\-Wl,\-static \-lpacklib \-lkernlib \-Wl,\-dy \-lm \-lnsl \-lcrypt \-ldl \-lg2c +.PP +If you want to link against ALL libraries (including Cernlib) either +statically or dynamically, call the cernlib script with its \-safe flag +to omit these bracketing linker flags. +That is: if you want to link against all libraries (not just Cernlib) +statically, use the \-static compiler flag and call cernlib with its \-safe +flag: +.PP +g77 \-o myprogram myprogram.F \-static `cernlib \-safe \-G Motif pawlib` +.PP +and if you want to link against all libraries (including the CERN libraries) +dynamically, use the same command without the \-static compiler flag +(the linker assumes dynamic linking by default): +.PP +g77 \-o myprogram myprogram.F `cernlib \-safe \-G Motif pawlib` +.SH OPTIONS +.TP +.BI "\-a " arch +Specify a system architecture, e.g. Linux (default), AIX, HP\-UX, etc. +.TP +.B \-dy +Equivalent to \-safe; for backwards compatibility. +.TP +.BI "\-G " driver +Specify a graphics driver. The available options on Linux are X11 and Motif +(the latter option will also work when the Lesstif library is present). +.TP +.B \-P, \-s +Ignored; for backwards compatibility. +.TP +.B \-safe +Do not make any assumptions about whether the CERN libraries should be linked +against dynamically or statically. (The default behavior, if this flag is not +used, is to link them statically.) +.TP +.B \-u +Do not include architecture-specific libraries in the output. +.TP +.BI "\-v " version +Specify version of $CERN_LEVEL. This is meaningless unless you have installed +an upstream version of Cernlib (i.e. not packaged by Debian); see the file +.IR /usr/share/doc/cernlib\-base/README.Debian . +.TP +.B \-?, \-\-help +Show a summary of options. +.TP +.B \-\- +Tell cernlib that this marks the end of cernlib-specific flags, and +all following arguments are to be parsed as described in the \fBLIBRARIES\fP +section below. If \-\- is not given, the first word parsed as a library +name will be the first word not starting with a hyphen "\-" that is not +an argument to a preceding cernlib flag. +.SH LIBRARIES +The following library names are recognized by this version of the cernlib +script. These names may be used exactly as shown here, or prefixed by "\-l". +.TP +.B Core CERN libraries +mathlib, packlib, kernlib +.TP +.B Graphics and PAW libraries +graflib, pawlib +.TP +.B Monte Carlo and GEANT libraries +cojets, eurodec, geant321, herwig59, isajet758, pdflib804, photos202, phtools +.TP +.B Additional Monte Carlo libraries +(to obtain these, see /usr/share/doc/montecarlo-base/README.Debian) +.br +ariadne, ariadne-p5, fritiof, jetset, lepto, pythia5, pythia6 +.TP +.B Aliases +The numerals at the end may be left off most of the library names above. +.TP +.B Other library names +Various other names are recognized for backwards compatibility, internal use, +and non\-Linux architectures. For the complete list, please see the cernlib +script. +.TP +.B Other +Any names not recognized by cernlib that start with "\-l" or with +any character other than a hyphen ("\-") are output as \-l${name#\-l} +(\fIi.e.\fP, are assumed to be a library). Names starting with a hyphen for +which the second character is not "l" are assumed to be compiler flags, and are +output at the beginning of the line before all other output. +.SH SEE ALSO +.PP +.I /usr/share/doc/cernlib\-base/README.Debian +describes some of the changes that have been made to the CERN libraries in +order to comply with Debian policy and the Filesystem Hierarchy Standard. +.PP +Cernlib documentation for all related libraries and programs is available +at the following URL: +.I http://cern.ch/cernlib/ +.SH AUTHOR +This manual page and the version of the cernlib script that it describes +were written by Kevin McCarty +for the Debian GNU/Linux system (but may be used by others). +.SH COPYRIGHT +Copyright (C) Kevin B. McCarty, 2002, 2003, 2004, 2005. --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/manpages/fatback.1 +++ cernlib-2005.05.09.dfsg/debian/add-ons/manpages/fatback.1 @@ -0,0 +1,42 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH FATBACK 1 "September 25, 2002" +.\" Please adjust this date whenever revising the manpage. +.\" +.SH NAME +fatback \- program to do something +.SH SYNOPSIS +.B fatback +.RI [ options ] " files" ... +.br +.B bar +.RI [ options ] " files" ... +.SH DESCRIPTION +This manual page documents briefly the +.B fatback +and +.B bar +commands. +This manual page was written for the Debian distribution +because the original program does not have a manual page. +.PP +\fBfatback\fP is a program that... +.SH OPTIONS +These programs follow the usual GNU command line syntax, with long +options starting with two dashes (`-'). +A summary of options is included below. +.TP +.B \-h, \-\-help +Show summary of options. +.TP +.B \-v, \-\-version +Show version of program. +.SH SEE ALSO +.BR bar (1), +.BR baz (1). +.br +The programs are documented fully by +.IR "The Rise and Fall of a Fooish Bar" , +available via the Info system. +.SH AUTHOR +This manual page was written by Kevin McCarty , +for the Debian GNU/Linux system (but may be used by others). --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/manpages/paw.1 +++ cernlib-2005.05.09.dfsg/debian/add-ons/manpages/paw.1 @@ -0,0 +1,128 @@ +.\"* +.\"* $Id: unix.man,v 1.3 2000/10/24 07:29:51 couet Exp $ +.\"* +.\"* $Log: unix.man,v $ +.\"* Revision 1.3 2000/10/24 07:29:51 couet +.\"* - PAW web pages URL updated +.\"* +.\"* Revision 1.2 1999/09/29 14:57:20 couet +.\"* - WWW adress was incorect +.\"* +.\"* Revision 1.1.1.1 1996/03/01 11:38:51 mclareni +.\"* Paw +.\"* +.\"* +.\"#if defined(CERNLIB_UNIX) +.\"*CMZ : 07/11/95 18.53.50 by Timo Hakulinen +.\"*-- Author : O.Couet 11/04/95 +.TH PAW 1 "Physics Analysis Workstation" +.SH NAME +paw \- invoke the "Physics Analysis Workstation" package +.SH SYNOPSIS +paw [-b \fImacro_name\fR] [-w \fIworkstation_type\fR] [-n] + +paw++ [-b \fImacro_name\fR] [-n] + +.SH DESCRIPTION + +PAW +is an interactive utility for visualizing experimental data on a +computer graphics display. It may be run in batch mode if desired +for very large and time consuming data analyses; typically, however, +the user will decide on an analysis procedure interactively before +running a batch job. + +PAW +combines a handful of CERN High Energy Physics Library systems +that may also be used individually in software that +processes and displays data. The purpose of PAW is +to provide many common analysis and display +procedures that would be duplicated needlessly +by individual programmers, to supply a flexible way to invoke these +common procedures, and yet also to allow user customization where +necessary. + +PAW++ is a Motif-based version of PAW. + +.SS OPTIONS + +When +.B paw +starts, the macro +.B +pawlogon.kumac +in the current directory is executed. If this macro doesn't exist +the system tries to execute the macro +.B .pawlogon.kumac +in the home directory. +.TP 8 +.RI \-n +The macro \fIpawlogon\fR is not executed. +.TP 8 +.RI \-b \ macro_name +The macro specified is executed in batch mode and +.B paw +exits when the macro ends. +.TP 8 +.RI \-w \ workstation_type +PAW starts immediately without prompting for the workstation type. +If workstation_type = 0, paw starts without graphics. + +When the X11 version of paw is used, a list of 10 valid +workstation types is provided in the file +.B higz_windows.dat. +By default this file is in the current directory. If it is not, +the one in the home directory is used. If it is not in the home +directory, one is automatically created in the current directory. +Each line in this file describes the position and the size of the +window. To access one of the described windows it is enough to +give the line number in reply to the prompt "Workstation type" + +.SH ENVIRONMENT VARIABLES +.TP 20 +HIGZPRINTER +Specifies the command line executed when the command PICTURE/PRINT +is invoked. +.TP 20 +KUIPPAGER, PAGER +Checked in this order to determine what pager program to use. If neither +are set, 'sensible\-pager' is used in Debian. +.TP 20 +KUIPEDITOR, EDITOR +Checked in this order to determine what editor to use. If neither are +set, 'sensible\-editor' is used in Debian. +.TP 20 +KUIPPSVIEWER, PSVIEWER +Checked in this order to determine the program to use for viewing PostScript. +If neither are set, 'gv' is used. +.TP 20 +$ENV() +Any environment variable can be accessed in paw with the function +.B $ENV(). + +.SH SEE ALSO + +\[bu] the online help (PAW command HELP) +.br +\[bu] the WWW pages: http://cern.ch/paw/ +.br +\[bu] the tutorial: http://cern.ch/paw/tutorial/ +.br +\[bu] the FAQ: http://wwwasd.web.cern.ch/wwwasd/cgi-bin/listpawfaqs.pl +.br +\[bu] the reference manual: http://cern.ch/paw/reference_manual/ +.br +.RB \[bu] " kuesvr" (1) +\- the KUIP edit server +.br +.RB \[bu] " kxterm" (1) +\- the program used by PAW++ as a command interface +.br +.RB \[bu] " pawserv" (8) +\- a server that listens for remote PAW connections + +.SH COPYRIGHT +(C) Copyright CERN, Geneva 1995. + + +.\"#endif --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/manpages/paw-demos.1 +++ cernlib-2005.05.09.dfsg/debian/add-ons/manpages/paw-demos.1 @@ -0,0 +1,73 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH PAW\-DEMOS 1 "April 23, 2003" +.\" Please adjust this date whenever revising the manpage. +.\" +.SH NAME +paw\-demos \- run PAW demonstrations +.SH SYNOPSIS +.B paw\-demos +.RI [ options "] [" example_num " [" test_num ]] +.SH DESCRIPTION +.PP +\fBpaw\-demos\fP is a script to run the demonstrations of Paw in the +paw\-demos package. It will create a demo directory (by default +.IR $HOME/paw\-demos ), +copy the demos from +.I /usr/share/paw\-demos +to this directory, and run them. Both examples and tests are available. +.PP +.I example_num +is the number of the example to start with; examples are skipped if +.I example_num +> 31. +.I test_num +is the number of the test to start with; tests are skipped if +.I test_num +> 8. Note that the first example is numbered 1 but the first test is numbered +0. +.SH OPTIONS +.TP +.B \-\-batch +Run demos in batch mode; output to PostScript. The resulting output files are +placed into a "linux" subdirectory of the demo directory. +.TP +.B \-\-clean +Clean the demo directory given by the \-\-dir option (or the default directory +if \-\-dir is not given). This option causes +.IR example_num ", " test_num , +\-\-batch, and \-\-driver to be ignored. +.TP +.BI "\-\-dir " dir +Specify the directory in which to run the Paw demos, relative to $HOME. +If it does not already exist, it will be created and the demos copied to +it from the directory /usr/share/doc/paw-demos/examples. The default +is +.IR $HOME/paw-demos . +.TP +.BI "\-\-display " display +Specify the display to use. The default is the current value of the $DISPLAY +environment variable. +.TP +.BI "\-\-driver " driver +Specify a graphics driver. Available options are "X11" for pawX11 and "++" +for paw++. +.TP +.B \-\-help +Show a summary of options. +.SH FILES +.PP +.I /usr/share/paw-demos +contains the Paw demonstrations. +.br +.I $HOME/paw-demos +is the default directory in which to run the demos. +.SH SEE ALSO +.PP +.BR paw "(1), " paw++ (1) +.SH AUTHOR +This manual page and the paw-demos script that it describes +were written by Kevin McCarty +for the Debian GNU/Linux system (but may be used by others). +The demos themselves were written by various PAW contributors. +.SH COPYRIGHT +(C) Copyright Kevin McCarty, 2003. --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/manpages/paw++.1 +++ cernlib-2005.05.09.dfsg/debian/add-ons/manpages/paw++.1 @@ -0,0 +1 @@ +.so man1/paw.1 --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/manpages/fatnew.1 +++ cernlib-2005.05.09.dfsg/debian/add-ons/manpages/fatnew.1 @@ -0,0 +1,42 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH FATNEW 1 "September 25, 2002" +.\" Please adjust this date whenever revising the manpage. +.\" +.SH NAME +fatnew \- program to do something +.SH SYNOPSIS +.B fatnew +.RI [ options ] " files" ... +.br +.B bar +.RI [ options ] " files" ... +.SH DESCRIPTION +This manual page documents briefly the +.B fatnew +and +.B bar +commands. +This manual page was written for the Debian distribution +because the original program does not have a manual page. +.PP +\fBfatnew\fP is a program that... +.SH OPTIONS +These programs follow the usual GNU command line syntax, with long +options starting with two dashes (`-'). +A summary of options is included below. +.TP +.B \-h, \-\-help +Show summary of options. +.TP +.B \-v, \-\-version +Show version of program. +.SH SEE ALSO +.BR bar (1), +.BR baz (1). +.br +The programs are documented fully by +.IR "The Rise and Fall of a Fooish Bar" , +available via the Info system. +.SH AUTHOR +This manual page was written by Kevin McCarty , +for the Debian GNU/Linux system (but may be used by others). --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/manpages/fatmen.1 +++ cernlib-2005.05.09.dfsg/debian/add-ons/manpages/fatmen.1 @@ -0,0 +1,42 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH FATMEN 1 "September 25, 2002" +.\" Please adjust this date whenever revising the manpage. +.\" +.SH NAME +fatmen \- program to do something +.SH SYNOPSIS +.B fatmen +.RI [ options ] " files" ... +.br +.B bar +.RI [ options ] " files" ... +.SH DESCRIPTION +This manual page documents briefly the +.B fatmen +and +.B bar +commands. +This manual page was written for the Debian distribution +because the original program does not have a manual page. +.PP +\fBfatmen\fP is a program that... +.SH OPTIONS +These programs follow the usual GNU command line syntax, with long +options starting with two dashes (`-'). +A summary of options is included below. +.TP +.B \-h, \-\-help +Show summary of options. +.TP +.B \-v, \-\-version +Show version of program. +.SH SEE ALSO +.BR bar (1), +.BR baz (1). +.br +The programs are documented fully by +.IR "The Rise and Fall of a Fooish Bar" , +available via the Info system. +.SH AUTHOR +This manual page was written by Kevin McCarty , +for the Debian GNU/Linux system (but may be used by others). --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/manpages/fatsend.1 +++ cernlib-2005.05.09.dfsg/debian/add-ons/manpages/fatsend.1 @@ -0,0 +1,42 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH FATSEND 1 "September 25, 2002" +.\" Please adjust this date whenever revising the manpage. +.\" +.SH NAME +fatsend \- program to do something +.SH SYNOPSIS +.B fatsend +.RI [ options ] " files" ... +.br +.B bar +.RI [ options ] " files" ... +.SH DESCRIPTION +This manual page documents briefly the +.B fatsend +and +.B bar +commands. +This manual page was written for the Debian distribution +because the original program does not have a manual page. +.PP +\fBfatsend\fP is a program that... +.SH OPTIONS +These programs follow the usual GNU command line syntax, with long +options starting with two dashes (`-'). +A summary of options is included below. +.TP +.B \-h, \-\-help +Show summary of options. +.TP +.B \-v, \-\-version +Show version of program. +.SH SEE ALSO +.BR bar (1), +.BR baz (1). +.br +The programs are documented fully by +.IR "The Rise and Fall of a Fooish Bar" , +available via the Info system. +.SH AUTHOR +This manual page was written by Kevin McCarty , +for the Debian GNU/Linux system (but may be used by others). --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/manpages/fatsrv.1 +++ cernlib-2005.05.09.dfsg/debian/add-ons/manpages/fatsrv.1 @@ -0,0 +1,42 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH FATSRV 1 "September 25, 2002" +.\" Please adjust this date whenever revising the manpage. +.\" +.SH NAME +fatsrv \- program to do something +.SH SYNOPSIS +.B fatsrv +.RI [ options ] " files" ... +.br +.B bar +.RI [ options ] " files" ... +.SH DESCRIPTION +This manual page documents briefly the +.B fatsrv +and +.B bar +commands. +This manual page was written for the Debian distribution +because the original program does not have a manual page. +.PP +\fBfatsrv\fP is a program that... +.SH OPTIONS +These programs follow the usual GNU command line syntax, with long +options starting with two dashes (`-'). +A summary of options is included below. +.TP +.B \-h, \-\-help +Show summary of options. +.TP +.B \-v, \-\-version +Show version of program. +.SH SEE ALSO +.BR bar (1), +.BR baz (1). +.br +The programs are documented fully by +.IR "The Rise and Fall of a Fooish Bar" , +available via the Info system. +.SH AUTHOR +This manual page was written by Kevin McCarty , +for the Debian GNU/Linux system (but may be used by others). --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/manpages/gxint.1 +++ cernlib-2005.05.09.dfsg/debian/add-ons/manpages/gxint.1 @@ -0,0 +1,71 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH GXINT 1 "January 24, 2003" +.\" Please adjust this date whenever revising the manpage. +.\" +.SH NAME +gxint \- load and run an interactive Geant application +.SH SYNOPSIS +.B gxint +.RI [ options ] " file(s)" +.SH DESCRIPTION +.PP +\fBgxint\fP is a script to load and run a Geant application, which is usually +in the form of Fortran source code. The desired routines are given in +.IR file(s) . +.SH OPTIONS +.TP +.BI "\-d " driver +Specify a graphics driver. The available options on Linux are X11 and Motif +(which should also work with lesstif). X11 is the default. +.TP +.BI "\-g " geant_version +Specify the version of Geant to use. Current default is 3.21. This option +only makes sense if you have installed a Geant version other than 3.21 +(i.e. one not packaged by Debian). +.TP +.BI "\-h " host +Useful with the \-d X11 option only. Specifies the hostname used for the +display; syntax is identical with that of $DISPLAY. If no hostname is +specified, the value of $DISPLAY is used. +.TP +.BI "\-l " library +Specify additional libraries. This option may be repeated to add several libs. +.TP +.BI "\-L " path +Additional loader search path. Useful if additional libraries are specified +with \-l option. This option may be repeated with more than one pathname. +.TP +.B \-m +Do NOT use main program from cernlib area. +.TP +.BI "\-o " outputfile +Do not immediately run Geant, but instead produce an executable file named +.IR outputfile . +If "\-o" is not given, the executable file will be created in $HOME, +named GEANT\fIpid\fP (\fIpid\fP being the process ID of \fBgxint\fP), +and run automatically. +.TP +.BI "\-v " version +Specify version of $CERN_LEVEL. This is meaningless unless you have installed +an upstream version of Cernlib (i.e. not packaged by Debian); see the file +.IR /usr/share/doc/cernlib\-base/README.Debian . +.TP +.B \-?, \-\-help +Show a summary of options. +.SH SEE ALSO +.PP +.BR cernlib (1) +\- script to list required \-l and \-L options given a list of CERN libraries +.PP +.I /usr/share/doc/cernlib\-base/README.Debian +describes how one might use the \-v flag with Debian's versions of the +cernlib and gxint scripts if one has an upstream version of Cernlib installed. +.PP +Cernlib documentation for all related libraries and programs is available +at the following URL: +.I http://cern.ch/cernlib/ +.SH AUTHOR +This manual page was written by Kevin McCarty +for the Debian GNU/Linux system (but may be used by others). +.SH COPYRIGHT +This manual page is (C) Copyright Kevin McCarty, 2002, 2003, 2004, 2005. --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/manpages/hepbackup.1 +++ cernlib-2005.05.09.dfsg/debian/add-ons/manpages/hepbackup.1 @@ -0,0 +1,42 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH HEPBACKUP 1 "September 25, 2002" +.\" Please adjust this date whenever revising the manpage. +.\" +.SH NAME +hepbackup \- program to do something +.SH SYNOPSIS +.B hepbackup +.RI [ options ] " files" ... +.br +.B bar +.RI [ options ] " files" ... +.SH DESCRIPTION +This manual page documents briefly the +.B hepbackup +and +.B bar +commands. +This manual page was written for the Debian distribution +because the original program does not have a manual page. +.PP +\fBhepbackup\fP is a program that... +.SH OPTIONS +These programs follow the usual GNU command line syntax, with long +options starting with two dashes (`-'). +A summary of options is included below. +.TP +.B \-h, \-\-help +Show summary of options. +.TP +.B \-v, \-\-version +Show version of program. +.SH SEE ALSO +.BR bar (1), +.BR baz (1). +.br +The programs are documented fully by +.IR "The Rise and Fall of a Fooish Bar" , +available via the Info system. +.SH AUTHOR +This manual page was written by Kevin McCarty , +for the Debian GNU/Linux system (but may be used by others). --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/manpages/hepdb.1 +++ cernlib-2005.05.09.dfsg/debian/add-ons/manpages/hepdb.1 @@ -0,0 +1,42 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH HEPDB 1 "September 25, 2002" +.\" Please adjust this date whenever revising the manpage. +.\" +.SH NAME +hepdb \- program to do something +.SH SYNOPSIS +.B hepdb +.RI [ options ] " files" ... +.br +.B bar +.RI [ options ] " files" ... +.SH DESCRIPTION +This manual page documents briefly the +.B hepdb +and +.B bar +commands. +This manual page was written for the Debian distribution +because the original program does not have a manual page. +.PP +\fBhepdb\fP is a program that... +.SH OPTIONS +These programs follow the usual GNU command line syntax, with long +options starting with two dashes (`-'). +A summary of options is included below. +.TP +.B \-h, \-\-help +Show summary of options. +.TP +.B \-v, \-\-version +Show version of program. +.SH SEE ALSO +.BR bar (1), +.BR baz (1). +.br +The programs are documented fully by +.IR "The Rise and Fall of a Fooish Bar" , +available via the Info system. +.SH AUTHOR +This manual page was written by Kevin McCarty , +for the Debian GNU/Linux system (but may be used by others). --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/manpages/hepmake.1 +++ cernlib-2005.05.09.dfsg/debian/add-ons/manpages/hepmake.1 @@ -0,0 +1,42 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH HEPMAKE 1 "September 25, 2002" +.\" Please adjust this date whenever revising the manpage. +.\" +.SH NAME +hepmake \- program to do something +.SH SYNOPSIS +.B hepmake +.RI [ options ] " files" ... +.br +.B bar +.RI [ options ] " files" ... +.SH DESCRIPTION +This manual page documents briefly the +.B hepmake +and +.B bar +commands. +This manual page was written for the Debian distribution +because the original program does not have a manual page. +.PP +\fBhepmake\fP is a program that... +.SH OPTIONS +These programs follow the usual GNU command line syntax, with long +options starting with two dashes (`-'). +A summary of options is included below. +.TP +.B \-h, \-\-help +Show summary of options. +.TP +.B \-v, \-\-version +Show version of program. +.SH SEE ALSO +.BR bar (1), +.BR baz (1). +.br +The programs are documented fully by +.IR "The Rise and Fall of a Fooish Bar" , +available via the Info system. +.SH AUTHOR +This manual page was written by Kevin McCarty , +for the Debian GNU/Linux system (but may be used by others). --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/manpages/hepmove.1 +++ cernlib-2005.05.09.dfsg/debian/add-ons/manpages/hepmove.1 @@ -0,0 +1,42 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH HEPMOVE 1 "September 25, 2002" +.\" Please adjust this date whenever revising the manpage. +.\" +.SH NAME +hepmove \- program to do something +.SH SYNOPSIS +.B hepmove +.RI [ options ] " files" ... +.br +.B bar +.RI [ options ] " files" ... +.SH DESCRIPTION +This manual page documents briefly the +.B hepmove +and +.B bar +commands. +This manual page was written for the Debian distribution +because the original program does not have a manual page. +.PP +\fBhepmove\fP is a program that... +.SH OPTIONS +These programs follow the usual GNU command line syntax, with long +options starting with two dashes (`-'). +A summary of options is included below. +.TP +.B \-h, \-\-help +Show summary of options. +.TP +.B \-v, \-\-version +Show version of program. +.SH SEE ALSO +.BR bar (1), +.BR baz (1). +.br +The programs are documented fully by +.IR "The Rise and Fall of a Fooish Bar" , +available via the Info system. +.SH AUTHOR +This manual page was written by Kevin McCarty , +for the Debian GNU/Linux system (but may be used by others). --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/manpages/hepserv.1 +++ cernlib-2005.05.09.dfsg/debian/add-ons/manpages/hepserv.1 @@ -0,0 +1,42 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH HEPSERV 1 "September 25, 2002" +.\" Please adjust this date whenever revising the manpage. +.\" +.SH NAME +hepserv \- program to do something +.SH SYNOPSIS +.B hepserv +.RI [ options ] " files" ... +.br +.B bar +.RI [ options ] " files" ... +.SH DESCRIPTION +This manual page documents briefly the +.B hepserv +and +.B bar +commands. +This manual page was written for the Debian distribution +because the original program does not have a manual page. +.PP +\fBhepserv\fP is a program that... +.SH OPTIONS +These programs follow the usual GNU command line syntax, with long +options starting with two dashes (`-'). +A summary of options is included below. +.TP +.B \-h, \-\-help +Show summary of options. +.TP +.B \-v, \-\-version +Show version of program. +.SH SEE ALSO +.BR bar (1), +.BR baz (1). +.br +The programs are documented fully by +.IR "The Rise and Fall of a Fooish Bar" , +available via the Info system. +.SH AUTHOR +This manual page was written by Kevin McCarty , +for the Debian GNU/Linux system (but may be used by others). --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/manpages/kxterm.1 +++ cernlib-2005.05.09.dfsg/debian/add-ons/manpages/kxterm.1 @@ -0,0 +1,79 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH KXTERM 1 "January 24, 2003" +.\" Please adjust this date whenever revising the manpage. +.\" +.SH NAME +kxterm \- the CERN KUIP terminal emulator +.SH SYNOPSIS +.B kxterm +.RI [ class "] [" options ] +.SH DESCRIPTION +.PP +\fBkxterm\fP is a terminal emulator combining the best features of +the (now defunct) Apollo DM pads (like: input and transcript +pads, automatic file backup of transcript pad, string +search in pads, etc.) and the Korn shell emacs\-style +command line editing and command line recall mechanism. For more detailed +information about the program, please see the online help available from +the kxterm Help menu. +.PP +kxterm has a number of X resources which can be set by the user; these are +listed in the online help and in the file /etc/X11/app\-defaults/KXterm, +where the default values are set. It should be noted that when kxterm is +acting as a client for another application, the desired X resource should be +prefixed by "Kx" plus the class name of the application. So for application +"Foo" the kxterm resource class would be KxFoo, and one would set +KxFoo*background, etc. One can also set the resource class of a kxterm +window via the command-line with the +.I class +argument. +.SH OPTIONS +.TP +.BI "\-font " fn +Specifies the font used by kxterm. The font +.I fn +must be an XLFD (X Logical Font Description), as for example displayed by +the xlsfonts program. +.TP +.BI "\-geometry " geom +Specifies the preferred size and position of the kxterm window; see +.BR X (7x) +for details. +.TP +.BR \-h ", " \-help +Show a summary of options. +.TP +.BI \-iconic +Specifies that the window manager should start kxterm as an icon. +.TP +.BI "\-n " iconname +Specifies the name of the kxterm window in an iconic state. +.TP +.BI "\-name " name +Specifies both the title and the iconized name of the kxterm window. +.TP +.BI "\-pid " pid +Specifies the process ID of the program that kxterm should act as a client for. +.TP +.BI "\-prompt " prompt +Sets the prompt displayed in the input pad of the program. +.TP +.BI "\-tfont " fn +Specifies the font used by text boxes, the input pad, and the transcript +pad of the program. This should probably be a fixed-width font like +"courier" or "fixed". +.TP +.BI "\-title " title +Sets the title of the kxterm window to +.IR title . +.SH SEE ALSO +.RB "\[bu] " xlsfonts (1) +\- a program to list available fonts on an X server +.br +.RB "\[bu] " paw++ (1) +\- a program using kxterm for its command interface +.br +\[bu] the online help available from kxterm's Help menu +.SH AUTHOR +This manual page was written by Kevin McCarty +for the Debian GNU/Linux system (but may be used by others). --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/manpages/pawX11.1 +++ cernlib-2005.05.09.dfsg/debian/add-ons/manpages/pawX11.1 @@ -0,0 +1 @@ +.so man1/paw.1 --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/manpages/zftp.1 +++ cernlib-2005.05.09.dfsg/debian/add-ons/manpages/zftp.1 @@ -0,0 +1,44 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH ZFTP 1 "February 3, 2003" +.\" Please adjust this date whenever revising the manpage. +.\" +.SH NAME +zftp \- CERNLIB program to transfer ZEBRA formatted files over a network +.SH SYNOPSIS +.B zftp +.RI [ hostname ] +.br +.SH DESCRIPTION +.PP +\fBzftp\fP is a file transfer program that supports the transfer of +formatted, unformatted and ZEBRA RZ files. +(If you have no idea what ZEBRA files are, it is highly unlikely that you +want to use this program instead of a standard FTP client.) +Formatted files are typically KUIP macros, command or EXEC files, source code +or even FZ ALPHA exchange format files. Unformatted files may be FZ binary +exchange format or EPIO files or any other binary file with fixed length +records. +.PP +\fBzftp\fP also provides LS, CD, PWD and RSHELL commands. It provides a +common interface on all systems and the possibility of macros (via KUIP). +It avoids the problems of file format conversion that occur when transferring +binary files between VMS and UNIX systems. +\fBzftp\fP comes with the traditional KUIP user interface, including a HELP +function that describes the available commands. +.PP +Please note that, like many other FTP programs, \fBzftp\fP transfers unencrypted +passwords over the network. It should therefore be used only within a trusted +LAN. +.SH SEE ALSO +\[bu] \fBzftp\fP online HELP command +.br +.RB "\[bu] " ftp (1) +.br +.RB "\[bu] " zserv (8) +.PP +\fBzftp\fP is part of the CERNLIB CSPACK package, documented fully at +http://wwwinfo.cern.ch/asdoc/psdir/cspack.ps.gz (PostScript) or +http://wwwinfo.cern.ch/asdoc/WWW/cspack/cspmain/cspmain.html (HTML). +.SH AUTHOR +This manual page was written by Kevin McCarty +for the Debian GNU/Linux system (but may be used by others). --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/manpages/kuipc.1 +++ cernlib-2005.05.09.dfsg/debian/add-ons/manpages/kuipc.1 @@ -0,0 +1,46 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH KUIPC 1 "April 2, 2004" +.\" Please adjust this date whenever revising the manpage. +.\" +.SH NAME +kuipc \- the CERN KUIP compiler +.SH SYNOPSIS +.B kuipc +.RI " [ " options " ] [ " inputfile " [ " outputfile " ] ]" +.SH DESCRIPTION +.PP +\fBkuipc\fP, the Kit for a User Interface Package Compiler, is a tool to +simplify the writing of a program's user interface code. It takes as input a +Command Definition File (CDF) that describes the commands to be understood by +the program, and outputs C or FORTRAN code that makes the appropriate function +calls to set up the user interface. This code can then be compiled and linked +with the rest of the program. Since the generated code uses KUIP routines, the +program must also be linked against the Packlib library that contains them. +.PP +If no output file is specified, kuipc will output generated code to a file +whose name is the same as the input file's, with the ending '.cdf' replaced +by '.f' or '.c' as appropriate. If neither input nor output file are given, +kuipc will prompt for them. Be careful because kuipc overwrites existing +files with no warning. +.SH OPTIONS +.TP +.B \-c +Generate C code. +.TP +.B \-f +Generate FORTRAN code (the default). +.TP +.B \-split +Output several files, one for each time the >Name control line is used in +the CDF input. The names of the output files will correspond to the +arguments given on the >Name control lines. +.SH SEE ALSO +The KUIP manual: http://wwwasdoc.web.cern.ch/wwwasdoc/psdir/kuip.ps.gz +.br +.SH BUGS +When the \-split option is used, kuipc will still create an output file +that it would have made if \-split was not used; the file will be of zero +size. +.SH AUTHOR +This manual page was written by Kevin McCarty +for the Debian GNU/Linux system (but may be used by others). --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/manpages/dzedit.1 +++ cernlib-2005.05.09.dfsg/debian/add-ons/manpages/dzedit.1 @@ -0,0 +1,62 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH DZEDIT 1 "April 15, 2004" +.\" Please adjust this date whenever revising the manpage. +.\" +.SH NAME +dzedit \- the CERN ZEBRA documentation editor +.SH SYNOPSIS +.B dzedit +.RI " [ " options " ]" +.br +.B dzeX11 +.SH DESCRIPTION +.PP +\fBdzeX11\fP is an interactive interface to the DZDOC (ZEBRA documentation) +system developed at CERN. \fBdzedit\fP is a wrapper script around dzeX11 +that allows one to set a few environment options. ZEBRA, part of the Packlib +library, permits a developer to create complex data structures in the FORTRAN +77 language; the DZDOC system allows the developer to generate and maintain +documentation of ZEBRA data structures. +.SH OPTIONS +.TP +.BI "\-d " driver +Use the graphics driver \fIdriver\fP, i.e., have dzedit call the program +\fBdze\fP\fIdriver\fP. The default is "X11". You are exceedingly unlikely to +want anything other than the default. +.TP +.BI "\-h " host +Give the host to open the window on. This is the same as setting the +environment variable $DISPLAY to "\fIhost\fP:0.0". You don't need to do so +if you are logged on to a remote host through SSH (if you are using telnet, +shame on you!) +.TP +.BI "\-v " version +Specify the version of Cernlib to use. This only makes sense if you have +a version of Cernlib directly from CERN installed. In this case you should +also have set the environment variable $CERN. Then dzedit will look for the +dzeX11 program in the directory $CERN//bin/. +.SH FILES +.TP +\fBdzedit.kumac\fP +dzedit tries to read startup commands from this file in the current directory. +.TP +\fBdzedit.las\fP +dzedit stores the names of the ZEBRA file and documentation file in this file +in the current directory. +.TP +\fBlast.kumac\fP +At the end of a session, dzedit outputs this file containing +a transcript of the commands used during the session. +.SH SEE ALSO +The ZEBRA manual: +.br +http://wwwasdoc.web.cern.ch/wwwasdoc/psdir/zebra.ps.gz +.br +(specifically, chapter 16 is about DZDOC). +.SH BUGS +This man page is essentially useless because the section of the ZEBRA manual +about DZDOC is incomprehensible and there are no tutorials about it. +Anyone who wants to provide a better man page is welcome to do so. +.SH AUTHOR +This manual page was written by Kevin McCarty +for the Debian GNU/Linux system (but may be used by others). --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/manpages/dzeX11.1 +++ cernlib-2005.05.09.dfsg/debian/add-ons/manpages/dzeX11.1 @@ -0,0 +1 @@ +.so man1/dzedit.1 --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/manpages/zserv.8 +++ cernlib-2005.05.09.dfsg/debian/add-ons/manpages/zserv.8 @@ -0,0 +1,31 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH ZSERV 8 "February 3, 2003" +.\" Please adjust this date whenever revising the manpage. +.\" +.SH NAME +zserv \- CERNLIB server program for transferring ZEBRA formatted files +.SH DESCRIPTION +.PP +\fBzserv\fP is the server for the ZFTP file transfer program. It listens +for connections on port 346. \fBzserv\fP is not in general run from the +command line, but only via \fBinetd\fP(8). +.PP +Please note that, like many other FTP servers, \fBzserv\fP receives unencrypted +passwords over the network. It should therefore be used only within a trusted +LAN. +.SH FILES +.RI "\[bu] " /etc/inetd.conf +\- specifies how inetd should call zserv +.SH SEE ALSO +.RB "\[bu] " zftp (1) +.br +.RB "\[bu] " inetd (8) +.br +.RB "\[bu] " inetd.conf (5) +.PP +\fBzserv\fP is part of the CERNLIB CSPACK package, documented fully at +http://wwwinfo.cern.ch/asdoc/psdir/cspack.ps.gz (PostScript) or +http://wwwinfo.cern.ch/asdoc/WWW/cspack/cspmain/cspmain.html (HTML). +.SH AUTHOR +This manual page was written by Kevin McCarty +for the Debian GNU/Linux system (but may be used by others). --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/manpages/pawserv.8 +++ cernlib-2005.05.09.dfsg/debian/add-ons/manpages/pawserv.8 @@ -0,0 +1,36 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH PAWSERV 8 "February 3, 2003" +.\" Please adjust this date whenever revising the manpage. +.\" +.SH NAME +pawserv \- CERNLIB program for serving PAW histograms remotely +.SH DESCRIPTION +.PP +\fBpawserv\fP is the server for distributed PAW. It listens +for connections on port 345. \fBpawserv\fP is not in general run from the +command line, but only via \fBinetd\fP(8). +From the PAW client side, a remote PAW session is invoked with the RLOGIN +.I hostname +command. Distributed PAW is documented fully in chapter 8 of +the PAW user's guide, available in PostScript format at this URL: +.PP +http://wwwinfo.cern.ch/asdoc/psdir/paw.ps.gz +.PP +Please note that \fBpawserv\fP receives unencrypted passwords over the network. +It should therefore be used only within a trusted LAN. +.SH FILES +.RI "\[bu] " /etc/inetd.conf +\- specifies how inetd should call pawserv +.SH SEE ALSO +.RB "\[bu] " paw (1) +.br +.RB "\[bu] " inetd (8) +.br +.RB "\[bu] " inetd.conf (5) +.PP +\fBpawserv\fP is part of the CERNLIB CSPACK package, which is documented at +http://wwwinfo.cern.ch/asdoc/psdir/cspack.ps.gz (PostScript) or +http://wwwinfo.cern.ch/asdoc/WWW/cspack/cspmain/cspmain.html (HTML). +.SH AUTHOR +This manual page was written by Kevin McCarty +for the Debian GNU/Linux system (but may be used by others). --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/manpages/kuesvr.1 +++ cernlib-2005.05.09.dfsg/debian/add-ons/manpages/kuesvr.1 @@ -0,0 +1,63 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH KUESVR 1 "March 4, 2005" +.\" Please adjust this date whenever revising the manpage. +.\" +.SH NAME +kuesvr \- the CERN KUIP edit server +.SH SYNOPSIS +kuesvr -p \fIpid\fP -c \fIcmd\fP -t \fItmpfile\fP [ -e \fIeditor\fP ] \fIfile\fP +.SH DESCRIPTION +.PP +\fBkuesvr\fP is a small program called from KUIP. (KUIP stands +for Kit for a User Interface Package; it is part of the Packlib library +from CERN.) +\fBkuesvr\fP allows the user to call up an editor from within a KUIP program +(PAW, for instance) on the file given by \fIfile\fP, and continue to use the +program asynchronously. +.PP +In general \fBkuesvr\fP is not called directly from the +command line (in Debian it is not even located in the $PATH); instead it +will be run automatically from a KUIP program when an editor +is needed, as long as the command line set with KUIP's +HOST_EDITOR command ends with an ampersand ('&'), and $DISPLAY is set. +If $DISPLAY is unset (or, on non-Debian systems, if \fBkuesvr\fP cannot be +found in $PATH), the ampersand will be ignored. For instance, +.PP +\fBPAW >\fP HOST_EDITOR 'emacs \-geometry 80x48 &' +.PP +The editor is expected to create its own graphical window. However, +since 'vi' is a frequent choice, setting HOST_EDITOR to 'vi &' will +automatically be interpreted as 'x\-terminal\-emulator \-e vi &' instead. +.PP +.SH OPTIONS +.TP +.BI "\-c " cmd +Specifies the KUIP command invoking the edit server. +.TP +.BI "\-e " editor +Specifies the editor to be used. By default it is vi. Even though this +flag is optional, it will be set anyway when \fBkuesvr\fP is called from +the KUIP library. +.TP +.BI "\-p " pid +Specifies the process ID of the calling program. +.TP +.BI "\-t " tmpfile +Specifies the name of the temporary file used for communication between +the calling program and the edit server. This is a Debian extension +added for security reasons. +It is a required argument, so this version of \fBkuesvr\fP will +not work with a KUIP application using CERN's unmodified Packlib; nor will +CERN's unmodified \fBkuesvr\fP work with the Debian version of Packlib. +.SH SEE ALSO +.RB "\[bu] " paw (1) +\- a program that can use the edit server +.br +\[bu] the KUIP online help available with command "help host_editor" +.br +\[bu] the KUIP manual, available at +.br + http://wwwasdoc.web.cern.ch/wwwasdoc/psdir/kuip.ps.gz +.SH AUTHOR +This manual page was written by Kevin McCarty +for the Debian GNU/Linux system (but may be used by others). --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/misc/cernlib.m4 +++ cernlib-2005.05.09.dfsg/debian/add-ons/misc/cernlib.m4 @@ -0,0 +1,163 @@ +dnl -*- Autoconf -*- +dnl autoconf macros for the cernlib libraries +dnl Copyright (C) 2004 Patrice Dumas +dnl +dnl This program is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 2 of the License, or +dnl (at your option) any later version. +dnl +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with this program; if not, write to the Free Software +dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +dnl A basic axample of the macros usage: +dnl AC_CERNLIB +dnl AC_LIB_CERNLIB(kernlib,CLTOU) +dnl AC_LIB_CERNLIB(mathlib,GAUSS) + +dnl The macro AC_CERNLIB tries to determine the cernlib location and +dnl whether the linking should be static or not. It should be called once and +dnl before a particular cernlib library is detected with the second macro. +dnl --with-static-cernlib forces the static or dynamic linking. +dnl --with-cernlib gives the location of cernlib. +dnl +dnl If the type of linking isn't forced it is detected as follow: +dnl - if the environment variable CERNLIB exists it is assumed to be the +dnl location of the static library. +dnl - otherwise if the environment variable CERN_ROOT exists it is assumed +dnl that CERN_ROOT/lib is the location of the static library. +dnl - otherwise if the binary program 'cernlib' is in the path it is assumed +dnl that a static linking using the information reported by that binary is +dnl wanted. +dnl - otherwise a dynamic linking is performed. +dnl +dnl AC_LIB_CERNLIB ([LIBRARY = kernlib], [FUNCTION = CLTOU], [ACTION-IF-FOUND], +dnl [ACTION-IF-NOT-FOUND]) +dnl should be called afterwards for each of the cernlib library needed. +dnl Based on the information collected by AC_CERNLIB the needed flags are +dnl added to the linking flags and a test of linking is performed. + + +# AC_CERNLIB check for cernlib location and whether it should be +# statically linked or not. +AC_DEFUN([AC_CERNLIB], [ +CERNLIB_LIB_PATH= +CERNLIB_STATIC= +AC_ARG_WITH(static_cernlib, +[ --with-static-cernlib link statically with the cernlib], +[ CERNLIB_STATIC=$withval ]) + +AC_ARG_WITH(cernlib, +[ --with-cernlib cernlib location], +[ CERNLIB_LIB_PATH=$withval ]) + + +if test "z$CERNLIB_STATIC" != "zno"; then + CERNLIB_BIN=no + if test "z$CERNLIB_LIB_PATH" = z; then + if test "z$CERNLIB" != z -a -d "$CERNLIB"; then + CERNLIB_LIB_PATH=$CERNLIB + CERNLIB_STATIC="yes" + AC_MSG_NOTICE([using the CERNLIB environment variable for cernlib location]) + elif test "z$CERN_ROOT" != z -a -d "$CERN_ROOT/lib"; then + CERNLIB_LIB_PATH=$CERN_ROOT/lib + CERNLIB_STATIC="yes" + AC_MSG_NOTICE([using the CERN_ROOT environment variable for cernlib location]) + fi + if test "z$CERNLIB_LIB_PATH" = "z"; then + AC_PATH_PROG(CERNLIB_BIN, cernlib, no) + if test $CERNLIB_BIN != no; then + CERNLIB_STATIC="yes" + fi + fi + fi +fi + +if test "z$CERNLIB_STATIC" != "zyes"; then + if test "z$CERNLIB_LIB_PATH" != z; then + LDFLAGS="$LDFLAGS -L$CERNLIB_LIB_PATH" + fi +fi +]) + +# AC_LIB_CERNLIB ([LIBRARY = kernlib], [FUNCTION = CLTOU], [ACTION-IF-FOUND], +# [ACTION-IF-NOT-FOUND]) +# check for a function in a library of the cernlib +AC_DEFUN([AC_LIB_CERNLIB], [ + +cernlib_lib_ok="no" + +if test "z$1" = z; then + cern_library=kernlib +else + cern_library=$1 +fi + +if test "z$2" = z; then + cern_func=CLTOU +else + cern_func=$2 +fi + +if test "z$CERNLIB_STATIC" = "zyes"; then + cernlib_lib_static_found=no + AC_MSG_NOTICE([cernlib: linking with a static $cern_library]) + save_CERNLIB_LIBS="$CERNLIB_LIBS" + if test "z$CERNLIB_BIN" != "zno"; then + cernlib_bin_out=`$CERNLIB_BIN $cern_library` + CERNLIB_LIBS="$cernlib_bin_out $CERNLIB_LIBS" + cernlib_lib_static_found=yes + elif test "z$CERNLIB_LIB_PATH" != z; then +dnl .a for UNIX libraries only ? + if test -f "$CERNLIB_LIB_PATH/lib${cern_library}.a"; then + CERNLIB_LIBS="$CERNLIB_LIB_PATH/lib${cern_library}.a $CERNLIB_LIBS" + cernlib_lib_static_found=yes + fi + fi + if test "z$cernlib_lib_static_found" = zno; then + AC_MSG_WARN([cannot determine the cernlib location for static linking]) + else +dnl now try the link + save_LIBS="$LIBS"; LIBS="$CERNLIB_LIBS $LIBS" + AC_LINK_IFELSE([ program main + call $cern_func + end +], + [ + cernlib_lib_ok=yes + ], + [ + CERNLIB_LIBS="$save_CERNLIB_LIBS" + ]) + LIBS="$save_LIBS" + fi +else + AC_MSG_NOTICE([trying a dynamical link with $cern_library]) +dnl FIXME ther could also be something like +dnl save_LIBS="$LIBS"; LIBS="$CERNLIB_LIBS $LIBS" +dnl CERNLIB_LIBS="-l$cern_library $CERNLIB_LIBS" +dnl LIBS="$save_LIBS" + AC_CHECK_LIB([$cern_library], [$cern_func], + [ + AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_LIB$1)) + LIBS="-l$1 $LIBS" + + cernlib_lib_ok=yes + ]) +fi + +AS_IF([test x"$cernlib_lib_ok" = xyes], + [m4_default([$3], [AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_CERNLIB_${cern_library}_${cern_func})) + ])], + [ + AC_MSG_WARN([cannot link $cern_func in lib$cern_library ]) + $4 + ]) + +]) --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/icons/paw48x48.xpm +++ cernlib-2005.05.09.dfsg/debian/add-ons/icons/paw48x48.xpm @@ -0,0 +1,53 @@ +/* XPM */ +static char * paw_xpm[] = { +"48 48 2 1", +" c None", +". c #000000", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" . ", +" .. ", +" ... ", +" ... ", +" .... ", +" ..... .. .... ", +" ........... .... .... ... ", +" ... ... ..... .... ... ", +" .. ... .. .. .. ... ", +" .. ... .. .. .. ... ", +" .. .... .. .. . ... ", +" .. .... ... ... .. ... ", +" ... .. ... .. .. ... ", +" .... ... ... .. .. ... ... ", +" ....... ... .. ... ... ... ", +" .. ... .. .. .... ... ", +" .. .... ... .. .... ... ", +" .. ........... ..... ..... ", +" .. ........ ... .... .... ", +" .. ... .. ... ... .... ", +" ....... .. .... ... .. ", +" ...... ... ... .. .. ", +" ...... .... .... .. . ", +" .... .... ..... . ", +" ... ... ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" "}; --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/icons/browser.xbm +++ cernlib-2005.05.09.dfsg/debian/add-ons/icons/browser.xbm @@ -0,0 +1,33 @@ +#define browser_width 50 +#define browser_height 50 +static char browser_bits[] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x3e, 0x60, 0x00, 0x00, 0x1e, + 0x00, 0xc0, 0xff, 0x79, 0x3c, 0x00, 0x0e, 0x00, 0xc0, 0xc1, 0xf9, 0x78, + 0x00, 0x0e, 0x00, 0xc0, 0xc0, 0xd9, 0x60, 0x00, 0x0e, 0x00, 0xc0, 0xc0, + 0xd9, 0x60, 0x00, 0x0e, 0x00, 0xc0, 0xe0, 0xd9, 0x40, 0x00, 0x0e, 0x00, + 0xc0, 0xe0, 0xdd, 0xc1, 0x00, 0x0e, 0x00, 0xc0, 0x61, 0x9c, 0xc1, 0x00, + 0x0e, 0x00, 0xc0, 0x3b, 0x9c, 0xc1, 0x1c, 0x0e, 0x00, 0xc0, 0x1f, 0x8e, + 0xc1, 0x1d, 0x0e, 0x00, 0xc0, 0x00, 0x0e, 0x83, 0x3d, 0x0e, 0x00, 0xc0, + 0x00, 0x8f, 0x83, 0x3d, 0x07, 0x00, 0xc0, 0x00, 0xff, 0x87, 0xef, 0x03, + 0x00, 0xc0, 0x80, 0x7f, 0x07, 0xef, 0x01, 0x00, 0xcc, 0x01, 0x06, 0x0e, + 0xe7, 0x01, 0x00, 0xfc, 0x01, 0x06, 0x1e, 0xc7, 0x00, 0x00, 0xf8, 0x01, + 0x07, 0x1c, 0xc6, 0x00, 0x00, 0xf0, 0x83, 0x07, 0x3c, 0x86, 0x00, 0x00, + 0x80, 0x87, 0x07, 0x7c, 0x04, 0x00, 0x00, 0x00, 0x07, 0x07, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf6, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe6, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x76, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x36, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe6, 0x38, + 0x00, 0x00, 0xc7, 0xf3, 0x00, 0xc6, 0x7d, 0x8e, 0x98, 0xed, 0xb7, 0x01, + 0x86, 0xcd, 0xdb, 0x98, 0x20, 0x36, 0x01, 0x86, 0x0d, 0x5b, 0x90, 0x23, + 0x33, 0x00, 0x86, 0x0d, 0x51, 0x10, 0xef, 0x30, 0x00, 0x86, 0x0d, 0x53, + 0x26, 0x6c, 0x30, 0x00, 0xc6, 0x0d, 0xd3, 0x36, 0xcc, 0x36, 0x00, 0xe6, + 0x0c, 0xde, 0x9f, 0x87, 0x33, 0x00, 0xfe, 0x00, 0x80, 0x08, 0x03, 0x00, + 0x00, 0x3e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00}; --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/icons/kxterm48x48.xpm +++ cernlib-2005.05.09.dfsg/debian/add-ons/icons/kxterm48x48.xpm @@ -0,0 +1,56 @@ +/* XPM */ +static char * kxterm_xpm[] = { +"48 48 5 1", +" c None", +". c #000000", +"+ c #FFFFFF", +"@ c #E3E3E3", +"# c #8E8E8E", +" ", +" ......................... ", +" ...++++++++++++++++++++++++.. ", +" ...++++++++++++++++++++++++++++.. ", +" ...+@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+.. ", +" .+++@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@++. ", +" .+##################################. ", +" .+##################################. ", +" .+##..............................##. ", +" .+##.............................+##. ", +" .+##..+++++++++++++++++..........+##. ", +" .+##..+...............+..........+##. ", +" .+##..+.............+.+..........+##. ", +" .+##..+...............+..........+##. ", +" .+##..+...............+..........+##. ", +" .+##..+++++++++++++++++..........+##. ", +" .+##..+...............+..........+##. ", +" .+##..+.+++.........+.+..........+##. ", +" .+##..+...............++++++++++.+##. ", +" .+##..+...............+........+.+##. ", +" .+##..+...............+........+.+##. ", +" .+##..+++++++++++++++++........+.+##. ", +" .+##.............+.............+.+##. ", +" .+##.............+.............+.+##. ", +" .+##.............+.+++.........+.+##. ", +" .+##.............+.............+.+##. ", +" .+##.............+++++++++++++++.+##. ", +" .+##.............................+##. ", +" .+##.............................+##. ", +" .+##.............................+##. ", +" .+##.+++++++++++++++++++++++++++++##. ", +" .+##################################. ", +" .+##################################. ", +" ................................... ", +" ...................... ", +" ........ ...... ", +" ................................. ", +" ..+++++++++++++++++++++++++++++++. ", +" ..++++.+.+.+.+.+.+.+.+.++++.+.+.+++. ", +" ..++++.+.+.+.+.+.+.+.+.+.++++.+.+.+++. ", +" ..++++.+.+.+.+.+.+.+.+.+.+.++++.+.+.+++. ", +" ..++++.+.+.+.+.+.+.+.+.+.+.+.++++.+.+.+++. ", +" ..++++.+.+.+++++++++++++++++.+.++++.+.+.+++. ", +" .+++++++++++++++++++++++++++++++++++++++++++. ", +" .###########################################. ", +" .###########################################. ", +" ............................................. ", +" "}; --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/icons/command.xbm +++ cernlib-2005.05.09.dfsg/debian/add-ons/icons/command.xbm @@ -0,0 +1,33 @@ +#define command_width 50 +#define command_height 50 +static char command_bits[] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x3e, 0x60, 0x00, 0x00, 0x1e, + 0x00, 0xc0, 0xff, 0x79, 0x3c, 0x00, 0x0e, 0x00, 0xc0, 0xc1, 0xf9, 0x78, + 0x00, 0x0e, 0x00, 0xc0, 0xc0, 0xd9, 0x60, 0x00, 0x0e, 0x00, 0xc0, 0xc0, + 0xd9, 0x60, 0x00, 0x0e, 0x00, 0xc0, 0xe0, 0xd9, 0x40, 0x00, 0x0e, 0x00, + 0xc0, 0xe0, 0xdd, 0xc1, 0x00, 0x0e, 0x00, 0xc0, 0x61, 0x9c, 0xc1, 0x00, + 0x0e, 0x00, 0xc0, 0x3b, 0x9c, 0xc1, 0x1c, 0x0e, 0x00, 0xc0, 0x1f, 0x8e, + 0xc1, 0x1d, 0x0e, 0x00, 0xc0, 0x00, 0x0e, 0x83, 0x3d, 0x0e, 0x00, 0xc0, + 0x00, 0x8f, 0x83, 0x3d, 0x07, 0x00, 0xc0, 0x00, 0xff, 0x87, 0xef, 0x03, + 0x00, 0xc0, 0x80, 0x7f, 0x07, 0xef, 0x01, 0x00, 0xcc, 0x01, 0x06, 0x0e, + 0xe7, 0x01, 0x00, 0xfc, 0x01, 0x06, 0x1e, 0xc7, 0x00, 0x00, 0xf8, 0x01, + 0x07, 0x1c, 0xc6, 0x00, 0x00, 0xf0, 0x83, 0x07, 0x3c, 0x86, 0x00, 0x00, + 0x80, 0x87, 0x07, 0x7c, 0x04, 0x00, 0x00, 0x00, 0x07, 0x07, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0xe0, 0x03, 0x00, 0xc0, 0x00, 0x00, 0x00, 0xf0, + 0x0f, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x18, 0x0c, 0x00, 0xc0, 0x00, 0x00, + 0x00, 0x08, 0x08, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x0c, 0x40, 0x3b, 0xfc, + 0x00, 0x00, 0x00, 0x0c, 0xc0, 0x2f, 0xfe, 0x00, 0x00, 0x00, 0x0c, 0xc0, + 0x66, 0xc2, 0x00, 0x00, 0x00, 0x0c, 0xc0, 0x66, 0xc3, 0x00, 0x00, 0x00, + 0x08, 0xc0, 0x66, 0xc3, 0x00, 0x00, 0x00, 0x18, 0xc8, 0x66, 0xc3, 0x00, + 0x20, 0x00, 0x10, 0xcc, 0x66, 0xe6, 0x00, 0x60, 0x00, 0xf0, 0xc7, 0x66, + 0xbc, 0x01, 0x60, 0x00, 0xe0, 0xc3, 0x66, 0x00, 0x00, 0x60, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x67, 0x00, 0x00, 0x00, 0xe0, 0xf3, 0x3d, 0x69, + 0x00, 0x00, 0x00, 0x30, 0x96, 0x64, 0x67, 0x00, 0x00, 0x00, 0x30, 0x96, + 0x44, 0xe3, 0x00, 0x00, 0x00, 0xe0, 0x93, 0x44, 0xce, 0x00, 0x00, 0x00, + 0x20, 0xf0, 0xcd, 0x8c, 0x01, 0x00, 0x00, 0x20, 0x70, 0x8b, 0x00, 0x00, + 0x00, 0x00, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00}; --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/icons/kxterm32x32.xpm +++ cernlib-2005.05.09.dfsg/debian/add-ons/icons/kxterm32x32.xpm @@ -0,0 +1,40 @@ +/* XPM */ +static char * kxterm2_xpm[] = { +"32 32 5 1", +" c None", +". c #000000", +"+ c #FFFFFF", +"@ c #E3E3E3", +"# c #8E8E8E", +" ", +" ................... ", +" ..+++++++++++++++++++.. ", +" .+@@@@@@@@@@@@@@@@@@@@++. ", +" .+######################. ", +" .+#....................#. ", +" .+#.++++++++++++......+#. ", +" .+#.+..........+......+#. ", +" .+#.+........+.+......+#. ", +" .+#.+..........+......+#. ", +" .+#.++++++++++++......+#. ", +" .+#.+..........+......+#. ", +" .+#.+.++.....+.++++++.+#. ", +" .+#.+..........+....+.+#. ", +" .+#.++++++++++++....+.+#. ", +" .+#........+........+.+#. ", +" .+#........+.++.....+.+#. ", +" .+#........+........+.+#. ", +" .+#........++++++++++.+#. ", +" .+#...................+#. ", +" .+#++++++++++++++++++++#. ", +" .+######################. ", +" ....................... ", +" ...... .... ", +" ....................... ", +" .+++++++++++++++++++++. ", +" ..++.+.+.+.+.+.+.+++.+.++.. ", +" .++.+.+.+.+.+.+.+.+++.+.++. ", +" .++.+.+.+++++++++.+.+++.+.++. ", +" .############################. ", +" .............................. ", +" "}; --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/icons/graphics.xbm +++ cernlib-2005.05.09.dfsg/debian/add-ons/icons/graphics.xbm @@ -0,0 +1,33 @@ +#define graphics_width 50 +#define graphics_height 50 +static char graphics_bits[] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00, 0x3e, 0x60, 0x00, 0x00, 0x1e, + 0x00, 0xc0, 0xff, 0x79, 0x3c, 0x00, 0x0e, 0x00, 0xc0, 0xc1, 0xf9, 0x78, + 0x00, 0x0e, 0x00, 0xc0, 0xc0, 0xd9, 0x60, 0x00, 0x0e, 0x00, 0xc0, 0xc0, + 0xd9, 0x60, 0x00, 0x0e, 0x00, 0xc0, 0xe0, 0xd9, 0x40, 0x00, 0x0e, 0x00, + 0xc0, 0xe0, 0xdd, 0xc1, 0x00, 0x0e, 0x00, 0xc0, 0x61, 0x9c, 0xc1, 0x00, + 0x0e, 0x00, 0xc0, 0x3b, 0x9c, 0xc1, 0x1c, 0x0e, 0x00, 0xc0, 0x1f, 0x8e, + 0xc1, 0x1d, 0x0e, 0x00, 0xc0, 0x00, 0x0e, 0x83, 0x3d, 0x0e, 0x00, 0xc0, + 0x00, 0x8f, 0x83, 0x3d, 0x07, 0x00, 0xc0, 0x00, 0xff, 0x87, 0xef, 0x03, + 0x00, 0xc0, 0x80, 0x7f, 0x07, 0xef, 0x01, 0x00, 0xcc, 0x01, 0x06, 0x0e, + 0xe7, 0x01, 0x00, 0xfc, 0x01, 0x06, 0x1e, 0xc7, 0x00, 0x00, 0xf8, 0x01, + 0x07, 0x1c, 0xc6, 0x00, 0x00, 0xf0, 0x83, 0x07, 0x3c, 0x86, 0x00, 0x00, + 0x80, 0x87, 0x07, 0x7c, 0x04, 0x00, 0x00, 0x00, 0x07, 0x07, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x01, 0x00, + 0x00, 0x00, 0x00, 0x00, 0xf8, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x9c, + 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x10, 0x00, 0x00, + 0x00, 0x06, 0x00, 0x00, 0x30, 0x18, 0x00, 0x00, 0x07, 0x00, 0x00, 0x30, + 0x00, 0xe0, 0x00, 0x03, 0x78, 0x80, 0x33, 0x80, 0xb3, 0x01, 0xe3, 0x5c, + 0x8f, 0xf7, 0xc8, 0x16, 0x01, 0xe3, 0x0d, 0xcd, 0xf6, 0xd9, 0x74, 0x00, + 0xa7, 0x8d, 0xc9, 0x34, 0xd9, 0xe0, 0x00, 0x86, 0x8d, 0xc8, 0x36, 0xdb, + 0x80, 0x01, 0x86, 0x8d, 0xcd, 0x33, 0xdb, 0x80, 0x01, 0x8e, 0x8d, 0xdf, + 0x30, 0xdb, 0x96, 0x01, 0xfc, 0x85, 0xd7, 0x30, 0xd3, 0xf3, 0x00, 0xf8, + 0x00, 0xc0, 0x00, 0x80, 0x71, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00}; --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/icons/kxterm.xbm +++ cernlib-2005.05.09.dfsg/debian/add-ons/icons/kxterm.xbm @@ -0,0 +1,33 @@ +#define kxterm_width 50 +#define kxterm_height 50 +static char kxterm_bits[] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0xf0, 0xff, 0xff, 0x1f, 0x00, 0x00, 0x00, 0x1c, 0x00, + 0x00, 0x60, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x80, 0x01, 0x00, 0xc0, + 0x55, 0x55, 0x55, 0x55, 0x06, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x04, + 0x00, 0x40, 0x55, 0x55, 0x55, 0x55, 0x05, 0x00, 0x40, 0xaa, 0xaa, 0xaa, + 0xaa, 0x06, 0x00, 0x40, 0xfd, 0xff, 0xff, 0xff, 0x05, 0x00, 0x40, 0xfe, + 0xff, 0xff, 0x7f, 0x06, 0x00, 0x40, 0x0d, 0x00, 0xe0, 0x7f, 0x05, 0x00, + 0x40, 0xee, 0xff, 0xef, 0x7f, 0x06, 0x00, 0x40, 0xed, 0xff, 0xeb, 0x7f, + 0x05, 0x00, 0x40, 0xee, 0xff, 0xef, 0x7f, 0x06, 0x00, 0x40, 0xed, 0xff, + 0xef, 0x7f, 0x05, 0x00, 0x40, 0x0e, 0x00, 0xe0, 0x7f, 0x06, 0x00, 0x40, + 0xed, 0xff, 0xef, 0x7f, 0x05, 0x00, 0x40, 0x2e, 0xfe, 0xeb, 0x7f, 0x06, + 0x00, 0x40, 0xed, 0xff, 0x0f, 0x40, 0x05, 0x00, 0x40, 0xee, 0xff, 0xef, + 0x5f, 0x06, 0x00, 0x40, 0xed, 0xff, 0xef, 0x5f, 0x05, 0x00, 0x40, 0x0e, + 0x00, 0xe0, 0x5f, 0x06, 0x00, 0x40, 0xfd, 0x7f, 0xff, 0x5f, 0x05, 0x00, + 0x40, 0xfe, 0x7f, 0xff, 0x5f, 0x06, 0x00, 0x40, 0xfd, 0x7f, 0xf1, 0x5f, + 0x05, 0x00, 0x40, 0xfe, 0x7f, 0xff, 0x5f, 0x06, 0x00, 0x40, 0xfd, 0x7f, + 0x00, 0x40, 0x05, 0x00, 0x40, 0xfe, 0xff, 0xff, 0x7f, 0x06, 0x00, 0x40, + 0xfd, 0xff, 0xff, 0x7f, 0x05, 0x00, 0x40, 0xfe, 0xff, 0xff, 0x7f, 0x06, + 0x00, 0x40, 0x05, 0x00, 0x00, 0x00, 0x05, 0x00, 0x40, 0xaa, 0xaa, 0xaa, + 0xaa, 0x06, 0x00, 0x40, 0x55, 0x55, 0x55, 0x55, 0x05, 0x00, 0x80, 0xff, + 0xff, 0xff, 0xff, 0x03, 0x00, 0x00, 0xc0, 0xff, 0xff, 0x0f, 0x00, 0x00, + 0x00, 0xe0, 0x1f, 0xc0, 0x0f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, + 0x01, 0x00, 0x80, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0xc0, 0x50, 0x55, + 0x15, 0x2a, 0x02, 0x00, 0x60, 0xa8, 0xaa, 0x2a, 0x54, 0x04, 0x00, 0x30, + 0x54, 0x55, 0x55, 0xa8, 0x08, 0x00, 0x18, 0xaa, 0xaa, 0xaa, 0x50, 0x11, + 0x00, 0x0c, 0x15, 0x00, 0x40, 0xa1, 0x22, 0x00, 0x04, 0x00, 0x00, 0x00, + 0x00, 0x40, 0x00, 0xac, 0xaa, 0xaa, 0xaa, 0xaa, 0x6a, 0x00, 0x54, 0x55, + 0x55, 0x55, 0x55, 0x55, 0x00, 0xfc, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00}; --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/icons/paw32x32.xpm +++ cernlib-2005.05.09.dfsg/debian/add-ons/icons/paw32x32.xpm @@ -0,0 +1,37 @@ +/* XPM */ +static char * paw2_xpm[] = { +"32 32 2 1", +" c None", +". c #000000", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" . ", +" .. ", +" .. ", +" ...... ... .. .. ", +" .. .. ... .. .. ", +" .. .. . . . .. ", +" .. ... . .. . .. ", +" .. .. .. .. .. .. ", +" ..... .. . .. .. .. ", +" .. .. . . .. .. ", +" .. ... ... ..... .. ", +" .. ....... ... ... ", +" . .. . .. .. .. ", +" .... .. ... .. . ", +" .... ... ... . ", +" ... .. ", +" ", +" ", +" ", +" ", +" ", +" ", +" ", +" "}; --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/INSTALL +++ cernlib-2005.05.09.dfsg/debian/add-ons/INSTALL @@ -0,0 +1,75 @@ +CERNLIB INSTALLATION + +To install: + +1) Install the libraries required by Cernlib... see PREREQUISITES below. + +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 + +Note: you may not want to install the .debs of zftp, pawserv, fatmen, hepdb, +which are a) insecure (send passwords in cleartext) and b) no longer +widely used. + +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 + +Note: you may want to delete the binaries of zserv, pawserv from /usr/local/sbin +and the binaries of fat*, hep*, zftp from /usr/local/bin for the reasons +mentioned above. + +If you are installing paw, zftp, fatserv, pawserv or zserv, then: +a) make sure you have the following lines in /etc/services: + +pawserv 345/tcp # Perf Analysis Workbench +pawserv 345/udp # Perf Analysis Workbench +zserv 346/tcp # Zebra server +zserv 346/udp # Zebra server +fatserv 347/tcp # Fatmen Server +fatserv 347/udp # Fatmen Server + +b) if you install pawserv and/or zserv, put something like this in + /etc/inetd.conf: + +zserv stream tcp nowait root /usr/local/sbin/zserv zserv +pawserv stream tcp nowait root /usr/local/sbin/pawserv pawserv + +PREREQUISITES + +- On Debian GNU/Linux, have the following packages and their dependencies + installed: + + dpatch, patch, mawk (or gawk), xutils (for imake), debhelper, g77, cfortran, + x-dev, libxt-dev, libx11-dev, lesstif2-dev, refblas3-dev, lapack3-dev, + tetex-bin, fakeroot, build-essential + +- On RedHat Linux, the following packages and their dependencies should + suffice (note, not tested) + + make, patch, gawk, XFree86-devel, XFree86-libs, gcc-g77, lesstif-devel, + lesstif, tetex-latex, blas*, lapack* + + * The blas and lapack RPMS may be obtained from RedHat RawHide: + ftp://ftp.redhat.com/pub/redhat/linux/rawhide + +- On Mac OS X, have the developers' tools CD and the following Fink packages + installed: (see http://fink.sourceforge.net for more info about Fink) + + make (GNU make), xfree86-base (for imake), g77, atlas, + lesstif (or openmotif3) and the related -bin and -shlibs packages, + tetex (maybe only tetex-base, I haven't investigated fully) + --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/README +++ cernlib-2005.05.09.dfsg/debian/add-ons/README @@ -0,0 +1,42 @@ +Contents of this directory are copyright (C) Kevin B. McCarty, 2001-2005, +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 Cernlib supplied by CERN. To compile Cernlib accordingly, copy the Makefile +in this directory to the top-level Cernlib source directory and run make with +whatever variables you like. + +This packaging of Cernlib adds support for: + +- shared libraries and shadow passwords (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 +- nice X11 app-defaults +- 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 will +install binaries to /usr/local/bin, daemons to /usr/local/sbin, shared +data to /usr/local/share, etc. Or change this by specifying $prefix with +the "make" command. + +Things NOT included in this packaging of Cernlib: + +- FLUKA code; see www.fluka.org to obtain that +- 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://borex.princeton.edu/~kmccarty/ for more information. + +--Kevin McCarty, 15 February 2005 + --- cernlib-2005.05.09.dfsg.orig/debian/add-ons/includelist.txt +++ cernlib-2005.05.09.dfsg/debian/add-ons/includelist.txt @@ -0,0 +1,28 @@ +geant321/geant321 +graflib/dzdoc/dzdoc +graflib/higz/higz +graflib/hplot/hplot +kernlib/kernbit/kernbit +kernlib/kerngen/kerngen +kernlib/kernnum/kernnum +mathlib/gen/gen +mclibs/cojets/cojets +mclibs/eurodec/eurodec +mclibs/herwig/herwig59 +mclibs/isajet/isajet +mclibs/pdf/pdf +packlib/cspack/cspack +packlib/epio/epio +packlib/fatmen/fatmen +packlib/ffread/ffread +packlib/hbook/hbook +packlib/hepdb/hepdb +packlib/kapack/kapack +packlib/kuip/kuip +packlib/minuit/minuit +packlib/zbook/zbook +packlib/zebra/zebra +pawlib/comis/comis +pawlib/paw/ntuple +pawlib/paw/paw +pawlib/sigma/sigma --- cernlib-2005.05.09.dfsg.orig/debian/README.amd64 +++ cernlib-2005.05.09.dfsg/debian/README.amd64 @@ -0,0 +1,122 @@ +AMD64-specific Cernlib issues +----------------------------- + +If you are writing or compiling FORTRAN code on the AMD64 platform that links +against CERN libraries, you should be aware of some potential problems +in using the Cernlib Debian packages on the AMD64 platform. This information +is provided in addition to that in the README.64-bit and README.Debian files. + +The default behavior of the g77 FORTRAN compiler is to return the equivalent +of a C "double" variable from both REAL and DOUBLE PRECISION functions. +If you mix C and FORTRAN code, the declaration of a REAL FORTRAN function in +the C code must have it returning a double. Similarly, a function written +in C that is intended to be called from FORTRAN expecting a REAL variable +must be written to return a double. + +On most architectures, one can get away with declaring such functions as +returning "float" instead. This is not the case on the AMD64 platform +due to a bug in g77. There are two ways one can get around the problem: + +a) take care that all FORTRAN REAL function declarations on the C side + and all C functions written to return REAL-valued variables to FORTRAN + code are declared within the C code as returning "double" variables. + +b) use the -fno-f2c flag to g77 which produces code conforming to a different + ABI that does not have the bug. In that case one must ensure that ALL + FORTRAN code is compiled with that flag, even third-party libraries + such as LAPACK and BLAS. + +For the Debian packages, I have chosen the first option. *NOTE* that this is +the opposite of what is done by Harald Vogt in his port of Cernlib to AMD64. +Hence when linking code against the Cernlib libraries packaged by Debian on +AMD64, you do NOT have to use the -fno-f2c option to g77 at any point, but you +MUST take care when intermingling C and FORTRAN code! + +The cfortran.h header file in Debian has been fixed to do the Right Thing in +the cfortran package as of version 4.4-8. So the following code will work +if you have a sufficiently recent cfortran package installed: + +- file.c ---------------------------------- + +#include + +/* Declaration of FORTRAN function used in + * C code which takes a REAL and INTEGER as + * arguments and returns single-precision + * REAL - transformed to double by g77! */ + +PROTOCCALLSFFUN2(FLOAT, FFUNC, ffunc, INT, FLOAT) +#define FFUNC(A, B) \ + CCALLSFFUN2(FFUNC, ffunc, INT, FLOAT, A, B) + +/* Definition of C function used in FORTRAN + * code as REAL - must return double! */ +double cfunc_ (int * iptr, float * fptr) +{ + int i = *iptr, j; + float f = *fptr, g; + float /* or double */ h; + ... + h = FFUNC(j, g); + ... + return h; +} + + +If you are writing the C/FORTRAN interface the old-fashioned way, the +following code is also OK, for instance: + +- file.c ---------------------------------- + +/* Declaration of FORTRAN function used in + * C code which takes a REAL and INTEGER as + * arguments and returns single-precision + * REAL - transformed to double by g77! */ +double ffunc_ (int * iptr, float * fptr); + +/* Definition of C function used in FORTRAN + * code as REAL - must return double! */ +double cfunc_ (int * iptr, float * fptr) +{ + int i = *iptr, j; + float f = *fptr, g; + float /* or double */ h; + ... + h = ffunc_ (j, g); + ... + return h; +} + +- file.F ---------------------------------- +C +C Definition of FORTRAN function used +C in C code +C + real function ffunc (i, r) + integer i, j + real r, s + ... + s = cfunc (j, s) + ... + ffunc = s + end + +------------------------------------------- + +It is hoped that this inconvenient situation will be temporary. Either +the bug in g77 will be fixed; or else all FORTRAN-using libraries will +eventually be built with the new gfortran compiler and therefore have a +consistent and less buggy ABI, since -fno-f2c is the default behavior of +gfortran. + +For more information, please see the following references. + +The g77 bug report: + http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15397 + +Harald Vogt's web page about Cernlib ported to 64-bit machines: + http://www-zeuthen.desy.de/linear_collider/cernlib_2005.html + +The info file for g77-3.4 (-fno-f2c option) in the g77-3.4-doc package. + +-- Kevin McCarty , Thu, 08 Dec 2005 --- cernlib-2005.05.09.dfsg.orig/debian/changelog +++ cernlib-2005.05.09.dfsg/debian/changelog @@ -0,0 +1,1446 @@ +cernlib (2005.05.09.dfsg-3) unstable; urgency=low + + * debian/add-ons/Makefile: Remove "|| true" from shared-lib generating + shell script snippet calling "$(MAKE) install.shlib" subprocesses. + + * Patches to fix FTBFS on Itanium: + - New patch 115-rsrtnt64-goto-outer-block: Patch from Patrice Dumas + to fix spaghetti code in src/mathlib/gen/b/rsrtnt64.F. + - New patch 116-fix-fconc64-spaghetti-code to work around linker breakage + with recent binutils on ia64, caused by assignment to goto labels in + src/mathlib/gen/c/fconc64.F. + + * New patch 117-fix-optimizer-bug-in-gphot from Harald Vogt + to work around compiler optimization problem in src/geant321/gphys/gphot.F. + + * Revised and enabled patch 211-fix-comis-on-amd64 from Harald + Vogt to make PAW and Paw++ work better on 64-bit platforms. Some + small modifications made from the initial patch preserving the dynamic + library ABI and making it unnecessary to use g77's -fno-f2c flag. + Shlib versions (but not sonames) bumped in debian/rules for libpawlib and + libpacklib. + - patches 315, 701: Resynced. + - patch 307: Synced with current version of cfortran.h from cfortran + package (4.4-8). + - Build-Depend on cfortran (>= 4.4-8) to work around GCC bug 15397. + See the cfortran 4.4-8 changelog and NEWS.Debian for more information. + - debian/README.{64-bit,amd64}: Discuss in more detail potential problems + on 64-bit platforms. + + * Added additional patch 211-fix-comis-on-ia64 to improve PAW usability on + Itanium. This builds on the work already done by Harald Vogt, using + information obtained from _IA-64 Linux Kernel: Design and Implementation_ + (Mosberger and Eranian) and from tests run on merulo.debian.org. + This is far from a complete solution; PAW is still quite broken on ia64. + + * Give up on having dynamically linked PAW work on 64-bit arches. Get rid + of the paw-static and paw++-static packages; PAW and Paw++ will be + dynamically linked on 32-bit arches and statically linked against Cern + libs on 64-bit arches. + - debian/copyright{,.in}: paw*-static -> paw* + - debian/rules: Copy working versions of paw++ and pawX11 into the install + tree (dynamically linked versions if that works, static otherwise). + - debian/control.d/paw{,++}-static.control: These are now dummy Arch: all + packages depending upon paw{,++} for smooth upgrades. + - debian/debhelper/paw{,++}.links: Remove unneeded man-page links... + - debian/{debhelper,lintian}/paw*-static.*: ... and *-static package + debhelper files. + - debian/debhelper/paw{,++}{,-static}.preinst: Remove alternatives links + in new preinsts. Delete old postinst/prerms that implemented the links. + - debian/rules: Re-add man page and binary links for + paw{X11,++}.{dynamic,static} only as appropriate, for backwards + compatibility. + - debian/control.d/paw*, debian/debhelper/paw*.links: Move pawX11.1.gz + and paw++.1.gz from paw-common into paw and paw++ packages. + Add Replaces: paw-common (<< 2005.05.09.dfsg-3) for paw and paw++. + Add direct Depends: g77 for paw and paw++ (they may be statically linked + so we can't rely on the indirect Depends via libpawlib2). + + * Patch 302: Revise to have the "paw" script in the paw-common package + exit with a sane error message if it can't find pawX11 or paw++ binaries. + - debian/control.d/paw-common.control: Change the paw-common package's + Depends: paw++ | paw-binary to a Recommends: paw | paw-binary to + prevent the circular dependency paw, paw++ => paw-common => paw, paw++. + + * debian/add-ons/bin/cernlib.in: Take advantage of the Linux linker's + intelligence, and don't have the cernlib script output any of + "-lXp -lXext -lSM -lICE -lblas" when run on Linux if not specifically + requested. None of those libraries contain symbols needed by any + Cernlib library or binary; they are only indirect dependencies + required when linking 100% statically. This reduces the number of + spurious package dependencies somewhat. + + -- Kevin B. McCarty Mon, 12 Dec 2005 13:47:00 -0500 + +cernlib (2005.05.09.dfsg-2) unstable; urgency=low + + * The file src/mclibs/isajet/isasusy/sszibf.F still breaks g77 on m68k, + even at -O0. To purge non-free GEANT-FLUKA code from the archive, + we need to force this version into unstable for all arches, even m68k: + - new patch 902, debian/add-ons/Makefile: Add a dpatch to remove isajet + from the list of mclibs to compile if $(DEB_BUILD_ARCH) = m68k. + - debian/control.d/cernlib-montecarlo.control: Only Recommend + libisajet758-2-dev, don't Depend upon it. + - debian/control.d/libisajet*.control: Moved into debian/control.d/no-m68k + - debian/rules: Hacked to look for arch-specific control file snippets. + - debian/add-ons/Makefile: Small fix to convert the new format of + gcc -dumpmachine (e.g. "m68k-linux-gnu") to a machine architecture. + + * No other changes. My apologies to the non-m68k buildds. + + -- Kevin B. McCarty Mon, 5 Dec 2005 12:39:19 -0500 + +cernlib (2005.05.09.dfsg-1) unstable; urgency=low + + * Removed the directories src/geant321/peanut and src/geant321/block, + as well as a number of include files in src/geant321/geant321 + (see debian/deadpool.txt for details). These are all part of GEANT-FLUKA + (they were previously overlooked in the first purge of FLUKA code) and + therefore cannot be included in Debian. In addition, removed the + directory src/geant321/fiface and the files + src/geant321/miface/{gfmdis.F,gfmfin.F} as they are useless without FLUKA. + (closes: #340433) + - Necessitates repacking the orig.tar.gz ("new" upstream version). + - Files added to debian/deadpool.txt. + - Patch 001-fix-missing-fluka: revised to skip these directories as + well as src/geant321/fluka. + . Patches 109, 203, 802, 806 re-synced. + - Patch 003-geant-dummy-functions: to keep ABI compatibility of the + library, we have to add in dummy functions and COMMON blocks to replace + the removed code. + - debian/rules: Bump the shlib version required by code built against + libgeant321-2, as the dummy COMMON blocks may in some cases be slightly + larger than the real ones. (Does not break the ABI, as FORTRAN COMMON + blocks are always global and never nested or passed between functions.) + - New script debian/add-ons/scripts/libcomp to help check that the dummy + common blocks are the right sizes. + - Additional removals noted in the README.Debian files for the affected + binary packages: geant321, libgeant321-2, libgeant321-2-dev. + - debian/NEWS: Comment on the new round of code removal. + + * Some additional changes to existing patches suggested by Patrice Dumas + in the process of creating Cernlib RPMs: + - patch 102: Add src/mathlib/gen/d/old506.F to the list of files to + compile without optimization; it breaks g77 3.2 otherwise. + - patch 207: Have COMIS create temporary shared library files with g77, + not gcc. (Resync patch 315.) + - patch 210: Change to . + - patch 300: Prefer the FORTRAN version of lenocc() in + src/packlib/kernlib/kerngen/tcgen/lenocc.F to the C version + in src/packlib/kernlib/kerngen/ccgen/lenocc.c ; it isn't + clear that the C version is 64-bit safe. + - patch 800: Use "$(FCLINK)" to create shared libs, not "gcc". + - patch 802: Fixes to the top-level Imakefile, even though it isn't used + in the Debian package build. For consistency, add + InstallSharedLibSubdirs(), and re-order the directory build + order to match that in debian/add-ons/Makefile. + - patch 804: #include "comis/mdpool.h" or .inc consistently, using a new + dpatch shell script 804-link-to-comis-includes.sh to link + src/pawlib/comis/comis into src/include/. + + * New patch 114-install-scripts-properly: convert InstallProgram to + InstallNamedProg in src/scripts/Imakefile, to avoid the build trying + to strip shell scripts. (This is not currently used in the Debian build + but is included for consistency with Patrice Dumas's RPMs.) + + * debian/add-ons/bin/cernlib.in: Revised to take into account modern + X directory layouts; patch from Patrice Dumas. + - /usr/X11R6/lib will eventually no longer exist (as will be the case + with modular X.org libs, where X libs go into /usr/lib) + - Check also for /usr/X11R6/lib64 directory + - Remove long-obsolete /usr/X386/lib and /usr/X11/lib directories + - Merge Linux and Darwin cases, which are now essentially identical + + * In files defining dummy functions (patches 003, 309, 310), protect + printed-out references to Debian-specific files by surrounding them with + "#if defined (CERNLIB_DEBIAN)" ... "#endif". Update the referenced + directories (e.g. libphtools1-dev -> libphtools2-dev). + + * Bug #325050 in gcc-4.0 (which broke ntuple handling in PAW) has been fixed: + - Build-Depend on gcc-4.0 (>= 4.0.2-4) | gcc (<< 4.0) to ensure that + we compile with a gcc not having that bug. (closes: #324902) + - Revert hacks in debian/{control,rules} that forced build with gcc-3.4. + + * debian/debhelper/paw{,++}{,-static}.README.debian: Update reference to + X FAQ about Debconf configuration of X config files with altered md5sums. + + * Update maintainer email everywhere in debian/ tree. + + * debian/rules, debian/copyright{,.in}: Add a rule to update the copyright + file with the current list of files in debian/deadpool.txt. + + * debian/rules, debian/compat: Update to debhelper compat version 5. + + * Debconf translations + - Spanish: César Gómez Martín (closes: #334390) + - Swedish: Daniel Nylander (closes: #332334) + + -- Kevin B. McCarty Fri, 2 Dec 2005 11:57:11 -0500 + +cernlib (2005.05.09-4) unstable; urgency=low + + * debian/control.d/0base.control, debian/rules: Build-Depend on gcc-3.4 and + drop a symlink gcc -> /usr/bin/gcc-3.4 into debian/add-ons/bin in order to + ensure we don't build with a compiler having bug #325050. This works + around bug #324902, a segfault when using ntuples in Paw. Not actually + closing #324902 until it's fixed in GCC 4. + + * New patch 113: Re-order lines in PostScript output to work around + CUPS issue. Thanks to Frank Dohrmann + for the work-around and testing. (closes: #329207) + + * New patch 211 by Harald Vogt (found at + http://www-zeuthen.desy.de/linear_collider/cernlib_2005_x86_64.patch ) + to improve behavior of Paw and Paw++ on 64-bit architectures. + Patch is, however, disabled until I can work out what to do about the + -fno-f2c compiler flag and fix the conflict with patch 304. + + * Fine-tuning of dependencies: + - debian/control.d/{geant321-doc,kuipc}.control: add Depends on + cernlib-base. Goal is for all Cernlib-related packages to depend at + least indirectly on cernlib-base, so "apt-get remove cernlib-base" will + remove all Cernlib packages. + - debian/control.d/libpawlib2-dev.control: add Suggests on + libpawlib2-lesstif-dev, analogous to libpacklib1-dev suggesting + libpacklib1-lesstif-dev. + - debian/control.d/{pawserv.control,fatmen.disabled}: add Conflicts + against harden-servers since these servers are most insecure. + (Cf. bug #325008 which will make the Conflicts mutual.) + - debian/control.d/pawserv.control: add Depends on netkit-inetd | xinetd, + but note in the long description that people choosing to run this + package under xinetd will have to set up the configuration themselves. + + -- Kevin B. McCarty Wed, 21 Sep 2005 11:20:38 -0400 + +cernlib (2005.05.09-3) unstable; urgency=low + + * Forgot to delete patch 316 (preventing the compilation of libisajet on + m68k in the Imakefile). Why didn't anyone file an FTBFS bug over this? + Fixed now. + + * Add "| debconf-2.0" to Depends of pawserv, pursuant to + http://lists.debian.org/debian-devel/2005/08/msg00136.html . + + -- Kevin B. McCarty Thu, 4 Aug 2005 14:33:37 +0000 + +cernlib (2005.05.09-2) unstable; urgency=low + + * patch 112: Comment out functions in gen.h that do not exist in mathlib. + Otherwise third-party code fails to link via cfortran (closes: #315956). + (This has been cloned to bug #315974 in sarge.) Thanks to Tim Gershon + for the bug report. + + * debian/control.d: Add versioned dependency on cernlib-base + (>= 2005.05.09-1) to libmathlib2-dev and libpacklib1-lesstif-dev + since they need a recent version of the cernlib script. + Explicitly conflict against blas2-dev, lapack2-dev in the cernlib-base + package to solve some problems with "apt-get dist-upgrade" from Sarge. + + * debian/changelog: Correct previous changelog entry to also credit + Patrice Dumas re: patch 318. + + * debian/rules, debian/control.d: Compile isajet on m68k since the + compiler bug preventing it (#225621) is fixed in g77 3.4, now the + default g77 version. (Neither upstream nor I want to deal with + gfortran yet...) + + * debian/add-ons/manpages/cernlib.1: Change the help output to match + the new actual output of the cernlib script. + + * Install kuesvr into the directory /usr/lib/libpacklib1 in conformance + with Policy 8.1. (It doesn't make sense to call it directly, only from + within the library, so kuesvr is a "run-time support program".) + - patch 605, debian/rules: Patch source code to deal with this. + - debian/debhelper/{cernlib-base,libpacklib1}.README, + debian/add-ons/kuesvr.1: Note the new location in documentation. + - debian/control.d/libpacklib1.control: Conflict against older paw-static + and paw++-static packages which expect to have kuesvr in the $PATH. + - debian/control.d/0base.control: Bump Standards-Version to 3.6.2. + + * debian/README.source, debian/patches/README: Expand upon build-time + documentation. + + * debian/lintian/*: Update location of menu files (lib->share) in overrides. + + * debian/debhelper/*.menu: Give full paths to commands in menu files + (except for sh; if /bin isn't in $PATH someone has a problem). + + -- Kevin B. McCarty Thu, 21 Jul 2005 14:26:15 +0000 + +cernlib (2005.05.09-1) unstable; urgency=low + + * New upstream release. + - Incorporates the security fixes from Debian version 2004.11.04-3, + making a number of Debian-specific patches obsolete. + - Fixes build failures with gcc 4 (closes: #303098). Thanks also to + Andreas Jochens and Patrice Dumas + for some additional fixes now in new patch 318. + - Note new upstream source directory in debian/copyright. + + * Post-Sarge spring clean-up of debian directory structure: + - Move all debhelper-related snippets into a debian/debhelper directory. + Symlink to them at build time and delete the symlinks at clean time. + - Likewise, add a debian/lintian directory and store overrides there. + (No need for symlinks; they are copied into packages by debian/rules.) + - Move debian/generic/patches to debian/patches in preparation for + dpatchization. + - Rename debian/generic to debian/add-ons to better describe its contents. + - Move debian/local/control to debian/control.d, remove-deadpool to + add-ons/bin, and the other files in debian/local directly under the + debian directory. + - Rename rules-help.txt to README.source in attempt to comply with the + Policy proposal in bug #250202. Add "patched" target to debian/rules + as a synonym for "patch". + - Edit all files referring to these paths appropriately. + + * Post-Sarge spring clean-up of dependencies in debian/control.d/*: + - Remove lesstif-dev from Build-Depends and Depends; we only want to + use lesstif2-dev and we no longer are concerned with woody + backport-ability. + - Remove the xlibs-dev alternative from Build-Depends for same reasons. + - Remove all references to version numbers 2003.09.03-2 and earlier + (dating from > 1.5 years before the release of Sarge): + . Versioned dependencies on packages >= 2003.09.03-2 become + unversioned dependencies; + . Conflicts/Replaces against old packages libcern1, etc. are removed. + + * Post-Sarge removal of woody backward compatibility hack for debconf i18n + from debian/rules: + - Move pawserv.templates.master to pawserv.templates. + - debian/po/POTFILES.in: list debian/pawserv.templates (not .master). + - debian/control.d/0base.control: Build-Depend on debhelper (>= 4.1.16). + - debian/control.d/pawserv.control: Depend on debconf (>= 1.2.0). + + * debian/rules, debian/debhelper/pawserv.postinst: Change permissions + of /var/log/pawserv directory in postinst (with dpkg-statoverride) instead + of debian/rules, to fix Lintian warning and better guarantee security. + Also, if the local admin for some reason has overridden our set permissions + (0700) with dpkg-statoverride, this way his/her changes will be preserved. + Remove the stat-override in pawserv.postrm. + + * Convert patch system to dpatch, re-applying all extant patches (that are + still relevant) from scratch. Be warned, some of the dpatch + files are shell scripts (a little-used dpatch feature) instead of patches! + See debian/patches/README in the source package for more information. + - Add dpatch (>= 2.0.9) to Build-Depends. + - Patch files are now much more fine-grained. + - Edit debian/rules to use dpatch targets. + - Implement hackery in add-ons/Makefile so build still works on + non-Debian systems. + - patch 308: allow build process to search for cfortran.h at + instead of . As a result, add + (>= 4.4-5) to cfortran Build-Dependency. Also edit add-ons/Makefile + to compensate. + - patch 602 (part of old patch 041): add #ifdef CERNLIB_DEBIAN protection + around change to use x-terminal-emulator instead of xterm. + + * Some libraries are bumped from soname version 1 to soname version 2 + because they have a direct or indirect dependency upon libblas and + liblapack. We are moving from a dependency on lib{blas,lapack}.so.2 to + lib{blas,lapack}.so.3 (closes: #280782). The affected libraries are + cojets, geant321, herwig59, isajet758, mathlib, pawlib, pdflib804, phtools. + - Rename debhelper snippets and fix contents where needed. (Note that + lib*.install files are edited to s/2004/2005/ even for libraries not + changing sonames.) + - Fix Build-Depends in debian/control.d/0base.control. + - Clean up dependencies in debian/control.d/*. In most cases the Depends + on blas and lapack which worked around bug #276145 are no longer + needed. + - Make cernlib-base Conflict against all the old -dev packages. + - Bump sonames in build process (patch 806). + - Move isajet, eurodec, and cojets data files to a different location + so they don't conflict with the files in the old soname packages. + . Edit patch 301 so they are searched for in the correct place. + - Fix debian/lib*.install and debian/local/control/lib*.control files. + - Fix cernlib script to link against correct sonames. + - Delete this item from TODOs. + - Comment on soname change in debian/NEWS. + + * Separate out libpaw functionality with Lesstif dependencies into another + library and package, libpawlib-lesstif.so.2 in libpawlib2-lesstif. + Rename libkuipX11 to libpacklib-lesstif for consistency, and put it in a + libpacklib1-lesstif package. Move kuwhag.c from libpacklib-lesstif into + libgrafX11, as it doesn't require Lesstif. This reduces the library + installation footprint for programs like pawX11 and mn_fit that don't + need Lesstif. + - Bump shlibs for libgrafX11 since it now has a new function. + - Edit control files, debhelper files, and cernlib script accordingly. + - Delete this item from TODOs. + - Comment on library split in debian/NEWS. + + * Debconf translations + - Czech: Martin Šín (closes: #304879) + - Brazilian Portuguese: André Luís Lopes + (closes: #302476, #302488, #302495) + - Vietnamese: Clytie Siddall (closes: #313327) + + -- Kevin B. McCarty Tue, 14 Jun 2005 14:28:09 -0400 + +cernlib (2004.11.04-3) unstable; urgency=high + + * Security patches to fix potentially dangerous uses of /tmp. + [Patches 027 and 034 also fix some such problems, but did not need to + be updated for this release; I mention them here for completeness.] + - patch 004: improve gxint script to create predictable filename "GEANT$$" + in $HOME, not /tmp + - patch 048: have various daemons log to /var/log, not /tmp + - patch 049: fix kuesvr not to create predictable filename in /tmp + - patch 050: have COMIS create predictably named files in a safe + subdirectory of /tmp created with mkdtemp() + - patch 051: miscellaneous other /tmp-related fixes that don't affect + Debian directly; mainly in build infrastructure + Some difficult-to-fix problems remain, but they do not affect the + build process, programs, or libraries in Debian. + + * debian/rules: Bump libpaw1 shlibs dependency to ">> 2004.11.04-2" since + patch 050 adds a new public function "cstmpd_" to the library. + + * debian/rules, debian/libpacklib1.{install,dirs}, debian/generic/Makefile: + Install kuesvr into the libpacklib1 package now that it isn't a + security hazard. + - debian/generic/manpages/kuesvr.1, debian/NEWS: Add kuesvr man page. + Note the API incompatibility in the kuesvr command-line flags + resulting from patch 049. + - debian/local/control/libpacklib1.control: As a result of this + incompatibility, have libpacklib1 Conflict against older versions of + paw{,++}-static that expect the original kuesvr API. (Older versions + of paw and paw++ are dynamically linked to libpacklib1, so they will + have no trouble.) + - patch 041: When HOST_EDITOR is "vi &", execute the editor with + "x-terminal-emulator -e" for Debian instead of "xterm -e". + - debian/local/control/libpacklib1.control: Therefore, Suggests + "xterm | x-terminal-emulator". + + * debian/generic/bin/cernlib: + - Test for libblas-2.so and liblapack-2.so before libblas2.so and + liblapack2.so, following the recent renaming of + /etc/alternatives/lib{blas,lapack}2.so to lib{blas,lapack}-2.so in + several packages. Try plain libblas.so and liblapack.so last, + to avoid mistakenly linking against libblas.so.3, etc. + - Don't eat unknown arguments past the end of cernlib-specific flags; + instead, output them directly before all other output (if they start + with a hyphen "-") or inline as -l$argument (otherwise). Mention + this new behavior in the manpage, debian/generic/manpages/cernlib.1. + + * debian/local/control/0base.control: Remove atlas2-dev from Build- + Conflicts and add it to Build-Depends (as an alternative to each + of blas-dev, lapack-dev). Since the libblas.so.2 and liblapack.so.2 + libraries in atlas2-*-dev packages are supposedly ABI-compatible with + those in blas and lapack packages, this should be perfectly OK. + - debian/generic/Makefile: don't link pawX11.static with -llapack + directly; use the "cernlib" script to detect the right lapack + library automatically. + + * patch 048, debian/rules, debian/pawserv.{cron.hourly,logrotate,postrm}, + debian/local/control/pawserv.control: + Fix pawserv/zserv to write its logs to a sane place (/var/log/pawserv) + with permissions 0700, add a cron.hourly script to concatenate them + into /var/log/pawserv.log, include a logrotate.d config fragment, and + have the pawserv package Suggest logrotate and Recommend cron. + + * debian/generic/misc/cernlib.m4, debian/NEWS: New update of cernlib.m4 + Autoconf macros from Patrice Dumas . This version is + slightly backwards-incompatible; for details, see debian/NEWS (in source) + or /usr/share/doc/cernlib-base/NEWS.Debian (in installed packages). + + * debian/local/control/cernlib-montecarlo.control: No longer depend on + "libisajet758-dev | m68k-linux-gnu" since type-handling has stopped + providing architecture virtual packages (cf. bug #274747). Instead, + Recommend libisajet758-dev so as not to be uninstallable on m68k. + + * debian/generic/manpages/*, debian/*.{TODO,README.debian}: Update and + touch up various documents slightly, including a note in gxint.1 about + the change due to the update of patch 004. + + * debian/*.overrides: Remove Lintian overrides for the warning + description-synopsis-starts-with-a-capital-letter; it has been removed + from Lintian due to too many false positives. + + * debian/generic/README: Remove obsolete claim that compressed GIF + support is disabled. + + * debian/paw*.README.debian: Mention that making the suggested change to + XF86Config-4 will cause Debconf not to update that file, and refer + to the relevant X Strike Force FAQ entry. + + * debian/generic/Makefile, debian/generic/patches/ifort.patch, + debian/generic/patches/additions/config+linux.cf, + debian/local/rules-help.txt: Add the "ifort" option to $DEB_BUILD_OPTIONS + to compile with ifort/icc instead of g77/gcc. Thanks to Marco Cammarata + for trying this out. + + -- Kevin B. McCarty Thu, 10 Mar 2005 16:05:44 +0100 + +cernlib (2004.11.04-2) unstable; urgency=low + + * patch 015: Compile src/mathlib/gen/d/radmul.F at -O0 to work around a + g77 optimization bug (closes: #290394). Many thanks to + Eduardo A. Menendez Proupin + for tracking this down. + + * Tidying up for Sarge: + - debian/generic/patches/additions/config+linux.cf: Comment out extra + "ServerExtraDefines" definition. + - debian/paw{,++}{,-static}.{overrides,dirs}, debian/rules: Add Lintian + overrides for Lintian false alarms on these binary packages. + - debian/local/control/*: Fix a few package descriptions that get a + Lintian warning for description-synopsis-starts-with-a-capital-letter. + Most of these are spurious but it would be too bothersome to add + overrides for all of them. + - debian/generic/manpages/cernlib.1: Explain why cernlib script links + statically by default (viz., to preserve upstream behavior). + - debian/*.doc-base: Change doc-base sections of documents from + Apps/Programming to Apps/Science. + - debian/copyright: Fix the copyright file so that the "above copyright + notice" referred to in many of the exception licenses is included in + the correct place. Quote CERN's licensing of Cernlib under the GPL + verbatim. Remark upon where to find the original COPYRIGHT file for + the Addison-Wesley copyrighted source code. + - debian/copyright, debian/libpdflib804-dev.README.debian: Add a comment, + just in case anyone gets worried, that the apparently non-free license + of the file src/mclibs/pdf/doc/pdfdoc.dat (a.k.a. /usr/share/doc/lib- + pdflib804-dev/pdfdoc.txt.gz) has been superseded by the GPL. + - debian/*.README.debian: Add disclaimers that URLs for unofficial + non-free Monte Carlo Debian packages (Ariadne, Pythia, etc.) may not + last forever. + + -- Kevin B. McCarty Fri, 14 Jan 2005 00:08:44 -0500 + +cernlib (2004.11.04-1) unstable; urgency=high + + * New upstream version: + - Upstream claims 64-bit is mostly fixed (closes: #255970) ... + - ... except for COMIS; note this in various Paw-related README.Debian + files and package control texts. + - debian/local/control/*: change Architecture back to "any". + - debian/generic/patches/additions/graflib+higz+higzcc+gifencode.c: + delete, since the new orig.tar.gz includes gifencode.c. + - debian/lib*.install: $CERN_LEVEL is now 2004, so the shared libs become + lib*.so.1.2004 -- change the install files to work. + - debian/copyright: s/2003_source/2004_source/ in the download URL + + * Maintain my versions of {linux,Imake}.cf independently of upstream's: + - debian/generic/patches/additions/config+{linux,Imake}.cf: new files. + Add the magic -DCERNLIB_QMLXIA64 flag to linux.cf for 64-bit arches. + - debian/generic/Makefile: modify slightly to allow files in the + .../patches/additions directory to overwrite files from upstream. + - Debian patches 36 and 37: delete, as they are no longer needed. + + * Some fixes to deal with issues in the supposed interchangeability of + atlas2-base-dev with lapack-dev and blas-dev: + - debian/generic/bin/cernlib: If libblas.so or liblapack.so is not found, + fall back to libblas2.so or liblapack2.so respectively. + - debian/local/control/{cernlib-*,libmathlib1-dev}.control: Explicitly + prefer installation of blas{,-dev} and lapack{,-dev} over + atlas2-base{,-dev} in metapackages. Hopefully, this closes: #276145. + + * debian/local/control/{paw-common,libpaw1}.control: Add the package + "libc6-dev | libc-dev" to the Recommends of libpaw1 and paw-common. + Without libc-dev, PAW and Paw++ can only interpret FORTRAN code, not + compile it, as ld complains that crti.o is missing. + + * debian/local/control/{pawserv,zftp}.control: Improve descriptions of + pawserv, zftp packages and note their general uselessness more explicitly. + + * debian/{cernlib-base.TODO,*.README.debian}: Minor edits. + + * debian/rules: Add an orig.tar.gz target for my convenience. + + * debian/rules: Change generated shlibs to depend upon library versions + >= 2004.01.20-6, the last time any backwards incompatibilities appeared. + + * patch 46: Shut up makedepend (cf. xutils bugs #257142, #267205). + + -- Kevin B. McCarty Tue, 30 Nov 2004 12:33:16 -0500 + +cernlib (2004.01.20-8) unstable; urgency=low + + * debian/generic/bin/paw-demos: Fix to work correctly with the current + filecase default setting of Paw (closes: #274056). + - On a related note, document that this default was changed for Debian, + and how to get the original behavior back, in the various + paw*.README.Debian files. + + * Fix Lintian errors: + - Create 32x32 pixel versions of the Paw and KXterm xpms and use + these in the Debian menu entries. + - Force most metapackages to depend upon the exact same version of + cernlib-base, since their /usr/share/doc dirs are symlinked to that + of cernlib-base. + - Force cernlib-montecarlo metapackage to depend upon the exact same + version of montecarlo-base, for the same reason. Make the + cernlib-montecarlo package Architecture: all so that this will not + cause problems with binary NMUs. Allow for the fact that isajet is + not currently compilable on m68k by depending upon + libisajet758-dev | m68k-linux-gnu ("m68k-linux-gnu" is Provided on + m68k GNU/Linux platforms by the type-handling package). + + * debian/rules: Simplify the overly obfuscated code for dh_shlibdeps + by using "shlib" as the argument for the -l flag. + + * debian/control: Remove obsolete dummy packages libcern1, libcern1-dev, + libmontecarlo1, libmontecarlo1-dev, montecarlo-data, montecarlo-doc. + There is no need for these to enter stable (having never been there + originally), and they have been dummy packages long enough that their + removal should not cause upgrade problems for people running sid or sarge. + + * debian/control: Finesse dependencies of Arch: all packages such that + all Recommends are either converted to Depends or removed. + + -- Kevin B. McCarty Thu, 7 Oct 2004 12:00:49 -0400 + +cernlib (2004.01.20-7) unstable; urgency=medium + + * Urgency still medium in order to get this into testing; patch 47 + fixes major bugs in the Paw++ GUI. + + * Take some action to make Cernlib build logs smaller; the log files + were so large as to require manual handling by buildd admins: + - patch 37: stop Imake from complaining that HasGcc{,2} already defined. + - patch 46: stop compiler flags and full paths to source code from being + printed except on error. + + * patch 47: Work around #270862 (a bug in Lesstif) so that Paw++ menus + function correctly. (closes: #270838, #270861) + + -- Kevin B. McCarty Wed, 22 Sep 2004 22:46:20 -0400 + +cernlib (2004.01.20-6) unstable; urgency=medium + + * patch 45: Compile isasrt.F into libisajet758 so that comphep can be + built with Debian's isajet. Thanks to David Kimdon + for the patch. (closes: #260469) + + * Add a set of Autoconf macros to detect Cernlib libraries in the + cernlib-base package, installed to /usr/share/aclocal/cernlib.m4. + Many thanks to contributor Patrice Dumas . + - debian/generic/misc/cernlib.m4: The macro file. + - debian/generic/Makefile: Have it installed automatically by the Makefile. + - debian/cernlib-base.{dirs,install}: Install it into cernlib-base package. + - debian/local/control/cernlib-base.control: Note in package description. + + * Be more specific in the README.Debian's for Geant packages about which + functions are missing or will not work due to the excision of FLUKA code. + Add dummy symbols for some missing functions in debian/generic/patches/ + additions/geant321+gkine+dummy.c so that it is possible to link against + the Geant shared library. Hence urgency=medium. Thanks to Matt Bellis + for reporting the problem. + + * patch 07: Add erdecks, erpremc, matx55 directories to the list of code to + compile, so that ERTRAK is included in the Geant library. + + * debian/generic/scripts/makedeplist: Finetune this so it doesn't list + any dependencies on libc, libm or libg2c. + + * Debconf translations + - Japanese: Hideki Yamane (closes: #259794) + + -- Kevin B. McCarty Sat, 14 Aug 2004 10:10:46 -0400 + +cernlib (2004.01.20-5) unstable; urgency=low + + * Last known Unisys LZW patent is expired, so we can make compressed + GIFs again. + - debian/generic/patches/additions/graflib+higz+higzcc+gifencode.c: Add + back the original version of this file from upstream sources. + - debian/copyright: Delete comment about this file's removal. + - debian/cernlib-base.TODO: Remove this item from todo list. + - debian/local/deadpool.txt: Don't delete this file from upstream code + when (if ever) it becomes time to prepare a new orig.tar.gz. + + * debian/control: Change "Arch: any" to explicitly list only 32-bit arches. + I don't know what kind of crack the authors of Cernlib were smoking, + but it looks difficult if not impossible to patch it to work on 64-bit + without rewriting the whole thing. + + * Remove Imake.cf and linux.cf files left in root directory of the source + package by mistake. + + * patch 44: Undefine "strdup" before redefining it, in the case when + it is a macro, to prevent annoying compiler warnings. + + -- Kevin B. McCarty Mon, 12 Jul 2004 08:23:29 -0400 + +cernlib (2004.01.20-4) unstable; urgency=low + + * patch 15: Every release of g77 breaks something new. Avoid + optimization when compiling src/pdf/spdf/structm.F to prevent ICE + on ARM. + + * patches 36, 37: Add support for x86_64 in src/config/{Imake,linux}.cf + by stealing from the analogous Debian-patched files in xfree86 (version + 4.3.0.dfsg.1-4). Untested -- I hope this works. + + * Debconf translations + - German: Erik Schanze (closes: #250781) + + -- Kevin B. McCarty Sat, 12 Jun 2004 11:11:58 -0400 + +cernlib (2004.01.20-3) unstable; urgency=low + + * patch 43: Comment out gen.h prototype of NEWPTQ since it has more + arguments than cfortran.h can accept. (closes: #249423) + + * debian/generic/bin/fixheader: Convert #include "foo.h" to #include + for all the header files in src/cfortran directory. + + * debian/generic/Makefile, debian/generic/patches/includelist: Install all + headers from src/pawlib/paw/ntuple to /usr/include/paw/ntuple/ in the + libpaw1-dev package, not just str.h. Change all #include directives to + refer to the correct directory, e.g. #include . + (Really closes: #243860) + + * debian/generic/bin/cernlib, debian/generic/manpages/cernlib.1: Change + the cernlib script to link only CERN libraries statically by default, + not all libraries. Rename the -dy flag to -safe to give a better + indication of its behavior. The -dy flag still exists and is + equivalent for backwards compatibility. (closes: #246375) + + * Add icons for PAW/Paw++ and KXterm: + - debian/generic/icons/*.xbm: bitmaps extracted from + src/pawlib/paw/cmotif/init.c, src/packlib/kuip/programs/kxterm/kxterm.c + - debian/generic/icons/*.xpm: pixmaps created from kxterm.xbm and + browser.xbm, clipped to 48x48 pixels and given transparent background. + - debian/generic/Makefile, debian/{paw-common,kxterm}.{install,dirs}: add + pixmaps to paw-common and kxterm packages in /usr/share/pixmaps/ + + * debian/*.menu: Add menu items for PAW and static PAW. Add longtitle menu + descriptions. Include icons in menu entries. + + * debian/local/control/*-dev.control: In short descriptions of libdevel + packages, s/static version/development files/. + + -- Kevin B. McCarty Mon, 17 May 2004 16:10:02 -0400 + +cernlib (2004.01.20-2) unstable; urgency=medium + + * Urgency medium due to fix for Important bug # 245915. See below. + + * A couple of fixes for the repercussions of changing to preserving case + by default in the last release: + - patch 040: Make sure to generate paw.metafile files in lowercase. + - patch 004: The PAW script should delete PAW.METAFILE as well as + paw.metafile if in the current directory and zero size; don't complain + if one or the other doesn't exist. + + * New binary packages: + - debian/dzedit.{dirs,install}, debian/local/control/dzedit.control, + debian/generic/manpages/dze{dit,X11}.1: Add package of dzedit. + - patch 004: Minor fixes to dzedit wrapper script. + - debian/generic/Makefile: Install dzedit binaries and man pages. + - debian/local/control/kuipc.control: Enable KUIPC package. + - debian/local/control/cernlib-core-dev.control: Add both to the + cernlib-core-dev metapackage. + + * debian/zftp.README.debian: Add a note that ZFTP doesn't respect + FILECASE KEEP. Since I doubt anyone uses ZFTP anyway, it looks to be not + worth the effort to track down all the places where this should be fixed. + + * debian/generic/Makefile, debian/*-dev.install: Install all of the + Cernlib include files. I don't think that most of them are + at all useful, but people are requesting them and I don't want to keep + adding them in incrementally with each request. Patch them at install + time to #include instead of "foo/bar.inc" or "bar.inc". + (closes: #243860) + + * debian/*-dev.links, debian/*-dev.dirs: Install links from /usr/include/*.h + to /usr/include/cfortran/*.h as some programs (HEPATLAS) look for C + header files there. + + * debian/generic/Makefile: Also install src/pawlib/paw/ntuple/str.h to + /usr/include/paw/str.h. + + * Fix FOWL code to remove undefined symbols from libphtools: + - debian/generic/patches/additions/phtools+fowl+dummy.c: Create weakly + defined dummy functions FSTART, USER, FINISH (to be overridden by user). + + Fix this and the similar file for herwig to print a message to stderr + rather than stdout if one of the dummy functions is called. + - patch 042: Fix Imakefile accordingly. Also comment out section of + qqstrt.F that depends upon obsolete "which" routine; it appears not + to be strictly necessary. In FOWLMP, call FSTART instead of START. + - debian/libphtools1-dev.README.debian: Add a note that the expected + user function is FSTART instead of START in order to avoid a name + clash with mathlib. + - (closes: #245915) + + * Deal with mdpool mess: + - patch 006: edits for src/pawlib/comis/comis/cspar.inc and mdpool.inc + - install upstream version of mdpool.inc (with above patch) to + /usr/include/comis/, along with my added md{pool,size}.h + - Note in libpaw1-dev's README.Debian and examples/pamain.c that + developers must now #include instead of + just . + + * patch 001 (against src/config/lnxLib.rules): Instead of having copies of + shared libraries in build tree, create symlinks from build tree to shlib + directory (as with static libraries), in order to save disk space. + + * debian/generic/Makefile: Slightly modify the compilation of pawX11.static + so that it isn't linked against Lesstif and other X libraries that it + doesn't really need. (The analogous operation for pawX11.dynamic will + have to wait until post-sarge release; see the cernlib-base TODO.Debian) + + * debian/rules: Delete build tree when no longer needed, to save more + disk space. This should reduce the number of buildds that error out with + "No space left on device". The build tree can still be kept by having + the string "keepbuild" in one's $DEB_BUILD_OPTIONS. + + * debian/rules, debian/local/rules-help.txt: Add "help" target. + + * debian/local/control/lib*.control: Apropos of bug # 245082 (already + closed), explicitly state in library package descriptions that the -dev + package must be installed in order to link against a library. + + * debian/cernlib-base.README.debian: Rewrite parts of base README file. + + * debian/*.TODO: Mention post-sarge plans. + + -- Kevin B. McCarty Wed, 28 Apr 2004 14:10:51 -0400 + +cernlib (2004.01.20-1) unstable; urgency=low + + * New upstream release (_extremely_ minimal changes to PAW). + + * The legacy packages not to be seen by m68k should be Arch: any rather than + Arch: all. This wouldn't be such a problem except that the montecarlo + legacy packages depend on isajet, which isn't compiled on m68k due to bug + # 225621. All legacy dummy packages changed back to Arch: any. + + * patch 040: Do NOT by default assume all filenames are meant to be in + lowercase. The original broken behavior may be restored to PAW by adding + "/KUIP/SET_SHOW/FILECASE CONVERT" to one's pawlogon.kumac file. + + * patch 041: Set more up-to-date and Debian-specific default helper apps + for PAW, e.g. gv instead of ghostview, sensible-editor instead of vi. + Add gv to Suggests field of paw{,++}{,-static} packages. One can use + alternative helper apps through PAW commands or environment variables; + see the entries for HOST_EDITOR, HOST_PAGER, HOST_PSVIEWER, HOST_PRINTER + in the PAW online help. + + * Add infrastructure for a package of kuipc, the Kit for a User Interface + Package Compiler. Not enabling the package yet, however, so that this + release can get into testing sooner. + - debian/generic/manpages/kuipc.1: write a man page. + - debian/generic/Makefile: install binary and man page. + - debian/kuipc.{dirs,install}: packaging data. + - debian/local/control/kuipc.disabled: control fields. + + * debian/generic/manpages/paw.1: Add the PAW FAQ to the list of URLs in + the "SEE ALSO" section. Add pawserv(8) to the "SEE ALSO" section. + Add environment variables for helper apps to the "ENVIRONMENT VARIABLES" + section. + + * debian/rules: Add "unpack" and "patch" targets, performing the obvious + operations, for convenience. + + * debian/generic/bin/gmake: Fix make wrapper script to work correctly when + there is already a gmake in the path. + + * debian/generic/patches/additions/include+assert.h: Update patched local + copy of assert.h to version taken from libc6-dev 2.3.2.ds1-11. + Bug #171908 still isn't fixed... + + * Debconf translations + - French: Christian Perrier (closes: #238466) + - Dutch: Luk Claes (closes: #241419) + + -- Kevin B. McCarty Fri, 2 Apr 2004 12:08:49 -0500 + +cernlib (2003.09.03-5) unstable; urgency=medium + + * debian/local/control/0base.control: Update Build-Depends for new X + packages. Note that we depend explicitly only upon x-dev, libxt-dev + and libx11-dev; other X libraries are needed only through lesstif2-dev, + whose own dependencies should take care of things. Build-Conflict + against libxt-dev (<< 4.3.0-3) in order to avoid compiling on buildds + having the xfree86 postrm script bug. + + * debian/local/control/lib{kuip,graf}x11-1-dev: Depend upon libxt-dev and + libx11-dev (>= 4.3.0-3), respectively, in preference to xlibs-dev. + + * debian/copyright, debian/generic/manpages/cernlib.1: Correct the pointers + to which packages contain README.Debian files explaining how to obtain + non-free Monte Carlo libraries. + + * debian/generic/bin/cernlib: Explicitly link Lesstif programs with + -lXm -lXt -lXp -lXext -lX11 -lSM -lICE on all arches, not just + powerpc. (Removed -lXpm since nothing in Cernlib or Lesstif seems to + use libXpm.) + + * debian/generic/scripts/makedeplist: Add missing -D argument to nm + for shared library dependency calculation. + + * patch 001: Noticed that the build process has sneakily linked in + libpacklib statically to many programs; prevent it from doing this + and link libpacklib dynamically instead. + + * gettextize pawserv Debconf template (closes: #234411): + - debian/pawserv.templates.master, debian/po/*: work based on patch + from Martin Quinson . + - debian/rules, debian/local/control/pawserv.control: woody backwards + compatibility hack based on this message: + http://lists.debian.org/debian-i18n/2003/debian-i18n-200307/msg00026.html + + * debian/kxterm.{postinst,prerm}: Delete, as they do nothing. Must have + been a holdover from the transition away from kxterm-static and + kxterm-common packages, last seen a long time ago in (unofficial) package + version 2002.12.02-0.1. + + * debian/*.menu: Quote all tags to fix lintian warning + "unquoted-string-in-menu-item". + + -- Kevin B. McCarty Wed, 3 Mar 2004 15:29:21 -0500 + +cernlib (2003.09.03-4) unstable; urgency=medium + + * patch 015: Add pawlib/comis/code/csrfun.F to the list of files to be + compiled without optimization. For reasons beyond my comprehension, + optimizing it, even at -O1, causes runtime breakage in dynamic PAW + as of recent versions of g77. (closes: #233689) + + -- Kevin B. McCarty Thu, 19 Feb 2004 18:12:06 +0100 + +cernlib (2003.09.03-3) unstable; urgency=low + + * Packaging rearrangements and fixes: + - debian/control, *.install, *.docs, etc.: Split libcern1{,-dev}, + libgraflib1{,-dev}, libmontecarlo1{,-dev} into packages for individual + libraries. The original library packages are now dummy packages and + have been changed to Arch: all. See NEWS.Debian for more detailed + information about the split. (closes: #212409) + - debian/control: Put "[Physics]" at the beginning of short descriptions + for GEANT and Monte Carlo library packages. + - debian/control: Add cernlib and various cernlib-* metapackages to make + life easier for people installing Cernlib. + - debian/control: Some lib*-dev packages were missing dependencies on other + dev packages (e.g. libc6-dev, xlibs-dev); also, libgeant1 was missing + a dependency upon geant321-data. Fixed. + - debian/control: Remove all Conflicts and Replaces with Cernlib soname + *.so.0 packages (lib*0{,-dev}) and kxterm-static, kxterm-common. All of + those were old and unofficial so it's time to forget about them. + - debian/control: Loosen version dependencies of and against various + Arch: all packages, since most of the data files, etc. haven't changed + in years. + - debian/control: Make a bunch of things depend on cernlib-base so its + README.Debian file is available for any Cernlib package. + - debian/control: Make paw-common and paw-demos Depend/Recommend + primarily on paw++ instead of paw++-static, now that all the bugs + due to dynamically linking pawlib are (I hope) worked out. + - debian/rules: Automatically regenerate debian/control from files + in debian/local/control directory in "clean" target. + + * Fixes for m68k: + - Work around FTBFS on m68k for now by not generating isajet758 packages: + + debian/rules: on m68k, generate control file without libisajet758 + packages or obsolete dummy packages + + debian/control: create two versions of the cernlib-montecarlo + metapackage control file (and make it Arch: any); select between them + in debian/rules + + debian/generic/Makefile: don't reference isajet758 on m68k + + patch 037: create CERNLIB_M68K define on m68k + + patch 001: (to src/mclibs/Imakefile) compile isajet only when + CERNLIB_M68K is not defined + + (closes: #222442) + - patch 037: Tweak compiler args in order to get PAW working: + + Remove -fomit-frame-pointer arg from g77 since -Ox (x > 0) implies it + and it inhibits debugging on some arches. + + Add -malign-int arg to gcc and g77 on m68k to fix the PAW bugs + resulting from misaligned arrays. + + * debian/generic/scripts/*: Update and improve dependency calculation + scripts. Information about them is now in the README in the same directory. + + * debian/generic/Makefile: Fix order of sed arguments PREFIX, LIBPREFIX + so that LIBPREFIX won't have PREFIX substituted out from underneath it. + + * debian/generic/Makefile: Edit cernlib-static and cernlib-install-arch + targets to remove possibility of overwriting dynamic paw* binaries with + static paw* binaries when resuming an aborted compile. + + * debian/generic/bin/cernlib: Force X libs to always be printed out when + a graphics driver X11 or Motif is specified. libkuipX11 should always be + linked against Motif (lesstif in Debian). + + * debian/libgraflib1.TODO: Deleted, since the README.Debian for paw* + packages solves the only item listed. + + * debian/paw{,++}-static.README.debian, debian/control: Add a note that + these packages are considered obsolete and superseded by paw{,++} packages. + + * patch 001: kxterm needs to be linked only to Lesstif / X libs, not any + of the Cern libraries. + + * debian/cernlib-base.README.debian: s/appropraite/appropriate/ + + -- Kevin B. McCarty Tue, 20 Jan 2004 12:32:13 -0500 + +cernlib (2003.09.03-2) unstable; urgency=low + + * debian/generic/bin/cernlib, patch 001: Fix Monte Carlo library + dependencies. herwig and isajet use PDFSET() function in pdflib. + + * patch 019: Comment out structm.F and pdfset.F in herwig Imakefile; + the real functions are in pdflib. + + * Fix paw* executables so that the COMIS interpreter works correctly + when dynamically linked: + + - patch 006: Instead of tracking down all the places in FORTRAN that + require a positive memory offset from /COMMON/MDPOOL/IQ to malloc()ed + code (a losing battle), declare MDPOOL/IQ in 0pamain.F and 0pamainm.F + so it will be in the bss section of dynamically linked paw{X11,++} + binaries. This should allow the COMIS interpreter to function + correctly in dynamically linked executables (closes: #212419, #212420). + Also add a check that memory is in fact allocated, and exit non-zero + with an error message if not. + + - debian/*paw*.README.debian, debian/control: Remove comments about bugs + in dynamically linked executables. + + - debian/libpaw1-dev.README.debian: Add note that MDPOOL/IQ must be + declared in any programs wishing to make use of COMIS and be dynamically + linked, ideally by #include'ing or . + (closes: #212412) + + - debian/libpaw1-dev.install: Install mdsize.h, mdpool.{h,inc} to + /usr/include. + + * debian/control: Add dependency on g77 to paw-static and paw++-static + packages. (How did I get away with forgetting that?) + + * debian/generic/manpages/paw-demos.1: Minor modifications to paw-demos + man page. + + * debian/rules: Give dh_shlibdeps the -l flag it needs to find the libraries + that have just been built. + + * debian/rules: Give -V argument to dh_makeshlibs to force dependencies + upon the current version of cernlib. + + -- Kevin B. McCarty Sun, 2 Nov 2003 19:45:47 -0500 + +cernlib (2003.09.03-1) unstable; urgency=low + + * New upstream release: + - src/mathlib/gen/d/d501l1.F: correct calculation of covariance matrix + - src/packlib/cspack/sysreq/{Imakefile,log.c,trace.c}: use stdarg.h + instead of gcc-3.3-deprecated varargs.h + * patch 013: Put optimization level for qp_execute.c file to -O0 on all + architectures since it's caused an ICE on at least one s390 machine as well + as on powerpc + * patch 029: fix line numbers for log.c patch due to upstream change + * patch 031: remove stdarg patches for trace.c, log.c (fixed upstream) + * patch 037: Set default optimization level for arm to -O2 after FTBFS on + elara buildd + * debian/control: Remove "Recommends: paw++-static | paw-binary" from libpaw1 + and libpaw1-dev. It makes no sense for the library to recommend + statically compiled programs, and I don't want it to recommend the + still-experimental dynamically compiled ones. + + -- Kevin B. McCarty Thu, 16 Oct 2003 15:58:59 -0400 + +cernlib (2003.08.21-3) unstable; urgency=low + + * whoops, remove obsolete entries from debian/local/todo.txt + * debian/control: Add Build-Conflicts on atlas2-dev to ensure that we build + against the netlib reference versions of blas and lapack. + * patch 001: Force hppa and alpha to use the Linux shlib rules (not HP-UX + or OSF!) in biglib.rules when LinuxArchitecture is defined. Should + fix FTBFS on those platforms. + * patch 037: Define CERNLIB_PPC for all big-endian architectures, + since that flag appears to be used only for endianness tests in Cernlib + source code. + - patches 013, 014, 037: For the few cases in Imakefiles when CERNLIB_PPC + is used specifically to test for the PowerPC chips, use a new define, + CERNLIB_POWERPC. + * patch 037: Lower default optimization on ia64 to -O2; maybe this will + prevent FTBFS. + * Minor touchups to documentation: + - debian/control: make package short descriptions more consistent, + clarify a few long descriptions + - debian/generic/manpages/paw.1: add URL for PAW tutorial, reference guide + - debian/copyright: s/replaced/restored/ in the last paragraph + - debian/paw{,++}{,-static}.README.debian: s/zserv/pawserv/g + - debian/pawserv.README.debian: add short note that configuration is done + via Debconf + + -- Kevin B. McCarty Thu, 25 Sep 2003 11:42:22 -0400 + +cernlib (2003.08.21-2) unstable; urgency=low + + * debian/control: Remove references to montecarlo-installer-data package + since it isn't in Debian (and I don't plan to upload it as of now). + Point to the README.Debian files that mention it instead. + * debian/control: move tetex-bin from Build-Depends-Indep to Build-Depends + to fix FTBFS on buildds (closes: #212241) + * debian/control: replace libmontecarlo1-dev dependency on libgeant1-dev + with libcern1-dev (closes: #212333) + * patch 035: use XmFontListAppendEntry(), not XmFontListCreate(), to avoid + obsolete function warning in lesstif + * patches 036, 037: substitute Imake.cf and parts of linux.cf from XFree86 + 4.2.1 for local copies in src/config, attempting to get Cernlib to compile + on non-{i386,powerpc} architectures + * debian/control: therefore, change Architecture from "i386 powerpc" to "any" + * patch 038: fix compilation bomb on macro of strndup() at high optimization + * patch 039: use DBLE(X), not REAL(X), to get real part of DOUBLE COMPLEX + variables + * debian/generic/Makefile: change the method of hacking in Debian-specific + configuration flags + * debian/rules: remove one layer of escapes from quotes in DEBIAN_VERSION + variable due to the Makefile change + * debian/generic/patches/options: removed (obsolete due to the above change) + * debian/local/bugs-to-file.txt: obsolete; removed + + -- Kevin B. McCarty Tue, 23 Sep 2003 15:06:19 -0400 + +cernlib (2003.08.21-1) unstable; urgency=low + + * New upstream release + * debian/control: Update Standards-Version to 3.6.1 (no changes required) + * patch 009: another fix for OS X dynamic library loading + (thanks to Keisuke Fujii) + * patches 027, 034: finish replacing mktemp() and tmpnam() by mkstemp() and + tmpfile() to avoid race conditions with temporary files + * patch 033: fix annoying kxterm warning about "Unknown keysym name: + InsertChar" by changing it to Insert in code. + * patch 034: if compiled with "-DCERNLIB_DEBIAN", have PAW bug reports + sent to submit@bugs.debian.org instead of Paw upstream, and include + Debian BTS bug report fields in the appropriate place + * debian/rules, local/Makefile, local/patches/options: support adding extra + defines to CernlibSystem + * Added note about using X's "Screen->BackingStore" option to prevent + HIGZ window corruption in each paw* package's README.Debian + * local/bin/cernlib: realizing that libkuipX11 doesn't exist in upstream + Cernlib, take account of this in the dependency script + * (sigh) Remove src/graflib/higz/higzcc/gifencode.c from the source tree + because it contains the patented LZW encoding algorithm. (Although + expired in the USA, this patent is in force until July 2004 in some + places.) Replace it with uncompressed GIF creation algorithm in + local/patches/additions/graflib+higz+higzcc+gifencode.c , following + libungif4's lib/egif_lib.c . + * various README.Debian's: add notes that the apt-installer and + montecarlo-installer-data packages are not currently in Debian, and + note the appropriate /etc/apt/sources.list line for obtaining them + * debian/control, debian/pawserv.*: + - Rename zserv binary package to pawserv + - debian/pawserv.{config,postinst,templates}: Use Debconf to determine + which of {pawserv,zserv} to enable in /etc/inetd.conf + * debian/control: No longer create binary packages fatmen and hepdb, as I + don't know enough about these programs to support them and Cernlib's docs + are completely unhelpful (e.g. referring to scripts that don't exist) + * debian/control: have geant321 Depend upon libgeant1-dev rather than + libgeant1, since libgeant1-dev is required for the gxint script to link + against the libraries + * local/patches/additions/include+assert.h: include local copy of assert.h , + patched to work around bug 171908 in makedepend + * local/Makefile: make sure patches are applied in the right order by + setting LANG and LC_COLLATE to C + * debian/copyright: Finally get around to listing all known source code + licenses and copyright holders here. + * debian/local/copyrights.txt: delete this, since all the information in it + is now included in debian/copyright + * debian/control: restrict Arch to i386 and powerpc for now + * debian/generic: decide to move top-level "local" directory here instead + as it would be annoying to have only partial diffs against it in the + diff.gz's for -2, -3, etc. + + -- Kevin B. McCarty Tue, 2 Sep 2003 22:57:23 -0400 + +cernlib (2003.05.14-0.1) unstable; urgency=low + + * Upstream changes: + - Fix for postscript generation code to make CUPS happier + - Fix for bug preventing use of long file paths (limit was increased + from 80 to 128 characters, and a warning was added) + . patch 030: increase limit further to 256 characters + - Fix for PAW segfault when run with $HOME unset (e.g. from CGI script) + * Bump Policy to 3.6.0 (no policy-specific changes needed) + * debian/changelog tidying: + - delete emacs local variable cruft from the bottom + - convert to UTF-8 encoding + * debian/local/control/paw-demos.control: mention the paw-demos script + * move most of the non-Debian-specific contents of debian/local to a new + local/ directory. Will include this directory in the orig.tar.gz + due to dpkg-source's inability to handle new directories (see Policy C.4.1) + * debian/rules, local/Makefile: move non-Debian-specific targets + to local/Makefile for eventual easier porting of non-Debian-specific + patches + * local/bin/gmake: edit to account for the case where GNU make + really is called "gmake" + * local/scripts: a couple obsolete things deleted, others updated + * local/patches/cfortran-inc: no longer used, deleted + (as of previous release; forgot to note this in changelog then) + * patch 027: fix various files to use tmpfile(), not mktemp() or tmpnam() + in order to avoid race condition (this work is not yet finished) + * local/Makefile, etc.: clean up Monte Carlo documentation: + - merge COJETS chapter files into one text file + - merge ISAJET LaTeX chapter files into one .tex file and convert to PS + - therefore, add Build-Depends-Indep on tetex-bin + - patch 028: fix bug in ISAJET .tex file + - name text files as *.txt, not *.doc + - add (small) text document for Eurodec library + - debian/montecarlo-doc.doc-base*: register documents with doc-base + * likewise, clean up Geant documentation: + - add various *.doc files found under geant321 directory, merging most of + them into geant321.txt and renaming the others to *.txt files + - add README.Debian file containing a table of contents for Geant docs + * Patches to make Cernlib compile on Mac OS X: + - patch 009: fix for executing compiled code within PAW (doesn't work + yet though) + - patch 029, local/patches/additions/config+MacOSX.*: add patch + from Remigius Mommsen , see + http://mommsen.home.cern.ch/mommsen/index.html?osx/cernlib.html + for building Cernlib from source on Mac OS X + - patch 029 also includes rudimentary "cuserid()" function since not + supplied by OS X + - patch 032: use regcomp()/regexec() on Linux and Mac OS X [instead of + regcmp()/regex() or re_comp()/re_exec(), of which OS X has neither] + * patch 031: port remaining varargs code to use stdarg, as GCC 3.3 has + removed support + * local/bin/cernlib: + - edit library path to depend on $CERN_ROOT if specified, $CERN and + $CERN_LEVEL otherwise + - allow cernlib script to recognize Mac OS X, including special-case + dependency of libblas on -lcblas -lf77blas -latlas + - add -lm and -lg2c explicitly to the output (fixes problem pointed out by + Michael Thaler) + - mention in man page that arguments to gcc/g77 should list source code / + object files before `cernlib lib1 lib2` command substitution + - have the default arch be the output of the included "sysname" function + instead of "default"; this was apparently an oversight on my part + * patch 001: fix Imakefile for kuesvr program to install it to $CERN_BINDIR + like everything else + * patch 009: fix potential problem with spaces in directory names + + -- Kevin B. McCarty Mon, 11 Aug 2003 14:58:06 -0400 + +cernlib (2003.03.18-0.1) unstable; urgency=low + + * New upstream release: really version 2003.02.03 but I didn't want to + introduce an epoch or a string like "2003.03.18+really2003.02.03" + * Fixes (I hope) a segfault of PAW in batch mode observed by Jan Wojcik + * Add various .car files to /usr/include for appropriate lib*-dev packages + at the request of Jo Fahlke + * Move debian/local/scripts/{remove-deadpool,fixheader} to + debian/local/bin since they are required by build + * Update Policy to 3.5.9 + * Move various lib*-dev packages from devel to libdevel Section + * paw-demos fixes: + - Move paw-demos files from /usr/share/doc/paw-demos/examples to + /usr/share/paw-demos to comply with Policy section 13.6 + - Remove patch 025 and detect $DISPLAY at script runtime + - Add --display option to paw-demos script + - Edit paw-demos manpage accordingly + + -- Kevin B. McCarty Wed, 23 Apr 2003 15:30:21 +0200 + +cernlib (2003.02.10-0.1) unstable; urgency=low + + * Author of Pythia/Jetset has not given CERN permission to GPL them; remove + them and their dependents (Ariadne, FRITIOF, Lepto) from source tree + - Bump cernlib upstream version since a new .orig.tar.gz file was created + with non-free code removed + - patch 001, debian/local/deadpool.txt: edit appropriately + - patches 020, 023, 024: no longer relevant; delete them + - patch 026, debian/local/patches/additions/geant321+gkine+dummy.c: + add dummy routines to replace the Jetset functions used by Geant + - debian/*.README.debian: explain how to obtain missing libraries + (hint: "apt-get install montecarlo-installer-data") + - Move libherwig59.{a,so} back to libmontecarlo1[-dev] since Geant only + depended upon it via Jetset + * debian/control: + - make kxterm Conflict with old kxterm-common package + - move *montecarlo* to "science" section and lib* (not -dev) to "libs" + - remove Build-Depends-Indep field, since no Arch "all" packages require + anything not required by Arch "any" packages + - compress all dependencies on some type of PAW to + "paw++-static | paw-binary" + - tighten package dependencies so that most cernlib binary packages depend + upon other cernlib binary packages with identical versions + - give Priority: extra to fatmen, hepdb, zftp, zserv packages + * debian/local/manpages: + - paw.1: add reference to kxterm(1) + - paw-demos.1: manpage for new paw-demos script added + - zftp.1, zserv.8, pawserv.8: new zftp, zserv manpages + * Remove references to undocumented(7) + * debian/local/bin/paw-demos: new script to run paw demos added + * debian/rules: add DH_ALWAYS_EXCLUDE=CVS and remove CVS delete snippet + from local Makefile + * debian/local/Makefile: patch .h files for -dev packages to + #include and to be protected from multiple inclusion + * debian/*.menu: move kxterm, paw++ from Apps/Programming to Apps/Science + * debian/local/bin/cernlib: update library names to work with + montecarlo-installer-data packaged libraries + * debian/local/scripts/fixheader: new script to touch up .h files + + -- Kevin B. McCarty Sun, 23 Feb 2003 00:48:57 +0100 + +cernlib (2002.12.02-0.2) unstable; urgency=low + + * debian/local/todo.txt: Was out of date; fixed now. + * debian/changelog: I forgot to note the following changes in -0.1: + - patch 022: assignment of string literals to pointers in shared libs + compiled with gcc 3.2 caused a segfault in paw + - patch 023: one of the ariadne test programs calls a nonexistent function + - patch 024: Compile dummy functions for pythia for cases when linkage with + libpdflib804 isn't required + * debian/control, debian/rules, debian/kxterm.*: Now that dynamic kxterm + works on powerpc, don't build kxterm-{common,static} binary packages; move + contents of kxterm-common package to kxterm binary package + * debian/cernlib-base.README.debian: update accordingly + * debian/paw, debian/paw++: update to note that dynamic paw, paw++ appear OK + on powerpc + * debian/local/manpages/cernlib.1: add "-dy" flag to cernlib(1) man page; + update library names + * debian/local/manpages/gxint.1: escape hyphens in text + * debian/local/manpages/kxterm.1: write a manpage for kxterm + * debian/local/app-defaults/*: some new, more sane default Xresource settings + * debian/control: Build-Depend upon lesstif2-dev | lesstif-dev + + -- Kevin B. McCarty Fri, 24 Jan 2003 15:39:29 +0100 + +cernlib (2002.12.02-0.1) unstable; urgency=low + + * New upstream release (focuses mainly on isajet, lepto and pythia libs) + * debian/control: Bump Standards-Version to 3.5.8 + * debian/control, patch 001: Bump shlib sonames to 1 for new release + * debian/rules: Add `get-orig-source' and `remove-deadpool' targets + * debian/rules: Split `install' target into install-arch and install-indep + * debian/local/bin/cernlib: now prefixes -static to output unless + itself given the -dy flag. This will be a temporary measure until I fix + cernlib libraries to work better as dynamic libs + * patch 021: Nevertheless, compile packaged binaries dynamically except + for the ones in the *-static packages. + + -- Kevin B. McCarty Wed, 15 Jan 2003 17:55:43 +0100 + +cernlib (2002.04.26-0.9) unstable; urgency=low + + * The "fix library dependencies" release -- never publicly released + * Remove "-lSM -lICE -lXpm" from cernlib output on non-PPC + * debian/local/scripts/makedeplist: new script to aid in doing so + * Move several files from mathlib/gen/{d,n}/ to packlib/hbook/ in order to + remove an undesirable dependency of packlib upon mathlib + * debian/paw++-static.manpages: delete (it creates broken symlinks + and the correct symlink is created by debian/paw++-static.links) + * Move code under debian/local/Makefile fixcfortran target to + stampdir/patch-stamp target, and delete fixcfortran target + * debian/local/patches/additions/: Make it easier to add new files to source + * patch 001: Fix programs to compile with correct arguments to cernlib script + * patch 002: Favor the C version of lenocc() over the Fortran version + * patch 011: delete this patch, its purpose is served by 016 + * patch 012: create an Imake macro for compiling Fortran targets sans + optimization + * patch 015: Some files don't compile with -O3 using g77 version 3.2; + compile them with no optimization + * patch 016: Pick a qnexte.c and qnext.F file to compile -- cause the rest + not to be compiled + * patch 017: Use the gamma function in mathlib, not in isajet751 + * patch 018: Move kernlib to the top of the source tree so it can be built + before packlib, and likewise for packlib/kuip/code_motif so it + can be built after graflib + * patches 019, 020: Compile dummy.c user-definable functions with weak + linkage for libherwig59, libariadne + * Move lib{ariadne,herwig59,jetset74} from libmontecarlo* to + libgeant* packages + * Edit the cernlib script to reflect new library dependencies + * Add some additional documentation to the geant321-doc package + + -- Kevin McCarty Thu, 9 Jan 2003 12:32:12 -0500 + +cernlib (2002.04.26-0.8) unstable; urgency=low + + * Fix src/pawlib/comis/code/cscrexec.F so that it compiles temporary + dynamic libraries with -fPIC and without missing symbols + * Allow paths to Fortran code to include characters like -, +, =, etc. + in COMIS interpreter src/pawlib/paw/code/pawfca.F + * Remove circular dependency between QNEXT and QNEXTE symbols of packlib and + kernlib libraries + * Fix relocation issues causing shared libraries to bomb on PPC (three + Imakefiles with special cases caused compilation without -fPIC in + libpaw and libherwig) + * cernlib and gxint scripts changed from #!/bin/sh to #!/bin/bash scripts + since they don't seem to work correctly with dash + * libkuipX11 is not depended upon by libgraflib or libgrafX11; edit cernlib + script appropriately + + -- Kevin B. McCarty Sat, 14 Dec 2002 21:08:04 -0500 + +cernlib (2002.04.26-0.7) unstable; urgency=low + + * Split giant patch 001-shlibs+FHS in debian/local/patches into several + smaller patches + * _Really_ fix man page symlinks (using dh_link instead of dh_installman) + + -- Kevin B. McCarty Sun, 17 Nov 2002 11:36:41 +0100 + +cernlib (2002.04.26-0.6) unstable; urgency=low + + * Fix man page symlinks for various packages + + -- Kevin B. McCarty Thu, 14 Nov 2002 10:17:34 +0100 + +cernlib (2002.04.26-0.5) unstable; urgency=low + + * Use virtual packages paw-binary, kxterm-binary to fix dependency + debacle introduced by previous version + + -- Kevin B. McCarty Wed, 13 Nov 2002 20:04:21 +0100 + +cernlib (2002.04.26-0.4) unstable; urgency=low + + * Add menu entries for paw++-static, kxterm{,-static} + * Now use update-alternatives to make it possible to install both + {paw,paw++,kxterm} and {paw,paw++,kxterm}-static at once + * Create new package, paw-common, for arch: all data (manpages, + app-defaults) shared by all paw and paw++ packages + * Likewise for kxterm-common + * /usr/bin/paw script is now in paw-common package and will now call paw++ + if a paw++ package is installed but a paw package is not + + -- Kevin B. McCarty Wed, 13 Nov 2002 11:27:30 +0100 + +cernlib (2002.04.26-0.3) unstable; urgency=low + + * Explicitly make scripts executable in debian/rules + * Change build dependency in debian/control from obsolete lapack99-dev + to lapack-dev + * Remove ${shlibs:Depends} from arch-independent package dependencies + * Enable shadow password support in server binaries + * Add lines in /etc/inetd.conf for zserv, pawserv in zserv.postinst + * Depend upon latest netbase (>= 4.08) for required lines in /etc/services + * Add support for noopt and nostrip options of $DEB_BUILD_OPTIONS + * Add /usr/share/doc/cernlib-base/README.Debian to describe major changes + * Move hdiff files from packlib to mathlib to avoid circular + library dependencies + * Purge most non-free code from source tree (the rest will take longer) + * Fix bugs in linux-pmac.cf preventing compilation on powerpc + * Add *.h and example files from src_cfortran.tar.gz to appropriate -dev + packages + * Separate cfortran into a separate package and Build-Depend: on it; also, + -dev packages now Depend: upon cfortran + * Create paw-static, paw++-static, and kxterm-static packages to work + around bugs in some dynamically linked programs for now + * Split off libmontecarlo0{,-dev,-doc} packages from libgeant0{,-dev} + and montecarlo-data from geant321-data so that people who just want Geant + don't get a lot of extraneous mclibs + + -- Kevin B. McCarty Tue, 12 Nov 2002 12:00:00 +0100 + +cernlib (2002.04.26-0.2) unstable; urgency=low + + * Fix /usr/bin/gxint so it uses the correct Fortran file: + /usr/bin/geant321/gxint.f , not /usr/bin/geant321/geant.f + * Add debian/hepdb.README.debian to alert user that some programs + in the package have had name changes + + -- Kevin B. McCarty Mon, 17 Jun 2002 18:41:26 -0400 + +cernlib (2002.04.26-0.1) unstable; urgency=low + + * Initial Debian version + * Imakefiles heavily modified so that the programs will use shared rather + than static libraries + + -- Kevin B. McCarty Sat, 8 Jun 2002 01:04:08 -0400 + --- cernlib-2005.05.09.dfsg.orig/debian/rules +++ cernlib-2005.05.09.dfsg/debian/rules @@ -0,0 +1,285 @@ +#!/usr/bin/make -f +export DH_ALWAYS_EXCLUDE=CVS +export DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH) + +# current package version +DEBIAN_VERSION=$(strip $(shell \ + head -n 1 debian/changelog | cut -f 2 -d ' ' | tr -d '()')) + +# current upstream version +UPSTREAM_VERSION=$(shell echo $(DEBIAN_VERSION) | sed 's/-.*//') + +# yes, the quote marks below must be doubly escaped: +LOCAL_DEFINES = -DCERNLIB_DEBIAN -DDEBIAN_VERSION=\\"$(DEBIAN_VERSION)\\" + +# location of patches +PATCHDIR = debian/patches +# location of non-Debian-specific add-ons +ADDONDIR = debian/add-ons + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# output a helpful usage message if this target is invoked +help: + @cat debian/README.source + +# This target downloads source code from the Cernlib web site to the +# directory "upstream". Requires "wget" package. +get-orig-source: + set -e ; \ + mkdir -p upstream ; \ + cd upstream ; \ + for file in Imakefile car cfortran cmz config geant321 graflib include\ + mathlib mclibs packlib patchy pawlib phtools scripts ; \ + do \ + wget --continue http://wwwinfo.cern.ch/asd/cernlib/download/2005_source/tar/src_$${file}.tar.gz ; \ + done + +# This target recreates the source code tar.gz files, having deleted those +# files with GPL-incompatible copyrights as listed in debian/deadpool.txt +remove-deadpool: + chmod a+x $(ADDONDIR)/bin/remove-deadpool + $(ADDONDIR)/bin/remove-deadpool + $(MAKE) -f debian/rules debian/copyright + +# This target creates an orig.tar.gz file in the directory ".." +# Don't do this if you already have an orig.tar.gz for this source version, +# as the md5sums will not match! +orig.tar.gz: ../cernlib_$(UPSTREAM_VERSION).orig.tar.gz + +../cernlib_$(UPSTREAM_VERSION).orig.tar.gz: + $(MAKE) -f debian/rules clean remove-deadpool + mkdir ../cernlib-$(UPSTREAM_VERSION).orig + cp -a upstream ../cernlib-$(UPSTREAM_VERSION).orig + cd .. && tar czf cernlib_$(UPSTREAM_VERSION).orig.tar.gz \ + cernlib-$(UPSTREAM_VERSION).orig + rm -rf ../cernlib-$(UPSTREAM_VERSION).orig + +# Do not depend on build-indep so that buildd's don't needlessly run +# build-indep target. +build: build-arch + +Makefile: $(ADDONDIR)/Makefile + cp -f $(ADDONDIR)/Makefile . + +unpack: Makefile + dh_testdir + $(MAKE) prefix=/usr mandir=/usr/share/man sysconfdir=/etc \ + LOCAL_DEFINES='$(LOCAL_DEFINES)' stampdir/configure-stamp + +# Dpatch stuff +DPATCH_STAMPFN = stampdir/patch-stamp +${DPATCH_STAMPFN}: unpack +include /usr/share/dpatch/dpatch.make + +patched: patch +build-arch: patch + dh_testdir + # force use of system cfortran.h since we Build-Depend upon it + -mv -f src/include/cfortran/cfortran.h \ + src/include/cfortran/cfortran.h.disabled + $(MAKE) prefix=/usr mandir=/usr/share/man sysconfdir=/etc \ + LOCAL_DEFINES='$(LOCAL_DEFINES)' cernlib-arch +ifeq (,$(findstring keepbuild,$(DEB_BUILD_OPTIONS))) + # delete build tree to save disk space (only if both builds are done) + if [ -e stampdir/cernlib-indep-stamp ] ; then rm -rf build ; fi +endif + +build-indep: patch + dh_testdir + $(MAKE) prefix=/usr mandir=/usr/share/man sysconfdir=/etc \ + LOCAL_DEFINES='$(LOCAL_DEFINES)' cernlib-indep +ifeq (,$(findstring keepbuild,$(DEB_BUILD_OPTIONS))) + # delete build tree to save disk space (only if both builds are done) + if [ -e stampdir/cernlib-arch-stamp ] ; then rm -rf build ; fi +endif + +unpatch-clean: + # Move this back so reverse patch doesn't fail + -mv -f src/include/cfortran/cfortran.h.disabled \ + src/include/cfortran/cfortran.h + +unpatch: unpatch-clean + +clean: Makefile + dh_testdir + dh_testroot + @if ! $(MAKE) -f debian/rules unpatch ; then \ + echo ; \ + echo "The last patch listed above failed to de-apply. To" ; \ + echo "inspect the situation, hit Ctrl+C within 10 seconds." ; \ + for i in `seq 10 -1 1` ; do \ + echo -n "$$i " ; sleep 1 ; \ + done ; \ + echo ; \ + rm -rf debian/patched debian/patches/00list ; \ + fi + $(MAKE) clean + rm -f Makefile $(ADDONDIR)/bin/kuipc + -rm -rf upstream/200? + rm -rf debian/tmp/ + -find . -name higz_windows.dat -o -name last.kumac \ + -o -name last.kumacold -o -name paw.metafile | xargs rm -f + -rm -rf lib*.txt libdeps/ bindeps/ # clean up output of makedeplist + dh_clean + # Remove symlinks to debhelper snippets: + find debian -maxdepth 1 -type l | xargs rm -f + # Regenerate debian/control and debian/copyright: + rm -f debian/control && $(MAKE) -f debian/rules debian/control + rm -f debian/copyright && $(MAKE) -f debian/rules debian/copyright + # Regenerate debian/patches/00list: + cd $(PATCHDIR) && ls -1 *.dpatch > 00list + # Make sure scripts are executable (but not READMEs): + chmod a+x $(ADDONDIR)/bin/[a-z]* $(ADDONDIR)/scripts/[a-z]* + +debian/control: + # n.b. all control snippets in arch-specific subdirs must be + # named "*.arch.control" so they can be cleaned up properly + cd debian/control.d ; \ + for dir in $(DEB_BUILD_ARCH) no-* ; do \ + if [ -d $$dir ] && [ ! $$dir = no-"$(DEB_BUILD_ARCH)" ] ; \ + then cp -p $$dir/* . ; \ + fi ; \ + done ; \ + cat 0base.control [a-z]*.control > ../control ; \ + rm -f *.arch.control + +debian/copyright: debian/copyright.in debian/deadpool.txt + # Stick a list of removed files at the end of debian/copyright + grep -v DEADPOOL_LIST_GOES_HERE debian/copyright.in > $@ + sed -e 's/#.*//g' -e '/^[[:space:]]*$$/d' debian/deadpool.txt | \ + sort | uniq >> $@ + +install-common: + # Set up debhelper links. + cd debian ; for file in debhelper/* ; do \ + ln -sf $$file ; \ + done + dh_testdir + dh_testroot + dh_clean -k + +# target to install arch-dependent files +install-arch: install-common build-arch + dh_installdirs -a + mkdir -p debian/tmp/etc/logrotate.d + $(MAKE) prefix=debian/tmp/usr mandir=debian/tmp/usr/share/man \ + sysconfdir=debian/tmp/etc install-arch + # Is dynamically linked paw broken? + set -e ; \ + rm -f debian/tmp/usr/bin/pawX11 debian/tmp/usr/bin/paw++ ; \ + export LD_LIBRARY_PATH="$(PWD)/shlib" ; \ + if debian/tmp/usr/bin/pawX11.dynamic -w 0 < /dev/null > /dev/null 2>&1 ; then \ + cp -pf bin/pawX11 debian/tmp/usr/bin/pawX11 ; \ + cp -pf bin/paw++ debian/tmp/usr/bin/paw++ ; \ + ln -sf paw.1.gz debian/paw/usr/share/man/man1/pawX11.dynamic.1.gz ; \ + ln -sf paw.1.gz debian/paw++/usr/share/man/man1/paw++.dynamic.1.gz ; \ + ln -sf pawX11 debian/paw/usr/bin/pawX11.dynamic ; \ + ln -sf paw++ debian/paw++/usr/bin/paw++.dynamic ; \ + else \ + cp -pf bin/pawX11.static debian/tmp/usr/bin/pawX11 ; \ + cp -pf bin/paw++.static debian/tmp/usr/bin/paw++ ; \ + mkdir -p debian/paw-static/usr/share/man/man1 ; \ + mkdir -p debian/paw++-static/usr/share/man/man1 ; \ + mkdir -p debian/paw-static/usr/bin ; \ + mkdir -p debian/paw++-static/usr/bin ; \ + ln -sf paw.1.gz debian/paw-static/usr/share/man/man1/pawX11.static.1.gz ; \ + ln -sf paw.1.gz debian/paw++-static/usr/share/man/man1/paw++.static.1.gz ; \ + ln -sf pawX11 debian/paw-static/usr/bin/pawX11.static ; \ + ln -sf paw++ debian/paw++-static/usr/bin/paw++.static ; \ + fi ; \ + rm -f paw.metafile + +# target to install arch-independent files +install-indep: install-common build-indep + dh_installdirs -i + $(MAKE) prefix=debian/tmp/usr mandir=debian/tmp/usr/share/man \ + sysconfdir=debian/tmp/etc install-indep + +install: install-indep install-arch + +binary-arch: install-arch + dh_testdir + dh_testroot + dh_install -a + # move a couple files around + mv -f debian/libpawlib2-dev/usr/include/paw/tree.h \ + debian/libpawlib2-dev/usr/include/paw/converter.h \ + debian/libpawlib2-lesstif-dev/usr/include/paw/ + mv -f debian/libpacklib1/usr/bin/kuesvr \ + debian/libpacklib1/usr/lib/libpacklib1/ + dh_installdocs -a + dh_installexamples -a + set -e ; \ + # Lintian overrides of spurious warnings + for file in `cd debian/lintian && ls -1` ; do \ + cp -p debian/lintian/$$file \ + debian/$$file/usr/share/lintian/overrides/ ; \ + done + dh_installmenu -a + dh_installman -a + dh_installchangelogs -a + dh_installdebconf -a + dh_strip -a + dh_link -a + dh_compress -a + dh_installcron -a + dh_installlogrotate -a + dh_fixperms -a + for package in libpawlib2 libpacklib1 ; do \ + dh_makeshlibs -p$$package -V"$$package (>= 2005.05.09.dfsg-3)" ; \ + done + for package in libgeant321-2 ; do \ + dh_makeshlibs -p$$package -V"$$package (>= 2005.05.09.dfsg)" ; \ + done + for package in libgrafx11-1 ; do \ + dh_makeshlibs -p$$package -V"$$package (>= 2005.05.09-1)" ; \ + done + for package in libeurodec1 libgraflib1 libkernlib1 ; do \ + dh_makeshlibs -p$$package -V"$$package (>= 2004.01.20-6)" ; \ + done + for package in libpacklib1-lesstif libcojets2 \ + libherwig59-2 libisajet758-2 libmathlib2 \ + libpawlib2-lesstif libpdflib804-2 libphotos202 libphtools2 ;do \ + dh_makeshlibs -p$$package ; \ + done + dh_shlibdeps -a -lshlib + dh_installdeb -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +binary-indep: install-indep + dh_testdir + dh_testroot + dh_install -i + dh_installdocs -i + dh_installexamples -i + dh_installman -i + dh_installchangelogs -i + dh_link -i + dh_compress -i -X.dat -X.kumac -X.F + + # Fudge metapackage docs a little bit for efficiency: + for package in cernlib cernlib-core cernlib-core-dev cernlib-extras; do\ + rm -rf debian/$$package/usr/share/doc/$$package ; \ + ln -sf cernlib-base debian/$$package/usr/share/doc/$$package ; \ + done + 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: help get-orig-source remove-deadpool build build-indep build-arch \ + clean debian/control install install-common install-indep install-arch\ + binary binary-indep binary-arch unpack patch unpatch setup orig.tar.gz\ + unpatch-clean + --- cernlib-2005.05.09.dfsg.orig/debian/README.64-bit +++ cernlib-2005.05.09.dfsg/debian/README.64-bit @@ -0,0 +1,49 @@ +64-bit specific Cernlib issues +------------------------------ + +If you are intending to use CERN libraries on a 64-bit platform (such as +the Itanium [ia64], Alpha, or AMD64 / EMT64 [amd64] Debian architectures), +you should be aware of some potential problems. + +Cernlib was never designed to run on machines where the size of a pointer +is 64 bits. The code implicitly assumes that + sizeof(void *) == sizeof(int) == 4 +in many different places. The biggest culprits are the ZEBRA and COMIS sets +of routines in the packlib and pawlib libraries, respectively. This would be +difficult to fix without rewriting megabytes of FORTRAN source code. + +Harald Vogt has, however, succeeded in putting together enough workarounds +to permit PAW and Paw++ to run on some 64-bit machines. These workarounds +are valid only when the entire set of code in a program's memory space can +be addressed by 32-bit values. This will generally be true for statically +linked programs, but not for dynamically linked ones. Furthermore, they +do not really work on the alpha and ia64 architectures, but only on amd64, +due to the different choices made between the architectures for virtual +memory layouts. (Basically, the amd64 Linux port keeps shared library +code, data, and static variables within a pointer range addressable by 32-bit +values; ia64 and alpha do not.) + +To summarize, many of the CERN libraries on 64-bit machines may not work well +except on the amd64 architecture, and there only when linked against +statically. Routines outside of ZEBRA and COMIS may be safe to use outside +of these conditions, but I would not bet money on it. + +Static linking is the default behavior if you use the "cernlib" script when +linking, like this: + + # Should work everywhere: + g77 -o myprogram myprogram.F ‘cernlib -G Motif pawlib‘ + +but not if you directly tell the library names to the compiler, like this: + + # Possibly results in a non-working program on 64-bit! + g77 -o myprogram myprogram.F -lpawlib -lpacklib ... + +For more information, please see Harald Vogt's web page about Cernlib ported +to 64-bit machines: + http://www-zeuthen.desy.de/linear_collider/cernlib_2005.html + +If you are using an AMD64 machine, please also see the file +/usr/share/doc/cernlib-base/README.amd64 for important additional information. + +-- Kevin McCarty , Thu, 08 Dec 2005 --- cernlib-2005.05.09.dfsg.orig/debian/copyright.in +++ cernlib-2005.05.09.dfsg/debian/copyright.in @@ -0,0 +1,327 @@ +This package was debianized by Kevin B. McCarty . +It was downloaded from the web page +http://wwwinfo.cern.ch/asd/cernlib/download/2005_source/tar/ + + +COPYRIGHT +--------- + +Cernlib is copyright (C) CERN and others. As of this writing (13 Jan 2005), +the web page http://wwwinfo.cern.ch/asd/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 + +On Debian systems, the complete text of the GNU General Public License can be +found in the file `/usr/share/common-licenses/GPL'. + +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) + cernlib-$VERSION/src/mclibs/pdf/doc/pdfdoc.dat (unpacked Debian source). + + +EXCEPTIONS +---------- + +Some source files of Cernlib are provided (in parts, or in entirety) under +different licenses which are compatible with the GPL. See the table and +licenses below for details. (File paths are relative to the directory +cernlib-$VERSION/src/ after running "debian/rules unpack".) Most of the +differences in the licenses below are only in the exact wordings. The +"Package(s)" column lists the binary Debian packages in which each piece of +code is compiled or otherwise included. + +Copyright codes are as follows: + +LGPL - Library GPL +BSD - BSD style license +NO AD - BSD style license with negative advertising clause + +Package codes are as follows: + +Dev = most development packages +Kx = kxterm +Graf = libgrafx11-1, libgrafx11-1-dev, paw, paw++ +Pack = libpacklib1, libpacklib1-dev, paw, paw++ +KuiM = libpacklib1-lesstif, libpacklib1-lesstif-dev, paw, paw++ +Paw++ = libpawlib2-lesstif, libpawlib2-lesstif-dev, paw++ +Src = [not included in binary packages, only source package] + +File(s) Package(s) License type Owner +------- ---------- ------------ ----- +cfortran/* Dev LGPL [1] [a] +graflib/higz/higzcc/rotated.c Graf BSD [3] [b] +graflib/higz/higzcc/tkhigz.c Graf BSD [4] [c] +packlib/cspack/sysreq/telnet.h Pack BSD [2] [c] +packlib/kuip/code_kuip/getline.c Pack BSD [5] [d] +packlib/kuip/code_motif/icbox.h KuiM NO AD [6] [e] +packlib/kuip/code_motif/icboxp.h KuiM NO AD [6] [e] +packlib/kuip/code_motif/iconbox.c KuiM NO AD [6] [e] +packlib/kuip/code_motif/iconwidget.c KuiM NO AD [7] [f] +packlib/kuip/code_motif/icwid.h KuiM NO AD [7] [f] +packlib/kuip/code_motif/icwidp.h KuiM NO AD [7] [f] +packlib/kuip/code_motif/kuxxt.c KuiM NO AD [8] [g] +packlib/kuip/code_motif/mkuxxt.h KuiM NO AD [8] [g] +packlib/kuip/programs/kxterm/uxxt.c Kx NO AD [8] [g] +packlib/kuip/programs/kxterm/uxxt.h Kx NO AD [8] [g] +pawlib/paw/hmotif/uxxt.h Paw++ NO AD [8] [g] +pawlib/paw/paw/tree.h Paw++ BSD [9] [h] +pawlib/paw/tree/tree.c Paw++ BSD [9] [h] +pawlib/paw/tree/treep.h Paw++ BSD [9] [h] +pawlib/paw/xbae/caption.c Paw++ NO AD [10] [i] +pawlib/paw/xbae/caption.h Paw++ NO AD [10] [i] +pawlib/paw/xbae/captionp.h Paw++ NO AD [10] [i] +pawlib/paw/xbae/cell.c Paw++ NO AD [11] [j] +pawlib/paw/xbae/cell.h Paw++ NO AD [11] [j] +pawlib/paw/xbae/cellp.h Paw++ NO AD [11] [j] +pawlib/paw/xbae/clip.c Paw++ NO AD [10] [i] +pawlib/paw/xbae/clip.h Paw++ NO AD [10] [i] +pawlib/paw/xbae/clipp.h Paw++ NO AD [10] [i] +pawlib/paw/xbae/matrix.c Paw++ NO AD [10] [i] +pawlib/paw/xbae/matrix.h Paw++ NO AD [10] [i] +pawlib/paw/xbae/matrixp.h Paw++ NO AD [10] [i] +pawlib/paw/xbae/version.c Paw++ NO AD [10] [i] +pawlib/paw/xbaevms/caption.c Src NO AD [10] [i] +pawlib/paw/xbaevms/caption.h Src NO AD [10] [i] +pawlib/paw/xbaevms/captionp.h Src NO AD [10] [i] +pawlib/paw/xbaevms/clip.c Src NO AD [10] [i] +pawlib/paw/xbaevms/clip.h Src NO AD [10] [i] +pawlib/paw/xbaevms/clipp.h Src NO AD [10] [i] +pawlib/paw/xbaevms/matrix.c Src NO AD [10] [i] +pawlib/paw/xbaevms/matrix.h Src NO AD [10] [i] +pawlib/paw/xbaevms/matrixp.h Src NO AD [10] [i] +pawlib/paw/xbaevms/version.c Src NO AD [10] [i] + + +Exception copyright holders +--------------------------- + +[a] Burkhard Burow, , + http://www-zeus.desy.de/~burow/cfortran/index.htm + +[b] Alan Richardson, , and O. Couet + +[c] The Regents of the University of California + +[d] Chris Thewalt, + +[e] Alphonse A. Rademakers, , + CN/AS Division + CERN, European Organization for Nuclear Research + 1123 Geneve, Switzerland + +[f] Addison-Wesley Publishing Company + +[g] Visual Edge Software Ltd. + +[h] Massachusetts Institute of Technology and Prentice Hall + +[i] Bell Communications Research, Inc. (Bellcore) + +[j] Q. Frank Xia, + + +Exception license details +------------------------- + +[1] 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'. + +[2] On Debian systems, the complete text of the BSD License + can be found in the file `/usr/share/common-licenses/BSD'. + +[3] xvertext 5.0, Copyright (c) 1993 Alan Richardson (mppa3@uk.ac.sussex.syma) + Alignment definition modified by O.Couet. + Mods IBM/VM by O.Couet. + + Permission to use, copy, modify, and distribute this software and its + documentation for any purpose and without fee is hereby granted, provided + that the above copyright notice appear in all copies and that both the + copyright notice and this permission notice appear in supporting + documentation. All work developed as a consequence of the use of + this program should duly acknowledge such use. No representations are + made about the suitability of this software for any purpose. It is + provided "as is" without express or implied warranty. + +[4] Copyright (c) 1991-1993 The Regents of the University of California. + All rights reserved. + + Permission is hereby granted, without written agreement and without + license or royalty fees, to use, copy, modify, and distribute this + software and its documentation for any purpose, provided that the + above copyright notice and the following two paragraphs appear in + all copies of this software. + + IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR + DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT + OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF + CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS + ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO + PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. + +[5] Copyright (C) 1991, 1992 by Chris Thewalt (thewalt@ce.berkeley.edu) + + Permission to use, copy, modify, and distribute this software + for any purpose and without fee is hereby granted, provided + that the above copyright notices appear in all copies and that both the + copyright notice and this permission notice appear in supporting + documentation. This software is provided "as is" without express or + implied warranty. + +[6] Copyright 1992 Alphonse A. Rademakers + + Permission to use, copy, modify, distribute, and sell this software + and its documentation for any purpose is hereby granted without + fee, provided that the above copyright notice appears in all copies + and that both that copyright notice and this permission notice + appear in supporting documentation, and that the name of + Alphonse A. Rademakers or CERN not be used in advertising or + publicity pertaining to distribution of the software without + specific, written prior permission. Alphonse A. Rademakers and + CERN make no representations about the suitability of this software + for any purpose. It is provided "as is" without express or implied + warranty. + + Alphonse A. Rademakers and CERN disclaim all warranties with + regard to this software, including all implied warranties of + merchantability and fitness, in no event shall + Alphonse A. Rademakers or CERN be liable for any special, indirect + or consequential damages or any damages whatsoever resulting from + loss of use, data or profits, whether in an action of contract, + negligence or other tortious action, arising out of or in + connection with the use or performance of this software. + + [Debian maintainer's note: Although the files with this copyright are + described as "based on ideas by Thomas Berlage" (see next entry), a + comparison with the original IconBox code of Thomas Berlage, available by + FTP at (e.g.) ftp://ftp.x.org/R5contrib/berlage.motif.tar.Z , shows that + they were written from scratch.] + +[7] Copyright 1991 Addison-Wesley Publishing Company + + Permission to use, copy, modify, distribute, and sell this software and its + documentation for any purpose is hereby granted without fee, provided that + the above copyright notice appear in all copies and that both that + copyright notice and this permission notice appear in supporting + documentation, and that the name of Addison-Wesley not be used in + advertising or publicity pertaining to distribution of the software without + specific, written prior permission. Addison-Wesley makes no representations + about the suitability of this software for any purpose. It is provided + as is" without express or implied warranty. + + ADDISON-WESLEY DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, + INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT + SHALL ADDISON-WESLEY BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL + DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR + PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS + ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF + THIS SOFTWARE. + + Berlage: OSF/MOTIF: CONCEPTS AND PROGRAMMING + + ISBN 0 201 55792 4 + + To order please contact your local Addison-Wesley office. + + [Debian maintainer's note: The COPYRIGHT file referred to by the files + iconwidget.c, icwid.h, and icwidp.h, and quoted above, is not included in + the Cernlib source code. It, along with the original versions of those + files (named IconWidget.c, IconWidget.h, and IconWidgetP.h, respectively), + may be found in the materials distributed with the book _OSF/Motif: + Concepts and Programming_, by Thomas Berlage, (C) 1991 Addison-Wesley + Publishing Company, or downloadable by FTP from (e.g.) + ftp://ftp.x.org/R5contrib/berlage.motif.tar.Z .] + +[8] Copyright (c) 1991, Visual Edge Software Ltd. + + ALL RIGHTS RESERVED. Permission to use, copy, modify, and + distribute this software and its documentation for any purpose + and without fee is hereby granted, provided that the above + copyright notice appear in all copies and that both that + copyright notice and this permission notice appear in supporting + documentation, and that the name of Visual Edge Software not be + used in advertising or publicity pertaining to distribution of + the software without specific, written prior permission. The year + included in the notice is the year of the creation of the work. + +[9] Copyright 1990 Massachusetts Institute of Technology + Copyright 1989 Prentice Hall + + Permission to use, copy, modify, and distribute this software for any + purpose and without fee is hereby granted, provided that the above + copyright notice appear in all copies and that both the copyright notice + and this permission notice appear in supporting documentation. + + M.I.T., Prentice Hall and the authors disclaim all warranties with regard + to this software, including all implied warranties of merchantability and + fitness. In no event shall M.I.T., Prentice Hall or the authors be liable + for any special, indirect or cosequential damages or any damages whatsoever + resulting from loss of use, data or profits, whether in an action of + contract, negligence or other tortious action, arising out of or in + connection with the use or performance of this software. + +[10] Copyright(c) 1992 Bell Communications Research, Inc. (Bellcore) + All rights reserved + + Permission to use, copy, modify and distribute this material for + any purpose and without fee is hereby granted, provided that the + above copyright notice and this permission notice appear in all + copies, and that the name of Bellcore not be used in advertising + or publicity pertaining to this material without the specific, + prior written permission of an authorized representative of + Bellcore. + + BELLCORE MAKES NO REPRESENTATIONS AND EXTENDS NO WARRANTIES, EX- + PRESS OR IMPLIED, WITH RESPECT TO THE SOFTWARE, INCLUDING, BUT + NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND + FITNESS FOR ANY PARTICULAR PURPOSE, AND THE WARRANTY AGAINST IN- + FRINGEMENT OF PATENTS OR OTHER INTELLECTUAL PROPERTY RIGHTS. THE + SOFTWARE IS PROVIDED "AS IS", AND IN NO EVENT SHALL BELLCORE OR + ANY OF ITS AFFILIATES BE LIABLE FOR ANY DAMAGES, INCLUDING ANY + LOST PROFITS OR OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES RELAT- + ING TO THE SOFTWARE. + +[11] Copyright(C) Q. Frank Xia (qx@math.columbia.edu), 1994. + + All Rights Reserved + + Permission to use, copy, modify, and distribute this software and its + documentation for any purpose and without fee is hereby granted, + provided that the above copyright notice appear in all copies and that + both that copyright notice and this permission notice appear in + supporting documentation, and that the name of Q. Frank Xia not be + used in advertising or publicity pertaining to distribution of the + software without specific, written prior permission. + + This software is provided as-is and without any warranty of any kind. + + +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 files for libmathlib2, +montecarlo-base, and libgeant321-2 packages for more information on obtaining +the Ariadne, Fluka, Fritiof, Jetset, Lepto, and Pythia libraries. + +DEADPOOL_LIST_GOES_HERE --- cernlib-2005.05.09.dfsg.orig/debian/compat +++ cernlib-2005.05.09.dfsg/debian/compat @@ -0,0 +1 @@ +5 --- cernlib-2005.05.09.dfsg.orig/debian/NEWS +++ cernlib-2005.05.09.dfsg/debian/NEWS @@ -0,0 +1,121 @@ +cernlib (2005.05.09.dfsg-1) unstable; urgency=low + + If you are using the GEANT 3.21 libraries, you should be aware that some + functions have been removed from them with this release. (If you are not + using the Debian packages of GEANT 3.21, you may disregard this note.) + + The functions in question were discovered to contain non-free GEANT-FLUKA + code (part of which had already been removed long ago). This code is + licensed in a manner incompatible with the main Cernlib license (the GNU + General Public License) and therefore cannot be distributed by the Debian + Project. See also http://www.fluka.org/Faq.html for more information. + + Care has been taken to keep the library technically ABI-compatible by + adding dummy functions to replace the removed code. However, if you run + code that calls one of these functions, it will now immediately abort with + an error. Additionally, a number of FORTRAN include (*.inc) files + defining GEANT-FLUKA COMMON blocks have been removed. Dummy COMMON blocks + have been added to replace those defined in GEANT-FLUKA code. It is very + unlikely that you would be using such a COMMON block without using + GEANT-FLUKA functions. But in such a case things should still work, as + long as you neither depend on any initial values in the COMMON blocks + (they are all now initialized to zero) nor require the deleted include + files in order to define them. + + A complete up-to-date list of removed include files can be found in + /usr/share/doc/cernlib-base/deadpool.txt , and the list of removed + functions is in /usr/share/doc/libgeant321-2/README.Debian . We + apologize for any inconvenience. + + -- Kevin B. McCarty Fri, 2 Dec 2005 14:24:12 +0000 + +cernlib (2005.05.09-1) unstable; urgency=low + + Please note that many of the dynamic libraries in this release of Cernlib + have had a soname version increase. This was necessary because they are + now linked against the new versions of libblas and liblapack. As a result, + the corresponding package names have changed. I have also taken this + opportunity to make them more consistent with the library names, e.g., + libpdflib804.so.2.2005 is found in the libpdflib804-2 package. If you + have installed one of the cernlib-core, cernlib-core-dev, or + cernlib-montecarlo metapackages, the new packages will be installed + automatically with an apt-get or aptitude dist-upgrade. + + In addition, I have separated out the portion of the Paw library libpawlib + that depends upon Lesstif into its own package, now named + libpawlib2-lesstif (libpawlib2-lesstif-dev for the static library). + The rest of Pawlib is in libpawlib2 (libpawlib2-dev). As a result, + programs like pawX11 and mn_fit that use Pawlib but not Lesstif will no + longer have a Lesstif dependency. If you are a user of these programs, + this means less wasted hard disk space. For consistency, the library + libkuipX11 containing the Lesstif-dependent portions of packlib has been + renamed to libpacklib-lesstif (in the libpacklib1-lesstif package). + + If you are a developer, using the "cernlib" script to calculate library + dependencies will still do the right thing. Just be sure to use the "-G + Motif" argument if and only if you want to link against Lesstif: + `cernlib -G Motif pawlib`. If you don't use the cernlib script, and + explicitly link with "-lpawlib", everything will work unless your code + needs the Lesstif interface to Paw. + + -- Kevin B. McCarty Wed, 8 Jun 2005 10:49:06 -0400 + +cernlib (2004.11.04-3) unstable; urgency=high + + This release of Cernlib adds the kuesvr "edit server" binary, in the + libpacklib1 package. For security reasons, it was necessary to modify + the kuesvr command-line flags in a way incompatible with the version + distributed by CERN. Therefore it is not possible to use the kuesvr + in Debian with applications distributed by CERN or statically linked + against CERN versions or older Debian versions of libpacklib1; nor can + one use CERN's kuesvr with current Debian packages of Cernlib programs. + See "man 1 kuesvr" for more information. + + Also new in this release is an updated version of the cernlib.m4 + Autoconf macros. The new version is slightly backwards-incompatible; + the configure argument --with-cernlib-location has been replaced + by --with-cernlib. + + -- Kevin B. McCarty Thu, 10 Mar 2005 10:58:43 +0100 + +cernlib (2003.09.03-3) unstable; urgency=low + + In this release, all packages containing more than one library have been + split apart. Thus (e.g.) libcern1 has been replaced by libkernlib1, + libpacklib1, and libmathlib1, and likewise for libmontecarlo1 and + libgraflib1. The original library packages libcern1{,-dev} and + libmontecarlo1{,-dev} still exist as dummy packages to make upgrades + simple. (libgraflib1, libgraflib1-dev are not dummy packages.) The dummy + packages may be safely removed after upgrading. The README.Debian in + libmontecarlo1{,-dev} has been moved to a new montecarlo-base package + upon which all Monte Carlo packages depend. + + The montecarlo-data and montecarlo-doc packages are no more; the data + and documentation files in them have moved into the appropriate library + and development packages, respectively, since they are not very large. + (E.g. cojets.dat is now in libcojets1 and pdfdoc.txt is now in + libpdflib804-dev.) Currently montecarlo-data is a dummy package depending + upon libcojets1, libeurodec1, and libisajet758; montecarlo-doc is a dummy + package depending upon libcojets1-dev, libeurodec1-dev, libherwig59-dev, + libisajet758-dev, and libpdflib804-dev. Again, the dummy packages may + be safely removed after upgrading. + + These dummy packages are not generated on m68k, since this is the first + release for that arch, and therefore it has no need to upgrade. + + -- Kevin B. McCarty Tue, 30 Dec 2003 14:43:34 -0500 + +cernlib (2003.09.03-2) unstable; urgency=low + + The problems with using the COMIS interpreter in programs linked + dynamically to pawlib have been solved. If you are using pawlib + for development, please read /usr/share/doc/libpaw1-dev/README.Debian. + + For this reason, the paw-static and paw++-static packages are now + deprecated. They will be removed in the next few releases and replaced + by dummy packages (e.g. paw++-static will Depend upon paw++). If you + use Paw or Paw++, please check soon to make sure that the dynamically + linked packages behave as well as the statically linked ones. + + -- Kevin B. McCarty Sat, 1 Nov 2003 20:40:09 -0500 + --- cernlib-2005.05.09.dfsg.orig/debian/deadpool.txt +++ cernlib-2005.05.09.dfsg/debian/deadpool.txt @@ -0,0 +1,95 @@ +# This file lists all the files that were removed from the Cernlib source +# for copyright reasons. Given is the file or directory to delete +# relative to $CERN_ROOT/src/. + +# --Kevin McCarty, 23 Nov 2005 + +# Authors of Pythia/Jetset did NOT give permission to release +# their code under GPL. CERN should have checked this more carefully!!! +car/jetset74.car +mclibs/jetset/ +mclibs/pythia/ + +# Removal of Pythia/Jetset also necessitates removal of Fritiof, Lepto, Ariadne +mclibs/fritiof/ +mclibs/ariadne/ +mclibs/ariadne_407/ +mclibs/lepto63/ + +# The same applies to GEANT-FLUKA; see for instance the comments at +# the web site http://www.fluka.org/Faq.html +car/geanf.car +car/geanf321.car +cmz/geanf.cmz +cmz/geanf321.cmz +geant321/data/flukaaf.dat +geant321/block/ +geant321/fiface/ +geant321/fluka/ +geant321/miface/gfmfin.F +geant321/miface/gfmdis.F +geant321/peanut/ +geant321/geant321/aadat.inc +geant321/geant321/auxpar.inc +geant321/geant321/balanc.inc +geant321/geant321/bamjcm.inc +geant321/geant321/cmsres.inc +geant321/geant321/comcon.inc +geant321/geant321/corinc.inc +geant321/geant321/dblprc.inc +geant321/geant321/decayc.inc +geant321/geant321/decayc2.inc +geant321/geant321/depnuc.inc +geant321/geant321/dimpar.inc +geant321/geant321/eva0.inc +geant321/geant321/eva1.inc +geant321/geant321/fheavy.inc +geant321/geant321/finlsp.inc +geant321/geant321/finlsp2.inc +geant321/geant321/finlsp3.inc +geant321/geant321/finpar.inc +geant321/geant321/finpar2.inc +geant321/geant321/finuc.inc +geant321/geant321/finuc2.inc +geant321/geant321/finuct.inc +geant321/geant321/hadflg.inc +geant321/geant321/hadpar.inc +geant321/geant321/higfis.inc +geant321/geant321/inpdat.inc +geant321/geant321/inpdat2.inc +geant321/geant321/inpflg.inc +geant321/geant321/iounit.inc +geant321/geant321/isotop.inc +geant321/geant321/labcos.inc +geant321/geant321/mapa.inc +geant321/geant321/metlsp.inc +geant321/geant321/nucdat.inc +geant321/geant321/nucgeo.inc +geant321/geant321/nuclev.inc +geant321/geant321/nucpar.inc +geant321/geant321/nucstf.inc +geant321/geant321/paprop.inc +geant321/geant321/parevt.inc +geant321/geant321/parnuc.inc +geant321/geant321/part.inc +geant321/geant321/part2.inc +geant321/geant321/part3.inc +geant321/geant321/qquark.inc +geant321/geant321/reac.inc +geant321/geant321/redver.inc +geant321/geant321/resnuc.inc +geant321/geant321/split.inc +geant321/geant321/xsepar.inc + +# Other problematic files (mostly on VMS or obsolete archs) +graflib/higz/igold/golini.F +packlib/cspack/sysreq/pwd_vms.h +packlib/cspack/sysreq/sgtty.h +packlib/cspack/vmsc/ +packlib/fatmen/scripts/unix/ctab_root.dat +packlib/kernlib/kernbit/z037/astdoc.F +packlib/kernlib/kernbit/z037/fiopat.s +pawlib/comis/comis/dlfcn.inc +pawlib/comis/deccc/dlfcn.c +pawlib/comis/obsolete/rsibm/ +pawlib/paw/stagerd/bftp.c --- cernlib-2005.05.09.dfsg.orig/debian/control.d/cernlib-montecarlo.control +++ cernlib-2005.05.09.dfsg/debian/control.d/cernlib-montecarlo.control @@ -0,0 +1,22 @@ +Package: cernlib-montecarlo +Architecture: all +Section: science +Depends: cernlib-base, montecarlo-base (= ${Source-Version}), libcojets2-dev, libeurodec1-dev, libherwig59-2-dev, libpdflib804-2-dev, libphotos202-dev, libphtools2-dev +Recommends: libisajet758-2-dev +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 program 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. + . + Additionally, the Isajet library is not available on the m68k architecture + due to a compiler flaw. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/paw.control +++ cernlib-2005.05.09.dfsg/debian/control.d/paw.control @@ -0,0 +1,22 @@ +Package: paw +Architecture: any +Section: science +Depends: ${shlibs:Depends}, paw-common, g77, netbase (>= 4.08) +Suggests: paw-demos, gv +Provides: paw-binary +Replaces: paw-common (<< 2005.05.09.dfsg-3) +Description: Physics Analysis Workstation - a graphical analysis program + 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. + . + PAW is an interactive program providing interactive graphical presentation + and statistical and mathematical analysis tools. It is designed to work + on objects familiar to physicists such as histograms, event files (Ntuples), + vectors, etc. + . + The program is linked statically against the CERN libraries on 64-bit + architectures in order to function properly, as its design is not + very 64-bit clean. Even so, AMD64 is the only 64-bit platform where it + functions well. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/paw++-static.control +++ cernlib-2005.05.09.dfsg/debian/control.d/paw++-static.control @@ -0,0 +1,18 @@ +Package: paw++-static +Architecture: any +Section: science +Depends: paw++ (>= 2005.05.09.dfsg-3) +Description: Dummy package for smooth upgrades of Paw++ + 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. + Paw++ is an interactive program for use in analysis and graphical presentation. + . + The paw++ package has been changed to include a dynamically linked version + of Paw++ on 32-bit architectures and a statically linked version on 64-bit + architectures. This package, paw++-static, is therefore now an empty dummy + package that depends upon paw++ in order to ensure smooth upgrades. On + 64-bit arches it provides a backwards-compatibility symlink + /usr/bin/paw++.static -> paw++. Unless you need the symlink, this package + may be removed with no ill effects. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/libpawlib2.control +++ cernlib-2005.05.09.dfsg/debian/control.d/libpawlib2.control @@ -0,0 +1,23 @@ +Package: libpawlib2 +Architecture: any +Section: libs +Depends: ${shlibs:Depends}, g77, netbase (>= 4.08) +Recommends: libc6-dev | libc-dev +Description: Cernlib PAW library - portion without Lesstif dependencies + 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 includes (most of) the library pawlib, required by the Cernlib + application PAW. In addition to the internal workings of PAW, pawlib + also provides the COMIS FORTRAN interpreter and the SIGMA array + manipulation language. The Lesstif-dependent parts of the library are + provided in the libpawlib2-lesstif package. + . + Note that in order to compile and link programs against this library, you + must install the libpawlib2-dev and maybe also the libpawlib2-lesstif-dev + package(s). + . + The COMIS portion of this library is functional on AMD64 machines only + when statically linked, and not at all on other 64-bit platforms. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/libkernlib1-dev.control +++ cernlib-2005.05.09.dfsg/debian/control.d/libkernlib1-dev.control @@ -0,0 +1,14 @@ +Package: libkernlib1-dev +Architecture: any +Section: libdevel +Depends: libkernlib1 (= ${Source-Version}), cfortran, libc6-dev | libc-dev +Description: core Cernlib library of basic functions (development files) + 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. + . + The kernlib library contains a rather miscellaneous set of basic numerical, + bitwise, and system-dependent functions used by other Cern libraries and + programs. This package includes the static version of kernlib, as well as + C and FORTRAN header files. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/libpawlib2-dev.control +++ cernlib-2005.05.09.dfsg/debian/control.d/libpawlib2-dev.control @@ -0,0 +1,21 @@ +Package: libpawlib2-dev +Architecture: any +Section: libdevel +Depends: libpawlib2 (= ${Source-Version}), libgraflib1-dev (= ${Source-Version}), libmathlib2-dev (= ${Source-Version}) +Replaces: libpaw1-dev +Conflicts: libpaw1-dev +Suggests: libpawlib2-lesstif-dev +Description: Cernlib PAW library - portion without Lesstif (development files) + 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 includes a static version of (most of) the library pawlib, + required by the Cernlib application PAW. In addition to the internal workings + of PAW, pawlib also provides the COMIS FORTRAN interpreter and the SIGMA array + manipulation language. The Lesstif-dependent parts of the library are + provided in the libpawlib2-lesstif-dev package. + . + The COMIS portion of this library is functional on AMD64 machines only + when statically linked, and not at all on other 64-bit platforms. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/paw-static.control +++ cernlib-2005.05.09.dfsg/debian/control.d/paw-static.control @@ -0,0 +1,18 @@ +Package: paw-static +Architecture: any +Section: science +Depends: paw (>= 2005.05.09.dfsg-3) +Description: Dummy package for smooth upgrades of PAW + 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. + PAW is an interactive program for use in analysis and graphical presentation. + . + The paw package has been changed to include a dynamically linked version + of PAW on 32-bit architectures and a statically linked version on 64-bit + architectures. This package, paw-static, is therefore now an empty dummy + package that depends upon paw in order to ensure smooth upgrades. On + 64-bit arches it provides a backwards-compatibility symlink + /usr/bin/pawX11.static -> pawX11. Unless you need the symlink, this package + may be removed with no ill effects. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/libpawlib2-lesstif-dev.control +++ cernlib-2005.05.09.dfsg/debian/control.d/libpawlib2-lesstif-dev.control @@ -0,0 +1,18 @@ +Package: libpawlib2-lesstif-dev +Architecture: any +Section: libdevel +Conflicts: libpaw1-dev +Replaces: libpaw1-dev +Depends: libpawlib2-lesstif (= ${Source-Version}), libpawlib2-dev (= ${Source-Version}), libpacklib1-lesstif-dev (= ${Source-Version}), lesstif2-dev +Description: Cernlib PAW library (Lesstif-dependent part - development files) + 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 includes the Lesstif-dependent parts of the library pawlib, + required by the Cernlib application Paw++, in a static version. The remainder + of pawlib is provided in the package libpawlib2-dev. + . + The COMIS portion of pawlib is functional on AMD64 machines only when + statically linked, and not at all on other 64-bit platforms. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/cernlib-core-dev.control +++ cernlib-2005.05.09.dfsg/debian/control.d/cernlib-core-dev.control @@ -0,0 +1,15 @@ +Package: cernlib-core-dev +Architecture: all +Section: science +Depends: cernlib-base (= ${Source-Version}), libgraflib1-dev, libgrafx11-1-dev, libkernlib1-dev, libpacklib1-lesstif-dev, libmathlib2-dev, libpacklib1-dev, libpawlib2-dev, libpawlib2-lesstif-dev, kuipc, dzedit +Description: Cernlib development headers, tools, and static 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 the header files and static libraries likely to be + wanted by developers using the Cern libraries who are not interested + specifically in high energy physics. It also provides the Cernlib + development tools DZedit and KUIPC. Cernlib analysis programs may be + obtained by installing the cernlib-core metapackage. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/paw++.control +++ cernlib-2005.05.09.dfsg/debian/control.d/paw++.control @@ -0,0 +1,22 @@ +Package: paw++ +Architecture: any +Section: science +Depends: ${shlibs:Depends}, paw-common, kxterm, g77, netbase (>= 4.08) +Suggests: paw-demos, gv +Provides: paw-binary +Replaces: paw-common (<< 2005.05.09.dfsg-3) +Description: Physics Analysis Workstation (Lesstif-enhanced version) + 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 includes Paw++, an interactive program for use in analysis and + graphical presentation. Paw++ is the same program as PAW (in the "paw" + package), but with a more user-friendly Motif-based GUI, compiled against + Lesstif in Debian. + . + The program is linked statically against the CERN libraries on + 64-bit architectures in order to function properly, as its design is not + very 64-bit clean. Even so, AMD64 is the only 64-bit platform where it + functions well. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/libpawlib2-lesstif.control +++ cernlib-2005.05.09.dfsg/debian/control.d/libpawlib2-lesstif.control @@ -0,0 +1,18 @@ +Package: libpawlib2-lesstif +Architecture: any +Section: libs +Depends: ${shlibs:Depends} +Description: Cernlib PAW library (Lesstif-dependent part) + 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 includes the Lesstif-dependent parts of the library pawlib, + required by the Cernlib application Paw++. Note that in order to compile and + link programs against this library, you must also install the + libpawlib2-lesstif-dev package. The remainder of pawlib is provided in the + package libpawlib2. + . + The COMIS portion of pawlib is functional on AMD64 machines only when + statically linked, and not at all on other 64-bit platforms. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/cernlib-base.control +++ cernlib-2005.05.09.dfsg/debian/control.d/cernlib-base.control @@ -0,0 +1,16 @@ +Package: cernlib-base +Architecture: all +Section: devel +Conflicts: libcojets1-dev, libgeant1-dev, libherwig59-dev, libisajet758-dev, libkuipx11-1-dev, libmathlib1-dev, libpaw1-dev, libpdflib804-dev, libphtools1-dev, blas2-dev, lapack2-dev +Description: script to determine Cernlib library dependencies + 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 includes the "cernlib" script that lists the command-line + options needed for linking against Cernlib libraries. The script has + been rewritten from the upstream version to calculate + dependencies recursively. Also included are a README.Debian with a summary + of changes made to Cernlib to fit it into Debian packaging practices, + and a contributed set of Autoconf macros to test for Cernlib libraries. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/paw-common.control +++ cernlib-2005.05.09.dfsg/debian/control.d/paw-common.control @@ -0,0 +1,14 @@ +Package: paw-common +Architecture: all +Section: science +Depends: cernlib-base, netbase (>= 4.08) +Recommends: libc6-dev | libc-dev, paw | paw-binary +Description: Physics Analysis Workstation (common files) + 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 includes arch-independent files for PAW, an interactive + program for use in analysis and graphical presentation. This package + is useless without also installing the paw or paw++ package. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/paw-demos.control +++ cernlib-2005.05.09.dfsg/debian/control.d/paw-demos.control @@ -0,0 +1,13 @@ +Package: paw-demos +Architecture: all +Section: science +Depends: paw | paw-binary +Description: Physics Analysis Workstation examples and tests + 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 includes example scripts for use by PAW or Paw++, and test + scripts to make sure that the PAW or Paw++ programs behave correctly. You + may run the examples and tests with the included paw-demos program. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/0base.control +++ cernlib-2005.05.09.dfsg/debian/control.d/0base.control @@ -0,0 +1,7 @@ +Source: cernlib +Maintainer: Kevin B. McCarty +Standards-Version: 3.6.2 +Priority: optional +Section: science +Build-Depends: gcc-4.0 (>= 4.0.2-4) | gcc (<< 4.0), dpatch (>= 2.0.9), patch, mawk | gawk, xutils, debhelper (>= 5.0.0), g77, cfortran (>= 4.4-8), x-dev, libxt-dev, libx11-dev, lesstif2-dev, refblas3-dev | libblas-3.so, lapack3-dev | liblapack-3.so, tetex-bin + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/libphtools2.control +++ cernlib-2005.05.09.dfsg/debian/control.d/libphtools2.control @@ -0,0 +1,14 @@ +Package: libphtools2 +Architecture: any +Section: libs +Depends: ${shlibs:Depends}, montecarlo-base +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. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/cernlib.control +++ cernlib-2005.05.09.dfsg/debian/control.d/cernlib.control @@ -0,0 +1,14 @@ +Package: cernlib +Architecture: all +Section: science +Depends: cernlib-base (= ${Source-Version}), cernlib-core, cernlib-core-dev, cernlib-montecarlo, geant321-data, geant321-doc, geant321, libgeant321-2, libgeant321-2-dev +Description: almost complete set of Debian Cernlib packages + 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 almost all of the programs and libraries contained + in Cernlib. Most people will likely want only a subset of these. A few + extra Cernlib programs, not of interest to many people, may be obtained via + the cernlib-extras metapackage. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/cernlib-core.control +++ cernlib-2005.05.09.dfsg/debian/control.d/cernlib-core.control @@ -0,0 +1,16 @@ +Package: cernlib-core +Architecture: all +Section: science +Depends: cernlib-base (= ${Source-Version}), kxterm, paw++, paw, paw-common, paw-demos +Description: Cernlib main libraries and programs + 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 the libraries and analysis tools (e.g. PAW) likely + to be wanted by most users of the Cern libraries who are not interested + specifically in high energy physics. You cannot do program development by + installing only this metapackage; development libraries and tools may + be obtained by installing the cernlib-core-dev metapackage or individual + lib*-dev packages. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/cernlib-extras.control +++ cernlib-2005.05.09.dfsg/debian/control.d/cernlib-extras.control @@ -0,0 +1,19 @@ +Package: cernlib-extras +Architecture: all +Priority: extra +Section: science +Depends: cernlib-base (= ${Source-Version}), pawserv, zftp +Description: miscellaneous Cernlib programs unlikely to be used by many + 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 a few additional Cernlib programs not included + in any other Cernlib metapackage. Very few people are likely to be + interested in them; currently they include zftp, pawserv and zserv. + Notice that the latter two programs run as daemons through inetd and may + reduce your system's security! + . + Installing this package along with the "cernlib" metapackage will supply + a complete set of all Cernlib programs and libraries included in Debian. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/geant321.control +++ cernlib-2005.05.09.dfsg/debian/control.d/geant321.control @@ -0,0 +1,13 @@ +Package: geant321 +Architecture: all +Section: science +Depends: libgeant321-2-dev, geant321-data, cernlib-base, g77 +Suggests: kxterm, geant321-doc +Description: [Physics] Particle detector description and simulation tool + Geant simulates the passage of subatomic particles through matter, for + instance, particle detectors. For maximum flexibility, Geant simulations + are performed by linking Fortran code supplied by the user with the Geant + libraries, then running the resulting executable. + . + This package includes gxint, the script used to perform this linking step. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/libkernlib1.control +++ cernlib-2005.05.09.dfsg/debian/control.d/libkernlib1.control @@ -0,0 +1,16 @@ +Package: libkernlib1 +Architecture: any +Section: libs +Depends: ${shlibs:Depends}, cernlib-base +Description: core Cernlib library of basic functions + 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. + . + The kernlib library contains a rather miscellaneous set of basic numerical, + bitwise, and system-dependent functions used by other Cern libraries and + programs. + . + Note that in order to compile and link programs against this library, you + must also install the libkernlib1-dev package. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/geant321-data.control +++ cernlib-2005.05.09.dfsg/debian/control.d/geant321-data.control @@ -0,0 +1,12 @@ +Package: geant321-data +Architecture: all +Section: science +Depends: cernlib-base +Description: [Physics] Data for Geant 3.21 detector simulator + Geant simulates the passage of subatomic particles through matter, for + instance, particle detectors. For maximum flexibility, Geant simulations + are performed by linking Fortran code supplied by the user with the Geant + libraries, then running the resulting executable. + . + This package includes data files for use by Geant. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/geant321-doc.control +++ cernlib-2005.05.09.dfsg/debian/control.d/geant321-doc.control @@ -0,0 +1,12 @@ +Package: geant321-doc +Architecture: all +Section: doc +Depends: cernlib-base +Description: [Physics] Documentation for Geant 3.21 + Geant simulates the passage of subatomic particles through matter, for + instance, particle detectors. For maximum flexibility, Geant simulations + are performed by linking Fortran code supplied by the user with the Geant + libraries, then running the resulting executable. + . + This package includes some documentation about Geant. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/pawserv.control +++ cernlib-2005.05.09.dfsg/debian/control.d/pawserv.control @@ -0,0 +1,29 @@ +Package: pawserv +Architecture: any +Priority: extra +Section: net +Depends: ${shlibs:Depends}, netbase (>= 4.08), debconf (>= 1.2.0) | debconf-2.0, netkit-inetd | xinetd +Recommends: cron +Suggests: logrotate +Conflicts: zserv, harden-servers +Replaces: zserv +Description: Cernlib's distributed PAW and file transfer servers + 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 the server daemon for remote PAW clients. PAW + is the Physics Analysis Workstation, a graphical analysis program. + Included in the same binary is zserv, the server daemon for the ZFTP protocol; + zserv is a macro-extensible file transfer program which supports the + transfer of formatted, unformatted and ZEBRA RZ files (CMZ, HBOOK, etc.). + It is similar to a standard FTP daemon, although it listens on a different + port. Both servers operate through inetd. You may run them under xinetd + instead (so it is listed as an alternative dependency to netkit-inetd), + but you will have to set up the configuration yourself. + . + Since these servers accept passwords in cleartext and do not support SSL + or other encryption methods, you should probably only install this package + within a trusted LAN. Think of it as equivalent to vanilla telnetd in terms + of security (or lack thereof). + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/libgraflib1-dev.control +++ cernlib-2005.05.09.dfsg/debian/control.d/libgraflib1-dev.control @@ -0,0 +1,15 @@ +Package: libgraflib1-dev +Architecture: any +Section: libdevel +Depends: libgraflib1 (= ${Source-Version}), libgrafx11-1-dev (= ${Source-Version}) +Description: Cernlib graphical library (development files) + 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. + . + The graflib library includes the HPLOT and DZDOC systems. HPLOT is a + graphing facility intended to produce drawings and slides of histograms + (and other data) of a quality suitable to talks and publications. DZDOC + provides a method of viewing Cernlib's ZEBRA data structures. This package + includes a static version of graflib, as well as C and FORTRAN header files. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/kxterm.control +++ cernlib-2005.05.09.dfsg/debian/control.d/kxterm.control @@ -0,0 +1,16 @@ +Package: kxterm +Architecture: any +Section: science +Depends: ${shlibs:Depends}, cernlib-base +Description: Cernlib's KUIP terminal emulator + 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. + . + KXterm is a terminal emulator which combines the best features from + the (now defunct) Apollo DM pads (like: input and transcript + pads, automatic file backup of transcript pad, string search in pads, + etc.) and the Korn shell emacs-style command line editing and command + line recall mechanism. It can support the command-line interface + of various Cernlib applications. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/libmathlib2.control +++ cernlib-2005.05.09.dfsg/debian/control.d/libmathlib2.control @@ -0,0 +1,18 @@ +Package: libmathlib2 +Architecture: any +Section: libs +Depends: ${shlibs:Depends} +Description: core Cernlib mathematical library + 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. + . + The mathlib library is a large set of mathematical routines used for purposes + such as evaluating special functions and integrals, numerically solving + algebraic and differential equations, performing matrix and vector operations, + running statistical tests, and generating random numbers in specified + distributions. + . + Note that in order to compile and link programs against this library, you + must also install the libmathlib2-dev package. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/libgraflib1.control +++ cernlib-2005.05.09.dfsg/debian/control.d/libgraflib1.control @@ -0,0 +1,17 @@ +Package: libgraflib1 +Architecture: any +Section: libs +Depends: ${shlibs:Depends} +Description: Cernlib graphical library + 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. + . + The graflib library includes the HPLOT and DZDOC systems. HPLOT is a + graphing facility intended to produce drawings and slides of histograms + (and other data) of a quality suitable to talks and publications. DZDOC + provides a method of viewing Cernlib's ZEBRA data structures. + . + Note that in order to compile and link programs against this library, + you must also install the libgraflib1-dev package. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/libpacklib1-dev.control +++ cernlib-2005.05.09.dfsg/debian/control.d/libpacklib1-dev.control @@ -0,0 +1,23 @@ +Package: libpacklib1-dev +Architecture: any +Section: libdevel +Depends: libpacklib1 (= ${Source-Version}), libkernlib1-dev (= ${Source-Version}), cfortran, libc6-dev | libc-dev +Suggests: libpacklib1-lesstif-dev +Description: core Cernlib library (development files) + 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. + . + The packlib library includes a great deal of Cernlib core functionality. + Best-known are probably the MINUIT function minimization routines, the + HBOOK histogramming routines, and KUIP (Kit for a User Interface Package). + Other subsystems include CSPACK, a set of client-server routines; FFREAD, + a format-free input processing system for FORTRAN; and ZEBRA, a data + structure management package. + . + This package contains a static version of packlib. Also included are C + and FORTRAN header files. Please note that the graphical functionality of + KUIP has been split out into the separate Debian package + libpacklib1-lesstif-dev so that this package need not depend upon the X + and Lesstif libraries. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/libgrafx11-1-dev.control +++ cernlib-2005.05.09.dfsg/debian/control.d/libgrafx11-1-dev.control @@ -0,0 +1,14 @@ +Package: libgrafx11-1-dev +Architecture: any +Section: libdevel +Depends: libgrafx11-1 (= ${Source-Version}), libpacklib1-dev (= ${Source-Version}), libx11-dev (>= 4.3.0-3) | xlibs-dev (>> 4.1.0) +Description: Cernlib library interface to X11 and PostScript (development) + 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 includes a static version of libgrafX11, also known as HIGZ + (High-level Interface to Graphics and ZEBRA), an interface to the X Window + System. In addition to basic drawing functions, HIGZ includes a PostScript + interface. Also included are C and FORTRAN header files. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/libphotos202.control +++ cernlib-2005.05.09.dfsg/debian/control.d/libphotos202.control @@ -0,0 +1,14 @@ +Package: libphotos202 +Architecture: any +Section: libs +Depends: ${shlibs:Depends}, cernlib-base, montecarlo-base +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. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/zftp.control +++ cernlib-2005.05.09.dfsg/debian/control.d/zftp.control @@ -0,0 +1,20 @@ +Package: zftp +Architecture: any +Priority: extra +Section: net +Depends: ${shlibs:Depends}, netbase (>= 4.08) +Description: Cernlib's file transfer program + 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. + . + ZFTP is a macro-extensible file transfer program which supports the + transfer of formatted, unformatted and ZEBRA RZ files (CMZ, HBOOK, etc.). + It provides a common interface on all systems and avoids the problems of + file format conversion that occur when transferring Cernlib files + between different architectures. + . + Except for the special treatment of Cernlib files and use of a different port, + zftp is very similar to an FTP client. Unless you are already familiar with + this program, it will almost certainly be useless to you. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/libherwig59-2.control +++ cernlib-2005.05.09.dfsg/debian/control.d/libherwig59-2.control @@ -0,0 +1,12 @@ +Package: libherwig59-2 +Architecture: any +Section: libs +Depends: ${shlibs:Depends}, montecarlo-base +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. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/libmathlib2-dev.control +++ cernlib-2005.05.09.dfsg/debian/control.d/libmathlib2-dev.control @@ -0,0 +1,18 @@ +Package: libmathlib2-dev +Architecture: any +Section: libdevel +Depends: refblas3-dev | libblas-3.so, lapack3-dev | liblapack-3.so, libmathlib2 (= ${Source-Version}), libkernlib1-dev (= ${Source-Version}), libpacklib1-dev (= ${Source-Version}), cfortran, libc6-dev | libc-dev, cernlib-base (>= 2005.05.09-1) +Conflicts: libmathlib1-dev, blas2-dev, lapack2-dev +Replaces: libmathlib1-dev +Description: core Cernlib mathematical library (development files) + 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. + . + The mathlib library is a large set of mathematical routines used for purposes + such as evaluating special functions and integrals, numerically solving + algebraic and differential equations, performing matrix and vector operations, + running statistical tests, and generating random numbers in specified + distributions. This package contains a static version of mathlib, as well + as C and FORTRAN header files. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/no-m68k/libisajet758-2.arch.control +++ cernlib-2005.05.09.dfsg/debian/control.d/no-m68k/libisajet758-2.arch.control @@ -0,0 +1,14 @@ +Package: libisajet758-2 +Architecture: any +Section: libs +Depends: ${shlibs:Depends}, montecarlo-base +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-2-dev package. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/no-m68k/libisajet758-2-dev.arch.control +++ cernlib-2005.05.09.dfsg/debian/control.d/no-m68k/libisajet758-2-dev.arch.control @@ -0,0 +1,16 @@ +Package: libisajet758-2-dev +Architecture: any +Section: libdevel +Depends: libisajet758-2 (= ${Source-Version}), libpdflib804-2-dev (= ${Source-Version}) +Replaces: libisajet758-dev +Conflicts: libisajet758-dev +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. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/libpacklib1.control +++ cernlib-2005.05.09.dfsg/debian/control.d/libpacklib1.control @@ -0,0 +1,26 @@ +Package: libpacklib1 +Architecture: any +Section: libs +Depends: ${shlibs:Depends} +Suggests: xterm | x-terminal-emulator +Conflicts: paw-static (<= 2005.05.09-1), paw++-static (<= 2005.05.09-1) +Description: core Cernlib library + 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. + . + The packlib library includes a great deal of Cernlib core functionality. + Best-known are probably the MINUIT function minimization routines, the + HBOOK histogramming routines, and KUIP (Kit for a User Interface Package). + Other subsystems include CSPACK, a set of client-server routines; FFREAD, + a format-free input processing system for FORTRAN; and ZEBRA, a data + structure management package. This package also includes kuesvr, + the KUIP edit server program that permits calling an editor asynchronously + from within a KUIP-based program. + . + Please note that the graphical functionality of KUIP has been split out into + the separate Debian package libpacklib1-lesstif so that this package need not + depend upon the X libraries. In order to compile and link programs + against libpacklib, you must also install the libpacklib1-dev (and + maybe also the libpacklib1-lesstif-dev) package(s). + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/libgrafx11-1.control +++ cernlib-2005.05.09.dfsg/debian/control.d/libgrafx11-1.control @@ -0,0 +1,16 @@ +Package: libgrafx11-1 +Architecture: any +Section: libs +Depends: ${shlibs:Depends} +Description: Cernlib library interface to X11 and PostScript + 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 includes libgrafX11, also known as HIGZ (High-level Interface + to Graphics and ZEBRA), an interface to the X Window System. In addition + to basic drawing functions, HIGZ includes a PostScript interface. + . + Note that in order to compile and link programs against this library, + you must also install the libgrafx11-1-dev package. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/fatmen.disabled +++ cernlib-2005.05.09.dfsg/debian/control.d/fatmen.disabled @@ -0,0 +1,17 @@ +Package: fatmen +Architecture: any +Priority: extra +Section: science +Depends: ${shlibs:Depends}, netbase (>= 4.08) +Conflicts: harden-servers +Description: Cernlib's file and tape management system + 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. + . + The FATMEN package is a distributed file and tape management system. It + provides transparent access to file catalogue information and to data with + no source code changes required when moving from one host to another. + This is independent of the location of the data or of the host operating + system. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/libphotos202-dev.control +++ cernlib-2005.05.09.dfsg/debian/control.d/libphotos202-dev.control @@ -0,0 +1,13 @@ +Package: libphotos202-dev +Architecture: any +Section: libdevel +Depends: libphotos202 (= ${Source-Version}), cfortran, libc6-dev | libc-dev +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. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/kuipc.control +++ cernlib-2005.05.09.dfsg/debian/control.d/kuipc.control @@ -0,0 +1,23 @@ +Package: kuipc +Architecture: any +Section: devel +Depends: ${shlibs:Depends}, cernlib-base +Recommends: libpacklib1-dev +Suggests: libpacklib1-lesstif-dev +Description: Cernlib's Kit for a User Interface Package (KUIP) compiler + 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. + . + KUIPC, the Kit for a User Interface Package Compiler, is a tool to simplify + the writing of a program's user interface code. It takes as + input a Command Definition File (CDF) that describes the + commands to be understood by the program, and outputs C or FORTRAN code that + makes the appropriate function calls to set up the user interface. This + code can then be compiled and linked with the rest of the program. Since + the generated code uses KUIP routines, the program must also be linked + against the Packlib library that contains them. + . + KUIPC is no longer actively developed, so aside from its use in the build + process of Cernlib, it is of mainly historical interest. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/libeurodec1-dev.control +++ cernlib-2005.05.09.dfsg/debian/control.d/libeurodec1-dev.control @@ -0,0 +1,12 @@ +Package: libeurodec1-dev +Architecture: any +Section: libdevel +Depends: libeurodec1 (= ${Source-Version}), cfortran, libc6-dev | libc-dev +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. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/libeurodec1.control +++ cernlib-2005.05.09.dfsg/debian/control.d/libeurodec1.control @@ -0,0 +1,12 @@ +Package: libeurodec1 +Architecture: any +Section: libs +Depends: ${shlibs:Depends}, cernlib-base, montecarlo-base +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. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/hepdb.disabled +++ cernlib-2005.05.09.dfsg/debian/control.d/hepdb.disabled @@ -0,0 +1,20 @@ +Package: hepdb +Architecture: any +Priority: extra +Section: science +Depends: ${shlibs:Depends} +Description: Cernlib's High Energy Physics database system + 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. + . + The HEPDB package is a database management system tuned to the specific + requirements of High Energy Physics experiments. In particular, it is well + suited to the storage and retrieval of detector geometry and calibration + information. However, it may also be applied to other experimental areas + such as book-keeping. + . + This package includes the programs hepbackup, hepmake, hepmove, hepserv, + and hepdb. The first four were originally called cdbackup, cdmake, etc. + but were renamed due to a name conflict with Debian's cdbackup package. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/libgeant321-2.control +++ cernlib-2005.05.09.dfsg/debian/control.d/libgeant321-2.control @@ -0,0 +1,15 @@ +Package: libgeant321-2 +Architecture: any +Section: libs +Depends: ${shlibs:Depends}, geant321-data +Recommends: geant321 +Description: [Physics] Library for Geant 3.21 + Geant simulates the passage of subatomic particles through matter, for + instance, particle detectors. For maximum flexibility, Geant simulations + are performed by linking Fortran code supplied by the user with the Geant + libraries, then running the resulting executable. + . + This package includes the libgeant321 library required by Geant 3.21. Note + that in order to compile and link programs against this library, you must + also install the libgeant321-2-dev package. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/libherwig59-2-dev.control +++ cernlib-2005.05.09.dfsg/debian/control.d/libherwig59-2-dev.control @@ -0,0 +1,14 @@ +Package: libherwig59-2-dev +Architecture: any +Section: libdevel +Depends: libherwig59-2 (= ${Source-Version}), libpdflib804-2-dev (= ${Source-Version}) +Replaces: libherwig59-dev +Conflicts: libherwig59-dev +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. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/libphtools2-dev.control +++ cernlib-2005.05.09.dfsg/debian/control.d/libphtools2-dev.control @@ -0,0 +1,15 @@ +Package: libphtools2-dev +Architecture: any +Section: libdevel +Depends: libphtools2 (= ${Source-Version}), libmathlib2-dev (= ${Source-Version}) +Replaces: libphtools1-dev +Conflicts: libphtools1-dev +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. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/libpacklib1-lesstif.control +++ cernlib-2005.05.09.dfsg/debian/control.d/libpacklib1-lesstif.control @@ -0,0 +1,18 @@ +Package: libpacklib1-lesstif +Architecture: any +Section: libs +Depends: ${shlibs:Depends} +Description: Cernlib graphical user interface library + 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 includes the graphical functionality of KUIP, the Cernlib + Kit for a User Interface Package. This library has been split off + from packlib in Debian so that the packlib packages need not depend upon + the X and Lesstif libraries. The package was formerly named libkuipx11-1. + The text-based functionality of KUIP can be found in the libpacklib1 package. + . + Note that in order to compile and link programs against this library, you + must also install the libpacklib1-lesstif-dev package. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/libcojets2.control +++ cernlib-2005.05.09.dfsg/debian/control.d/libcojets2.control @@ -0,0 +1,16 @@ +Package: libcojets2 +Architecture: any +Section: libs +Depends: ${shlibs:Depends}, montecarlo-base +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. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/libcojets2-dev.control +++ cernlib-2005.05.09.dfsg/debian/control.d/libcojets2-dev.control @@ -0,0 +1,18 @@ +Package: libcojets2-dev +Architecture: any +Section: libdevel +Depends: libcojets2 (= ${Source-Version}), libmathlib2-dev (= ${Source-Version}) +Replaces: libcojets1-dev +Conflicts: libcojets1-dev +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. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/montecarlo-base.control +++ cernlib-2005.05.09.dfsg/debian/control.d/montecarlo-base.control @@ -0,0 +1,13 @@ +Package: montecarlo-base +Architecture: all +Section: science +Depends: cernlib-base +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. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/dzedit.control +++ cernlib-2005.05.09.dfsg/debian/control.d/dzedit.control @@ -0,0 +1,16 @@ +Package: dzedit +Architecture: any +Section: devel +Depends: ${shlibs:Depends} +Recommends: libpacklib1-dev +Description: Cernlib's ZEBRA documentation editor + 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. + . + DZedit is an interactive interface to the DZDOC (ZEBRA documentation) system + developed at CERN. ZEBRA, part of the Packlib library, permits a developer to + create complex data structures in the FORTRAN 77 language; the DZDOC system + allows the developer to generate and maintain documentation of ZEBRA data + structures. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/libgeant321-2-dev.control +++ cernlib-2005.05.09.dfsg/debian/control.d/libgeant321-2-dev.control @@ -0,0 +1,16 @@ +Package: libgeant321-2-dev +Architecture: any +Section: libdevel +Depends: libgeant321-2 (= ${Source-Version}), libpawlib2-lesstif-dev (= ${Source-Version}) +Recommends: geant321 +Conflicts: libgeant1-dev +Replaces: libgeant1-dev +Description: [Physics] Library for Geant 3.21 (development files) + Geant simulates the passage of subatomic particles through matter, for + instance, particle detectors. For maximum flexibility, Geant simulations + are performed by linking Fortran code supplied by the user with the Geant + libraries, then running the resulting executable. + . + This package includes a static version of the libgeant321 library required + by Geant. C and FORTRAN header files are also included. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/libpdflib804-2.control +++ cernlib-2005.05.09.dfsg/debian/control.d/libpdflib804-2.control @@ -0,0 +1,14 @@ +Package: libpdflib804-2 +Architecture: any +Section: libs +Depends: ${shlibs:Depends}, montecarlo-base +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. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/libpdflib804-2-dev.control +++ cernlib-2005.05.09.dfsg/debian/control.d/libpdflib804-2-dev.control @@ -0,0 +1,16 @@ +Package: libpdflib804-2-dev +Architecture: any +Section: libdevel +Depends: libpdflib804-2 (= ${Source-Version}), libmathlib2-dev (= ${Source-Version}) +Replaces: libpdflib804-dev +Conflicts: libpdflib804-dev +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. + --- cernlib-2005.05.09.dfsg.orig/debian/control.d/libpacklib1-lesstif-dev.control +++ cernlib-2005.05.09.dfsg/debian/control.d/libpacklib1-lesstif-dev.control @@ -0,0 +1,20 @@ +Package: libpacklib1-lesstif-dev +Architecture: any +Section: libdevel +Depends: libpacklib1-lesstif (= ${Source-Version}), libgrafx11-1-dev (= ${Source-Version}), lesstif2-dev, libxt-dev (>= 4.3.0-3) | xlibs-dev (>> 4.1.0), cernlib-base (>= 2005.05.09-1) +Conflicts: libkuipx11-1-dev +Description: Cernlib graphical user interface library (development files) + 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 includes the graphical functionality of KUIP, the Cernlib + Kit for a User Interface Package. This library has been split off + from packlib in Debian so that the packlib packages need not depend upon + the X and Lesstif libraries. The package was formerly named libkuipx11-1-dev. + The text-based functionality of KUIP can be found in the libpacklib1-dev + package. + . + This package is the static version of the libpacklib-lesstif library, to be + used for development. + --- cernlib-2005.05.09.dfsg.orig/debian/README.source +++ cernlib-2005.05.09.dfsg/debian/README.source @@ -0,0 +1,54 @@ +Options supported by Cernlib's 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 Monte Carlo tools. + keepbuild: Save the build tree after it's no longer useful, e.g. for debugging + reasons. By default it is deleted in order to save disk space. + ifort: Compile with Intel's icc and ifort (formerly ifc) compilers, not + gcc and g77. 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. This option has + not been fully tested. + +Targets supported by Cernlib's debian/rules: + + help: Output this text (found in debian/README.source). + get-orig-source: Download upstream sourcecode in tar.gz form to a subdir + "upstream" of the current dir. Requires wget. + remove-deadpool: Delete files with licensing issues from upstream tarballs. + orig.tar.gz: Build a new orig.tar.gz file in the dir ".." Don't do this + if you already have one; the tarball md5sum will change! + This target automatically executes the previous one first. + 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, including such + things as man pages, Autoconf macros, X11 application defaults, + a master Makefile, and a rewritten "cernlib" dependency script. + + 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.) + + po: Translations of the Debconf templates for the pawserv package. + --- cernlib-2005.05.09.dfsg.orig/debian/pawserv.templates +++ cernlib-2005.05.09.dfsg/debian/pawserv.templates @@ -0,0 +1,11 @@ +Template: pawserv/which_servers +Type: select +# Note to translators: only the English word "Both" below should be translated +_Choices: Pawserv, Zserv, Both +Default: Pawserv +_Description: Servers to be run from inetd + This package includes both the pawserv daemon (permitting remote hosts to + read local files while running PAW/Paw++) and the zserv daemon (allowing + remote hosts to log in using CERN's ZFTP protocol). These servers are run + from inetd; you may enable either or both of them. Unless you have very + specialized requirements, most likely you only want to enable pawserv. --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/paw.preinst +++ cernlib-2005.05.09.dfsg/debian/debhelper/paw.preinst @@ -0,0 +1,42 @@ +#! /bin/sh +# preinst script for paw +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) + # Remove any existing alternative for pawX11 + if [ -L /usr/bin/pawX11 ] ; then + update-alternatives --remove-all pawX11 + fi + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/paw.links +++ cernlib-2005.05.09.dfsg/debian/debhelper/paw.links @@ -0,0 +1 @@ +usr/share/man/man1/paw.1.gz usr/share/man/man1/pawX11.1.gz --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/paw++.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/paw++.install @@ -0,0 +1 @@ +debian/tmp/usr/bin/paw++ --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libpawlib2-lesstif-dev.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libpawlib2-lesstif-dev.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/include/paw --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/paw-common.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/paw-common.install @@ -0,0 +1,6 @@ +debian/tmp/usr/bin/paw +debian/tmp/etc/X11/app-defaults/Paw++ +debian/tmp/etc/X11/app-defaults/KxPaw++ +debian/tmp/usr/share/man/man1/paw.1 +debian/tmp/usr/share/pixmaps/paw48x48.xpm +debian/tmp/usr/share/pixmaps/paw32x32.xpm --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/paw++.menu +++ cernlib-2005.05.09.dfsg/debian/debhelper/paw++.menu @@ -0,0 +1,4 @@ +?package(paw++):needs="x11" section="Apps/Science" \ +title="Paw++" command="/usr/bin/paw++" \ +icon="/usr/share/pixmaps/paw32x32.xpm" \ +longtitle="Physics Analysis Workstation with Lesstif GUI" --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/paw.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/paw.install @@ -0,0 +1 @@ +debian/tmp/usr/bin/pawX11 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/pawserv.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/pawserv.dirs @@ -0,0 +1,2 @@ +usr/sbin +var/log/pawserv --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/paw.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/paw.dirs @@ -0,0 +1,3 @@ +usr/bin +usr/share/man/man1 +usr/share/lintian/overrides --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/paw++.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/paw++.dirs @@ -0,0 +1,3 @@ +usr/bin +usr/share/man/man1 +usr/share/lintian/overrides --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/paw.README.debian +++ cernlib-2005.05.09.dfsg/debian/debhelper/paw.README.debian @@ -0,0 +1,56 @@ +Notes on paw +------------ + +1) Graphics window corruption + +If you experience corruption of the graphics window when other windows are +moved over top of it, turn on the BackingStore option of the X server. +In the "Screen" section of your /etc/X11/XF86Config-4 or /etc/X11/xorg.conf +file (whichever one exists), you should have something like: + +Section "Screen" + . + . + . + Option "BackingStore" + . + . + . +EndSection + +Be aware that making this change will cause Debconf to refuse to update your X +settings; see file:///usr/share/doc/x11-common/FAQ.xhtml#forceoverwriteconf +for more information. + +2) Remote data files + +PAW can read files remotely from computers running the distributed PAW +(pawserv) server, which is included in the pawserv Debian package. This is +done from within PAW using 'rlogin' and 'rshell' commands; see the PAW +User's Guide for details. Please note that these commands transmit passwords +in clear text and should be used only within a secured LAN. + +3) Path issues + +If you compile a FORTRAN script within PAW, the path to the file cannot +be excessively long (more than 256 characters). + +4) Filename case issues + +The default behavior in Debian has been set so that PAW is case-sensitive +in its treatment of filenames. If you have any old Paw scripts that do not +treat filenames in a case-sensitive way, you may need to add the line + + filecase convert + +to the beginning of them. + +5) 64-bit issues + +This package is now believed to be more or less functional on AMD64 machines. +On other 64-bit architectures (alpha, ia64), it is not very usable. On these +three architectures, PAW is linked statically against the CERN libraries, as +they cannot properly handle pointer differences that do not fit in a 32-bit +variable. + +-- Kevin McCarty , Thu, 08 Dec 2005 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/paw++.links +++ cernlib-2005.05.09.dfsg/debian/debhelper/paw++.links @@ -0,0 +1 @@ +usr/share/man/man1/paw.1.gz usr/share/man/man1/paw++.1.gz --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/cernlib-base.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/cernlib-base.dirs @@ -0,0 +1,2 @@ +usr/bin +usr/share/aclocal --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/paw++.README.debian +++ cernlib-2005.05.09.dfsg/debian/debhelper/paw++.README.debian @@ -0,0 +1,56 @@ +Notes on paw++ +-------------- + +1) Graphics window corruption + +If you experience corruption of the graphics window when other windows are +moved over top of it, turn on the BackingStore option of the X server. +In the "Screen" section of your /etc/X11/XF86Config-4 or /etc/X11/xorg.conf +file (whichever one exists), you should have something like: + +Section "Screen" + . + . + . + Option "BackingStore" + . + . + . +EndSection + +Be aware that making this change will cause Debconf to refuse to update your X +settings; see file:///usr/share/doc/x11-common/FAQ.xhtml#forceoverwriteconf +for more information. + +2) Remote data files + +Paw++ can read files remotely from computers running the distributed PAW +(pawserv) server, which is included in the pawserv Debian package. This is +done from within Paw++ using 'rlogin' and 'rshell' commands; see the PAW +User's Guide for details. Please note that these commands transmit passwords +in clear text and should be used only within a secured LAN. + +3) Path issues + +If you compile a FORTRAN script within Paw++, the path to the file cannot +be excessively long (more than 256 characters). + +4) Filename case issues + +The default behavior in Debian has been set so that Paw++ is case-sensitive +in its treatment of filenames. If you have any old Paw scripts that do not +treat filenames in a case-sensitive way, you may need to add the line + + filecase convert + +to the beginning of them. + +5) 64-bit issues + +This package is now believed to be more or less functional on AMD64 machines. +On other 64-bit architectures (alpha, ia64), it is not very usable. On these +three architectures, PAW is linked statically against the CERN libraries, as +they cannot properly handle pointer differences that do not fit in a 32-bit +variable. + +-- Kevin McCarty , Thu, 08 Dec 2005 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/dzedit.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/dzedit.dirs @@ -0,0 +1 @@ +usr/bin --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/paw-demos.README.debian +++ cernlib-2005.05.09.dfsg/debian/debhelper/paw-demos.README.debian @@ -0,0 +1,7 @@ +To see the demonstrations, run the paw-demos script, located in /usr/bin. +It will copy everything from /usr/share/paw-demos/ to a directory "paw-demos" +in your $HOME and execute them from there. (This is necessary as some of the +demos require a writable directory.) See the man page paw-demos(1) if you +need to adjust this behavior. + +--Kevin McCarty , Mon, 29 Nov 2004 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/fatmen.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/fatmen.dirs @@ -0,0 +1 @@ +usr/bin --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libpawlib2-dev.README.debian +++ cernlib-2005.05.09.dfsg/debian/debhelper/libpawlib2-dev.README.debian @@ -0,0 +1,98 @@ +Notes on libpawlib2-dev +----------------------- + +1) This package does not include the Lesstif-dependent parts of Pawlib. +Those can be found in the package libpawlib2-lesstif-dev. + + +2) Note that much of this library is functional on 64-bit machines only when +statically linked. Please see the file README.64-bit for more information. + + +3) On 32-bit architectures, please read this note carefully if you link against +pawlib dynamically so that the COMIS interpreter works correctly in your +application. This is especially applicable if your application dies with this +error message: + + CSALLO: heap below bss?! + +If you link statically, this note does not concern you. The default output of +the "cernlib" script includes the -static compiler flag, so a program linked +via a command like one of these: + + g77 myprogram.F -o myprogram `cernlib pawlib` + gcc file1.o file2.o file3.o -o myprogram `cernlib pawlib` + +is statically linked to pawlib. + +If you have doubts, run ldd on your executable; a statically linked program +should NOT have the output of ldd include a line similar to this: + + libpawlib.so.2 => /usr/lib/libpawlib.so.2 (0x0f7eb000) + +Executive summary +----------------- + +a) If your executable's main source code file is written in FORTRAN, it should + + #include + +immediately after the " PROGRAM programname" line. + +b) If your executable's main source code file is written in C or C++, it should + + #include + +at the top of the source code. + +It is only necessary for one file of your source code to include mdpool.inc or +mdpool.h, and may in fact cause linking problems if more than one file does so. +Do not include mdpool.inc or mdpool.h in a header file unless that file is +itself only #included by one source file. + +Technical details +----------------- + +The authors of COMIS (the PAW interpreter) used two memory allocation areas; +one is the integer array IQ (size: 50006 integers) in the COMMON block MDPOOL, +and the other is dynamically allocated by malloc() in the CSALLO function. The +difference between the malloc()ed pointer address and the address of the common +block is returned to FORTRAN code, so it can access the new memory by using the +appropriate array subscript in MDPOOL/IQ. + +The idea is similar to that expressed in the following C code: + +#include + +typedef struct { int iq[50006]; } mdpool_def; +mdpool_def mdpool; + +int main() +{ + unsigned long iqpntr = (unsigned long)mdpool.iq; + unsigned long lpntr = (unsigned long)malloc(sizeof(int)); + int index = (lpntr - iqpntr) / sizeof(int); + + mdpool.iq[index] = 5; + return mdpool.iq[index]; +} + +The problem is that the FORTRAN code in pawlib expects the address difference +(the variable "index" in the above example) to be positive. This is fine when +an executable is statically linked to pawlib, since then the malloc()ed space +in the heap is always at a larger address than MDPOOL in the binary's bss +segment. But on some (most?) architectures, shared libraries, including MDPOOL +in libpawlib.so, are mapped into memory beyond the program stack, yielding a +negative address offset. + +After a lot of trying, I concluded that tracking down all the places in the +FORTRAN code that expected a positive pointer offset from MDPOOL would be very +difficult and error-prone, so the solution is to attack the problem from the +other end. That is, declare MDPOOL/IQ in the dynamically linked executable. +Then MDPOOL will always be present in these executables' bss segments, whose +address is always less than that of space allocated on the heap. This is +accomplished by #include'ing or in the +source code for the executable. See, e.g., the file +/usr/share/doc/libpaw1-dev/examples/pamain.c . + +-- Kevin McCarty , Mon, 29 Nov 2004 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/geant321-data.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/geant321-data.dirs @@ -0,0 +1 @@ +usr/share/geant321-data --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/paw.menu +++ cernlib-2005.05.09.dfsg/debian/debhelper/paw.menu @@ -0,0 +1,6 @@ +?package(paw):needs="text" \ +section="Apps/Science" \ +title="PAW" \ +longtitle="The Physics Analysis Workstation" \ +icon="/usr/share/pixmaps/paw32x32.xpm" \ +command="sh -c '/usr/bin/paw -d X11 -w `[ x${DISPLAY} = x ] ; echo $?`'" --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/geant321.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/geant321.dirs @@ -0,0 +1,2 @@ +usr/bin +etc/X11/app-defaults --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libcojets2-dev.docs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libcojets2-dev.docs @@ -0,0 +1 @@ +debian/tmp/usr/share/doc/montecarlo-doc/cojets/cojets.txt --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/paw++.preinst +++ cernlib-2005.05.09.dfsg/debian/debhelper/paw++.preinst @@ -0,0 +1,42 @@ +#! /bin/sh +# preinst script for paw++ +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) + # Remove any existing alternative for paw++ + if [ -L /usr/bin/paw++ ] ; then + update-alternatives --remove-all paw++ + fi + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/hepdb.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/hepdb.dirs @@ -0,0 +1 @@ +usr/bin --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/kuipc.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/kuipc.dirs @@ -0,0 +1 @@ +usr/bin --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/paw-static.preinst +++ cernlib-2005.05.09.dfsg/debian/debhelper/paw-static.preinst @@ -0,0 +1,42 @@ +#! /bin/sh +# preinst script for paw-static +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) + # Remove any existing alternative for pawX11 + if [ -L /usr/bin/pawX11 ] ; then + update-alternatives --remove-all pawX11 + fi + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/kxterm.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/kxterm.dirs @@ -0,0 +1,3 @@ +usr/bin +usr/share/pixmaps +etc/X11/app-defaults --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/paw++-static.preinst +++ cernlib-2005.05.09.dfsg/debian/debhelper/paw++-static.preinst @@ -0,0 +1,42 @@ +#! /bin/sh +# preinst script for paw++-static +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) + # Remove any existing alternative for paw++ + if [ -L /usr/bin/paw++ ] ; then + update-alternatives --remove-all paw++ + fi + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libcojets2-dev.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libcojets2-dev.dirs @@ -0,0 +1 @@ +usr/lib --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libpawlib2-dev.docs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libpawlib2-dev.docs @@ -0,0 +1 @@ +debian/README.64-bit --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libcojets2.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libcojets2.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/share/montecarlo-data --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libpacklib1-dev.docs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libpacklib1-dev.docs @@ -0,0 +1 @@ +debian/README.64-bit --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libeurodec1-dev.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libeurodec1-dev.dirs @@ -0,0 +1 @@ +usr/lib --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/cernlib-base.README.debian +++ cernlib-2005.05.09.dfsg/debian/debhelper/cernlib-base.README.debian @@ -0,0 +1,172 @@ +In order to package the CERN libraries in an acceptable way, it was necessary +to make a large number of changes to the installation. Most of these changes +should be transparent to the user, but they are nevertheless noted here. + +If you are compiling code and linking it against CERN libraries on a 64-bit +platform, please see also the file README.64-bit in this directory. If you +are on an AMD64 platform, see also the file README.amd64 . + +CONTENTS + +1) Package layout +2) Using shared libraries +3) Meeting the Filesystem Hierarchy Standard +4) Mixing Debian and CERN versions of Cernlib +5) Removal of non-free code + + +1) Package layout + +To install parts of Cernlib, you may use one or more of these metapackages: + +cernlib-core - Cernlib main programs and libraries +cernlib-core-dev - Cernlib development headers, tools and static libraries +cernlib-montecarlo - Cernlib Monte Carlo libraries (both shared and static) +cernlib - All of the above plus Geant 3.21 +cernlib-extras - A few extra programs not of interest to most people + +or for finer-grained installation, see the list below of Cernlib systems and +the corresponding Debian packages in which they are included. + +SYSTEM or program Debian Package +----------------- -------------- +COMIS libpawlib2 +CSPACK libpacklib1 + |_ pawserv, zserv pawserv + \_ zftp zftp +DZDOC libgraflib1 + \_ dzeX11, dzedit dzedit +EPIO libpacklib1 +FATMEN libpacklib1 + \_ fatmen, fatsrv, ... [Not currently packaged] +FFREAD libpacklib1 +GEANT libgeant321-2, geant321, geant321-data, geant321-doc +HBOOK libpacklib1 +HEPDB libpacklib1 + \_ hepdb, cdbackup, ...[Not currently packaged] +HIGZ libgrafx11-1 +HPLOT libgraflib1 +KAPACK libpacklib1 +KERNLIB libkernlib1 +KUIP libpacklib1, libpacklib1-lesstif [*] + |_ kuesvr libpacklib1 + |_ kuipc kuipc + \_ kxterm kxterm +MATHLIB libmathlib2 +MINUIT libpacklib1 + / libcojets2, libeurodec1, libherwig59-2, +Monte Carlo | libisajet758-2, libpdflib804-2, + \ libphotos202, libphtools2 +(N)PATCHY [Not currently packaged - won't even compile.] +PAW libpawlib2, libpawlib2-lesstif [**] + \_ PAW, Paw++ paw, paw++, paw-common, paw-demos +SIGMA libpawlib2 +ZBOOK libpacklib1 +ZEBRA libpacklib1 + +[*] libpacklib1-lesstif contains the library libpacklib-lesstif, which is the +graphical interface component of packlib's KUIP subsystem. This has been split +out into a separate library for Debian so that the packlib packages need not +depend on X and Lesstif libraries. + +[**] libpawlib2-lesstif contains portions of Pawlib that depend upon the +Lesstif library. The remainder of Pawlib is found in libpawlib2, whose GUI +depends only on the basic X11 libraries. + +Static libraries and header files for development are available from the +Cernlib development packages: For each lib* package there exists a +corresponding lib*-dev package, e.g., libpacklib1-dev. You will need to +install the appropriate development packages in order to compile programs +that link against Cernlib libraries. + +See also the README.Debian files for specific packages. + + +2) Using shared libraries + +The default installation of Cernlib creates only static libraries on Linux, +resulting in unnecessary code bloat and redundancy. The Debian packages of +Cernlib have been altered to use shared libraries. In some cases this may +cause unexpected compilation failure of user programs linking against them, +since the linker is more strict about what it will accept in DLLs than in +static code. Please file a bug report on the appropriate library package in +any such case. + +Since the Cernlib libraries were not written with the intent of having them be +shared, some of them may have bugs when linked against dynamically, especially +on 64-bit architectures. In particular, see the README.Debian file for the +libpawlib2-dev package. So when linking your own programs against CERN +libraries, you may want to use the -static compiler flag. (The 'cernlib' +script will currently do this for you automatically unless you give cernlib the +-dy or -safe flag.) + +Because of the problems with making the CERN libraries shared on 64-bit +platforms, the paw and paw++ packages available on those platforms have been +statically linked against CERN libraries. + + +3) Meeting the Filesystem Hierarchy Standard + +The upstream authors of Cernlib have the CERN libraries and programs install +into a particular base directory $CERN_ROOT, usually /cern/ (where + is either a year or one of {old,pro,dev}). Below that are the +subdirectories bin, lib, and shlib (among others). For the Debian packaging, +in order to comply with Debian policy and the FHS, everything has been moved. +(The FHS specification may be found in the debian-policy package if you are +interested.) + +The programs in $CERN_ROOT/bin have been placed into /usr/bin and /usr/sbin; +static libraries in $CERN_ROOT/lib and shared libraries (which upstream does +not generate) have been put into /usr/lib; data files in $CERN_ROOT/lib have +been moved to /usr/share/; header files have been moved to +/usr/include or a subdirectory thereof; documentation has been moved to +/usr/share/doc/. Cernlib programs have been altered for Debian to +accommodate these changes, when necessary. + +Some third-party programs that use Cernlib may rely on the environment +variables $CERN, $CERN_LEVEL, etc. For compatibility with the file layout in +Debian packages, you may set these (in .bashrc or .tcshrc, for instance) to +have the following values: + + bash, sh, zsh csh, tcsh + ------------- --------- + export CERN=/usr setenv CERN /usr + export CERN_LEVEL=. setenv CERN_LEVEL . + export CERN_ROOT=/usr setenv CERN_ROOT /usr + + +4) Mixing Debian and CERN versions of Cernlib + +You can still use Debian's cernlib script (see the man page for cernlib(1)) +to link libraries from an upstream version of Cernlib. Assuming that you +have a non-Debian Cernlib installation in /opt/cern/2001 for instance, you +would first define $CERN appropriately: + export CERN=/opt/cern +then call the cernlib script with the appropriate version number: + g77 -o myprogram myprogram.F `cernlib -v 2001 library1 library2` +I have not tested this, so file a bug if there are problems. + +You should be aware that the version of the kuesvr "edit server" binary +provided by Debian has command-line flags that are incompatible with those +of the version provided by CERN. It was necessary to introduce this +incompatibility for security reasons. For this reason, and in conformance +with Debian Policy, Debian's kuesvr is installed in /usr/lib/libpacklib1/, +outside of $PATH, where only Debian's version of libpacklib will find it. +If you have the libpacklib1 package installed, see "man 1 kuesvr" for more +information. + + +5) Removal of non-free code + +Unfortunately not all of Cernlib is under the same license. Although CERN has +put Cernlib under the GPL, some pieces of source code still state that they are +licensed by other entities. Much non-free code, code with ambiguous licensing, +and GPL-incompatible code has been replaced or removed from the upstream +source in order to permit Cernlib packages to be in the main Debian archive. +The copyright file in this directory and the README.Debian files for individual +packages (particularly, the montecarlo-base package) are more specific. A +complete list of removed files may be found in the file deadpool.txt in this +directory. + +-- Kevin McCarty , Thu, 08 Dec 2005 + --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libeurodec1.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libeurodec1.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/share/montecarlo-data --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/cernlib-base.docs +++ cernlib-2005.05.09.dfsg/debian/debhelper/cernlib-base.docs @@ -0,0 +1,3 @@ +debian/deadpool.txt +debian/README.64-bit +debian/README.amd64 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libgeant321-2-dev.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libgeant321-2-dev.dirs @@ -0,0 +1,3 @@ +usr/lib +usr/include +usr/include/cfortran --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libgeant321-2.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libgeant321-2.dirs @@ -0,0 +1 @@ +usr/lib --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libgraflib1-dev.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libgraflib1-dev.dirs @@ -0,0 +1,3 @@ +usr/lib +usr/include +usr/include/cfortran --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libisajet758-2-dev.doc-base +++ cernlib-2005.05.09.dfsg/debian/debhelper/libisajet758-2-dev.doc-base @@ -0,0 +1,10 @@ +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: Apps/Science + +Format: postscript +Files: /usr/share/doc/libisajet758-2-dev/isajet.ps.gz --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libisajet758-2.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/libisajet758-2.install @@ -0,0 +1,3 @@ +debian/tmp/usr/lib/libisajet758.so.2.2005 +debian/tmp/usr/lib/libisajet758.so.2 +debian/tmp/usr/share/isajet/isajet.dat --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libgraflib1.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libgraflib1.dirs @@ -0,0 +1 @@ +usr/lib --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libgrafx11-1-dev.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libgrafx11-1-dev.dirs @@ -0,0 +1,3 @@ +usr/lib +usr/include +usr/include/cfortran --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libgrafx11-1.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libgrafx11-1.dirs @@ -0,0 +1 @@ +usr/lib --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libherwig59-2-dev.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libherwig59-2-dev.dirs @@ -0,0 +1 @@ +usr/lib --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libmathlib2.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/libmathlib2.install @@ -0,0 +1,2 @@ +debian/tmp/usr/lib/libmathlib.so.2.2005 +debian/tmp/usr/lib/libmathlib.so.2 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libherwig59-2.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libherwig59-2.dirs @@ -0,0 +1 @@ +usr/lib --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libisajet758-2-dev.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libisajet758-2-dev.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/include --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libpawlib2.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/libpawlib2.install @@ -0,0 +1,2 @@ +debian/tmp/usr/lib/libpawlib.so.2.2005 +debian/tmp/usr/lib/libpawlib.so.2 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libpdflib804-2-dev.doc-base +++ cernlib-2005.05.09.dfsg/debian/debhelper/libpdflib804-2-dev.doc-base @@ -0,0 +1,10 @@ +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: Apps/Science + +Format: text +Files: /usr/share/doc/libpdflib804-2-dev/pdfdoc.txt.gz --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libpdflib804-2.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/libpdflib804-2.install @@ -0,0 +1,2 @@ +debian/tmp/usr/lib/libpdflib804.so.2.2005 +debian/tmp/usr/lib/libpdflib804.so.2 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libisajet758-2.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libisajet758-2.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/share/montecarlo-data --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libkernlib1-dev.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libkernlib1-dev.dirs @@ -0,0 +1,3 @@ +usr/lib +usr/include +usr/include/cfortran --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libphtools2.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/libphtools2.install @@ -0,0 +1,2 @@ +debian/tmp/usr/lib/libphtools.so.2.2005 +debian/tmp/usr/lib/libphtools.so.2 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libkernlib1.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libkernlib1.dirs @@ -0,0 +1 @@ +usr/lib --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libmathlib2-dev.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libmathlib2-dev.dirs @@ -0,0 +1,3 @@ +usr/lib +usr/include +usr/include/cfortran --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libmathlib2.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libmathlib2.dirs @@ -0,0 +1 @@ +usr/lib --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libpacklib1-dev.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libpacklib1-dev.dirs @@ -0,0 +1,3 @@ +usr/lib +usr/include +usr/include/cfortran --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libpacklib1.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libpacklib1.dirs @@ -0,0 +1,4 @@ +usr/lib +usr/lib/libpacklib1 +usr/bin +usr/share/man/man1 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libpacklib1-lesstif-dev.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libpacklib1-lesstif-dev.dirs @@ -0,0 +1 @@ +usr/lib --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libpacklib1-lesstif.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libpacklib1-lesstif.dirs @@ -0,0 +1 @@ +usr/lib --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libpawlib2-dev.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libpawlib2-dev.dirs @@ -0,0 +1,3 @@ +usr/lib +usr/include +usr/include/cfortran --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/cernlib-base.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/cernlib-base.install @@ -0,0 +1,3 @@ +debian/tmp/usr/bin/cernlib +debian/tmp/usr/share/man/man1/cernlib.1 +debian/tmp/usr/share/aclocal/cernlib.m4 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/dzedit.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/dzedit.install @@ -0,0 +1,4 @@ +debian/tmp/usr/bin/dzeX11 +debian/tmp/usr/bin/dzedit +debian/tmp/usr/share/man/man1/dzedit.1 +debian/tmp/usr/share/man/man1/dzeX11.1 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/fatmen.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/fatmen.install @@ -0,0 +1,5 @@ +debian/tmp/usr/bin/fatback +debian/tmp/usr/bin/fatmen +debian/tmp/usr/bin/fatnew +debian/tmp/usr/bin/fatsend +debian/tmp/usr/bin/fatsrv --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/geant321-data.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/geant321-data.install @@ -0,0 +1 @@ +debian/tmp/usr/share/geant321-data/xsneut95.dat --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/geant321.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/geant321.install @@ -0,0 +1,6 @@ +debian/tmp/usr/bin/gxint +debian/tmp/usr/share/geant321/gxint321.f +debian/tmp/usr/share/geant321/gxint.f +debian/tmp/etc/X11/app-defaults/Geant++ +debian/tmp/etc/X11/app-defaults/KxGeant++ +debian/tmp/usr/share/man/man1/gxint.1 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/hepdb.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/hepdb.install @@ -0,0 +1,5 @@ +debian/tmp/usr/bin/hepbackup +debian/tmp/usr/bin/hepdb +debian/tmp/usr/bin/hepmake +debian/tmp/usr/bin/hepmove +debian/tmp/usr/bin/hepserv --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/kuipc.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/kuipc.install @@ -0,0 +1,2 @@ +debian/tmp/usr/bin/kuipc +debian/tmp/usr/share/man/man1/kuipc.1 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/kxterm.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/kxterm.install @@ -0,0 +1,5 @@ +debian/tmp/usr/bin/kxterm +debian/tmp/usr/share/pixmaps/kxterm48x48.xpm +debian/tmp/usr/share/pixmaps/kxterm32x32.xpm +debian/tmp/usr/share/man/man1/kxterm.1 +debian/tmp/etc/X11/app-defaults/KXterm --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libpawlib2.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libpawlib2.dirs @@ -0,0 +1 @@ +usr/lib --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libpawlib2-lesstif.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libpawlib2-lesstif.dirs @@ -0,0 +1 @@ +usr/lib --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libeurodec1-dev.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/libeurodec1-dev.install @@ -0,0 +1,3 @@ +debian/tmp/usr/lib/libeurodec.a +debian/tmp/usr/lib/libeurodec.so +debian/tmp/usr/include/eurodec/ --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libeurodec1.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/libeurodec1.install @@ -0,0 +1,3 @@ +debian/tmp/usr/lib/libeurodec.so.1.2005 +debian/tmp/usr/lib/libeurodec.so.1 +debian/tmp/usr/share/eurodec/eurodec.dat --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libgeant321-2-dev.links +++ cernlib-2005.05.09.dfsg/debian/debhelper/libgeant321-2-dev.links @@ -0,0 +1 @@ +usr/include/geant321.h usr/include/cfortran/geant321.h --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libpdflib804-2.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libpdflib804-2.dirs @@ -0,0 +1 @@ +usr/lib --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libgraflib1-dev.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/libgraflib1-dev.install @@ -0,0 +1,6 @@ +debian/tmp/usr/lib/libgraflib.a +debian/tmp/usr/lib/libgraflib.so +debian/tmp/usr/include/graflib.h +debian/tmp/usr/include/hplot.h +debian/tmp/usr/include/dzdoc/ +debian/tmp/usr/include/hplot/ --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libgraflib1.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/libgraflib1.install @@ -0,0 +1,2 @@ +debian/tmp/usr/lib/libgraflib.so.1.2005 +debian/tmp/usr/lib/libgraflib.so.1 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libgrafx11-1-dev.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/libgrafx11-1-dev.install @@ -0,0 +1,5 @@ +debian/tmp/usr/lib/libgrafX11.a +debian/tmp/usr/lib/libgrafX11.so +debian/tmp/usr/include/higz.h +debian/tmp/usr/include/higz.car +debian/tmp/usr/include/higz/ --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libgrafx11-1.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/libgrafx11-1.install @@ -0,0 +1,2 @@ +debian/tmp/usr/lib/libgrafX11.so.1.2005 +debian/tmp/usr/lib/libgrafX11.so.1 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libherwig59-2.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/libherwig59-2.install @@ -0,0 +1,2 @@ +debian/tmp/usr/lib/libherwig59.so.2.2005 +debian/tmp/usr/lib/libherwig59.so.2 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libisajet758-2-dev.links +++ cernlib-2005.05.09.dfsg/debian/debhelper/libisajet758-2-dev.links @@ -0,0 +1 @@ +usr/include/isajet usr/include/jetset74 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libpdflib804-2-dev.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libpdflib804-2-dev.dirs @@ -0,0 +1 @@ +usr/lib --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libphtools2.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libphtools2.dirs @@ -0,0 +1 @@ +usr/lib --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libkernlib1-dev.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/libkernlib1-dev.install @@ -0,0 +1,6 @@ +debian/tmp/usr/lib/libkernlib.a +debian/tmp/usr/lib/libkernlib.so +debian/tmp/usr/include/kernlib.h +debian/tmp/usr/include/kernbit/ +debian/tmp/usr/include/kerngen/ +debian/tmp/usr/include/kernnum/ --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libkernlib1.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/libkernlib1.install @@ -0,0 +1,2 @@ +debian/tmp/usr/lib/libkernlib.so.1.2005 +debian/tmp/usr/lib/libkernlib.so.1 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libpacklib1-lesstif.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/libpacklib1-lesstif.install @@ -0,0 +1,2 @@ +debian/tmp/usr/lib/libpacklib-lesstif.so.1.2005 +debian/tmp/usr/lib/libpacklib-lesstif.so.1 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/paw-common.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/paw-common.dirs @@ -0,0 +1,3 @@ +usr/bin +usr/share/pixmaps +etc/X11/app-defaults --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libmathlib2-dev.links +++ cernlib-2005.05.09.dfsg/debian/debhelper/libmathlib2-dev.links @@ -0,0 +1 @@ +usr/include/gen.h usr/include/cfortran/gen.h --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libpawlib2-dev.links +++ cernlib-2005.05.09.dfsg/debian/debhelper/libpawlib2-dev.links @@ -0,0 +1,2 @@ +usr/include/comis.h usr/include/cfortran/comis.h +usr/include/paw.h usr/include/cfortran/paw.h --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libpacklib1-dev.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/libpacklib1-dev.install @@ -0,0 +1,23 @@ +debian/tmp/usr/lib/libpacklib.a +debian/tmp/usr/lib/libpacklib.so +debian/tmp/usr/include/cspack.h +debian/tmp/usr/include/hbook.h +debian/tmp/usr/include/kuip.h +debian/tmp/usr/include/minuit.h +debian/tmp/usr/include/packlib.h +debian/tmp/usr/include/zebra.h +debian/tmp/usr/include/fatmen.car +debian/tmp/usr/include/hbook.car +debian/tmp/usr/include/kuip.car +debian/tmp/usr/include/zebra.car +debian/tmp/usr/include/cspack/ +debian/tmp/usr/include/epio/ +debian/tmp/usr/include/fatmen/ +debian/tmp/usr/include/ffread/ +debian/tmp/usr/include/hbook/ +debian/tmp/usr/include/hepdb/ +debian/tmp/usr/include/kapack/ +debian/tmp/usr/include/kuip/ +debian/tmp/usr/include/minuit/ +debian/tmp/usr/include/zbook/ +debian/tmp/usr/include/zebra/ --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libpacklib1.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/libpacklib1.install @@ -0,0 +1,4 @@ +debian/tmp/usr/lib/libpacklib.so.1.2005 +debian/tmp/usr/lib/libpacklib.so.1 +debian/tmp/usr/bin/kuesvr +debian/tmp/usr/share/man/man1/kuesvr.1 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libphotos202-dev.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libphotos202-dev.dirs @@ -0,0 +1 @@ +usr/lib --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libpdflib804-2-dev.README.debian +++ cernlib-2005.05.09.dfsg/debian/debhelper/libpdflib804-2-dev.README.debian @@ -0,0 +1,8 @@ +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 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libphotos202.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libphotos202.dirs @@ -0,0 +1 @@ +usr/lib --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libphotos202-dev.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/libphotos202-dev.install @@ -0,0 +1,2 @@ +debian/tmp/usr/lib/libphotos202.a +debian/tmp/usr/lib/libphotos202.so --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libphotos202.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/libphotos202.install @@ -0,0 +1,2 @@ +debian/tmp/usr/lib/libphotos202.so.1.2005 +debian/tmp/usr/lib/libphotos202.so.1 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libpacklib1-lesstif-dev.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/libpacklib1-lesstif-dev.install @@ -0,0 +1,2 @@ +debian/tmp/usr/lib/libpacklib-lesstif.a +debian/tmp/usr/lib/libpacklib-lesstif.so --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/montecarlo-base.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/montecarlo-base.install @@ -0,0 +1,2 @@ +debian/tmp/usr/include/jetset74.h +debian/tmp/usr/include/lepto62.h --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/paw-demos.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/paw-demos.install @@ -0,0 +1,3 @@ +debian/tmp/usr/bin/paw-demos +debian/tmp/usr/share/paw-demos/ +debian/tmp/usr/share/man/man1/paw-demos.1 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/pawserv.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/pawserv.install @@ -0,0 +1,4 @@ +debian/tmp/usr/sbin/zserv +debian/tmp/usr/sbin/pawserv +debian/tmp/usr/share/man/man8/zserv.8 +debian/tmp/usr/share/man/man8/pawserv.8 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/zftp.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/zftp.install @@ -0,0 +1,2 @@ +debian/tmp/usr/bin/zftp +debian/tmp/usr/share/man/man1/zftp.1 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/geant321-doc.README.debian +++ cernlib-2005.05.09.dfsg/debian/debhelper/geant321-doc.README.debian @@ -0,0 +1,173 @@ +geant321-doc package - README.Debian +-------------------- + +The documentation available here is as follows. In parentheses ( ) are the +names that these files originally had in the Cernlib source tree. The section +of the GEANT3 code described by each document is given in square brackets [ ]. + +In addition to this documentation, you should look at the README.Debian +for the geant321 or libgeant321-2-dev package - it describes some functions and +subroutines that had to be removed in order for GEANT to be DFSG-free. + +-- Kevin McCarty Thu, 10 Mar 2005 + +GEANT 3 CORE DOCUMENTATION +-------------------------- + +These files have all been merged into the file +/usr/share/doc/geant321-doc/geant321.txt + +If you have Internet access, a graphical version of this document is +available in PDF format at this URL: +http://wwwasdoc.web.cern.ch/wwwasdoc/pdfdir/geant.pdf + +* The section [BASE] (gbase.doc) gives an outline of GEANT3, including + flow charts of program operation, input/output, and program examples. + + Contents: + + Introduction to GEANT3 + - GEANT3 Applications + - Event Simulation Framework + - Initialization + - Event Processing + - Termination + + Simplified Program Flow Chart + + Overview of COMMON Blocks + - Introduction + - Dynamic Core + - Other Labelled Common Blocks + + Summary of Data Cards + - Introduction + - User Defined Data Cards + - Summary of the Most Important GEANT3 Data Cards + + The Reference System and Dimensional Units + - The Master Reference System (MARS) + - The Local Reference Systems (MRS and DRS) + - The Dimensional Units + + Examples of MAIN Program and User Initialization + + The System Initialization Routines + + Steering Routines for Event Processing + + Examples of User Termination and Related Routines + +* The section [CONS] (gcons.doc) describes routines related to storage + and retrieval of information for materials, tracking media and particles in + a detector. + + Contents: + + Introduction to the section CONS + - The Section CONS + - Materials + - Tracking Medium Parameters + - Particles + +* The section [DRAW] (gdraw.doc) describes the routines for drawing the + detector, the detector geometrical tree, particle trajectories, and hits. + + Contents: + + Introduction to the Drawing Package + - The Drawing Package + - Drawing the Detector + - Drawing the Geometrical Tree + - Drawing the Geometrical Specifications + - Drawing Particle Trajectories + - Drawing Hits + - The View Banks + - Other Features + - Basic and Advanced Graphics + - Running Instructions + - Summary + + Labelled COMMON Blocks Related to Section DRAW + + The View Data Structure JDRAW + +* The section [GEOM] (ggeom.doc) describes the routines for providing + geometric information to Geant. + + Contents: + + Introduction to the Geometry Package + - The Geometry Package + - The Volume Definition + - Volumes with Contents + - Overlapping Volumes + - The Physical Tree + - The Data Structure JVOLUM and the COMMON Block /GCVOLU/ + - The Basic User Tools + - The Optimisation Tools + + Labelled COMMON Blocks Related to Section GEOM + + The System Shapes + + The Volume Data Structure JVOLUM + +* The section [HITS] (ghits.doc) describes the routines to store, + retrieve and print information about events (hits) in a detector. + + Contents: + + Introduction to the Detector Response Package + - The Detector Response Package + - Sets and Detectors + - The Basic User Tools + - Retrieval of Geometrical Information + +* The section [IOPA] (giopa.doc) describes routines for reading and writing + the GEANT3 data structures. + + Contents: + + The I/O Service Routines + + Routines to Perform I/O + +* The section [KINE] (gkine.doc) defines the kinematics data + structures, JVERTX and JKINE. + +* The section [PHYS] (gphys.doc) describes the routines available for + simulation of particle physics, such as decays in flight, multiple + scattering, and hadronic interactions. + + Contents: + + Introduction to the Section PHYS + - The Physics Processes + - Continuous Electromagnetic Processes + - Discrete Electromagnetic Processes + - Hadronic Processes + ** Note that FLUKA is not available in the Debian packages of GEANT3. + - Muon Interaction + +* The section [TRAK] (gtrak.doc) describes routines for tracking + particles through the matter of a detector. + + Contents: + + Introduction to the Tracking Package + - The Tracking Package + - The Step Size + - The Subroutines GTREVE and GTRACK + - Magnetic Field Routines + - Information Available at Tracking Time, and the Subroutine GUSTEP + - Connection with the Detector Response Package + - Connection with the Drawing Package + + +OTHER DOCUMENTS +--------------- + +* The gheisha/ (ghdoc/) directory contains lists of COMMON parameters and ID + numbers used by GHEISHA, a set of hadronic interaction routines for GEANT3. + +* ertrak.txt (gedoc) describes the ERTRAK routines worked out by the + European Muon Collaboration for calculating particle trajectories, + the transport matrix, and the propagated error covariance matrix. + + Contents: + 1. Introduction + 2. Definitions + 2.1. Track Variables, Representations + 2.2. Error Propagation + 3. Description of the User Routines and COMMONs + 3.1. User Routines + 3.2. User Commons + 4. Examples of Application + 4.1. The Simplest Case: Representing the Trajectory at Another Point + 4.2. Joining Track Elements in Different Parts of the Detector + 4.3. Prediction of the Trajectory + 4.4. Fitting Trajectory Parameters + 5. Interface with GEANT + - Flow Chart for Subroutine ERTRAK + 6. Acknowledgements + + References + --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/geant321.README.debian +++ cernlib-2005.05.09.dfsg/debian/debhelper/geant321.README.debian @@ -0,0 +1,70 @@ +Notes on geant321: +------------------ + +1) If you use the "gxint" script to run GEANT, it will create an executable +in your home directory (or in $TMPDIR, if $TMPDIR is set; to prevent symlink +attacks, ensure that your $TMPDIR is writable only by you) named GEANT +where is the process ID of gxint. Please make sure you do not have any +files with this name format that shouldn't be overwritten, or else always call +gxint with its -o option. + + +2) The FLUKA routines have been removed from the Debian packages of GEANT 3.21 +at the request of the upstream authors of FLUKA, who never gave CERN permission +to release it under the GPL. In addition, the version of the FLUKA code in +CERNLIB was obsolete by several years. If you would like to use a current +version of the FLUKA code, it may be obtained at the URL http://www.fluka.org/ +However, it may not define all symbols required by some GEANT functions that +were used to interface with the old FLUKA code. Additionally, please be aware +that it is _far_ from being DFSG-Free software. + +The FLUKA functions and subroutines that were removed are as follows. +Attempting to call any of them in your code will result in a linking failure +or abnormal program exit: + +ABBRCH AINEL AKEKA ALTRA ALTRAF AMGA ANKEKA BAMJEV BEEXI BEKEKA BERTTP BETA +BETARN BETRST BIMSEL BKEKA BKLASS BNKEKA CALUMO CALUMV CHANWT COREVT CORRIN +COSLEG DATAR3 DECAUX DECAY DIFEVV DOST DRELAB DRES EEXI EEXLVL EKEKA ENERGI +ENERGY ENRG ERUP EVDEEX EVENTV EVEVAP EVVINI FDEVAP FDNOPT FDPREE FEKFNC FEREVV +FERHAV FISFRA FKDECA FKDRES FKENER FKERUP FKFLAV FKIMPU FKSIGI FKVERT FKZERO +FLAVOR FLDIST FLINIT FLKDT1 FLKDT2 FLKDT3 FLKDT4 FLKDT5 FLKDT6 FLKDT7 FLUFIN +FPFRNC FPOWER FPROB FRADNC FRHINC FRHONC GAMRN GETA GFMDIS GFMFIN HADDEN HADEVV +HADRIN HADRIV HEVHIN HINHEV HKLASS HYPERO IEFUN IMPULS INCINI INDEX2 KINPAR +KPOIS LORTRA NCLVIN NCLVST NIZL NIZLNW NUCEVV NUCNUC NUCREL NUCRIV NUDISV +NUPREL NWISEL PARJET PEANUT PFNCLV PHDSET PHDWLL PIOABS PMPRAB POLI PREPRE QNRG +RACO RAKEKV RBKEKV RCHANV ROTAT RSTSEL SAMCST SBCOMP SFECFE SHPTOT SIGEL SIGFER +SIGINT SIHAEL SITSAO STALIN TCHOIC THREPD TRAFO TRAHAD TRANS TTRANS TWOPAD +TWOPAR UMOFIN VEREIN VERTEX XINNEU XINPRO XLAMB XSENEU XSEPRO ZEROIN + +Additionally, the GFTMAT subroutine may attempt to call FLDIST and/or FLINIT, +resulting in an abnormal program exit, depending on how it is set up. + + +3) The Jetset library, required by a few Geant functions, is not available +within Debian because the upstream author never gave permission for it to be +GPLed and included in Cernlib. + +This will affect you if you want to use any of these GEANT functions or +subroutines. Attempting to call them in your code without Jetset installed +will cause an abnormal program exit: + +GLUDKY GLUND GLUNDI + +Jetset can be obtained either from this web page: +http://www.thep.lu.se/~torbjorn/Pythia.html ; or by installing the ancis and +montecarlo-installer-data packages, then running the command +"ancis installdebs jetset". 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://borex.princeton.edu/~kmccarty/ unstable main contrib +deb-src http://borex.princeton.edu/~kmccarty/ unstable main contrib + +Please note that I cannot guarantee the above URLs will continue to be valid +forever. + + +4) Note that this package is not yet fully functional on 64-bit machines, as +the COMIS portion of Pawlib does not yet work correctly on those architectures. + +--Kevin McCarty , Wed, 23 Nov 2005 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/hepdb.README.debian +++ cernlib-2005.05.09.dfsg/debian/debhelper/hepdb.README.debian @@ -0,0 +1,10 @@ +Please be aware that some of the HEPDB utilities have been renamed +due to a name conflict with another Debian package (cdbackup). Here +is the mapping: + + cdbackup -> hepbackup + cdmake -> hepmake + cdmove -> hepmove + cdserv -> hepserv + +-- Kevin McCarty , Mon, 17 Jun 2002 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libgeant321-2.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/libgeant321-2.install @@ -0,0 +1,2 @@ +debian/tmp/usr/lib/libgeant321.so.2.2005 +debian/tmp/usr/lib/libgeant321.so.2 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libphtools2-dev.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libphtools2-dev.dirs @@ -0,0 +1 @@ +usr/lib --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libmathlib2.README.debian +++ cernlib-2005.05.09.dfsg/debian/debhelper/libmathlib2.README.debian @@ -0,0 +1,31 @@ +Notes on libmathlib2: +--------------------- + +Parts of the Divon code in mathlib depend upon the non-free program Lepto, +which in turn depends upon Pythia (v. 5) and Jetset. They may be obtained +either by installing the ancis and montecarlo-installer-data packages, +then running the command "ancis installdebs jetset pythia5 lepto6" ; +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. + +Pythia/Jetset: http://www.thep.lu.se/~torbjorn/Pythia.html +Lepto: http://www3.tsl.uu.se/thep/lepto/index.html + +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://borex.princeton.edu/~kmccarty/ unstable main contrib +deb-src http://borex.princeton.edu/~kmccarty/ unstable main contrib + +Please note that I cannot guarantee the above URLs will continue to be valid +forever. + +Since the offending Divon functions have been surgically removed from the +mathlib library in Debian so it is possible to link against it, you will also +have to obtain the original mathlib code from CERN and recompile it in order +to use those functions. + +--Kevin McCarty , Thu, 10 Mar 2005 + --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libpawlib2-dev.examples +++ cernlib-2005.05.09.dfsg/debian/debhelper/libpawlib2-dev.examples @@ -0,0 +1 @@ +src/cfortran/Examples/pamain.c --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libpacklib1-dev.README.debian +++ cernlib-2005.05.09.dfsg/debian/debhelper/libpacklib1-dev.README.debian @@ -0,0 +1,13 @@ +Notes on Packlib: + +If you are looking for the Motif-based version of KUIP (Kit for a User +Interface Package), you will find it in the package libpacklib1-lesstif-dev. +It was split out from this package so that users aren't forced to install the +Lesstif and X11 libraries if they only want to use Packlib for a text-based +interface. + +If you are compiling code on a 64-bit platform, especially if using ZEBRA +routines, please also see the file README.64-bit . + +--Kevin McCarty , 30 Nov 2003 + --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libpacklib1.README.debian +++ cernlib-2005.05.09.dfsg/debian/debhelper/libpacklib1.README.debian @@ -0,0 +1,19 @@ +Notes on libpacklib1: +--------------------- + +1) If you are looking for the Motif-based version of KUIP (Kit for a User +Interface Package), you will find it in the package libpacklib1-lesstif. It was +split out from this package so that users aren't forced to install the +Lesstif and X11 libraries if they only want to use Packlib for a text-based +interface. + +2) This package includes the kuesvr "edit server" binary, in the libpacklib1 +package. You should be aware that the version of the kuesvr "edit server" +binary provided by Debian has command-line flags that are incompatible with +those of the version provided by CERN. It was necessary to introduce this +incompatibility for security reasons. For this reason, and in conformance with +Debian Policy, Debian's kuesvr is installed in /usr/lib/libpacklib1/, outside +of $PATH, where only Debian's version of libpacklib will find it. If you have +the libpacklib1 package installed, see "man 1 kuesvr" for more information. + +--Kevin McCarty , Fri, 15 Jul 2005 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/montecarlo-base.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/montecarlo-base.dirs @@ -0,0 +1,2 @@ +usr/include +usr/include/cfortran --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/paw-demos.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/paw-demos.dirs @@ -0,0 +1,2 @@ +usr/bin +usr/share/paw-demos --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/montecarlo-base.README.debian +++ cernlib-2005.05.09.dfsg/debian/debhelper/montecarlo-base.README.debian @@ -0,0 +1,35 @@ +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://borex.princeton.edu/~kmccarty/ unstable main contrib +deb-src http://borex.princeton.edu/~kmccarty/ unstable main contrib + +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 + --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/pawserv.README.debian +++ cernlib-2005.05.09.dfsg/debian/debhelper/pawserv.README.debian @@ -0,0 +1,36 @@ +You can choose which of these servers to run via Debconf. If you do not +see a Debconf dialog at installation time, or if you want to change your +original choice, run "dpkg-reconfigure -plow pawserv". The default is to +run only pawserv. Of course you can also make this choice by editing +the file /etc/inetd.conf manually. + +Notes on pawserv +---------------- + +This program is the server for distributed PAW, which runs via inetd. +Basically it allows a PAW client running on a remote host to access local +files. The server must run as root in order to permit user logins (as it must +be able to read the /etc/shadow file). Since this code has not, to my +knowledge, been audited for security, and because the remote PAW protocol +transmits passwords in cleartext, it would be wise to run pawserv only within a +LAN with trusted users that doesn't permit access from the Internet at large. + +Notes on zserv +-------------- + +This is the server program for the ZEBRA FTP (zftp) protocol of Cernlib, which +runs via inetd. Except for listening on a different port and special treatment +of some files created by Cernlib programs, it is similar to an FTP daemon. +The same security-related comments apply as above (the two programs actually +run from the same binary). + + +These programs by default write one log file per minute into /tmp. +In Debian, this behavior has been modified so that they write into a +/var/log/pawserv directory with permissions 0700. A cron script +/etc/cron.hourly/pawserv is provided to concatenate these per-minute log +files into /var/log/pawserv.log every hour (the names are still +/var/log/pawserv and pawserv.log even if you only run zserv). + +-- Kevin McCarty , Sun, 06 March 2005 + --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/zftp.README.debian +++ cernlib-2005.05.09.dfsg/debian/debhelper/zftp.README.debian @@ -0,0 +1,17 @@ +Notes on zftp: +-------------- + +This is the client program for the ZEBRA FTP (zftp) protocol of Cernlib. +Like other FTP-type programs, the ZFTP protocol transmits passwords in +cleartext. It would therefore be wise to use zftp only within a closed LAN +with trusted users. To connect to a remote host, the host must be running +the zserv daemon (for Debian, part of the pawserv package) from inetd. See +also the README.Debian file for that package. + +ZFTP by default converts all filenames to lowercase (it does not respect +the KUIP command "FILECASE KEEP"), which is potentially a problem on case- +sensitive Linux and UNIX machines. Some of its interactive commands, but not +all, accept a 'C' argument to preserve filename cases; see the ZFTP online +help for individual commands for details. + +-- Kevin McCarty , Mon, 22 Jul 2002 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/geant321-doc.docs +++ cernlib-2005.05.09.dfsg/debian/debhelper/geant321-doc.docs @@ -0,0 +1,2 @@ +debian/tmp/usr/share/doc/geant321-doc/gheisha/ +debian/tmp/usr/share/doc/geant321-doc/*.txt --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/geant321.docs +++ cernlib-2005.05.09.dfsg/debian/debhelper/geant321.docs @@ -0,0 +1 @@ +src/geant321/doc/history/ --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libcojets2.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/libcojets2.install @@ -0,0 +1,3 @@ +debian/tmp/usr/lib/libcojets.so.2.2005 +debian/tmp/usr/lib/libcojets.so.2 +debian/tmp/usr/share/cojets/cojets.dat --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libeurodec1-dev.docs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libeurodec1-dev.docs @@ -0,0 +1 @@ +debian/tmp/usr/share/doc/montecarlo-doc/eurodec/eurodec.txt --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libisajet758-2-dev.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/libisajet758-2-dev.install @@ -0,0 +1,4 @@ +debian/tmp/usr/lib/libisajet758.a +debian/tmp/usr/lib/libisajet758.so +debian/tmp/usr/include/isajet758/ +debian/tmp/usr/include/isajet --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libpdflib804-2-dev.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/libpdflib804-2-dev.install @@ -0,0 +1,4 @@ +debian/tmp/usr/lib/libpdflib804.a +debian/tmp/usr/lib/libpdflib804.so +debian/tmp/usr/include/pdf804/ +debian/tmp/usr/include/pdf --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/zftp.dirs +++ cernlib-2005.05.09.dfsg/debian/debhelper/zftp.dirs @@ -0,0 +1 @@ +usr/bin --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/geant321-doc.doc-base +++ cernlib-2005.05.09.dfsg/debian/debhelper/geant321-doc.doc-base @@ -0,0 +1,11 @@ +Document: geant321-manual +Title: Introduction to GEANT3 +Author: Unknown +Abstract: Summary of the various components of the GEANT particle detector + simulator: routines to simulate the detector geometry, constants of the + detector, particle physics and kinematics, particle tracking, detector + events, a graphical display, and input-output routines. +Section: Apps/Science + +Format: text +Files: /usr/share/doc/geant321-doc/geant321.txt.gz --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libcojets2-dev.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/libcojets2-dev.install @@ -0,0 +1,3 @@ +debian/tmp/usr/lib/libcojets.a +debian/tmp/usr/lib/libcojets.so +debian/tmp/usr/include/cojets/ --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libeurodec1-dev.doc-base +++ cernlib-2005.05.09.dfsg/debian/debhelper/libeurodec1-dev.doc-base @@ -0,0 +1,10 @@ +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: Apps/Science + +Format: text +Files: /usr/share/doc/libeurodec1-dev/eurodec.txt --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libherwig59-2-dev.docs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libherwig59-2-dev.docs @@ -0,0 +1 @@ +debian/tmp/usr/share/doc/montecarlo-doc/herwig/herwig59.txt --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libisajet758-2-dev.docs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libisajet758-2-dev.docs @@ -0,0 +1,3 @@ +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 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libpdflib804-2-dev.docs +++ cernlib-2005.05.09.dfsg/debian/debhelper/libpdflib804-2-dev.docs @@ -0,0 +1 @@ +debian/tmp/usr/share/doc/montecarlo-doc/pdflib/pdfdoc.txt --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libphtools2-dev.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/libphtools2-dev.install @@ -0,0 +1,2 @@ +debian/tmp/usr/lib/libphtools.a +debian/tmp/usr/lib/libphtools.so --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libgraflib1-dev.links +++ cernlib-2005.05.09.dfsg/debian/debhelper/libgraflib1-dev.links @@ -0,0 +1,2 @@ +usr/include/graflib.h usr/include/cfortran/graflib.h +usr/include/hplot.h usr/include/cfortran/hplot.h --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libgrafx11-1-dev.links +++ cernlib-2005.05.09.dfsg/debian/debhelper/libgrafx11-1-dev.links @@ -0,0 +1 @@ +usr/include/higz.h usr/include/cfortran/higz.h --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libmathlib2-dev.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/libmathlib2-dev.install @@ -0,0 +1,4 @@ +debian/tmp/usr/lib/libmathlib.a +debian/tmp/usr/lib/libmathlib.so +debian/tmp/usr/include/gen.h +debian/tmp/usr/include/gen/ --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libkernlib1-dev.links +++ cernlib-2005.05.09.dfsg/debian/debhelper/libkernlib1-dev.links @@ -0,0 +1 @@ +usr/include/kernlib.h usr/include/cfortran/kernlib.h --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libpawlib2-dev.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/libpawlib2-dev.install @@ -0,0 +1,8 @@ +debian/tmp/usr/lib/libpawlib.a +debian/tmp/usr/lib/libpawlib.so +debian/tmp/usr/include/comis.h +debian/tmp/usr/include/paw.h +debian/tmp/usr/include/paw.car +debian/tmp/usr/include/comis/ +debian/tmp/usr/include/paw/ +debian/tmp/usr/include/sigma/ --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libpacklib1-dev.links +++ cernlib-2005.05.09.dfsg/debian/debhelper/libpacklib1-dev.links @@ -0,0 +1,6 @@ +usr/include/cspack.h usr/include/cfortran/cspack.h +usr/include/hbook.h usr/include/cfortran/hbook.h +usr/include/kuip.h usr/include/cfortran/kuip.h +usr/include/minuit.h usr/include/cfortran/minuit.h +usr/include/packlib.h usr/include/cfortran/packlib.h +usr/include/zebra.h usr/include/cfortran/zebra.h --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/montecarlo-base.links +++ cernlib-2005.05.09.dfsg/debian/debhelper/montecarlo-base.links @@ -0,0 +1,2 @@ +usr/include/jetset74.h usr/include/cfortran/jetset74.h +usr/include/lepto62.h usr/include/cfortran/lepto62.h --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/paw-demos.links +++ cernlib-2005.05.09.dfsg/debian/debhelper/paw-demos.links @@ -0,0 +1 @@ +usr/share/paw-demos usr/share/doc/paw-demos/examples --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/cernlib-base.TODO +++ cernlib-2005.05.09.dfsg/debian/debhelper/cernlib-base.TODO @@ -0,0 +1,51 @@ +To do reasonably soon when possible: +------------------------------------ + +* Move "ancis" and "montecarlo-installer-data" packages to people.debian.org + and update references to them in Cernlib documentation + +* Install upstream's changelogs (if I can find them in any sort of + coherent form) + +* cernlib script should be tested to make sure it supports upstream versions + of Cernlib + +* If at some point I decide to resurrect hepdb and fatmen binary packages: + (this will not happen unless I get a specific request by someone who knows + how they are supposed to be set up)... + - Write man pages for hepdb and fatmen binaries + - Set up hepserv, fatsrv with init scripts, etc. + +* Split Cernlib into separate source packages with the appropriate + Build-Depends. This avoids forcing the buildds to recompile the largely + unchanging and painful-to-compile Monte Carlo code all the time. + Unfortunately this will require a lot of work separating patches, + duplicating build scripts, etc. + +* Have separate version numbers (the ones used by upstream) for each major + Cernlib component. Will be much easier once source package is split up. + +To do after the release of Etch: +-------------------------------- + +* Split cernlib-base into cernlib-base and cernlib-base-dev packages. + The former will contain only the current documentation in + /usr/share/doc/cernlib-base while the latter will contain the cernlib + script in /usr/bin and the cernlib Autoconf macros from Patrice Dumas. + All cernlib-related packages will depend on cernlib-base while only + -dev packages and related tools (kuipc) will depend on cernlib-base-dev. + +* Remove backward-compatibility symlinks for pawX11.{dynamic,static}, + and similarly for paw++ and manpages. + +To do ONLY if someone employs me at a high salary for these specific purposes: +------------------------------------------------------------------------------ + +* Fix the whole creaky, out-of-date, Imake-based build system to use GNU + libtool/automake/autoconf. + +* Make COMIS, etc., 64-bit clean so Paw (et al.) work on the architectures + alpha/amd64/ia64/ppc64/s390x/sparc64 - for bonus points, when dynamically + linked. The current state of 64-bit platforms is that Paw only works on + amd64 (thanks to Harald Vogt), and only when statically linked. + --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libcojets2-dev.doc-base +++ cernlib-2005.05.09.dfsg/debian/debhelper/libcojets2-dev.doc-base @@ -0,0 +1,9 @@ +Document: cojets-manual +Title: COJETS 5.15 +Author: Roberto Odorico +Abstract: Description of the COJETS Monte Carlo simulation program, which + simulates collisions of protons and antiprotons at high energy. +Section: Apps/Science + +Format: text +Files: /usr/share/doc/libcojets2-dev/cojets.txt.gz --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libgeant321-2-dev.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/libgeant321-2-dev.install @@ -0,0 +1,9 @@ +debian/tmp/usr/lib/libgeant321.a +debian/tmp/usr/lib/libgeant321.so +debian/tmp/usr/include/geant321.h +debian/tmp/usr/include/geanh.car +debian/tmp/usr/include/geanh321.car +debian/tmp/usr/include/geant.car +debian/tmp/usr/include/geant321.car +debian/tmp/usr/include/geant321/ +debian/tmp/usr/include/geant/ --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/montecarlo-base.TODO +++ cernlib-2005.05.09.dfsg/debian/debhelper/montecarlo-base.TODO @@ -0,0 +1,8 @@ +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 + --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/pawserv.postrm +++ cernlib-2005.05.09.dfsg/debian/debhelper/pawserv.postrm @@ -0,0 +1,35 @@ +#! /bin/sh +# postrm script for pawserv +# +# see: dh_installdeb(1) + +set -e + +case "$1" in + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + purge) + # Clean up logs. + LOGDIR=/var/log/pawserv + LOGFILE=/var/log/pawserv.log + + if [ -e "$LOGDIR" ] ; then + rmdir "$LOGDIR" || rm -r "$LOGDIR" + fi + dpkg-statoverride --remove "$LOGDIR" > /dev/null 2>&1 || true + rm -f "$LOGFILE" + ;; + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/pawserv.prerm +++ cernlib-2005.05.09.dfsg/debian/debhelper/pawserv.prerm @@ -0,0 +1,40 @@ +#! /bin/sh +# prerm script for pawserv +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|deconfigure) + update-inetd --remove '^.*/usr/sbin/zserv.*$' + update-inetd --remove '^.*/usr/sbin/pawserv.*$' + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/pawserv.postinst +++ cernlib-2005.05.09.dfsg/debian/debhelper/pawserv.postinst @@ -0,0 +1,75 @@ +#!/bin/sh +# postinst script for pawserv +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +# Source debconf library. +. /usr/share/debconf/confmodule + +case "$1" in + configure) + + LOGDIR=/var/log/pawserv + LOGFILE=/var/log/pawserv.log + PAWSERV="pawserv\tstream\ttcp\tnowait\troot\t/usr/sbin/pawserv\tpawserv" + ZSERV="zserv\tstream\ttcp\tnowait\troot\t/usr/sbin/zserv\tzserv" + OFF='## ' + + db_get pawserv/which_servers + + if [ "$RET" = Pawserv ] ; then + ZSERV="${OFF}${ZSERV}" + fi + if [ "$RET" = Zserv ] ; then + PAWSERV="${OFF}${PAWSERV}" + fi + + # Change permissions of zserv/pawserv log directory and log file + touch "$LOGFILE" + chmod 0600 "$LOGFILE" + dpkg-statoverride --add --update root root 0700 "$LOGDIR" \ + > /dev/null 2>&1 || true + + # Add zserv/pawserv to inetd.conf + update-inetd --add "$ZSERV" + update-inetd --add "$PAWSERV" + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/pawserv.config +++ cernlib-2005.05.09.dfsg/debian/debhelper/pawserv.config @@ -0,0 +1,10 @@ +#!/bin/sh -e + +# Source debconf library. +. /usr/share/debconf/confmodule + +db_input low pawserv/which_servers || true +db_go + +exit 0 + --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/pawserv.cron.hourly +++ cernlib-2005.05.09.dfsg/debian/debhelper/pawserv.cron.hourly @@ -0,0 +1,44 @@ +#!/bin/bash + +# Cron script to concatenate pawserv / zserv's log files (it produces +# one per minute) into /var/log/pawserv.log + +# Author: Kevin McCarty, 2005-03-06 +# License: GPL version 2 or later (see /usr/share/common-licenses/GPL) + +PATH=/bin:/usr/bin:/sbin:/usr/sbin +BINARY=/usr/sbin/zserv +LOGDIR=/var/log/pawserv +LOGFILE="${LOGDIR}.log" + +[ -d "$LOGDIR" ] || exit 0 + +cd "$LOGDIR" +LOGS="$(find . -maxdepth 1 -type f -a -name zs\*.log -a -mmin +10 | sort)" +[ -n "$LOGS" ] || exit 0 + +set -e +umask 077 + +for log in $LOGS ; do + if [ -s "$log" ] ; then + YR="$( echo "$log" | cut -b 5-6)" + MON="$(echo "$log" | cut -b 7-8)" + DAY="$(echo "$log" | cut -b 9-10)" + HR="$( echo "$log" | cut -b 11-12)" + MIN="$(echo "$log" | cut -b 13-14)" + echo "20${YR}-${MON}-${DAY} at ${HR}:${MIN}" >> "$LOGFILE" + cat "$log" >> "$LOGFILE" + fi + + rm -f "$log" +done + +# If the package has been uninstalled and there are no more pending logs, +# try removing the log directory. + +if [ ! -x "$BINARY" ] ; then + rmdir "$LOGDIR" 2> /dev/null || true +fi + +exit 0 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/pawserv.logrotate +++ cernlib-2005.05.09.dfsg/debian/debhelper/pawserv.logrotate @@ -0,0 +1,9 @@ +/var/log/pawserv.log { + weekly + rotate 4 + missingok + notifempty + compress + copytruncate +} + --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/kxterm.menu +++ cernlib-2005.05.09.dfsg/debian/debhelper/kxterm.menu @@ -0,0 +1,4 @@ +?package(kxterm):needs="x11" section="Apps/Science" \ +title="KXterm" command="/usr/bin/kxterm" \ +icon="/usr/share/pixmaps/kxterm32x32.xpm" \ +longtitle="The Cernlib KUIP terminal emulator" --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libgraflib1-dev.examples +++ cernlib-2005.05.09.dfsg/debian/debhelper/libgraflib1-dev.examples @@ -0,0 +1 @@ +src/cfortran/Examples/chplot-example.c --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libgrafx11-1-dev.examples +++ cernlib-2005.05.09.dfsg/debian/debhelper/libgrafx11-1-dev.examples @@ -0,0 +1 @@ +src/cfortran/Examples/chigz-example.c --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libpacklib1-dev.examples +++ cernlib-2005.05.09.dfsg/debian/debhelper/libpacklib1-dev.examples @@ -0,0 +1,8 @@ +src/cfortran/Examples/chbook-example.c +src/cfortran/Examples/hbook-cwn.c +src/cfortran/Examples/hbook-cwnc.c +src/cfortran/Examples/hbook-ntuple.c +src/cfortran/Examples/minuit-fcn.c +src/cfortran/Examples/minuit-fcn.f +src/cfortran/Examples/minuit-main.c +src/cfortran/Examples/read_rwntuple.c --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libgeant321-2-dev.README.debian +++ cernlib-2005.05.09.dfsg/debian/debhelper/libgeant321-2-dev.README.debian @@ -0,0 +1,62 @@ +Notes on libgeant321-2-dev: +--------------------------- + +1) The FLUKA routines have been removed from the Debian packages of GEANT 3.21 +at the request of the upstream authors of FLUKA, who never gave CERN permission +to release it under the GPL. In addition, the version of the FLUKA code in +CERNLIB was obsolete by several years. If you would like to use a current +version of the FLUKA code, it may be obtained at the URL http://www.fluka.org/ +However, it may not define all symbols required by some GEANT functions that +were used to interface with the old FLUKA code. Additionally, please be aware +that it is _far_ from being DFSG-Free software. + +The FLUKA functions and subroutines that were removed are as follows. +Attempting to call any of them in your code will result in a linking failure +or abnormal program exit: + +ABBRCH AINEL AKEKA ALTRA ALTRAF AMGA ANKEKA BAMJEV BEEXI BEKEKA BERTTP BETA +BETARN BETRST BIMSEL BKEKA BKLASS BNKEKA CALUMO CALUMV CHANWT COREVT CORRIN +COSLEG DATAR3 DECAUX DECAY DIFEVV DOST DRELAB DRES EEXI EEXLVL EKEKA ENERGI +ENERGY ENRG ERUP EVDEEX EVENTV EVEVAP EVVINI FDEVAP FDNOPT FDPREE FEKFNC FEREVV +FERHAV FISFRA FKDECA FKDRES FKENER FKERUP FKFLAV FKIMPU FKSIGI FKVERT FKZERO +FLAVOR FLDIST FLINIT FLKDT1 FLKDT2 FLKDT3 FLKDT4 FLKDT5 FLKDT6 FLKDT7 FLUFIN +FPFRNC FPOWER FPROB FRADNC FRHINC FRHONC GAMRN GETA GFMDIS GFMFIN HADDEN HADEVV +HADRIN HADRIV HEVHIN HINHEV HKLASS HYPERO IEFUN IMPULS INCINI INDEX2 KINPAR +KPOIS LORTRA NCLVIN NCLVST NIZL NIZLNW NUCEVV NUCNUC NUCREL NUCRIV NUDISV +NUPREL NWISEL PARJET PEANUT PFNCLV PHDSET PHDWLL PIOABS PMPRAB POLI PREPRE QNRG +RACO RAKEKV RBKEKV RCHANV ROTAT RSTSEL SAMCST SBCOMP SFECFE SHPTOT SIGEL SIGFER +SIGINT SIHAEL SITSAO STALIN TCHOIC THREPD TRAFO TRAHAD TRANS TTRANS TWOPAD +TWOPAR UMOFIN VEREIN VERTEX XINNEU XINPRO XLAMB XSENEU XSEPRO ZEROIN + +Additionally, the GFTMAT subroutine may attempt to call FLDIST and/or FLINIT, +resulting in an abnormal program exit, depending on how it is set up. + + +2) The Jetset library, required by a few Geant functions, is not available +within Debian because the upstream author never gave permission for it to be +GPLed and included in Cernlib. + +This will affect you if you want to use any of these GEANT functions or +subroutines. Attempting to call them in your code without Jetset installed +will cause an abnormal program exit: + +GLUDKY GLUND GLUNDI + +Jetset can be obtained either from this web page: +http://www.thep.lu.se/~torbjorn/Pythia.html ; or by installing the ancis and +montecarlo-installer-data packages, then running the command +"ancis installdebs jetset". 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://borex.princeton.edu/~kmccarty/ unstable main contrib +deb-src http://borex.princeton.edu/~kmccarty/ unstable main contrib + +Please note that I cannot guarantee the above URLs will continue to be valid +forever. + + +3) Note that this package is not yet fully functional on 64-bit machines, as +the COMIS portion of Pawlib does not yet work correctly on those architectures. + +--Kevin McCarty , Wed, 23 Nov 2005 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libgeant321-2.README.debian +++ cernlib-2005.05.09.dfsg/debian/debhelper/libgeant321-2.README.debian @@ -0,0 +1,62 @@ +Notes on libgeant321-2: +----------------------- + +1) The FLUKA routines have been removed from the Debian packages of GEANT 3.21 +at the request of the upstream authors of FLUKA, who never gave CERN permission +to release it under the GPL. In addition, the version of the FLUKA code in +CERNLIB was obsolete by several years. If you would like to use a current +version of the FLUKA code, it may be obtained at the URL http://www.fluka.org/ +However, it may not define all symbols required by some GEANT functions that +were used to interface with the old FLUKA code. Additionally, please be aware +that it is _far_ from being DFSG-Free software. + +The FLUKA functions and subroutines that were removed are as follows. +Attempting to call any of them in your code will result in a linking failure +or abnormal program exit: + +ABBRCH AINEL AKEKA ALTRA ALTRAF AMGA ANKEKA BAMJEV BEEXI BEKEKA BERTTP BETA +BETARN BETRST BIMSEL BKEKA BKLASS BNKEKA CALUMO CALUMV CHANWT COREVT CORRIN +COSLEG DATAR3 DECAUX DECAY DIFEVV DOST DRELAB DRES EEXI EEXLVL EKEKA ENERGI +ENERGY ENRG ERUP EVDEEX EVENTV EVEVAP EVVINI FDEVAP FDNOPT FDPREE FEKFNC FEREVV +FERHAV FISFRA FKDECA FKDRES FKENER FKERUP FKFLAV FKIMPU FKSIGI FKVERT FKZERO +FLAVOR FLDIST FLINIT FLKDT1 FLKDT2 FLKDT3 FLKDT4 FLKDT5 FLKDT6 FLKDT7 FLUFIN +FPFRNC FPOWER FPROB FRADNC FRHINC FRHONC GAMRN GETA GFMDIS GFMFIN HADDEN HADEVV +HADRIN HADRIV HEVHIN HINHEV HKLASS HYPERO IEFUN IMPULS INCINI INDEX2 KINPAR +KPOIS LORTRA NCLVIN NCLVST NIZL NIZLNW NUCEVV NUCNUC NUCREL NUCRIV NUDISV +NUPREL NWISEL PARJET PEANUT PFNCLV PHDSET PHDWLL PIOABS PMPRAB POLI PREPRE QNRG +RACO RAKEKV RBKEKV RCHANV ROTAT RSTSEL SAMCST SBCOMP SFECFE SHPTOT SIGEL SIGFER +SIGINT SIHAEL SITSAO STALIN TCHOIC THREPD TRAFO TRAHAD TRANS TTRANS TWOPAD +TWOPAR UMOFIN VEREIN VERTEX XINNEU XINPRO XLAMB XSENEU XSEPRO ZEROIN + +Additionally, the GFTMAT subroutine may attempt to call FLDIST and/or FLINIT, +resulting in an abnormal program exit, depending on how it is set up. + + +2) The Jetset library, required by a few Geant functions, is not available +within Debian because the upstream author never gave permission for it to be +GPLed and included in Cernlib. + +This will affect you if you want to use any of these GEANT functions or +subroutines. Attempting to call them in your code without Jetset installed +will cause an abnormal program exit: + +GLUDKY GLUND GLUNDI + +Jetset can be obtained either from this web page: +http://www.thep.lu.se/~torbjorn/Pythia.html ; or by installing the ancis and +montecarlo-installer-data packages, then running the command +"ancis installdebs jetset". 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://borex.princeton.edu/~kmccarty/ unstable main contrib +deb-src http://borex.princeton.edu/~kmccarty/ unstable main contrib + +Please note that I cannot guarantee the above URLs will continue to be valid +forever. + + +3) Note that this package is not yet fully functional on 64-bit machines, as +the COMIS portion of Pawlib does not yet work correctly on those architectures. + +--Kevin McCarty , Wed, 23 Nov 2005 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libherwig59-2-dev.doc-base +++ cernlib-2005.05.09.dfsg/debian/debhelper/libherwig59-2-dev.doc-base @@ -0,0 +1,11 @@ +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: Apps/Science + +Format: text +Files: /usr/share/doc/libherwig59-2-dev/herwig59.txt.gz --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libherwig59-2-dev.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/libherwig59-2-dev.install @@ -0,0 +1,4 @@ +debian/tmp/usr/lib/libherwig59.a +debian/tmp/usr/lib/libherwig59.so +debian/tmp/usr/include/herwig59/ +debian/tmp/usr/include/herwig --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libmathlib2-dev.README.debian +++ cernlib-2005.05.09.dfsg/debian/debhelper/libmathlib2-dev.README.debian @@ -0,0 +1,31 @@ +Notes on libmathlib2-dev: +------------------------- + +Parts of the Divon code in mathlib depend upon the non-free program Lepto, +which in turn depends upon Pythia (v. 5) and Jetset. They may be obtained +either by installing the ancis and montecarlo-installer-data packages, +then running the command "ancis installdebs jetset pythia5 lepto6" ; +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. + +Pythia/Jetset: http://www.thep.lu.se/~torbjorn/Pythia.html +Lepto: http://www3.tsl.uu.se/thep/lepto/index.html + +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://borex.princeton.edu/~kmccarty/ unstable main contrib +deb-src http://borex.princeton.edu/~kmccarty/ unstable main contrib + +Please note that I cannot guarantee the above URLs will continue to be valid +forever. + +Since the offending Divon functions have been surgically removed from the +mathlib library in Debian so it is possible to link against it, you will also +have to obtain the original mathlib code from CERN and recompile it in order +to use those functions. + +--Kevin McCarty , Thu, 10 Mar 2005 + --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libphtools2-dev.README.debian +++ cernlib-2005.05.09.dfsg/debian/debhelper/libphtools2-dev.README.debian @@ -0,0 +1,18 @@ +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 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libpawlib2-lesstif.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/libpawlib2-lesstif.install @@ -0,0 +1,2 @@ +debian/tmp/usr/lib/libpawlib-lesstif.so.2.2005 +debian/tmp/usr/lib/libpawlib-lesstif.so.2 --- cernlib-2005.05.09.dfsg.orig/debian/debhelper/libpawlib2-lesstif-dev.install +++ cernlib-2005.05.09.dfsg/debian/debhelper/libpawlib2-lesstif-dev.install @@ -0,0 +1,2 @@ +debian/tmp/usr/lib/libpawlib-lesstif.a +debian/tmp/usr/lib/libpawlib-lesstif.so --- cernlib-2005.05.09.dfsg.orig/debian/po/templates.pot +++ cernlib-2005.05.09.dfsg/debian/po/templates.pot @@ -0,0 +1,49 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-02-25 17:23-0500\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: select +#. Choices +#. Note to translators: only the English word "Both" below should be translated +#: ../pawserv.templates.master:4 +msgid "Pawserv, Zserv, Both" +msgstr "" + +#. Type: select +#. Description +#: ../pawserv.templates.master:6 +msgid "Servers to be run from inetd" +msgstr "" + +#. Type: select +#. Description +#: ../pawserv.templates.master:6 +msgid "" +"This package includes both the pawserv daemon (permitting remote hosts to " +"read local files while running PAW/Paw++) and the zserv daemon (allowing " +"remote hosts to log in using CERN's ZFTP protocol). These servers are run " +"from inetd; you may enable either or both of them. Unless you have very " +"specialized requirements, most likely you only want to enable pawserv." +msgstr "" --- cernlib-2005.05.09.dfsg.orig/debian/po/nl.po +++ cernlib-2005.05.09.dfsg/debian/po/nl.po @@ -0,0 +1,54 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: cernlib 2003.09.03-5\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-02-25 17:23-0500\n" +"PO-Revision-Date: 2004-03-29 09:58+0100\n" +"Last-Translator: Luk Claes \n" +"Language-Team: Debian l10n Dutch \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=iso-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: select +#. Choices +#. Note to translators: only the English word "Both" below should be translated +#: ../pawserv.templates.master:4 +msgid "Pawserv, Zserv, Both" +msgstr "pawserv, zserv, beide" + +#. Type: select +#. Description +#: ../pawserv.templates.master:6 +msgid "Servers to be run from inetd" +msgstr "Welke servers moeten door inetd worden gestart?" + +#. Type: select +#. Description +#: ../pawserv.templates.master:6 +msgid "" +"This package includes both the pawserv daemon (permitting remote hosts to " +"read local files while running PAW/Paw++) and the zserv daemon (allowing " +"remote hosts to log in using CERN's ZFTP protocol). These servers are run " +"from inetd; you may enable either or both of them. Unless you have very " +"specialized requirements, most likely you only want to enable pawserv." +msgstr "" +"Dit pakket bevat èn de pawserv-achtergronddienst (staat toe van remote hosts " +"om lokale bestanden te lezen wanneer PAW/Paw++ wordt uitgevoerd) èn de zserv-" +"achtergronddienst (staat toe van remote hosts te laten aanloggen, " +"gebruikmakend van het ZFTP-protocol van CERN). U kunt één of beide servers " +"door inetd laten starten. Behalve als u zeer specifieke noden hebt, wilt u " +"waarschijnlijk uitsluitend pawserv uitvoeren." --- cernlib-2005.05.09.dfsg.orig/debian/po/de.po +++ cernlib-2005.05.09.dfsg/debian/po/de.po @@ -0,0 +1,56 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans# +# Developers do not need to manually edit POT or PO files. +# Erik Schanze , 2004. +# +msgid "" +msgstr "" +"Project-Id-Version: cernlib_2004.01.20-1_templates\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-02-25 17:23-0500\n" +"PO-Revision-Date: 2004-05-25 00:25+0200\n" +"Last-Translator: Erik Schanze \n" +"Language-Team: German \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.3.1\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. Type: select +#. Choices +#. Note to translators: only the English word "Both" below should be translated +#: ../pawserv.templates.master:4 +msgid "Pawserv, Zserv, Both" +msgstr "Pawserv, Zserv, beide" + +#. Type: select +#. Description +#: ../pawserv.templates.master:6 +msgid "Servers to be run from inetd" +msgstr "Server, die inetd starten soll" + +#. Type: select +#. Description +#: ../pawserv.templates.master:6 +msgid "" +"This package includes both the pawserv daemon (permitting remote hosts to " +"read local files while running PAW/Paw++) and the zserv daemon (allowing " +"remote hosts to log in using CERN's ZFTP protocol). These servers are run " +"from inetd; you may enable either or both of them. Unless you have very " +"specialized requirements, most likely you only want to enable pawserv." +msgstr "" +"Dieses Paket enthält sowohl den Pawserv-Dienst (Der verhindert, dass " +"entfernte Rechner das lokale Dateisystem lesen können während PAW/Paw++ " +"läuft.) als auch den Zserv-Dienst (Der erlaubt entfernten Rechnern sich über " +"CERN's ZFTP-Protokoll anzumelden.). Diese Dienste werden vom inetd " +"gestartet; Sie können einen von beiden oder alle beide aktivieren. " +"Höchstwahrscheinlich wollen Sie nur dem Pawserv aktivieren, es sei denn, Sie " +"haben sehr spezielle Anforderungen." --- cernlib-2005.05.09.dfsg.orig/debian/po/cs.po +++ cernlib-2005.05.09.dfsg/debian/po/cs.po @@ -0,0 +1,42 @@ +# Czech translation of cernlib templates +# +msgid "" +msgstr "" +"Project-Id-Version: cernlib 2004.11.04-3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-02-25 17:23-0500\n" +"PO-Revision-Date: 2005-04-14 18:26+0200\n" +"Last-Translator: Martin Sin \n" +"Language-Team: Czech \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: select +#. Choices +#. Note to translators: only the English word "Both" below should be translated +#: ../pawserv.templates.master:4 +msgid "Pawserv, Zserv, Both" +msgstr "Pawserv, Zserv, Obojí" + +#. Type: select +#. Description +#: ../pawserv.templates.master:6 +msgid "Servers to be run from inetd" +msgstr "Slu¾by spu¹tìné z inetd" + +#. Type: select +#. Description +#: ../pawserv.templates.master:6 +msgid "" +"This package includes both the pawserv daemon (permitting remote hosts to " +"read local files while running PAW/Paw++) and the zserv daemon (allowing " +"remote hosts to log in using CERN's ZFTP protocol). These servers are run " +"from inetd; you may enable either or both of them. Unless you have very " +"specialized requirements, most likely you only want to enable pawserv." +msgstr "" +"Tento balík obsahuje obojí - slu¾bu pawserv (dovoluje vzdáleným hostùm " +"èíst lokální soubory pomocí PAW/Paw++) a slu¾ba zserv (umo¾òuje " +"vzdáleným hostùm zalogování u¾itím protokolu CERN's ZFTP). Tyto obsluhy jsou " +"spu¹tìny z inetd; mù¾ete dovolit buï jeden nebo druhý, pøípadnì oba. Nicménì, " +"pokud nemáte velmi specializované po¾adavky, radìji budete chtít povolit pawserv." --- cernlib-2005.05.09.dfsg.orig/debian/po/ja.po +++ cernlib-2005.05.09.dfsg/debian/po/ja.po @@ -0,0 +1,54 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +# +msgid "" +msgstr "" +"Project-Id-Version: cernlib 2004.01.20-4\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-02-25 17:23-0500\n" +"PO-Revision-Date: 2004-07-04 21:24+0900\n" +"Last-Translator: Hideki Yamane \n" +"Language-Team: Japanese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=EUC-JP\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: select +#. Choices +#. Note to translators: only the English word "Both" below should be translated +#: ../pawserv.templates.master:4 +msgid "Pawserv, Zserv, Both" +msgstr "Pawserv, Zserv, ξÊý" + +#. Type: select +#. Description +#: ../pawserv.templates.master:6 +msgid "Servers to be run from inetd" +msgstr "¥µ¡¼¥Ð¤Ï inetd ¤«¤éµ¯Æ°¤µ¤ì¤Þ¤¹" + +#. Type: select +#. Description +#: ../pawserv.templates.master:6 +msgid "" +"This package includes both the pawserv daemon (permitting remote hosts to " +"read local files while running PAW/Paw++) and the zserv daemon (allowing " +"remote hosts to log in using CERN's ZFTP protocol). These servers are run " +"from inetd; you may enable either or both of them. Unless you have very " +"specialized requirements, most likely you only want to enable pawserv." +msgstr "" +"¤³¤Î¥Ñ¥Ã¥±¡¼¥¸¤Ï pawserv ¥Ç¡¼¥â¥ó(PAW/Paw++ ¤òÆ°ºî¤µ¤»¤Æ¤¤¤ë´Ö¡¢¥ê¥â¡¼¥È¥Û¥¹" +"¥È¤Ë¥í¡¼¥«¥ë¤Î¥Õ¥¡¥¤¥ë¤òÆɤ߼è¤ë¤Î¤òµö²Ä¤·¤Þ¤¹) ¤È zserv ¥Ç¡¼¥â¥ó(¥ê¥â¡¼¥È¥Û" +"¥¹¥È¤Ë CERN ZFTP ¥×¥í¥È¥³¥ë¤ò»È¤Ã¤Æ¥í¥°¤ò¤È¤ë¤Î¤òµö²Ä¤·¤Þ¤¹) ¤ÎξÊý¤ò´Þ¤ó¤Ç¤¤" +"¤Þ¤¹¡£¤³¤ì¤é¤Î¥µ¡¼¥Ð¤Ï inetd ¤«¤éµ¯Æ°¤µ¤ì¤Þ¤¹¡£¤É¤Á¤é¤«¡¢¤Þ¤¿¤ÏξÊý¤òÍ­¸ú¤Ë¤Ç" +"¤­¤Þ¤¹¡£ÆÃÊ̤ÊÍ׵᤬̵¤¤¸Â¤ê¡¢ÂçÄñ¤Î¾ì¹ç¤Ï pawserv ¤À¤±¤òÍ­¸ú¤Ë¤·¤Þ¤¹¡£" --- cernlib-2005.05.09.dfsg.orig/debian/po/fr.po +++ cernlib-2005.05.09.dfsg/debian/po/fr.po @@ -0,0 +1,55 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: cernlib\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-02-25 17:23-0500\n" +"PO-Revision-Date: 2004-03-09 07:50+0100\n" +"Last-Translator: Christian Perrier \n" +"Language-Team: French \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=iso-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: select +#. Choices +#. Note to translators: only the English word "Both" below should be translated +#: ../pawserv.templates.master:4 +msgid "Pawserv, Zserv, Both" +msgstr "Pawserv, Zserv, Les deux" + +#. Type: select +#. Description +#: ../pawserv.templates.master:6 +msgid "Servers to be run from inetd" +msgstr "Serveurs à lancer depuis inetd :" + +#. Type: select +#. Description +#: ../pawserv.templates.master:6 +msgid "" +"This package includes both the pawserv daemon (permitting remote hosts to " +"read local files while running PAW/Paw++) and the zserv daemon (allowing " +"remote hosts to log in using CERN's ZFTP protocol). These servers are run " +"from inetd; you may enable either or both of them. Unless you have very " +"specialized requirements, most likely you only want to enable pawserv." +msgstr "" +"Ce paquet fournit à la fois le démon pawserv (qui permet aux hôtes distants " +"d'accéder aux fichiers locaux lorsque PAX/Paw++ sont utilisés) et le démon " +"zserv (qui permet aux hôtes distants d'effectuer des connexions avec le " +"protocole ZFTP du CERN). Ces deux serveurs sont lancés par le super-serveur " +"inetd, il est possible d'activer l'un ou l'autre ou bien les deux. À moins " +"d'avoir des besoins particuliers, il sera en général suffisant d'activer " +"pawserv." --- cernlib-2005.05.09.dfsg.orig/debian/po/POTFILES.in +++ cernlib-2005.05.09.dfsg/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] pawserv.templates --- cernlib-2005.05.09.dfsg.orig/debian/po/vi.po +++ cernlib-2005.05.09.dfsg/debian/po/vi.po @@ -0,0 +1,40 @@ +# Vietnamese translation for cernlib. +# Copyright © 2005 Free Software Foundation, Inc. +# Clytie Siddall , 2005. +# +msgid "" +msgstr "" +"Project-Id-Version: cernlib 2004.11.04-3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-02-25 17:23-0500\n" +"PO-Revision-Date: 2005-06-13 15:24+0930\n" +"Last-Translator: Clytie Siddall \n" +"Language-Team: Vietnamese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0\n" + +#. Type: select +#. Choices +#. Note to translators: only the English word "Both" below should be translated +#: ./pawserv.templates.master:4 +msgid "Pawserv, Zserv, Both" +msgstr "Pawserv, Zserv, Cả hai" + +#. Type: select +#. Description +#: ../pawserv.templates.master:6 +msgid "Servers to be run from inetd" +msgstr "Máy phục vụ cần chạy từ trình inetd" + +#. Type: select +#. Description +#: ./pawserv.templates.master:6 +msgid "" +"This package includes both the pawserv daemon (permitting remote hosts to " +"read local files while running PAW/Paw++) and the zserv daemon (allowing " +"remote hosts to log in using CERN's ZFTP protocol). These servers are run " +"from inetd; you may enable either or both of them. Unless you have very " +"specialized requirements, most likely you only want to enable pawserv." +msgstr "Gói tin này bao gồm cả hai trình ná»n (dæmon) pawserv (mà cho phép máy tá» xa Ä‘á»c tập tin địa phÆ°Æ¡ng trong khi chạy PAW/Paw++) và trình ná»n zserv (mà cho phép máy từ xa đăng nhập dùng giao thức ZFTP của CERN). Cả hai trình phục vụ này được chạy từ trình ná»n inetd; bạn có thể hiệu lá»±c má»™t hay cả hai Ä‘iá»u. Tuy nhiên, trừ bạn cần thiết làm việc rất đặc biệt, rất có thể là bạn sẽ muốn hiệu lá»±c chỉ trình pawserv." --- cernlib-2005.05.09.dfsg.orig/debian/po/pt_BR.po +++ cernlib-2005.05.09.dfsg/debian/po/pt_BR.po @@ -0,0 +1,55 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: cernlib\n" +"Report-Msgid-Bugs-To: debian-l10n-portuguese@lists.debian.org\n" +"POT-Creation-Date: 2004-02-25 17:23-0500\n" +"PO-Revision-Date: 2005-05-26 16:05-0300\n" +"Last-Translator: André Luís Lopes \n" +"Language-Team: Debian-BR Project \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: select +#. Choices +#. Note to translators: only the English word "Both" below should be translated +#: ../pawserv.templates.master:4 +msgid "Pawserv, Zserv, Both" +msgstr "Pawserv, Zserv, Ambos" + +#. Type: select +#. Description +#: ../pawserv.templates.master:6 +msgid "Servers to be run from inetd" +msgstr "Servidores a serem executados a partir do inetd" + +#. Type: select +#. Description +#: ../pawserv.templates.master:6 +msgid "" +"This package includes both the pawserv daemon (permitting remote hosts to " +"read local files while running PAW/Paw++) and the zserv daemon (allowing " +"remote hosts to log in using CERN's ZFTP protocol). These servers are run " +"from inetd; you may enable either or both of them. Unless you have very " +"specialized requirements, most likely you only want to enable pawserv." +msgstr "" +"Este pacote inclui ambos o daemon pawserv (permitindo hosts remotos " +"lerem arquivos locais enquanto executando PAW/Paw++) e o daemon zerv " +"(permitindo hosts remotos a se autenticarem usando o protocolo ZFTP " +"do CERN). Esses servidores são executados a partir do inetd; você " +"pode habilitar cada um deles separadamente ou ambos. A menos que você " +"possua necessidades bastante especializadas, você provavelmente irá " +"desejar habilitar somente o pawserv." --- cernlib-2005.05.09.dfsg.orig/debian/po/sv.po +++ cernlib-2005.05.09.dfsg/debian/po/sv.po @@ -0,0 +1,53 @@ +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# Developers do not need to manually edit POT or PO files. +# , fuzzy +# +# +msgid "" +msgstr "" +"Project-Id-Version: cernlib 2005.05.09-4\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-02-25 17:23-0500\n" +"PO-Revision-Date: 2005-10-06 23:50+0200\n" +"Last-Translator: Daniel Nylander \n" +"Language-Team: Swedish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=iso-8859-1\n" +"Content-Transfer-Encoding: 8bit" + +#. Type: select +#. Choices +#. Note to translators: only the English word "Both" below should be translated +#: ../pawserv.templates.master:4 +msgid "Pawserv, Zserv, Both" +msgstr "Pawserv, Zserv, Båda" + +#. Type: select +#. Description +#: ../pawserv.templates.master:6 +msgid "Servers to be run from inetd" +msgstr "Servrar som ska köras från inetd" + +#. Type: select +#. Description +#: ../pawserv.templates.master:6 +msgid "" +"This package includes both the pawserv daemon (permitting remote hosts to " +"read local files while running PAW/Paw++) and the zserv daemon (allowing " +"remote hosts to log in using CERN's ZFTP protocol). These servers are run " +"from inetd; you may enable either or both of them. Unless you have very " +"specialized requirements, most likely you only want to enable pawserv." +msgstr "" +"Detta paket inkluderar både pawserver-daemonen (tillåter fjärrsystem att " +"läsa lokala filer när PAW/Paw++ körs) och zserv-daemonen (tillåter fjärrsystem " +"att logga in med CERN's ZFTP-protokoll). Dessa servrar körs från inetd; du måste " +"aktivera någon eller båda av dom. Om du inte har speciella krav så räcker det gott " +"om pawserv aktiveras." + --- cernlib-2005.05.09.dfsg.orig/debian/po/es.po +++ cernlib-2005.05.09.dfsg/debian/po/es.po @@ -0,0 +1,55 @@ +# cernlib po-debconf translation to Spanish +# Copyright (C) 2005 Software in the Public Interest +# This file is distributed under the same license as the cernlib package. +# +# Changes: +# - Initial translation +# César Gómez Martín +# +# Traductores, si no conoce el formato PO, merece la pena leer la +# documentación de gettext, especialmente las secciones dedicadas a este +# formato, por ejemplo ejecutando: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# Equipo de traducción al español, por favor, lean antes de traducir +# los siguientes documentos: +# +# - El proyecto de traducción de Debian al español +# http://www.debian.org/intl/spanish/ +# especialmente las notas de traducción en +# http://www.debian.org/intl/spanish/notas +# +# - La guía de traducción de po's de debconf: +# /usr/share/doc/po-debconf/README-trans +# o http://www.debian.org/intl/l10n/po-debconf/README-trans +# +msgid "" +msgstr "" +"Project-Id-Version: cernlib\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-02-25 17:23-0500\n" +"PO-Revision-Date: 2005-09-01 17:49+0100\n" +"Last-Translator: César Gómez Martín \n" +"Language-Team: Debian l10n spanish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Spanish\n" +"X-Poedit-Country: SPAIN\n" +"X-Poedit-SourceCharset: utf-8\n" + +#. Type: select +#: ../pawserv.templates.master:4 +msgid "Pawserv, Zserv, Both" +msgstr "Pawserv, Zserv, Ambos" + +#. Type: select +#: ../pawserv.templates.master:6 +msgid "Servers to be run from inetd" +msgstr "Servidores a ejecutar desde inetd" + +#. Type: select +#: ../pawserv.templates.master:6 +msgid "This package includes both the pawserv daemon (permitting remote hosts to read local files while running PAW/Paw++) and the zserv daemon (allowing remote hosts to log in using CERN's ZFTP protocol). These servers are run from inetd; you may enable either or both of them. Unless you have very specialized requirements, most likely you only want to enable pawserv." +msgstr "Este paquete incluye el demonio pawserv (permite a las máquinas remotas leer ficheros locales mientras se ejecuta PAW/Paw++) y el demonio zserv (permite a las máquinas remotas conectarse a través del protocolo ZFTP del CERN). Estos servidores se ejecutan desde inetd; puede habilitar cualquiera de ellos o los dos. A no ser que tenga algunos requisitos muy especializados, lo más probable es que sólo quiera habilitar pawserv." +