[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: building package with different libs



On Tue, 21 Oct 2008, Thorsten Alteholz wrote:
> To make this a bit more realistic: It is about package meep-mpi.
> Currently it uses libhdf5-serial and there is a requet to build it
> with libhdf5-mpich and libhdf5-openmpi. So my Build-Depends: in the
> source section needs to contain either libhdf5-serial-dev,
> libhdf5-mpich-dev or libhdf5-openmpi-dev. Is it still possible to
> build package meep-mpi-hdf5serial, meep-mpi-hdf5mpich and
> meep-mpi-hdf5openmpi?

The right way to solve this, IMO, is to fix libhdf5 to provide the
same API and ABI, possibly in a separate libhdf5 package, which
dlopens (or similar) the appropriate -serial/openmpi/mpich adapter
bits.

Everything else will be suboptimal, as you currently can't use a
program which uses libhdf5-openmpi and libhdf5-mpich on the same
system. (For example, if you were on a machine using two different
clusters, or similar.)


Don Armstrong

-- 
Clothes make the man. Naked people have little or no influence on
society.
 -- Mark Twain 

http://www.donarmstrong.com              http://rzlab.ucr.edu


Reply to: