2016-12-27 15:40:41 -05:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
gnu: Ceph: Update to 14.2.5.
This also removes test-specific code to ease the Python 3 transition, and
because it is mostly obsolete.
* gnu/packages/patches/ceph-detect-rocksdb.patch,
gnu/packages/patches/ceph-skip-unittest_blockdev.patch,
gnu/packages/patches/ceph-skip-collect-sys-info-test.patch: Delete files.
* gnu/packages/patches/ceph-boost-compat.patch: New file.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.
* gnu/packages/storage.scm (ceph): Update to 14.2.5.
[source](patches): Adjust as above.
[source](snippet): Remove bundled "fmt", "c-ares" and "googletest".
[arguments]: Add "-DCMAKE_INSTALL_DATADIR" and "-DWITH_RADOSGW_AMQP_ENDPOINT"
and "-DWITH_TESTS" in #:configure-flags; remove "-DWITH_XIO". Remove obsolete
substitutions. Don't install 'ceph-disk' and 'ceph-detect-init', which no
longer exists. Remove test-specific substitutions and phases. Adjust for
Python 2->3 in inputs.
[native-inputs]: Remove INETUTILS, JQ, PERL, XMLSTARLET, PYTHON2-CRAM,
PYTHON2-VIRTUALENV, PYTHON2-CONFIGOBJ, PYTHON2-COVERAGE, PYTHON2-DISCOVER,
PYTHON2-FLAKE8, PYTHON2-MOCK, PYTHON2-NOSE, PYTHON2-PIP, PYTHON2-PYTEST,
PYTHON2-SUBUNIT PYTHON2-TESTREPOSITORY, PYTHON2-TESTTOOLS, and PYTHON2-TOX.
[inputs]: Change from BOOST to BOOST-WITH-PYTHON3. Remove GPTFDISK, PARTED,
PYTHON-2, PYTHON2-SIX, PYTHON2-PRETTYTABLE, and PYTHON-3. Add PYTHON-SIX,
PYTHON-PRETTYTABLE, PYTHON-WRAPPER, LIBCAP-NG, LIBNL, NCURSES, and RDMA-CORE.
2019-12-21 09:18:13 -05:00
|
|
|
;;; Copyright © 2017, 2018, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
|
2017-12-28 02:20:17 -05:00
|
|
|
;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com>
|
2022-05-28 20:00:01 -04:00
|
|
|
;;; Copyright © 2020, 2022 Tobias Geerinckx-Rice <me@tobias.gr>
|
2021-10-05 13:55:04 -04:00
|
|
|
;;; Copyright © 2021 Greg Hogan <code@greghogan.com>
|
2022-12-23 14:17:15 -05:00
|
|
|
;;; Copyright © 2022 Ricardo Wurmus <rekado@elephly.net>
|
2016-12-27 15:40:41 -05:00
|
|
|
;;;
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
;;; your option) any later version.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
(define-module (gnu packages storage)
|
|
|
|
#:use-module (guix download)
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix utils)
|
|
|
|
#:use-module (guix build-system cmake)
|
|
|
|
#:use-module (gnu packages)
|
|
|
|
#:use-module (gnu packages admin)
|
|
|
|
#:use-module (gnu packages assembly)
|
2018-09-27 12:41:50 -04:00
|
|
|
#:use-module (gnu packages authentication)
|
2021-07-02 06:07:16 -04:00
|
|
|
#:use-module (gnu packages bash)
|
2016-12-27 15:40:41 -05:00
|
|
|
#:use-module (gnu packages bdw-gc)
|
|
|
|
#:use-module (gnu packages boost)
|
|
|
|
#:use-module (gnu packages compression)
|
|
|
|
#:use-module (gnu packages crypto)
|
|
|
|
#:use-module (gnu packages cryptsetup)
|
|
|
|
#:use-module (gnu packages curl)
|
|
|
|
#:use-module (gnu packages databases)
|
|
|
|
#:use-module (gnu packages disk)
|
2018-02-21 09:24:00 -05:00
|
|
|
#:use-module (gnu packages gperf)
|
2016-12-27 15:40:41 -05:00
|
|
|
#:use-module (gnu packages jemalloc)
|
2021-11-05 17:49:43 -04:00
|
|
|
#:use-module (gnu packages icu4c)
|
2016-12-27 15:40:41 -05:00
|
|
|
#:use-module (gnu packages linux)
|
|
|
|
#:use-module (gnu packages lua)
|
gnu: Ceph: Update to 14.2.5.
This also removes test-specific code to ease the Python 3 transition, and
because it is mostly obsolete.
* gnu/packages/patches/ceph-detect-rocksdb.patch,
gnu/packages/patches/ceph-skip-unittest_blockdev.patch,
gnu/packages/patches/ceph-skip-collect-sys-info-test.patch: Delete files.
* gnu/packages/patches/ceph-boost-compat.patch: New file.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.
* gnu/packages/storage.scm (ceph): Update to 14.2.5.
[source](patches): Adjust as above.
[source](snippet): Remove bundled "fmt", "c-ares" and "googletest".
[arguments]: Add "-DCMAKE_INSTALL_DATADIR" and "-DWITH_RADOSGW_AMQP_ENDPOINT"
and "-DWITH_TESTS" in #:configure-flags; remove "-DWITH_XIO". Remove obsolete
substitutions. Don't install 'ceph-disk' and 'ceph-detect-init', which no
longer exists. Remove test-specific substitutions and phases. Adjust for
Python 2->3 in inputs.
[native-inputs]: Remove INETUTILS, JQ, PERL, XMLSTARLET, PYTHON2-CRAM,
PYTHON2-VIRTUALENV, PYTHON2-CONFIGOBJ, PYTHON2-COVERAGE, PYTHON2-DISCOVER,
PYTHON2-FLAKE8, PYTHON2-MOCK, PYTHON2-NOSE, PYTHON2-PIP, PYTHON2-PYTEST,
PYTHON2-SUBUNIT PYTHON2-TESTREPOSITORY, PYTHON2-TESTTOOLS, and PYTHON2-TOX.
[inputs]: Change from BOOST to BOOST-WITH-PYTHON3. Remove GPTFDISK, PARTED,
PYTHON-2, PYTHON2-SIX, PYTHON2-PRETTYTABLE, and PYTHON-3. Add PYTHON-SIX,
PYTHON-PRETTYTABLE, PYTHON-WRAPPER, LIBCAP-NG, LIBNL, NCURSES, and RDMA-CORE.
2019-12-21 09:18:13 -05:00
|
|
|
#:use-module (gnu packages ncurses)
|
2020-06-30 13:00:36 -04:00
|
|
|
#:use-module (gnu packages networking)
|
gnu: Move nss & co. to nss.scm.
* gnu/packages/gnuzilla.scm (nspr, nss): Move to...
* gnu/packages/nss.scm: ... here. New file.
* gnu/packages/chromium.scm, gnu/packages/disk.scm,
gnu/packages/freedesktop.scm, gnu/packages/gnome.scm,
gnu/packages/gnunet.scm, gnu/packages/java.scm,
gnu/packages/libreoffice.scm, gnu/packages/linux.scm,
gnu/packages/mate.scm, gnu/packages/openldap.scm,
gnu/packages/package-management.scm, gnu/packages/password-utils.scm,
gnu/packages/polkit.scm, gnu/packages/qt.scm,
gnu/packages/sssd.scm, gnu/packages/storage.scm,
gnu/packages/vpn.scm, gnu/packages/web.scm, gnu/packages/xml.scm: Adjust
accordingly.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add nss.scm.
2019-04-04 09:14:57 -04:00
|
|
|
#:use-module (gnu packages nss)
|
2016-12-27 15:40:41 -05:00
|
|
|
#:use-module (gnu packages openldap)
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2021-11-05 17:49:43 -04:00
|
|
|
#:use-module (gnu packages pretty-print)
|
2016-12-27 15:40:41 -05:00
|
|
|
#:use-module (gnu packages python)
|
gnu: Separate Python core packages from the rest.
* gnu/packages/python.scm: Move hundreds of package definitions from here...
* gnu/packages/python-xyz.scm: ...to this new module.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/audio.scm,
gnu/packages/backup.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/calendar.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/cluster.scm,
gnu/packages/compression.scm,
gnu/packages/connman.scm,
gnu/packages/crypto.scm,
gnu/packages/cups.scm,
gnu/packages/databases.scm,
gnu/packages/dav.scm,
gnu/packages/direct-connect.scm,
gnu/packages/disk.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/docker.scm,
gnu/packages/ebook.scm,
gnu/packages/elf.scm,
gnu/packages/emacs.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/enlightenment.scm,
gnu/packages/finance.scm,
gnu/packages/fltk.scm,
gnu/packages/fontutils.scm,
gnu/packages/freedesktop.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/geo.scm,
gnu/packages/gl.scm,
gnu/packages/glib.scm,
gnu/packages/gnome.scm,
gnu/packages/gnupg.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/gtk.scm,
gnu/packages/ham-radio.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/kde-frameworks.scm,
gnu/packages/key-mon.scm,
gnu/packages/libffi.scm,
gnu/packages/libreoffice.scm,
gnu/packages/libusb.scm,
gnu/packages/lirc.scm,
gnu/packages/logging.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/mate.scm,
gnu/packages/maths.scm,
gnu/packages/medical.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mp3.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/nutrition.scm,
gnu/packages/openldap.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/photo.scm,
gnu/packages/polkit.scm,
gnu/packages/protobuf.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/qt.scm,
gnu/packages/rdf.scm,
gnu/packages/ruby.scm,
gnu/packages/search.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/simulation.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/sync.scm,
gnu/packages/terminals.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/virtualization.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wicd.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xorg.scm: Update module references.
2019-01-15 08:21:30 -05:00
|
|
|
#:use-module (gnu packages python-xyz)
|
2022-12-23 14:17:15 -05:00
|
|
|
#:use-module (gnu packages rpc)
|
gnu: Move Sphinx and friends to (gnu packages sphinx).
* gnu/packages/python-xyz.scm (python-sphinxcontrib-websupport,
python2-sphinxcontrib-websupport, python-sphinx, python2-sphinx,
python-sphinx-gallery, python2-sphinx-gallery, python-sphinx-rtd-theme,
python2-sphinx-rtd-theme, python-guzzle-sphinx-theme,
python2-guzzle-sphinx-theme, python-sphinxcontrib-newsfeed,
python-sphinxcontrib-programoutput, python2-sphinxcontrib-programoutput,
python-sphinx-repoze-interface, python2-sphinx-repoze-interface,
python-sphinx-cloud-sptheme, python2-sphinx-cloud-sptheme,
python-sphinx-alabaster-theme, python2-sphinx-alabaster-theme,
python-sphinx-me, python-sphinxcontrib-svg2pdfconverter): Move to ...
(gnu):
* gnu/packages/sphinx.scm: ... here. New file.
* gnu/local.mk (GNU_SYSTEM_MODULES): Adjust accordingly.
* gnu/packages/admin.scm, gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm, gnu/packages/cluster.scm,
gnu/packages/databases.scm, gnu/packages/dav.scm, gnu/packages/disk.scm,
gnu/packages/django.scm, gnu/packages/elf.scm, gnu/packages/emacs-xyz.scm,
gnu/packages/emulators.scm, gnu/packages/finance.scm, gnu/packages/image.scm,
gnu/packages/libffi.scm, gnu/packages/mail.scm, gnu/packages/mpd.scm,
gnu/packages/openstack.scm, gnu/packages/pdf.scm, gnu/packages/python-web.scm,
gnu/packages/search.scm, gnu/packages/statistics.scm,
gnu/packages/storage.scm, gnu/packages/sync.scm, gnu/packages/terminals.scm,
gnu/packages/tls.scm, gnu/packages/web.scm: Adjust module imports.
2019-05-12 16:56:54 -04:00
|
|
|
#:use-module (gnu packages sphinx)
|
2021-11-05 17:49:43 -04:00
|
|
|
#:use-module (gnu packages sqlite)
|
2022-12-23 14:17:15 -05:00
|
|
|
#:use-module (gnu packages textutils)
|
2016-12-27 15:40:41 -05:00
|
|
|
#:use-module (gnu packages tls)
|
|
|
|
#:use-module (gnu packages web)
|
|
|
|
#:use-module (gnu packages xml))
|
|
|
|
|
|
|
|
(define-public ceph
|
|
|
|
(package
|
|
|
|
(name "ceph")
|
2024-09-27 17:07:31 -04:00
|
|
|
(version "17.2.7")
|
2016-12-27 15:40:41 -05:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://download.ceph.com/tarballs/ceph-"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2024-09-27 17:07:31 -04:00
|
|
|
"1612424yrf39dz010ygz8k5x1vc8731549ckfj1r39dg00m62klp"))
|
2016-12-27 15:40:41 -05:00
|
|
|
(patches
|
2021-10-05 13:55:04 -04:00
|
|
|
(search-patches
|
2024-09-27 17:07:31 -04:00
|
|
|
"ceph-disable-cpu-optimizations.patch"
|
|
|
|
"ceph-fix-for-newer-boost.patch" ))
|
2016-12-27 15:40:41 -05:00
|
|
|
(modules '((guix build utils)))
|
|
|
|
(snippet
|
2021-12-20 14:27:51 -05:00
|
|
|
'(for-each delete-file-recursively
|
|
|
|
'(;; TODO: Unbundle these:
|
2022-12-23 14:17:15 -05:00
|
|
|
"src/arrow"
|
2021-12-20 14:27:51 -05:00
|
|
|
;;"src/isa-l"
|
|
|
|
;;"src/lua"
|
|
|
|
;;"src/xxHash"
|
|
|
|
;;"src/zstd"
|
|
|
|
;;"src/civetweb"
|
|
|
|
"src/c-ares"
|
|
|
|
"src/fmt"
|
|
|
|
"src/googletest"
|
|
|
|
"src/rapidjson"
|
|
|
|
"src/spdk"
|
|
|
|
"src/rocksdb"
|
2022-12-23 14:17:15 -05:00
|
|
|
"src/boost"
|
|
|
|
"src/utf8proc")))))
|
2016-12-27 15:40:41 -05:00
|
|
|
(build-system cmake-build-system)
|
|
|
|
(arguments
|
2022-12-23 14:17:15 -05:00
|
|
|
(list
|
|
|
|
#:parallel-build? #f ;because mgr_legacy_options.h is not built in time
|
|
|
|
#:configure-flags
|
|
|
|
'(let* ((out (assoc-ref %outputs "out"))
|
2016-12-27 15:40:41 -05:00
|
|
|
(lib (assoc-ref %outputs "lib"))
|
|
|
|
(libdir (string-append lib "/lib")))
|
|
|
|
(list (string-append "-DCMAKE_INSTALL_PREFIX=" out)
|
|
|
|
(string-append "-DCMAKE_INSTALL_LIBDIR=" libdir)
|
2019-03-15 12:48:35 -04:00
|
|
|
(string-append "-DCMAKE_INSTALL_INCLUDEDIR="
|
|
|
|
lib "/include")
|
2016-12-27 15:40:41 -05:00
|
|
|
;; We need both libdir and libdir/ceph in RUNPATH.
|
|
|
|
(string-append "-DCMAKE_INSTALL_RPATH="
|
|
|
|
libdir ";" libdir "/ceph")
|
|
|
|
(string-append "-DCMAKE_INSTALL_SYSCONFDIR=" out "/etc")
|
gnu: Ceph: Update to 14.2.5.
This also removes test-specific code to ease the Python 3 transition, and
because it is mostly obsolete.
* gnu/packages/patches/ceph-detect-rocksdb.patch,
gnu/packages/patches/ceph-skip-unittest_blockdev.patch,
gnu/packages/patches/ceph-skip-collect-sys-info-test.patch: Delete files.
* gnu/packages/patches/ceph-boost-compat.patch: New file.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.
* gnu/packages/storage.scm (ceph): Update to 14.2.5.
[source](patches): Adjust as above.
[source](snippet): Remove bundled "fmt", "c-ares" and "googletest".
[arguments]: Add "-DCMAKE_INSTALL_DATADIR" and "-DWITH_RADOSGW_AMQP_ENDPOINT"
and "-DWITH_TESTS" in #:configure-flags; remove "-DWITH_XIO". Remove obsolete
substitutions. Don't install 'ceph-disk' and 'ceph-detect-init', which no
longer exists. Remove test-specific substitutions and phases. Adjust for
Python 2->3 in inputs.
[native-inputs]: Remove INETUTILS, JQ, PERL, XMLSTARLET, PYTHON2-CRAM,
PYTHON2-VIRTUALENV, PYTHON2-CONFIGOBJ, PYTHON2-COVERAGE, PYTHON2-DISCOVER,
PYTHON2-FLAKE8, PYTHON2-MOCK, PYTHON2-NOSE, PYTHON2-PIP, PYTHON2-PYTEST,
PYTHON2-SUBUNIT PYTHON2-TESTREPOSITORY, PYTHON2-TESTTOOLS, and PYTHON2-TOX.
[inputs]: Change from BOOST to BOOST-WITH-PYTHON3. Remove GPTFDISK, PARTED,
PYTHON-2, PYTHON2-SIX, PYTHON2-PRETTYTABLE, and PYTHON-3. Add PYTHON-SIX,
PYTHON-PRETTYTABLE, PYTHON-WRAPPER, LIBCAP-NG, LIBNL, NCURSES, and RDMA-CORE.
2019-12-21 09:18:13 -05:00
|
|
|
(string-append "-DCMAKE_INSTALL_DATADIR=" lib "/share")
|
2016-12-27 15:40:41 -05:00
|
|
|
(string-append "-DCMAKE_INSTALL_MANDIR=" out "/share/man")
|
|
|
|
(string-append "-DCMAKE_INSTALL_DOCDIR=" out "/share/ceph/doc")
|
|
|
|
(string-append "-DCMAKE_INSTALL_LIBEXECDIR=" out "/libexec")
|
|
|
|
(string-append "-DKEYUTILS_INCLUDE_DIR="
|
|
|
|
(assoc-ref %build-inputs "keyutils") "/include")
|
2019-03-15 13:03:00 -04:00
|
|
|
(string-append "-DXFS_INCLUDE_DIR="
|
|
|
|
(assoc-ref %build-inputs "xfsprogs") "/include")
|
2016-12-27 15:40:41 -05:00
|
|
|
"-DCMAKE_INSTALL_LOCALSTATEDIR=/var"
|
2019-07-16 17:17:21 -04:00
|
|
|
"-DBUILD_SHARED_LIBS=ON"
|
2022-12-23 14:17:15 -05:00
|
|
|
"-DWITH_SYSTEM_ARROW=ON"
|
2016-12-27 15:40:41 -05:00
|
|
|
"-DWITH_SYSTEM_BOOST=ON"
|
2022-12-23 14:17:15 -05:00
|
|
|
"-DWITH_SYSTEM_ROCKSDB=ON"
|
|
|
|
"-DWITH_SYSTEM_UTF8PROC=ON"
|
2021-11-05 17:49:43 -04:00
|
|
|
|
2016-12-27 15:40:41 -05:00
|
|
|
;; TODO: Enable these when available in Guix.
|
2022-12-23 14:17:15 -05:00
|
|
|
"-DWITH_MGR_DASHBOARD_FRONTEND=OFF" ;requires node + nodeenv
|
2018-02-21 09:24:00 -05:00
|
|
|
"-DWITH_BABELTRACE=OFF"
|
2016-12-27 15:40:41 -05:00
|
|
|
"-DWITH_LTTNG=OFF"
|
2018-09-27 12:41:50 -04:00
|
|
|
"-DWITH_SPDK=OFF"
|
gnu: Ceph: Update to 14.2.5.
This also removes test-specific code to ease the Python 3 transition, and
because it is mostly obsolete.
* gnu/packages/patches/ceph-detect-rocksdb.patch,
gnu/packages/patches/ceph-skip-unittest_blockdev.patch,
gnu/packages/patches/ceph-skip-collect-sys-info-test.patch: Delete files.
* gnu/packages/patches/ceph-boost-compat.patch: New file.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.
* gnu/packages/storage.scm (ceph): Update to 14.2.5.
[source](patches): Adjust as above.
[source](snippet): Remove bundled "fmt", "c-ares" and "googletest".
[arguments]: Add "-DCMAKE_INSTALL_DATADIR" and "-DWITH_RADOSGW_AMQP_ENDPOINT"
and "-DWITH_TESTS" in #:configure-flags; remove "-DWITH_XIO". Remove obsolete
substitutions. Don't install 'ceph-disk' and 'ceph-detect-init', which no
longer exists. Remove test-specific substitutions and phases. Adjust for
Python 2->3 in inputs.
[native-inputs]: Remove INETUTILS, JQ, PERL, XMLSTARLET, PYTHON2-CRAM,
PYTHON2-VIRTUALENV, PYTHON2-CONFIGOBJ, PYTHON2-COVERAGE, PYTHON2-DISCOVER,
PYTHON2-FLAKE8, PYTHON2-MOCK, PYTHON2-NOSE, PYTHON2-PIP, PYTHON2-PYTEST,
PYTHON2-SUBUNIT PYTHON2-TESTREPOSITORY, PYTHON2-TESTTOOLS, and PYTHON2-TOX.
[inputs]: Change from BOOST to BOOST-WITH-PYTHON3. Remove GPTFDISK, PARTED,
PYTHON-2, PYTHON2-SIX, PYTHON2-PRETTYTABLE, and PYTHON-3. Add PYTHON-SIX,
PYTHON-PRETTYTABLE, PYTHON-WRAPPER, LIBCAP-NG, LIBNL, NCURSES, and RDMA-CORE.
2019-12-21 09:18:13 -05:00
|
|
|
"-DWITH_RADOSGW_AMQP_ENDPOINT=OFF"
|
|
|
|
|
2016-12-27 15:40:41 -05:00
|
|
|
;; Use jemalloc instead of tcmalloc.
|
gnu: Ceph: Update to 14.2.5.
This also removes test-specific code to ease the Python 3 transition, and
because it is mostly obsolete.
* gnu/packages/patches/ceph-detect-rocksdb.patch,
gnu/packages/patches/ceph-skip-unittest_blockdev.patch,
gnu/packages/patches/ceph-skip-collect-sys-info-test.patch: Delete files.
* gnu/packages/patches/ceph-boost-compat.patch: New file.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.
* gnu/packages/storage.scm (ceph): Update to 14.2.5.
[source](patches): Adjust as above.
[source](snippet): Remove bundled "fmt", "c-ares" and "googletest".
[arguments]: Add "-DCMAKE_INSTALL_DATADIR" and "-DWITH_RADOSGW_AMQP_ENDPOINT"
and "-DWITH_TESTS" in #:configure-flags; remove "-DWITH_XIO". Remove obsolete
substitutions. Don't install 'ceph-disk' and 'ceph-detect-init', which no
longer exists. Remove test-specific substitutions and phases. Adjust for
Python 2->3 in inputs.
[native-inputs]: Remove INETUTILS, JQ, PERL, XMLSTARLET, PYTHON2-CRAM,
PYTHON2-VIRTUALENV, PYTHON2-CONFIGOBJ, PYTHON2-COVERAGE, PYTHON2-DISCOVER,
PYTHON2-FLAKE8, PYTHON2-MOCK, PYTHON2-NOSE, PYTHON2-PIP, PYTHON2-PYTEST,
PYTHON2-SUBUNIT PYTHON2-TESTREPOSITORY, PYTHON2-TESTTOOLS, and PYTHON2-TOX.
[inputs]: Change from BOOST to BOOST-WITH-PYTHON3. Remove GPTFDISK, PARTED,
PYTHON-2, PYTHON2-SIX, PYTHON2-PRETTYTABLE, and PYTHON-3. Add PYTHON-SIX,
PYTHON-PRETTYTABLE, PYTHON-WRAPPER, LIBCAP-NG, LIBNL, NCURSES, and RDMA-CORE.
2019-12-21 09:18:13 -05:00
|
|
|
"-DALLOCATOR=jemalloc"
|
|
|
|
|
2021-11-05 17:49:43 -04:00
|
|
|
;; Don't install systemd unit files.
|
|
|
|
"-DWITH_SYSTEMD=OFF"
|
|
|
|
|
gnu: Ceph: Update to 14.2.5.
This also removes test-specific code to ease the Python 3 transition, and
because it is mostly obsolete.
* gnu/packages/patches/ceph-detect-rocksdb.patch,
gnu/packages/patches/ceph-skip-unittest_blockdev.patch,
gnu/packages/patches/ceph-skip-collect-sys-info-test.patch: Delete files.
* gnu/packages/patches/ceph-boost-compat.patch: New file.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.
* gnu/packages/storage.scm (ceph): Update to 14.2.5.
[source](patches): Adjust as above.
[source](snippet): Remove bundled "fmt", "c-ares" and "googletest".
[arguments]: Add "-DCMAKE_INSTALL_DATADIR" and "-DWITH_RADOSGW_AMQP_ENDPOINT"
and "-DWITH_TESTS" in #:configure-flags; remove "-DWITH_XIO". Remove obsolete
substitutions. Don't install 'ceph-disk' and 'ceph-detect-init', which no
longer exists. Remove test-specific substitutions and phases. Adjust for
Python 2->3 in inputs.
[native-inputs]: Remove INETUTILS, JQ, PERL, XMLSTARLET, PYTHON2-CRAM,
PYTHON2-VIRTUALENV, PYTHON2-CONFIGOBJ, PYTHON2-COVERAGE, PYTHON2-DISCOVER,
PYTHON2-FLAKE8, PYTHON2-MOCK, PYTHON2-NOSE, PYTHON2-PIP, PYTHON2-PYTEST,
PYTHON2-SUBUNIT PYTHON2-TESTREPOSITORY, PYTHON2-TESTTOOLS, and PYTHON2-TOX.
[inputs]: Change from BOOST to BOOST-WITH-PYTHON3. Remove GPTFDISK, PARTED,
PYTHON-2, PYTHON2-SIX, PYTHON2-PRETTYTABLE, and PYTHON-3. Add PYTHON-SIX,
PYTHON-PRETTYTABLE, PYTHON-WRAPPER, LIBCAP-NG, LIBNL, NCURSES, and RDMA-CORE.
2019-12-21 09:18:13 -05:00
|
|
|
;; Do not bother building the tests; we are not currently running
|
|
|
|
;; them, and they do not build with system googletest as of 14.2.5.
|
|
|
|
"-DWITH_TESTS=OFF"))
|
2017-12-28 02:20:17 -05:00
|
|
|
;; FIXME: Some of the tests leak Btrfs subvolumes on Btrfs. See
|
|
|
|
;; <https://bugs.gnu.org/29674> for details. Disable tests until
|
|
|
|
;; resolved.
|
|
|
|
#:tests? #f
|
2016-12-27 15:40:41 -05:00
|
|
|
#:phases
|
2022-12-23 14:17:15 -05:00
|
|
|
`(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'patch-source
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let ((out (assoc-ref outputs "out"))
|
|
|
|
(lib (assoc-ref outputs "lib")))
|
|
|
|
|
|
|
|
(substitute* "src/rgw/store/dbstore/sqlite/CMakeLists.txt"
|
|
|
|
(("add_library\\(sqlite_db \\$")
|
|
|
|
"add_library(sqlite_db STATIC $"))
|
|
|
|
(substitute* "src/rgw/store/dbstore/CMakeLists.txt"
|
|
|
|
(("add_library\\(dbstore \\$")
|
|
|
|
"add_library(dbstore STATIC $")
|
|
|
|
(("add_library\\(dbstore_lib \\$")
|
|
|
|
"add_library(dbstore_lib STATIC $"))
|
2016-12-27 15:40:41 -05:00
|
|
|
|
2022-12-23 14:17:15 -05:00
|
|
|
(substitute* "cmake/modules/Distutils.cmake"
|
|
|
|
;; Prevent creation of Python eggs.
|
|
|
|
(("setup.py install")
|
|
|
|
"setup.py install --single-version-externally-managed --root=/")
|
|
|
|
;; Inject the -rpath linker argument when linking
|
|
|
|
;; Python C libraries so RUNPATH gets set up correctly.
|
|
|
|
(("LDFLAGS=(.*)\n" _ flags)
|
|
|
|
(string-append "LDFLAGS=\\\"" flags
|
|
|
|
" -Wl,-rpath=" lib "/lib\\\"\n")))
|
2016-12-27 15:40:41 -05:00
|
|
|
|
2022-12-23 14:17:15 -05:00
|
|
|
;; Statically link libcrc32 because it does not get installed,
|
|
|
|
;; yet several libraries end up referring to it.
|
|
|
|
(substitute* "src/common/CMakeLists.txt"
|
|
|
|
(("add_library\\(crc32")
|
|
|
|
"add_library(crc32 STATIC"))
|
2016-12-27 15:40:41 -05:00
|
|
|
|
2022-12-23 14:17:15 -05:00
|
|
|
(substitute* "udev/50-rbd.rules"
|
|
|
|
(("/usr/bin/ceph-rbdnamer")
|
|
|
|
(string-append out "/bin/ceph-rbdnamer"))))))
|
|
|
|
(add-before 'install 'set-install-environment
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(py3sitedir
|
|
|
|
(string-append out "/lib/python"
|
|
|
|
,(version-major+minor
|
|
|
|
(package-version python))
|
|
|
|
"/site-packages")))
|
|
|
|
;; The Python install scripts refuses to function if
|
|
|
|
;; the install directory is not on PYTHONPATH.
|
|
|
|
(setenv "PYTHONPATH" py3sitedir))))
|
|
|
|
(add-after 'install 'wrap-python-scripts
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(scripts '("bin/ceph" "bin/cephfs-top" "sbin/ceph-volume"))
|
|
|
|
(dependencies (map (lambda (input)
|
|
|
|
(assoc-ref inputs input))
|
|
|
|
'("python-prettytable" "python-pyyaml")))
|
|
|
|
(sitedir (lambda (package)
|
|
|
|
(string-append package
|
|
|
|
"/lib/python"
|
|
|
|
,(version-major+minor
|
|
|
|
(package-version python))
|
|
|
|
"/site-packages")))
|
|
|
|
(PYTHONPATH (string-join (map sitedir (cons out dependencies))
|
|
|
|
":")))
|
|
|
|
(for-each (lambda (executable)
|
|
|
|
(wrap-program (string-append out "/" executable)
|
|
|
|
`("GUIX_PYTHONPATH" ":" prefix (,PYTHONPATH))))
|
|
|
|
scripts)))))))
|
2016-12-27 15:40:41 -05:00
|
|
|
(outputs
|
|
|
|
'("out" "lib"))
|
|
|
|
(native-inputs
|
2021-12-13 11:18:24 -05:00
|
|
|
(list gperf pkg-config python-cython python-sphinx yasm))
|
2016-12-27 15:40:41 -05:00
|
|
|
(inputs
|
2022-12-23 14:17:15 -05:00
|
|
|
(list `(,apache-thrift "lib")
|
|
|
|
`(,apache-thrift "include")
|
|
|
|
`(,apache-arrow-for-ceph "lib")
|
2021-07-02 06:07:16 -04:00
|
|
|
bash-minimal
|
2022-12-23 14:17:15 -05:00
|
|
|
boost
|
|
|
|
curl
|
|
|
|
cryptsetup
|
|
|
|
eudev
|
|
|
|
expat
|
|
|
|
fcgi
|
|
|
|
fmt-8
|
2023-07-22 20:00:00 -04:00
|
|
|
fuse-2
|
2022-12-23 14:17:15 -05:00
|
|
|
icu4c
|
|
|
|
jemalloc
|
|
|
|
keyutils
|
|
|
|
leveldb
|
|
|
|
libaio
|
|
|
|
libatomic-ops
|
|
|
|
libcap-ng
|
|
|
|
libnl
|
|
|
|
librdkafka
|
|
|
|
lua
|
|
|
|
lz4
|
|
|
|
oath-toolkit
|
|
|
|
openldap
|
|
|
|
openssl
|
|
|
|
ncurses
|
|
|
|
nss
|
|
|
|
python-prettytable ;used by ceph_daemon.py
|
|
|
|
python-pyyaml ;from python-common/setup.py
|
|
|
|
python
|
|
|
|
rapidjson
|
|
|
|
rdma-core
|
|
|
|
rocksdb
|
|
|
|
snappy
|
|
|
|
sqlite
|
|
|
|
utf8proc
|
|
|
|
util-linux
|
|
|
|
`(,util-linux "lib")
|
|
|
|
xfsprogs
|
|
|
|
zlib))
|
2016-12-27 15:40:41 -05:00
|
|
|
(home-page "https://ceph.com/")
|
|
|
|
(synopsis "Distributed object store and file system")
|
|
|
|
(description
|
|
|
|
"Ceph is a distributed storage system designed for reliability and
|
|
|
|
performance. It provides network-based block devices (RBD), a POSIX
|
2018-01-19 10:25:13 -05:00
|
|
|
compliant file system (CephFS), and offers compatibility with various
|
2016-12-27 15:40:41 -05:00
|
|
|
storage protocols (S3, NFS, and others) through the RADOS gateway.")
|
|
|
|
;; The Ceph libraries are LGPL2.1 and most of the utilities fall under
|
|
|
|
;; GPL2. The installed erasure code plugins are BSD-3 licensed and do
|
|
|
|
;; not use the GPL code. The source archive includes a number of files
|
|
|
|
;; carrying other licenses; consult COPYING for more information. Note
|
|
|
|
;; that COPYING does not cover third-party bundled software.
|
|
|
|
(license (list license:lgpl2.1 license:gpl2 ;some files are 'or later'
|
|
|
|
license:cc-by-sa3.0 ;documentation
|
|
|
|
license:bsd-3 ;isa-l,jerasure,++
|
|
|
|
license:expat)))) ;civetweb,java bindings
|