Ubuntu have an upload [1] that built successfully.
Patch attached.

[1] https://launchpad.net/ubuntu/+source/libpwiz/3.0.18342-2ubuntu1
diff -Nru libpwiz-3.0.18342/debian/changelog libpwiz-3.0.18342/debian/changelog
--- libpwiz-3.0.18342/debian/changelog	2019-02-01 22:38:03.000000000 +0000
+++ libpwiz-3.0.18342/debian/changelog	2020-06-01 12:35:31.000000000 +0000
@@ -1,3 +1,21 @@
+libpwiz (3.0.18342-2ubuntu1) groovy; urgency=medium
+
+  * Fix ftbfs with new gcc or boost.
+
+ -- Dimitri John Ledkov <x...@ubuntu.com>  Mon, 01 Jun 2020 13:35:31 +0100
+
+libpwiz (3.0.18342-2build2) focal; urgency=medium
+
+  * No-change rebuild for libgcc-s1 package name change.
+
+ -- Matthias Klose <d...@ubuntu.com>  Wed, 25 Mar 2020 18:40:19 +0100
+
+libpwiz (3.0.18342-2build1) focal; urgency=medium
+
+  * No change rebuild against new boost1.71 ABI
+
+ -- Dimitri John Ledkov <x...@ubuntu.com>  Mon, 03 Feb 2020 20:45:48 +0000
+
 libpwiz (3.0.18342-2) unstable; urgency=low
 
   * Improve header path (move pwiz to proteowizard) to ease with nested
diff -Nru libpwiz-3.0.18342/debian/control libpwiz-3.0.18342/debian/control
--- libpwiz-3.0.18342/debian/control	2018-12-10 15:14:26.000000000 +0000
+++ libpwiz-3.0.18342/debian/control	2020-02-03 20:45:48.000000000 +0000
@@ -1,6 +1,7 @@
 Source: libpwiz
 Priority: optional
-Maintainer: The Debichem Group <debichem-de...@lists.alioth.debian.org>
+Maintainer: Ubuntu Developers <ubuntu-devel-disc...@lists.ubuntu.com>
+XSBC-Original-Maintainer: The Debichem Group <debichem-de...@lists.alioth.debian.org>
 Uploaders: Filippo Rusconi <lopi...@debian.org>
 Build-Depends: debhelper (>= 9),
                dpkg-dev (>= 1.16.1~),
diff -Nru libpwiz-3.0.18342/debian/patches/fix-ftbfs.patch libpwiz-3.0.18342/debian/patches/fix-ftbfs.patch
--- libpwiz-3.0.18342/debian/patches/fix-ftbfs.patch	1970-01-01 00:00:00.000000000 +0000
+++ libpwiz-3.0.18342/debian/patches/fix-ftbfs.patch	2020-06-01 12:35:31.000000000 +0000
@@ -0,0 +1,70 @@
+Description: New gcc/boost fail to cast tribool to bool, force it.
+Author: Dimitri John Ledkov <x...@ubuntu.com>
+
+
+Index: libpwiz-3.0.18342/pwiz/data/identdata/IdentData.cpp
+===================================================================
+--- libpwiz-3.0.18342.orig/pwiz/data/identdata/IdentData.cpp
++++ libpwiz-3.0.18342/pwiz/data/identdata/IdentData.cpp
+@@ -1047,7 +1047,7 @@ PWIZ_API_DECL proteome::DigestedPeptide
+     BOOST_FOREACH(CVID cleavageAgent, cleavageAgents)
+     {
+         if (!findPeptideEvidenceWithRegex(pe, peptide, peptideSequenceInContext, cleavageAgent, "",
+-                                          sip.enzymes.independent, nTerminusIsSpecific, cTerminusIsSpecific,
++                                          (bool) sip.enzymes.independent, nTerminusIsSpecific, cTerminusIsSpecific,
+                                           bestSpecificity, bestResult))
+             break;
+     }
+@@ -1055,7 +1055,7 @@ PWIZ_API_DECL proteome::DigestedPeptide
+     BOOST_FOREACH(const string& regex, cleavageAgentRegexes)
+     {
+         if (!findPeptideEvidenceWithRegex(pe, peptide, peptideSequenceInContext, CVID_Unknown, regex,
+-                                          sip.enzymes.independent, nTerminusIsSpecific, cTerminusIsSpecific,
++                                          (bool) sip.enzymes.independent, nTerminusIsSpecific, cTerminusIsSpecific,
+                                           bestSpecificity, bestResult))
+             break;
+     }
+@@ -1109,7 +1109,7 @@ PWIZ_API_DECL vector<proteome::DigestedP
+         BOOST_FOREACH(CVID cleavageAgent, cleavageAgents)
+         {
+             if (!findPeptideEvidenceWithRegex(pe, peptide, peptideSequenceInContext, cleavageAgent, "",
+-                                              sip.enzymes.independent, nTerminusIsSpecific, cTerminusIsSpecific,
++                                              (bool) sip.enzymes.independent, nTerminusIsSpecific, cTerminusIsSpecific,
+                                               bestSpecificity, bestResult))
+                 break;
+         }
+@@ -1117,7 +1117,7 @@ PWIZ_API_DECL vector<proteome::DigestedP
+         BOOST_FOREACH(const string& regex, cleavageAgentRegexes)
+         {
+             if (!findPeptideEvidenceWithRegex(pe, peptide, peptideSequenceInContext, CVID_Unknown, regex,
+-                                              sip.enzymes.independent, nTerminusIsSpecific, cTerminusIsSpecific,
++                                              (bool) sip.enzymes.independent, nTerminusIsSpecific, cTerminusIsSpecific,
+                                               bestSpecificity, bestResult))
+                 break;
+         }
+Index: libpwiz-3.0.18342/pwiz/data/identdata/Serializer_pepXML.cpp
+===================================================================
+--- libpwiz-3.0.18342.orig/pwiz/data/identdata/Serializer_pepXML.cpp
++++ libpwiz-3.0.18342/pwiz/data/identdata/Serializer_pepXML.cpp
+@@ -409,7 +409,7 @@ struct EnzymePtr_minDistance
+ void write_sample_enzyme(XMLWriter& xmlWriter, const IdentData& mzid)
+ {
+     const SpectrumIdentificationProtocol& sip = *mzid.analysisProtocolCollection.spectrumIdentificationProtocol[0];
+-    bool independent = sip.enzymes.independent;
++    bool independent = (bool) sip.enzymes.independent;
+ 
+     // create a cumulative enzyme name for multiple enzymes like "Trypsin + AspN + Chymotrypsin"
+     string enzymeName = bal::join(sip.enzymes.enzymes | boost::adaptors::transformed(EnzymePtr_name()), " + ");
+Index: libpwiz-3.0.18342/pwiz/data/identdata/TextWriter.hpp
+===================================================================
+--- libpwiz-3.0.18342.orig/pwiz/data/identdata/TextWriter.hpp
++++ libpwiz-3.0.18342/pwiz/data/identdata/TextWriter.hpp
+@@ -506,7 +506,7 @@ class PWIZ_API_DECL TextWriter
+     {
+         (*this)("Enzymes: ");
+         if (!indeterminate(ezs.independent))
+-            child()("independent: ", ezs.independent);
++            child()("independent: ", (bool)ezs.independent);
+         if (!ezs.enzymes.empty())
+             child()("enzymes: ", ezs.enzymes);
+         return *this;
diff -Nru libpwiz-3.0.18342/debian/patches/series libpwiz-3.0.18342/debian/patches/series
--- libpwiz-3.0.18342/debian/patches/series	1970-01-01 00:00:00.000000000 +0000
+++ libpwiz-3.0.18342/debian/patches/series	2020-06-01 12:34:56.000000000 +0000
@@ -0,0 +1 @@
+fix-ftbfs.patch

Reply via email to