GNU bug report logs - #75098
[PATCH rust-team 0/2] Use override-jemalloc.

Previous Next

Package: guix-patches;

Reported by: Herman Rimm <herman <at> rimm.ee>

Date: Wed, 25 Dec 2024 20:36:02 UTC

Severity: normal

Tags: patch

Full log


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

From: Herman Rimm <herman <at> rimm.ee>
To: 75098 <at> debbugs.gnu.org
Subject: [PATCH rust-team 2/2] gnu: rust-tikv-jemallocator-0.6: Use
 override-jemalloc phases.
Date: Wed, 25 Dec 2024 21:35:46 +0100
* gnu/packages/crates-io.scm (rust-tikv-jemallocator-0.6): Adjust.

Change-Id: I149192a509e9175d7951129ecd1a7319f449912a
---
 gnu/packages/crates-io.scm | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 58cfd7f1c8..b55c2e66b2 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -88957,16 +88957,7 @@ (define-public rust-tikv-jemallocator-0.6
        #:cargo-inputs (("rust-libc" ,rust-libc-0.2)
                        ("rust-tikv-jemalloc-sys" ,rust-tikv-jemalloc-sys-0.6))
        #:cargo-development-inputs (("rust-paste" ,rust-paste-1))
-       #:phases
-       (modify-phases %standard-phases
-         (add-after 'configure 'override-jemalloc
-           (lambda* (#:key inputs #:allow-other-keys)
-             (let ((jemalloc (assoc-ref inputs "jemalloc")))
-               ;; 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 jemalloc "/lib/libjemalloc_pic.a"))))))))
+       #:phases ,override-jemalloc))
     (inputs (list jemalloc))
     (home-page "https://github.com/tikv/jemallocator")
     (synopsis "Rust allocator backed by jemalloc")
-- 
2.45.2





This bug report was last modified 171 days ago.

Previous Next


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