From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42209) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eC0TI-0001dW-OL for guix-patches@gnu.org; Tue, 07 Nov 2017 04:47:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eC0TG-0007ta-3q for guix-patches@gnu.org; Tue, 07 Nov 2017 04:47:04 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:46500) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eC0TF-0007tS-Vr for guix-patches@gnu.org; Tue, 07 Nov 2017 04:47:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eC0TF-0001xW-Pd for guix-patches@gnu.org; Tue, 07 Nov 2017 04:47:01 -0500 Subject: [bug#29191] [PATCH] gnu: Add glusterfs. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41890) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eC0S2-0001Nj-JB for guix-patches@gnu.org; Tue, 07 Nov 2017 04:45:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eC0Rz-00073A-Tr for guix-patches@gnu.org; Tue, 07 Nov 2017 04:45:46 -0500 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21051) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eC0Rz-00072Z-Jf for guix-patches@gnu.org; Tue, 07 Nov 2017 04:45:43 -0500 From: Ricardo Wurmus Date: Tue, 7 Nov 2017 10:45:25 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Message-ID: <20171107094525.24597-1-rekado@elephly.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 29191@debbugs.gnu.org Cc: Ricardo Wurmus * gnu/packages/file-systems.scm (glusterfs): New variable. --- gnu/packages/file-systems.scm | 78 +++++++++++++++++++++++++++++++++++++++= ++++ 1 file changed, 78 insertions(+) diff --git a/gnu/packages/file-systems.scm b/gnu/packages/file-systems.scm index 407262c4e..6c5e427aa 100644 --- a/gnu/packages/file-systems.scm +++ b/gnu/packages/file-systems.scm @@ -1,6 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright =C2=A9 2017 Tobias Geerinckx-Rice ;;; Copyright =C2=A9 2017 G=C3=A1bor Boskovits +;;; Copyright =C2=A9 2017 Ricardo Wurmus ;;; ;;; This file is part of GNU Guix. ;;; @@ -23,12 +24,23 @@ #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix build-system gnu) + #:use-module (guix utils) #:use-module (gnu packages) + #:use-module (gnu packages acl) #:use-module (gnu packages attr) + #:use-module (gnu packages autotools) + #:use-module (gnu packages bison) + #:use-module (gnu packages check) + #:use-module (gnu packages compression) + #:use-module (gnu packages databases) + #:use-module (gnu packages datastructures) #:use-module (gnu packages documentation) #:use-module (gnu packages docbook) + #:use-module (gnu packages flex) #:use-module (gnu packages linux) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages python) + #:use-module (gnu packages readline) #:use-module (gnu packages tls) #:use-module (gnu packages xml)) =20 @@ -126,3 +138,69 @@ in which directory entries are read. This is useful f= or detecting non-determinism in the build process.") (license license:gpl3+))) =20 +(define-public glusterfs + (package + (name "glusterfs") + (version "3.10.7") + (source + (origin + (method url-fetch) + (uri (string-append "https://download.gluster.org/pub/gluster/glust= erfs/" + (version-major+minor version) "/" version + "/glusterfs-" version ".tar.gz")) + (sha256 + (base32 + "02sn9s3jjva2i1l47y3in326n8jgp57rbykz5s8m87y4bzpw0ym1")))) + (build-system gnu-build-system) + (arguments + `(#:configure-flags + (let ((out (assoc-ref %outputs "out"))) + (list (string-append "--with-initdir=3D" out "/etc/init.d") + (string-append "--with-mountutildir=3D" out "/sbin"))) + #:phases + (modify-phases %standard-phases + (add-before 'configure 'replace-config.sub + (lambda* (#:key inputs #:allow-other-keys) + ;; The distributed config.sub is intentionally left empty and + ;; must be replaced. + (install-file (string-append (assoc-ref inputs "automake") + "/share/automake-" + ,(package-version automake) "/co= nfig.sub") + ".") + #t)) + ;; Fix flex error. This has already been fixed with upstream com= mit + ;; db3fe245a9e8812829eae7d143e49d0bfdfef9a7. + (add-before 'configure 'fix-lex + (lambda _ + (substitute* "libglusterfs/src/Makefile.in" + (("libglusterfs_la_LIBADD =3D @LEXLIB@") + "libglusterfs_la_LIBADD =3D")) + #t))))) + (native-inputs + `(("cmocka" ,cmocka) + ("pkg-config" ,pkg-config) + ("python-2" ,python-2) ; must be version 2 + ("flex" ,flex) + ("bison" ,bison) + ("automake" ,automake))) + (inputs + `(("acl" ,acl) + ;; GlusterFS fails to build with libressl because HMAC_CTX_new and + ;; HMAC_CTX_free are undefined. + ("openssl" ,openssl) + ("liburcu" ,liburcu) + ("libuuid" ,util-linux) + ("libxml2" ,libxml2) + ("lvm2" ,lvm2) + ("readline" ,readline) + ("sqlite" ,sqlite) ; for tiering + ("zlib" ,zlib))) + (home-page "https://www.gluster.org") + (synopsis "Distributed file system") + (description "GlusterFS is a distributed scalable network filesystem +suitable for data-intensive tasks such as cloud storage and media streamin= g. +It allows rapid provisioning of additional storage based on your storage +consumption needs. It incorporates automatic failover as a primary featur= e. +All of this is accomplished without a centralized metadata server.") + ;; The user may choose either LGPLv3+ or GPLv2 only. + (license (list license:lgpl3+ license:gpl2+)))) --=20 2.14.1