[Pkg-openmpi-maintainers] Bug#502232: Bug#502232: [Pkg-openmpi-commits] r141 - in /openmpi/trunk/debian: libopenmpi-dev.install rules

Sylvestre Ledru sylvestre.ledru at inria.fr
Mon Oct 20 11:33:56 UTC 2008


Hello Manuel,

> This will work but I am a little confused if that is the solution we
> wanted to implement. As I read your patch [0], you build both static and
> shared libs and install them into the right package. IIRC there was an
> issue with libmca_common_sm. Is this solved in your solution?
Yep, it is. The trick here is that I am doing the same thing as before.
I am just taking the static libraries to include them into
libopenmpi-dev.

> The solution I proposed (the GROMACS one) would go like this:
> 
>      1. Check whether DEB_BUILD_OPTS has "static-libs" (or something
>         alike) set.
>      2. If so, set a variable (LIB_OPTS or alike) to "--enable-static",
>         otherwise to "--enable-shared".
>      3. Append the variables content to the configure arguments.
>      4. Build.
>      5. Install the result, which is either static or shared.
Well, I took the idea from gromacs but I don't see what you are talking about in the current package.
In gromacs 3.3.3-3, they don't do the way you describe. They are
building it many time [1].

> With this, the package would be as is, and users can easily recompile to
> get a static version. I agree that your solution of building both is
> superior since both versions can be installed at the same time; if the
> libmca_common issue is resolved. (If there is any.)
I believe this issue fixed this way. I need to test it deeper.

> Please forgive my criticism, I'm just not sure whether we were talking
> about the same things lately. 
It is my feeling ;). My goal here is to address ""lambda users"" trying
to provide the actual static libraries in the -dev package without
changing the behaviour of the dyn libraries.

> Your work is of course welcome and
> appreciated!
> 
> > Works for me. If you agree, I upload it.
> 
> Looks OK for me but I did not test it yet. It would be nice if I could
> do so this evening. If you feel the urgent need to upload, feel free to
> do so nevertheless. ;)
No emergency !

Thanks for your feedback.
Sylvestre

[1]

        (mkdir -p build/basic; cd build/basic; ../../configure $(COMMON_CONFIG_PARAMS))
        (mkdir -p build/basic-dp; cd build/basic-dp; ../../configure
$(COMMON_CONFIG_PARAMS) --program-suffix=_d --enable-double)
        (mkdir -p build/lam; cd build/lam; ../../configure
$(COMMON_CONFIG_PARAMS) $(LAM_CONFIG_PARAMS) LIBSUFFIX=_mpi_lam
--program-suffix=_mpi.lam)
        (mkdir -p build/lam-dp; cd build/lam-dp; ../../configure
$(COMMON_CONFIG_PARAMS) $(LAM_CONFIG_PARAMS) LIBSUFFIX=_mpi_d_lam
--program-suffix=_mpi_d.lam --enable-double)
        (mkdir -p build/mpich; cd build/mpich; ../../configure
$(COMMON_CONFIG_PARAMS) $(MPICH_CONFIG_PARAMS) LIBSUFFIX=_mpi_mpich
--program-suffix=_mpi.mpich)
        (mkdir -p build/mpich-dp; cd build/mpich-dp; ../../configure
$(COMMON_CONFIG_PARAMS) $(MPICH_CONFIG_PARAMS) LIBSUFFIX=_mpi_d_mpich
--program-suffix=_mpi_d.mpich --enable-double)








More information about the Pkg-openmpi-maintainers mailing list