Bug#594046: libpetsc3.1: C++ version should live in -cxx-{debug, opt}, not -c-{debug, opt}

Juha Jäykkä juhaj at iki.fi
Mon Aug 23 10:27:42 UTC 2010


Package: libpetsc3.1
Version: 3.1.dfsg-7
Severity: wishlist


PETSc, when compiled with C++ as C-language, should be installed in 
$(PETSC_ARCH)-cxx-opt, not in $(PETSC_ARCH)-c-opt. This is required by various
third party libraries that depend on PETSc, such as TAO. It should be ok to 
symlink c-opt to cxx-opt (or the other way around). I admit, this distinction
between cxx and c versions of the library, where --with-c-support gives 
c-compatibility anyway, is strange to me. I have the third party libraries
compiled with CC, but all my own code is C and compiled with cc anyway, so I
am fairly certain there is no need for PETSc --with-c-language=C version at
all, but perhaps some exotic environment requires that - I do not know.

The best solution would be, I think, to have both cxx and c versions available,
but then we would have the immediate problem of which version gets used if both 
are installed. Perhaps the alternatives-system can handle that and anyone wishing
to use the non-default version would just set PETSC_DIR and PETSC_ARCH manually?

Or is there a nicer solution?

-Juha

P.S. My apologies to Don Pellegrino, I should have remembered to mention the
-with-c-support flag in #580546. I hope I do not mess you up again! =)


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.35-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libpetsc3.1 depends on:
ii  libamd2.2.0             1:3.4.0-2        approximate minimum degree orderin
ii  libatlas3gf-base [libla 3.8.3-24         Automatically Tuned Linear Algebra
ii  libblas3gf [libblas.so. 1.2-7            Basic Linear Algebra Reference imp
ii  libc6                   2.11.2-2         Embedded GNU C Library: Shared lib
ii  libgcc1                 1:4.4.4-9        GCC support library
ii  libgfortran3            4.4.4-9          Runtime library for GNU Fortran ap
ii  libhdf5-openmpi-1.8.4   1.8.4-patch1-2   Hierarchical Data Format 5 (HDF5) 
ii  libhypre-2.4.0          2.4.0b-7         High Performance Matrix Preconditi
ii  liblapack3gf [liblapack 3.2.2-1          library of linear algebra routines
ii  libopenmpi1.3           1.4.2-3          high performance message passing l
ii  libscotch-5.1           5.1.8a.dfsg-2    programs and libraries for graph, 
ii  libspooles2.2           2.2-8            SPOOLES SParse Object Oriented Lin
ii  libstdc++6              4.4.4-9          The GNU Standard C++ Library v3
ii  libumfpack5.4.0         1:3.4.0-2        sparse LU factorization library
ii  libx11-6                2:1.3.3-3        X11 client-side library
ii  openmpi-bin             1.4.2-3          high performance message passing l
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

libpetsc3.1 recommends no packages.

libpetsc3.1 suggests no packages.

-- no debconf information





More information about the debian-science-maintainers mailing list