unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#66024] [PATCH v1 0/4] Kiwix updates
@ 2023-09-16  8:42 Denis 'GNUtoo' Carikli
  2023-09-16  9:06 ` [bug#66024] [PATCH v1 1/4] gnu: libzim: Update to 8.2.1 Denis 'GNUtoo' Carikli
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Denis 'GNUtoo' Carikli @ 2023-09-16  8:42 UTC (permalink / raw)
  To: 66024; +Cc: Denis 'GNUtoo' Carikli

Hi,

Here's is a patch set to update some Kiwix related packages and dependencies.

Denis.

Denis 'GNUtoo' Carikli (4):
  gnu: libzim: Update to 8.2.1.
  gnu: kiwix-lib: Update to 13.0.0.
  gnu: kiwix-tools: Update to 3.5.0.
  gnu: kiwix-desktop: Update to 2.3.1.

 gnu/local.mk                                  |  1 +
 .../kiwix-desktop-newer-libkiwix.patch        | 40 +++++++++++++++++++
 gnu/packages/web.scm                          | 19 ++++-----
 3 files changed, 51 insertions(+), 9 deletions(-)
 create mode 100644 gnu/packages/patches/kiwix-desktop-newer-libkiwix.patch


base-commit: b696fb41bc0dfcb7130a5aa6d69aff2ae191c283
-- 
2.41.0





^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#66024] [PATCH v1 1/4] gnu: libzim: Update to 8.2.1.
  2023-09-16  8:42 [bug#66024] [PATCH v1 0/4] Kiwix updates Denis 'GNUtoo' Carikli
@ 2023-09-16  9:06 ` Denis 'GNUtoo' Carikli
  2023-09-16  9:06 ` [bug#66024] [PATCH v1 2/4] gnu: kiwix-lib: Update to 13.0.0 Denis 'GNUtoo' Carikli
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Denis 'GNUtoo' Carikli @ 2023-09-16  9:06 UTC (permalink / raw)
  To: 66024; +Cc: Denis 'GNUtoo' Carikli

* gnu/packages/web.scm  (libzim): Update to 8.2.1.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
---
 gnu/packages/web.scm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 1b4eafeab8..aea0bdc0c3 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -53,7 +53,7 @@
 ;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev>
 ;;; Copyright © 2021 Jack Hill <jackhill@jackhill.us>
 ;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
-;;; Copyright © 2021 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
+;;; Copyright © 2021, 2023 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
 ;;; Copyright © 2021 Vinicius Monego <monego@posteo.net>
 ;;; Copyright © 2022 cage <cage-dev@twistfold.it>
 ;;; Copyright © 2022 Pradana Aumars <paumars@courrier.dev>
@@ -8613,7 +8613,7 @@ (define-public kineto
 (define-public libzim
   (package
     (name "libzim")
-    (version "8.0.0")
+    (version "8.2.1")
     (source (origin
               (method git-fetch)
               (uri (git-reference
@@ -8621,7 +8621,7 @@ (define-public libzim
                     (commit version)))
               (sha256
                (base32
-                "1a7wj8kmpx5aqx0wsfcnaqlfsf1gr66iqxyn24cgjnk4d1rjsahm"))
+                "1g735aqw0vlxqgyjv02lvq24dr5shydp4y8mqianf8720s5fs73f"))
               (file-name (git-file-name name version))))
     (build-system meson-build-system)
     (arguments
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#66024] [PATCH v1 2/4] gnu: kiwix-lib: Update to 13.0.0.
  2023-09-16  8:42 [bug#66024] [PATCH v1 0/4] Kiwix updates Denis 'GNUtoo' Carikli
  2023-09-16  9:06 ` [bug#66024] [PATCH v1 1/4] gnu: libzim: Update to 8.2.1 Denis 'GNUtoo' Carikli
@ 2023-09-16  9:06 ` Denis 'GNUtoo' Carikli
  2023-09-16  9:06 ` [bug#66024] [PATCH v1 3/4] gnu: kiwix-tools: Update to 3.5.0 Denis 'GNUtoo' Carikli
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Denis 'GNUtoo' Carikli @ 2023-09-16  9:06 UTC (permalink / raw)
  To: 66024; +Cc: Denis 'GNUtoo' Carikli

* gnu/packages/web.scm (kiwix-lib): Update to 13.0.0.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
---
 gnu/packages/web.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index aea0bdc0c3..21bb80f70f 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -8647,7 +8647,7 @@ (define-public libzim
 (define-public kiwix-lib
   (package
     (name "kiwix-lib")
-    (version "11.0.0")
+    (version "13.0.0")
     (home-page "https://github.com/kiwix/kiwix-lib/")
     (source (origin
               (method git-fetch)
@@ -8656,7 +8656,7 @@ (define-public kiwix-lib
                     (commit version)))
               (sha256
                (base32
-                "1w5dabzvd3cnhw064qf9166476fszkkxjcml21x35av0dcd1vlk6"))
+                "0mvlppbj0mqn4ka3cfaaj1pvn062cxbgz01c0nq04x0mzq1xwh5w"))
               (file-name (git-file-name name version))))
     (build-system meson-build-system)
     (arguments
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#66024] [PATCH v1 3/4] gnu: kiwix-tools: Update to 3.5.0.
  2023-09-16  8:42 [bug#66024] [PATCH v1 0/4] Kiwix updates Denis 'GNUtoo' Carikli
  2023-09-16  9:06 ` [bug#66024] [PATCH v1 1/4] gnu: libzim: Update to 8.2.1 Denis 'GNUtoo' Carikli
  2023-09-16  9:06 ` [bug#66024] [PATCH v1 2/4] gnu: kiwix-lib: Update to 13.0.0 Denis 'GNUtoo' Carikli
@ 2023-09-16  9:06 ` Denis 'GNUtoo' Carikli
  2023-09-16  9:06 ` [bug#66024] [PATCH v1 4/4] gnu: kiwix-desktop: Update to 2.3.1 Denis 'GNUtoo' Carikli
  2023-09-25 10:46 ` [bug#66024] [PATCH v1 0/4] Kiwix updates Christopher Baines
  4 siblings, 0 replies; 6+ messages in thread
From: Denis 'GNUtoo' Carikli @ 2023-09-16  9:06 UTC (permalink / raw)
  To: 66024; +Cc: Denis 'GNUtoo' Carikli

* gnu/packages/web.scm (kiwix-tools): Update to 3.5.0.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
---
 gnu/packages/web.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 21bb80f70f..221ee03728 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -8746,14 +8746,14 @@ (define-public kiwix-desktop
 (define-public kiwix-tools
   (package
     (name "kiwix-tools")
-    (version "3.3.0")
+    (version "3.5.0")
     (source (origin
               (method url-fetch)
               (uri (string-append "https://download.kiwix.org/release/"
                                   "kiwix-tools/kiwix-tools-" version ".tar.xz"))
               (sha256
                (base32
-                "07mj0lrznydhdbirybdyxswypr7hy290mjdv7lkjr6gxgdp29d37"))))
+                "0q6b7viy1jr212q0glqid2hqxnsd2mxsx5gzcalkc4gb0bzgj32d"))))
     (build-system meson-build-system)
     (inputs
      (list curl
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#66024] [PATCH v1 4/4] gnu: kiwix-desktop: Update to 2.3.1.
  2023-09-16  8:42 [bug#66024] [PATCH v1 0/4] Kiwix updates Denis 'GNUtoo' Carikli
                   ` (2 preceding siblings ...)
  2023-09-16  9:06 ` [bug#66024] [PATCH v1 3/4] gnu: kiwix-tools: Update to 3.5.0 Denis 'GNUtoo' Carikli
@ 2023-09-16  9:06 ` Denis 'GNUtoo' Carikli
  2023-09-25 10:46 ` [bug#66024] [PATCH v1 0/4] Kiwix updates Christopher Baines
  4 siblings, 0 replies; 6+ messages in thread
From: Denis 'GNUtoo' Carikli @ 2023-09-16  9:06 UTC (permalink / raw)
  To: 66024; +Cc: Denis 'GNUtoo' Carikli

* gnu/packages/web.scm (kiwix-desktop): Update to 2.3.1.
* gnu/packages/patches/kiwix-desktop-newer-libkiwix.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
---
 gnu/local.mk                                  |  1 +
 .../kiwix-desktop-newer-libkiwix.patch        | 40 +++++++++++++++++++
 gnu/packages/web.scm                          |  5 ++-
 3 files changed, 44 insertions(+), 2 deletions(-)
 create mode 100644 gnu/packages/patches/kiwix-desktop-newer-libkiwix.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index 8862fbfbb9..e5dcdb4f4b 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1472,6 +1472,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/kio-search-smbd-on-PATH.patch		\
   %D%/packages/patches/kismet-unbundle-boost.patch		\
   %D%/packages/patches/kitty-fix-wayland-protocols.patch	\
+  %D%/packages/patches/kiwix-desktop-newer-libkiwix.patch	\
   %D%/packages/patches/kmod-module-directory.patch		\
   %D%/packages/patches/kmscon-runtime-keymap-switch.patch	\
   %D%/packages/patches/kobodeluxe-paths.patch			\
diff --git a/gnu/packages/patches/kiwix-desktop-newer-libkiwix.patch b/gnu/packages/patches/kiwix-desktop-newer-libkiwix.patch
new file mode 100644
index 0000000000..a5bee60ac2
--- /dev/null
+++ b/gnu/packages/patches/kiwix-desktop-newer-libkiwix.patch
@@ -0,0 +1,40 @@
+Description: Fix building kiwix-desktop with libkiwix-12.1.0
+Bug: https://github.com/kiwix/kiwix-desktop/issues/964
+Origin: https://github.com/kiwix/kiwix-desktop/commit/1b322d8f01c787846546a6473f153cf1daa41e65
+Applied-Upstream: https://github.com/kiwix/kiwix-desktop/commit/1b322d8f01c787846546a6473f153cf1daa41e65
+---
+From 1b322d8f01c787846546a6473f153cf1daa41e65 Mon Sep 17 00:00:00 2001
+From: Matthieu Gautier <mgautier@kymeria.fr>
+Date: Thu, 9 Feb 2023 09:47:47 +0100
+Subject: [PATCH] With last version of libkiwix, Downloader now return
+ shared_ptr<Download>.
+
+---
+ src/contentmanager.cpp | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/contentmanager.cpp b/src/contentmanager.cpp
+index c2f4ff9..d4db50a 100644
+--- a/src/contentmanager.cpp
++++ b/src/contentmanager.cpp
+@@ -173,7 +173,7 @@ QStringList ContentManager::updateDownloadInfos(QString id, const QStringList &k
+         return values;
+     }
+     auto& b = mp_library->getBookById(id);
+-    kiwix::Download* d;
++    std::shared_ptr<kiwix::Download> d;
+     try {
+         d = mp_downloader->getDownload(b.getDownloadId());
+     } catch(...) {
+@@ -270,7 +270,7 @@ QString ContentManager::downloadBook(const QString &id)
+     for (auto b : booksList)
+         if (b.toStdString() == book.getId())
+             return "";
+-    kiwix::Download *download;
++    std::shared_ptr<kiwix::Download> download;
+     try {
+         std::pair<std::string, std::string> downloadDir("dir", downloadPath.toStdString());
+         const std::vector<std::pair<std::string, std::string>> options = { downloadDir };
+-- 
+2.41.0
+
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 221ee03728..fe2976d58e 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -8692,7 +8692,7 @@ (define-public kiwix-lib
 (define-public kiwix-desktop
   (package
     (name "kiwix-desktop")
-    (version "2.2.2")
+    (version "2.3.1")
     (source (origin
               (method url-fetch)
               (uri (string-append
@@ -8701,7 +8701,8 @@ (define-public kiwix-desktop
                     ".tar.gz"))
               (sha256
                (base32
-                "0ani12d91azcwwys499848ws7rx0m7c23nalcm5fanjak76bg6n6"))))
+                "0hlk05gcb3fmnxhwj6gan51v98rdq3iv2lklwbpmm1bazmz8i7br"))
+              (patches (search-patches "kiwix-desktop-newer-libkiwix.patch"))))
     (build-system gnu-build-system)
     (arguments
      `(#:phases
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#66024] [PATCH v1 0/4] Kiwix updates
  2023-09-16  8:42 [bug#66024] [PATCH v1 0/4] Kiwix updates Denis 'GNUtoo' Carikli
                   ` (3 preceding siblings ...)
  2023-09-16  9:06 ` [bug#66024] [PATCH v1 4/4] gnu: kiwix-desktop: Update to 2.3.1 Denis 'GNUtoo' Carikli
@ 2023-09-25 10:46 ` Christopher Baines
  4 siblings, 0 replies; 6+ messages in thread
From: Christopher Baines @ 2023-09-25 10:46 UTC (permalink / raw)
  To: Denis 'GNUtoo' Carikli; +Cc: 66024-done, 66024

[-- Attachment #1: Type: text/plain, Size: 463 bytes --]


Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> writes:

> Hi,
>
> Here's is a patch set to update some Kiwix related packages and dependencies.
>
> Denis.
>
> Denis 'GNUtoo' Carikli (4):
>   gnu: libzim: Update to 8.2.1.
>   gnu: kiwix-lib: Update to 13.0.0.
>   gnu: kiwix-tools: Update to 3.5.0.
>   gnu: kiwix-desktop: Update to 2.3.1.

Thanks Denis, these look good to me :) I've pushed them to master as
d953a1e5d678be58887704df6f10cb19a8fd48bf.

Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-09-25 10:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-16  8:42 [bug#66024] [PATCH v1 0/4] Kiwix updates Denis 'GNUtoo' Carikli
2023-09-16  9:06 ` [bug#66024] [PATCH v1 1/4] gnu: libzim: Update to 8.2.1 Denis 'GNUtoo' Carikli
2023-09-16  9:06 ` [bug#66024] [PATCH v1 2/4] gnu: kiwix-lib: Update to 13.0.0 Denis 'GNUtoo' Carikli
2023-09-16  9:06 ` [bug#66024] [PATCH v1 3/4] gnu: kiwix-tools: Update to 3.5.0 Denis 'GNUtoo' Carikli
2023-09-16  9:06 ` [bug#66024] [PATCH v1 4/4] gnu: kiwix-desktop: Update to 2.3.1 Denis 'GNUtoo' Carikli
2023-09-25 10:46 ` [bug#66024] [PATCH v1 0/4] Kiwix updates Christopher Baines

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).