[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#71076] [PATCH 15/81] gnu: Add rust-tikv-jemalloc-sys-0.5.
From: |
Herman Rimm |
Subject: |
[bug#71076] [PATCH 15/81] gnu: Add rust-tikv-jemalloc-sys-0.5. |
Date: |
Mon, 20 May 2024 10:58:20 +0200 |
* gnu/packages/crates-io.scm (override-jemalloc,
rust-tikv-jemalloc-sys-0.5): Add variables.
(rust-tikv-jemalloc-sys-0.4): Inherit from rust-tikv-jemalloc-sys-0.5.
Change-Id: Ic37cea079d42883b91e8cfd5382fd9d95d658851
---
gnu/packages/crates-io.scm | 49 +++++++++++++++++++++++++++++++-------
1 file changed, 41 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 7076dff8f2..8aee499902 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -128,7 +128,8 @@ (define-module (gnu packages crates-io)
#:use-module (gnu packages xorg)
#:use-module (gnu packages gtk)
#:use-module (gnu packages webkit)
- #:use-module (srfi srfi-1))
+ #:use-module (srfi srfi-1)
+ #:export (override-jemalloc))
;;;
;;; Please: Try to add new module packages in alphabetic order.
@@ -82683,6 +82684,18 @@ (define-public rust-thrift-0.13
("rust-ordered-float" ,rust-ordered-float-1)
("rust-threadpool" ,rust-threadpool-1))))))
+(define override-jemalloc
+#~(modify-phases %standard-phases
+ (add-after 'configure 'override-jemalloc
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; This flag is needed when not using the bundled jemalloc.
+ ;; https://github.com/tikv/jemallocator/issues/19
+ (setenv "CARGO_FEATURE_UNPREFIXED_MALLOC_ON_SUPPORTED_PLATFORMS"
+ "1")
+ (setenv "JEMALLOC_OVERRIDE"
+ (string-append (assoc-ref inputs "jemalloc")
+ "/lib/libjemalloc_pic.a"))))))
+
(define-public rust-tikv-jemalloc-ctl-0.4
(package
(name "rust-tikv-jemalloc-ctl")
@@ -82716,8 +82729,34 @@ (define-public rust-tikv-jemalloc-ctl-0.4
introspection APIs.")
(license (list license:expat license:asl2.0))))
+(define-public rust-tikv-jemalloc-sys-0.5
+ (package
+ (name "rust-tikv-jemalloc-sys")
+ (version "0.5.4+5.3.0-patched")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "tikv-jemalloc-sys" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1lc5vm1p9dqdvd3mn3264zddnd7z6i95ch3y69prnjgxp0y480ll"))
+ (modules '((guix build utils)))
+ (snippet '(delete-file-recursively "jemalloc"))))
+ (build-system cargo-build-system)
+ (arguments
+ (list
+ #:cargo-inputs (list rust-cc-1 rust-libc-0.2)
+ #:phases override-jemalloc))
+ (native-inputs (list jemalloc))
+ (home-page "https://github.com/tikv/jemallocator")
+ (synopsis "Rust FFI bindings to jemalloc")
+ (description "This package provides Rust FFI bindings to jemalloc.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-tikv-jemalloc-sys-0.4
(package
+ (inherit rust-tikv-jemalloc-sys-0.5)
(name "rust-tikv-jemalloc-sys")
(version "0.4.1+5.2.1-patched")
(source
@@ -82732,18 +82771,12 @@ (define-public rust-tikv-jemalloc-sys-0.4
(modules '((guix build utils)))
(snippet
'(begin (delete-file-recursively "jemalloc")))))
- (build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs
(("rust-cc" ,rust-cc-1)
("rust-fs-extra" ,rust-fs-extra-1)
- ("rust-libc" ,rust-libc-0.2))))
- (home-page
- "https://github.com/tikv/jemallocator")
- (synopsis "Rust FFI bindings to jemalloc")
- (description "This package provides a Rust FFI bindings to jemalloc.")
- (license (list license:expat license:asl2.0))))
+ ("rust-libc" ,rust-libc-0.2))))))
(define-public rust-tikv-jemallocator-0.4
(package
--
2.41.0
- [bug#71076] [PATCH 52/81] gnu: Add rust-h3-0.0.4., (continued)
- [bug#71076] [PATCH 52/81] gnu: Add rust-h3-0.0.4., Herman Rimm, 2024/05/20
- [bug#71076] [PATCH 80/81] gnu: Add rust-ruma-appservice-api-0.10., Herman Rimm, 2024/05/20
- [bug#71076] [PATCH 63/81] gnu: rust-typed-arena-2: Update to 2.0.2., Herman Rimm, 2024/05/20
- [bug#71076] [PATCH 81/81] gnu: Add rust-ruma-0.10., Herman Rimm, 2024/05/20
- [bug#71076] [PATCH 20/81] gnu: Add rust-opentelemetry-http-0.7., Herman Rimm, 2024/05/20
- [bug#71076] [PATCH 68/81] gnu: Add rust-ruma-events-0.28., Herman Rimm, 2024/05/20
- [bug#71076] [PATCH 46/81] gnu: Add rust-rcgen-0.13., Herman Rimm, 2024/05/20
- [bug#71076] [PATCH 54/81] gnu: rust-pin-project-internal-1: Update to 1.1.5., Herman Rimm, 2024/05/20
- [bug#71076] [PATCH 64/81] gnu: Add rust-html5ever-0.27., Herman Rimm, 2024/05/20
- [bug#71076] [PATCH 58/81] gnu: rust-ruma-identifiers-validation-0.9: Update to 0.9.5., Herman Rimm, 2024/05/20
- [bug#71076] [PATCH 15/81] gnu: Add rust-tikv-jemalloc-sys-0.5.,
Herman Rimm <=
- [bug#71076] [PATCH 51/81] gnu: Add rust-hyper-tls-0.6., Herman Rimm, 2024/05/20
- [bug#71076] [PATCH 26/81] gnu: Add rust-opentelemetry-jaeger-0.17., Herman Rimm, 2024/05/20
- [bug#71076] [PATCH 76/81] gnu: Add rust-ruma-client-api-0.18., Herman Rimm, 2024/05/20
- [bug#71076] [PATCH 75/81] gnu: Add rust-date-header-1., Herman Rimm, 2024/05/20
- [bug#71076] [PATCH 32/81] gnu: Add rust-android-log-sys-0.3., Herman Rimm, 2024/05/20
- [bug#71076] [PATCH 78/81] gnu: rust-hyper-1: Update to 1.3.1., Herman Rimm, 2024/05/20
- [bug#71076] [PATCH 23/81] gnu: Add rust-opentelemetry-semantic-conventions-0.10., Herman Rimm, 2024/05/20
- [bug#71076] [PATCH 35/81] gnu: rust-security-framework-2: Update to 2.11.0., Herman Rimm, 2024/05/20
- [bug#71076] [PATCH 44/81] gnu: Add rust-x509-parser-0.16., Herman Rimm, 2024/05/20
- [bug#71076] [PATCH 65/81] gnu: Add rust-ruma-html-0.2., Herman Rimm, 2024/05/20