Hi Gianfranco,

2020年3月8日(日) 17:10 Gianfranco Costamagna <locutusofb...@debian.org>:
>
> control: tags -1 patch
>
> the following works.
> diff -Nru sdpa-7.3.12+dfsg/debian/changelog sdpa-7.3.12+dfsg/debian/changelog
> --- sdpa-7.3.12+dfsg/debian/changelog    2019-12-06 08:00:00.000000000 +0100
> +++ sdpa-7.3.12+dfsg/debian/changelog    2020-03-08 09:03:01.000000000 +0100
> @@ -1,3 +1,10 @@
> +sdpa (7.3.12+dfsg-1.1) unstable; urgency=medium
> +
> +  * Fix rules to dynamically evaluate mumps version on binNMU
> +    (Closes: #953158)
> +
> + -- Gianfranco Costamagna <locutusofb...@debian.org>  Sun, 08 Mar 2020 
> 09:03:01 +0100
> +
>  sdpa (7.3.12+dfsg-1) unstable; urgency=low
>
>     * New upstream
> diff -Nru sdpa-7.3.12+dfsg/debian/control sdpa-7.3.12+dfsg/debian/control
> --- sdpa-7.3.12+dfsg/debian/control    2019-12-06 08:00:00.000000000 +0100
> +++ sdpa-7.3.12+dfsg/debian/control    2020-03-08 08:32:37.000000000 +0100
> @@ -11,7 +11,7 @@
>  Package: sdpa
>  Architecture: any
>  Depends: ${shlibs:Depends}, ${misc:Depends},
> -   libopenblas-dev, libmumps-seq-5.1.2
> +   libopenblas-dev, libmumps-seq-${mumps-seq:Version}

Aha,  this is nice!

>  Description: High-performance package for SemiDefinite Programs
>   The software SDPA (SemiDefinite Programming Algorithm) is one of the most
>   efficient and stable  software packages for solving SDPs based on the
> @@ -38,7 +38,7 @@
>  Package: sdpam
>  Architecture: any
>  Depends: ${shlibs:Depends}, ${misc:Depends},
> -   libopenblas-pthread-dev, libmumps-seq-5.1.2,
> +   libopenblas-pthread-dev, libmumps-seq-${mumps-seq:Version},
>     octave, libsdpa-dev
>  Description: Matlab/Octave interface of SDPA
>   This package provides SDPA-M, Matlab/Octave interface
> diff -Nru sdpa-7.3.12+dfsg/debian/rules sdpa-7.3.12+dfsg/debian/rules
> --- sdpa-7.3.12+dfsg/debian/rules    2019-12-06 08:00:00.000000000 +0100
> +++ sdpa-7.3.12+dfsg/debian/rules    2020-03-08 09:02:45.000000000 +0100
> @@ -37,6 +37,8 @@
>  MUMPS_LIBS="/usr/lib/$(DEB_HOST_MULTIARCH)/libdmumps_seq.a 
> /usr/lib/$(DEB_HOST_MULTIARCH)/libmumps_common_seq.a 
> /usr/lib/$(DEB_HOST_MULTIARCH)/libmpiseq_seq.a 
> /usr/lib/$(DEB_HOST_MULTIARCH)/libpord_seq.a -lscotch -lesmumps"
>  DEB_CONFIGURE_EXTRA_FLAGS += --with-mumps-libs=$(MUMPS_LIBS)
>
> +LIBMUMPS_VER := $(shell dpkg --status libmumps-seq-dev | awk '/^Version:/ 
> {print $$2}' |cut -f 1 -d "-")
> +DEB_DH_GENCONTROL_ARGS_ALL = -- -Vmumps-seq:Version=$(LIBMUMPS_VER)
>
>  SDPA_DIR=$(CURDIR)/debian/sdpa
>  SDPAM_DIR=$(CURDIR)/debian/sdpam
>
>

Best regards,
  Nobuhiro

-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6

Reply via email to