Hi,

Am 31.07.22 um 16:44 schrieb Rene Engelhard:
This is now https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1016420 (where the upstream bug which that one is marked as forwarded to has also the reasoning why support for < 3.16 was dropped which makes the patch bigger).

I now did a minimal patch (attached.) in case the original patch is deemed to big (which I can understand)


Should I upload this or the original upstream patch?

(I'd personally prefer the latter, but the former also is OK for me)


Regards,


Rene
diff --git a/changelog b/changelog
index 41633702..e1f8835a 100644
--- a/changelog
+++ b/changelog
@@ -1,3 +1,11 @@
+libreoffice (1:7.0.4-4+deb11u3) stable; urgency=medium
+
+  * debian/patches/fix-e_book_client_connect_direct_sync-sig.diff:
+    as name says; just use the minimal change with added
+    eds_check_version check (closes: #1016420)
+
+ -- Rene Engelhard <r...@debian.org>  Sun, 28 Aug 2022 16:37:25 +0200
+
 libreoffice (1:7.0.4-4+deb11u2) stable; urgency=medium
 
   * debian/patches/hrk-euro.diff: add EUR to .hr i18n;
diff --git a/patches/fix-e_book_client_connect_direct_sync-sig.diff 
b/patches/fix-e_book_client_connect_direct_sync-sig.diff
new file mode 100644
index 00000000..ea815e1e
--- /dev/null
+++ b/patches/fix-e_book_client_connect_direct_sync-sig.diff
@@ -0,0 +1,16 @@
+diff --git a/connectivity/source/drivers/evoab2/NResultSet.cxx 
b/connectivity/source/drivers/evoab2/NResultSet.cxx
+index 77d53939c1aa..ef64891803c2 100644
+--- a/connectivity/source/drivers/evoab2/NResultSet.cxx
++++ b/connectivity/source/drivers/evoab2/NResultSet.cxx
+@@ -477,7 +477,10 @@ class OEvoabVersion38Helper : public OEvoabVersion36Helper
+ protected:
+     virtual EBookClient * createClient( ESource *pSource ) override
+     {
+-        return e_book_client_connect_direct_sync (get_e_source_registry (), 
pSource, nullptr, nullptr);
++      if (eds_check_version( 3, 16, 0 ) == nullptr) 
++              return e_book_client_connect_direct_sync (get_e_source_registry 
(), pSource, 10, nullptr, nullptr);
++      else    
++              return e_book_client_connect_direct_sync (get_e_source_registry 
(), pSource, nullptr, nullptr);
+     }
+ };
+ 
diff --git a/patches/series b/patches/series
index fa58e363..69db8a90 100644
--- a/patches/series
+++ b/patches/series
@@ -62,3 +62,4 @@ b0404f80577de9ff69e58390c6f6ef949fdb0139.patch
 0002-CVE-2022-26307-make-hash-encoding-match-decoding.patch
 0003-CVE-2022-26306-add-Initialization-Vectors-to-passwor.patch
 0004-CVE-2022-2630-6-7-add-infobar-to-prompt-to-refresh-t.patch
+fix-e_book_client_connect_direct_sync-sig.diff

Reply via email to