Hello, this might do the trick:
http://launchpadlibrarian.net/554140305/pmix_4.1.0-2ubuntu1_4.1.0-2ubuntu2.diff.gz

We should also drop cython (gone in Debian too) and patch to use cython3 
instead of failing the build.

diff -Nru pmix-4.1.0/debian/changelog pmix-4.1.0/debian/changelog
--- pmix-4.1.0/debian/changelog 2021-08-17 20:21:10.000000000 +0000
+++ pmix-4.1.0/debian/changelog 2021-08-18 07:57:28.000000000 +0000
@@ -1,3 +1,11 @@
+pmix (4.1.0-2.1) unstable; urgency=medium
+
+  * Update breaks/replaces to fix uninstallability (Closes: #991549)
+  * Drop cython b-d
+  * Move to cython3
+
+ -- Gianfranco Costamagna <locutusofb...@debian.org>  Wed, 18 Aug 2021 
09:57:28 +0200
+
 pmix (4.1.0-2ubuntu1) impish; urgency=low
 
   * Merge from Debian unstable. Remaining changes:
diff -Nru pmix-4.1.0/debian/control pmix-4.1.0/debian/control
--- pmix-4.1.0/debian/control   2021-08-16 21:31:22.000000000 +0000
+++ pmix-4.1.0/debian/control   2021-08-18 07:57:28.000000000 +0000
@@ -7,7 +7,7 @@
  chrpath,
  flex,
  python3-all-dev,
- cython3, cython,
+ cython3,
  python3-distutils,
  pandoc [!i386],
  libpsm-infinipath1-dev [amd64 i386],
@@ -26,6 +26,8 @@
 Package: libpmix-dev
 Section: libdevel
 Architecture: any
+Breaks: libpmix2 (<< 4.1.0~rc1-1)
+Replaces: libpmix2 (<< 4.1.0~rc1-1)
 Multi-Arch: same
 Depends: ${shlibs:Drepends}, ${misc:Depends}, libpmix2 (= ${binary:Version}), 
libevent-dev, libhwloc-dev, zlib1g-dev
 Description: Development files for the PMI Exascale library  
diff -Nru pmix-4.1.0/debian/patches/pmix.patch 
pmix-4.1.0/debian/patches/pmix.patch
--- pmix-4.1.0/debian/patches/pmix.patch        1970-01-01 00:00:00.000000000 
+0000
+++ pmix-4.1.0/debian/patches/pmix.patch        2021-08-18 07:57:28.000000000 
+0000
@@ -0,0 +1,26 @@
+Description: Force cython3
+Author: Gianfranco Costamagna <locutusofb...@debian.org>
+Last-Update: 2021-08-18
+
+--- pmix-4.1.0.orig/config/pmix.m4
++++ pmix-4.1.0/config/pmix.m4
+@@ -1276,16 +1276,16 @@ if test "$WANT_PYTHON_BINDINGS" = "1"; t
+     if test "$have_cython" = "0"; then
+         AC_MSG_RESULT([yes])
+         AC_MSG_CHECKING([Cython version])
+-        cython_version=`python -c "from Cython.Compiler.Version import 
version; print(version)"`
++        cython_version=`python3 -c "from Cython.Compiler.Version import 
version; print(version)"`
+         AC_MSG_RESULT([$cython_version])
+         PMIX_SUMMARY_ADD([[Bindings]],[[Cython]], [pmix_cython], [yes 
($cython_version)])
+     else
+         AC_MSG_RESULT([no])
+         # Cython doesn't have any include or lib files - it is just a binary
+-        AC_CHECK_PROG(pmix_cython_rpm, cython, [cython])
++        AC_CHECK_PROG(pmix_cython_rpm, cython3, [cython])
+         if test "$pmix_cython_rpm" != ""; then
+             AC_MSG_CHECKING([Cython version])
+-            cyvers=`cython --version 2>&1`
++            cyvers=`cython3 --version 2>&1`
+             cython_version=${cyvers#"Cython version "}
+             AC_MSG_RESULT([$cython_version])
+             PMIX_SUMMARY_ADD([[Bindings]],[[Cython]], [pmix_cython], [yes 
($cython_version)])
diff -Nru pmix-4.1.0/debian/patches/series pmix-4.1.0/debian/patches/series
--- pmix-4.1.0/debian/patches/series    2021-08-16 21:31:22.000000000 +0000
+++ pmix-4.1.0/debian/patches/series    2021-08-18 07:57:28.000000000 +0000
@@ -1 +1,2 @@
 # hurd-fix.patch
+pmix.patch
On Tue, 27 Jul 2021 10:24:19 +0200 Andreas Beckmann <a...@debian.org> wrote:
> Package: libpmix-dev
> Version: 4.1.0~rc1-1
> Severity: serious
> User: debian...@lists.debian.org
> Usertags: piuparts
> 
> Hi,
> 
> during a test with piuparts I noticed your package fails to upgrade from
> 'sid' to 'experimental'.
> It installed fine in 'sid', then the upgrade to 'experimental' fails
> because it tries to overwrite other packages files without declaring a
> Breaks+Replaces relation.
> 
> See policy 7.6 at
> https://www.debian.org/doc/debian-policy/ch-relationships.html#overwriting-files-and-replacing-packages-replaces
> 
> From the attached log (scroll to the bottom...):
> 
>   Preparing to unpack .../libpmix-dev_4.1.0~rc1-1_amd64.deb ...
>   Unpacking libpmix-dev:amd64 (4.1.0~rc1-1) over (4.0.0-4) ...
>   dpkg: error processing archive 
> /var/cache/apt/archives/libpmix-dev_4.1.0~rc1-1_amd64.deb (--unpack):
>    trying to overwrite '/usr/lib/x86_64-linux-gnu/pmix2/lib/libpmix.so', 
> which is also in package libpmix2:amd64 4.0.0-4
>   Preparing to unpack .../libpmix2_4.1.0~rc1-1_amd64.deb ...
>   Unpacking libpmix2:amd64 (4.1.0~rc1-1) over (4.0.0-4) ...
>   Errors were encountered while processing:
>    /var/cache/apt/archives/libpmix-dev_4.1.0~rc1-1_amd64.deb
> 
> 
> cheers,
> 
> Andreas

Reply via email to