GNU bug report logs - #47519
[PATCH] gnu: Add galera.

Previous Next

Package: guix-patches;

Reported by: david larsson <david.larsson <at> selfhosted.xyz>

Date: Wed, 31 Mar 2021 10:42:01 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 47519 in the body.
You can then email your comments to 47519 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#47519; Package guix-patches. (Wed, 31 Mar 2021 10:42:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to david larsson <david.larsson <at> selfhosted.xyz>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Wed, 31 Mar 2021 10:42:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: david larsson <david.larsson <at> selfhosted.xyz>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: Add galera.
Date: Wed, 31 Mar 2021 12:40:56 +0200
[Message part 1 (text/plain, inline)]
From 6df0f4b43623689ba7e954174c775d37cc1f5f04 Mon Sep 17 00:00:00 2001
From: methuselah-0 <david.larsson <at> selfhosted.xyz>
Date: Wed, 31 Mar 2021 12:38:50 +0200
Subject: [PATCH] gnu: Add galera.

* gnu/packages/databases.scm (galera): New variable.
---
 gnu/packages/databases.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 130e94d535..c76daf5e70 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -48,6 +48,7 @@
 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll <at> gmail.com>
 ;;; Copyright © 2021 Sharlatan Hellseher <sharlatanus <at> gmail.com>
 ;;; Copyright © 2021 Greg Hogan <code <at> greghogan.com>
+;;; Copyright © 2021 David Larsson <david.larsson <at> selfhosted.xyz>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1002,6 +1003,30 @@ as a drop-in replacement of MySQL.")
 developed in C/C++ to MariaDB and MySQL databases.")
     (license license:lgpl2.1+)))

+(define-public galera
+  (package
+    (name "galera")
+    (version "26.4.7")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (commit "bac8171266cb982fe013ce496d78085438c6f23e")
+                    (url "https://github.com/codership/galera.git")
+                    (recursive? #t)))
+              (sha256
+               (base32 
"0h7s670pcasq8wzprhyxqfca2cghi62b8xz2kikb2a86wd453qil"))))
+    (build-system cmake-build-system)
+    (native-inputs
+     `(("check" ,check)
+       ("boost" ,boost)))
+    (inputs
+     `(("openssl" ,openssl)))
+    (home-page "https://github.com/codership/galera/")
+    (synopsis "Extension to the MariaDB database server")
+    (description
+     "Galera is a wsrep-provider that is used with MariaDB for 
load-balancing and HA.")
+    (license license:gpl2)))
+
 ;; Don't forget to update the other postgresql packages when upgrading 
this one.
 (define-public postgresql-13
   (package
-- 
2.30.2

[0001-gnu-Add-galera.patch (text/x-diff, attachment)]

Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Thu, 08 Apr 2021 21:28:02 GMT) Full text and rfc822 format available.

Notification sent to david larsson <david.larsson <at> selfhosted.xyz>:
bug acknowledged by developer. (Thu, 08 Apr 2021 21:28:02 GMT) Full text and rfc822 format available.

Message #10 received at 47519-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: david larsson <david.larsson <at> selfhosted.xyz>
Cc: 47519-done <at> debbugs.gnu.org
Subject: Re: bug#47519: [PATCH] gnu: Add galera.
Date: Thu, 08 Apr 2021 23:27:05 +0200
[Message part 1 (text/plain, inline)]
Hi David,

david larsson <david.larsson <at> selfhosted.xyz> skribis:

> From 6df0f4b43623689ba7e954174c775d37cc1f5f04 Mon Sep 17 00:00:00 2001
> From: methuselah-0 <david.larsson <at> selfhosted.xyz>
> Date: Wed, 31 Mar 2021 12:38:50 +0200
> Subject: [PATCH] gnu: Add galera.
>
> * gnu/packages/databases.scm (galera): New variable.

Applied with the minor changes below.

Thanks,
Ludo’.

[Message part 2 (text/x-patch, inline)]
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index fc0273162a..8c657e4113 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -1011,21 +1011,22 @@ developed in C/C++ to MariaDB and MySQL databases.")
               (method git-fetch)
               (uri (git-reference
                     (commit "bac8171266cb982fe013ce496d78085438c6f23e")
-                    (url "https://github.com/codership/galera.git")
+                    (url "https://github.com/codership/galera")
                     (recursive? #t)))
+              (file-name (git-file-name name version))
               (sha256
                (base32 "0h7s670pcasq8wzprhyxqfca2cghi62b8xz2kikb2a86wd453qil"))))
     (build-system cmake-build-system)
-    (native-inputs
+    (inputs
      `(("check" ,check)
-       ("boost" ,boost)))
-    (inputs
-     `(("openssl" ,openssl)))
+       ("boost" ,boost)
+       ("openssl" ,openssl)))
     (home-page "https://github.com/codership/galera/")
     (synopsis "Extension to the MariaDB database server")
     (description
-     "Galera is a wsrep-provider that is used with MariaDB for load-balancing and HA.")
-    (license license:gpl2)))
+     "Galera is a wsrep-provider that is used with MariaDB for load-balancing
+and high-availability (HA).")
+    (license license:gpl2)))                  ;'COPYING' says "version 2" only
 
 ;; Don't forget to update the other postgresql packages when upgrading this one.
 (define-public postgresql-13

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 07 May 2021 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 355 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.