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

To reply to this bug, email your comments to 75098 AT debbugs.gnu.org.

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

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


Report forwarded to efraim <at> flashner.co.il, guix-patches <at> gnu.org:
bug#75098; Package guix-patches. (Wed, 25 Dec 2024 20:36:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Herman Rimm <herman <at> rimm.ee>:
New bug report received and forwarded. Copy sent to efraim <at> flashner.co.il, guix-patches <at> gnu.org. (Wed, 25 Dec 2024 20:36:02 GMT) Full text and rfc822 format available.

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

From: Herman Rimm <herman <at> rimm.ee>
To: guix-patches <at> gnu.org
Subject: [PATCH rust-team 0/2] Use override-jemalloc.
Date: Wed, 25 Dec 2024 21:34:40 +0100
Hello,

Follow-up to [bug#75097], two packages with relevant phases got added
since I created the override-jemalloc variable.

Cheers,
Herman

Herman Rimm (2):
  gnu: rust-tikv-jemalloc-sys-0.6: Use override-jemalloc phases.
  gnu: rust-tikv-jemallocator-0.6: Use override-jemalloc phases.

 gnu/packages/crates-io.scm | 22 ++--------------------
 1 file changed, 2 insertions(+), 20 deletions(-)


base-commit: b3ce03d55ea7b538280d2b7bd53b2ed9f01150b2
-- 
2.45.2





Information forwarded to efraim <at> flashner.co.il, guix-patches <at> gnu.org:
bug#75098; Package guix-patches. (Wed, 25 Dec 2024 20:37:02 GMT) Full text and rfc822 format available.

Message #8 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 1/2] gnu: rust-tikv-jemalloc-sys-0.6: Use
 override-jemalloc phases.
Date: Wed, 25 Dec 2024 21:35:45 +0100
* gnu/packages/crates-io.scm (rust-tikv-jemalloc-sys-0.6): Adjust.

Change-Id: I579e7ac913f5b5123ee29ebd0889fea2ab18e363
---
 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 13d222c5de..58cfd7f1c8 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -88910,16 +88910,7 @@ (define-public rust-tikv-jemalloc-sys-0.6
     (arguments
      `(#:cargo-inputs (("rust-cc" ,rust-cc-1)
                        ("rust-libc" ,rust-libc-0.2))
-       #: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 FFI bindings to jemalloc")
-- 
2.45.2





Information forwarded to efraim <at> flashner.co.il, guix-patches <at> gnu.org:
bug#75098; Package guix-patches. (Wed, 25 Dec 2024 20:37:02 GMT) Full text and rfc822 format available.

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.