* [bug#75097] [PATCH rust-team 1/8] gnu: override-jemalloc: Add variable.
@ 2024-12-25 20:20 Herman Rimm via Guix-patches via
2024-12-25 20:21 ` [bug#75097] [PATCH rust-team 2/8] gnu: rust-jemalloc-ctl-0.5: Use override-jemalloc phases Herman Rimm via Guix-patches via
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: Herman Rimm via Guix-patches via @ 2024-12-25 20:20 UTC (permalink / raw)
To: 75097; +Cc: Efraim Flashner
* gnu/packages/crates-io.scm (override-jemalloc): Add variable.
Change-Id: I3e1666306c9f005072f9ed230f03386b2f78b0b2
---
gnu/packages/crates-io.scm | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index b3d9bcd783..fb7710c5a9 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -39209,6 +39209,19 @@ (define-public rust-javascriptcore-rs-sys-0.2
"Sys functions for the Rust bindings of the javacriptcore library.")
(license license:expat)))
+(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-jemalloc-ctl-0.5
(package
(name "rust-jemalloc-ctl")
base-commit: 32ab343e03e998ada27c063ef7d8a00aa88436dd
--
2.45.2
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [bug#75097] [PATCH rust-team 2/8] gnu: rust-jemalloc-ctl-0.5: Use override-jemalloc phases.
2024-12-25 20:20 [bug#75097] [PATCH rust-team 1/8] gnu: override-jemalloc: Add variable Herman Rimm via Guix-patches via
@ 2024-12-25 20:21 ` Herman Rimm via Guix-patches via
2024-12-25 20:21 ` [bug#75097] [PATCH rust-team 3/8] gnu: rust-jemalloc-sys-0.5: " Herman Rimm via Guix-patches via
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Herman Rimm via Guix-patches via @ 2024-12-25 20:21 UTC (permalink / raw)
To: 75097; +Cc: Efraim Flashner
* gnu/packages/crates-io.scm (rust-jemalloc-ctl-0.5)[arguments]: Disable
parallel tests. Use override-jemalloc.
Change-Id: I23718f05ffd3deeb0ea0f9b32412ae6b6f0692db
---
gnu/packages/crates-io.scm | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index fb7710c5a9..5945fd0a72 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -39239,16 +39239,8 @@ (define-public rust-jemalloc-ctl-0.5
("rust-libc" ,rust-libc-0.2)
("rust-paste" ,rust-paste-1))
#:cargo-development-inputs (("rust-jemallocator" ,rust-jemallocator-0.5))
- #: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"))))))))
+ #:parallel-tests? #f ; Tests fail non-deterministically.
+ #:phases ,override-jemalloc))
(native-inputs (list jemalloc))
(home-page "https://github.com/tikv/jemallocator")
(synopsis "Wrapper over jemalloc's control and introspection APIs")
--
2.45.2
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [bug#75097] [PATCH rust-team 3/8] gnu: rust-jemalloc-sys-0.5: Use override-jemalloc phases.
2024-12-25 20:20 [bug#75097] [PATCH rust-team 1/8] gnu: override-jemalloc: Add variable Herman Rimm via Guix-patches via
2024-12-25 20:21 ` [bug#75097] [PATCH rust-team 2/8] gnu: rust-jemalloc-ctl-0.5: Use override-jemalloc phases Herman Rimm via Guix-patches via
@ 2024-12-25 20:21 ` Herman Rimm via Guix-patches via
2024-12-25 20:21 ` [bug#75097] [PATCH rust-team 4/8] gnu: rust-jemalloc-sys-0.3: " Herman Rimm via Guix-patches via
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Herman Rimm via Guix-patches via @ 2024-12-25 20:21 UTC (permalink / raw)
To: 75097; +Cc: Efraim Flashner
* gnu/packages/crates-io.scm (rust-jemalloc-sys-0.5)[arguments]: Adjust.
Change-Id: Ib7c45999b55c95a3db0944d92985d64e4dadfc3a
---
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 5945fd0a72..0a499a6400 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -39267,16 +39267,7 @@ (define-public rust-jemalloc-sys-0.5
`(#: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))
(native-inputs
(list jemalloc))
(home-page "https://github.com/tikv/jemallocator")
--
2.45.2
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [bug#75097] [PATCH rust-team 4/8] gnu: rust-jemalloc-sys-0.3: Use override-jemalloc phases.
2024-12-25 20:20 [bug#75097] [PATCH rust-team 1/8] gnu: override-jemalloc: Add variable Herman Rimm via Guix-patches via
2024-12-25 20:21 ` [bug#75097] [PATCH rust-team 2/8] gnu: rust-jemalloc-ctl-0.5: Use override-jemalloc phases Herman Rimm via Guix-patches via
2024-12-25 20:21 ` [bug#75097] [PATCH rust-team 3/8] gnu: rust-jemalloc-sys-0.5: " Herman Rimm via Guix-patches via
@ 2024-12-25 20:21 ` Herman Rimm via Guix-patches via
2024-12-25 20:21 ` [bug#75097] [PATCH rust-team 5/8] gnu: rust-jemallocator-0.5: " Herman Rimm via Guix-patches via
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Herman Rimm via Guix-patches via @ 2024-12-25 20:21 UTC (permalink / raw)
To: 75097; +Cc: Efraim Flashner
* gnu/packages/crates-io.scm (rust-jemalloc-sys-0.3)[arguments]: Adjust.
Change-Id: Ifc1f2ad115054f7c7db2447e8680cc070273c6f3
---
gnu/packages/crates-io.scm | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 0a499a6400..05d61f4209 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -39297,14 +39297,7 @@ (define-public rust-jemalloc-sys-0.3
;; Build dependencies:
("rust-cc" ,rust-cc-1)
("rust-fs-extra" ,rust-fs-extra-1))
- #:phases
- (modify-phases %standard-phases
- (add-after 'configure 'override-jemalloc
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((jemalloc (assoc-ref inputs "jemalloc")))
- (setenv "JEMALLOC_OVERRIDE"
- (string-append jemalloc "/lib/libjemalloc_pic.a")))
- #t)))))))
+ #:phases ,override-jemalloc))))
(define-public rust-jemalloc-sys-0.1
(package
--
2.45.2
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [bug#75097] [PATCH rust-team 5/8] gnu: rust-jemallocator-0.5: Use override-jemalloc phases.
2024-12-25 20:20 [bug#75097] [PATCH rust-team 1/8] gnu: override-jemalloc: Add variable Herman Rimm via Guix-patches via
` (2 preceding siblings ...)
2024-12-25 20:21 ` [bug#75097] [PATCH rust-team 4/8] gnu: rust-jemalloc-sys-0.3: " Herman Rimm via Guix-patches via
@ 2024-12-25 20:21 ` Herman Rimm via Guix-patches via
2024-12-25 20:21 ` [bug#75097] [PATCH rust-team 6/8] gnu: rust-jemallocator-0.1: " Herman Rimm via Guix-patches via
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Herman Rimm via Guix-patches via @ 2024-12-25 20:21 UTC (permalink / raw)
To: 75097; +Cc: Efraim Flashner
* gnu/packages/crates-io.scm (rust-jemallocator-0.5)[arguments]: Adjust.
Change-Id: I329aaa334575c0c89e60e4011ba1274f91098ff0
---
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 05d61f4209..afc90512c2 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -39338,16 +39338,7 @@ (define-public rust-jemallocator-0.5
#:cargo-development-inputs
(("rust-jemalloc-ctl" ,rust-jemalloc-ctl-0.5)
("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))
(native-inputs
(list jemalloc))
(home-page "https://github.com/tikv/jemallocator")
--
2.45.2
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [bug#75097] [PATCH rust-team 6/8] gnu: rust-jemallocator-0.1: Use override-jemalloc phases.
2024-12-25 20:20 [bug#75097] [PATCH rust-team 1/8] gnu: override-jemalloc: Add variable Herman Rimm via Guix-patches via
` (3 preceding siblings ...)
2024-12-25 20:21 ` [bug#75097] [PATCH rust-team 5/8] gnu: rust-jemallocator-0.5: " Herman Rimm via Guix-patches via
@ 2024-12-25 20:21 ` Herman Rimm via Guix-patches via
2024-12-25 20:21 ` [bug#75097] [PATCH rust-team 7/8] gnu: rust-nom-6: " Herman Rimm via Guix-patches via
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Herman Rimm via Guix-patches via @ 2024-12-25 20:21 UTC (permalink / raw)
To: 75097; +Cc: Efraim Flashner
* gnu/packages/crates-io.scm (rust-jemallocator-0.1)[arguments]: Adjust.
Change-Id: Ida6507dff8624d22dc1c6dd77e11426179edb512
---
gnu/packages/crates-io.scm | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index afc90512c2..1216e85226 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -39388,14 +39388,7 @@ (define-public rust-jemallocator-0.1
`(#:cargo-inputs
(("rust-jemalloc-sys" ,rust-jemalloc-sys-0.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")))
- (setenv "JEMALLOC_OVERRIDE"
- (string-append jemalloc "/lib/libjemalloc_pic.a")))
- #t)))))
+ #:phases ,override-jemalloc))
(native-inputs
(list jemalloc))))
--
2.45.2
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [bug#75097] [PATCH rust-team 7/8] gnu: rust-nom-6: Use override-jemalloc phases.
2024-12-25 20:20 [bug#75097] [PATCH rust-team 1/8] gnu: override-jemalloc: Add variable Herman Rimm via Guix-patches via
` (4 preceding siblings ...)
2024-12-25 20:21 ` [bug#75097] [PATCH rust-team 6/8] gnu: rust-jemallocator-0.1: " Herman Rimm via Guix-patches via
@ 2024-12-25 20:21 ` Herman Rimm via Guix-patches via
2024-12-25 20:21 ` [bug#75097] [PATCH rust-team 8/8] gnu: rust-nom-5: " Herman Rimm via Guix-patches via
2024-12-26 13:44 ` [bug#75097] [PATCH rust-team 1/8] gnu: override-jemalloc: Add variable Efraim Flashner
7 siblings, 0 replies; 9+ messages in thread
From: Herman Rimm via Guix-patches via @ 2024-12-25 20:21 UTC (permalink / raw)
To: 75097; +Cc: Efraim Flashner
* gnu/packages/crates-io.scm (rust-nom-6)[arguments]: Adjust.
Change-Id: Iddfad33f6a53aff6faa85d0a3a72b95ffa29ac10
---
gnu/packages/crates-io.scm | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 1216e85226..aa73b59a9e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -51486,14 +51486,7 @@ (define-public rust-nom-6
(("rust-criterion" ,rust-criterion-0.3)
("rust-doc-comment" ,rust-doc-comment-0.3)
("rust-jemallocator" ,rust-jemallocator-0.3))
- #:phases
- (modify-phases %standard-phases
- (add-after 'configure 'override-jemalloc
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((jemalloc (assoc-ref inputs "jemalloc")))
- (setenv "JEMALLOC_OVERRIDE"
- (string-append jemalloc "/lib/libjemalloc_pic.a")))
- #t)))))
+ #:phases ,override-jemalloc))
(native-inputs (list jemalloc))))
(define-public rust-nom-5
--
2.45.2
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [bug#75097] [PATCH rust-team 8/8] gnu: rust-nom-5: Use override-jemalloc phases.
2024-12-25 20:20 [bug#75097] [PATCH rust-team 1/8] gnu: override-jemalloc: Add variable Herman Rimm via Guix-patches via
` (5 preceding siblings ...)
2024-12-25 20:21 ` [bug#75097] [PATCH rust-team 7/8] gnu: rust-nom-6: " Herman Rimm via Guix-patches via
@ 2024-12-25 20:21 ` Herman Rimm via Guix-patches via
2024-12-26 13:44 ` [bug#75097] [PATCH rust-team 1/8] gnu: override-jemalloc: Add variable Efraim Flashner
7 siblings, 0 replies; 9+ messages in thread
From: Herman Rimm via Guix-patches via @ 2024-12-25 20:21 UTC (permalink / raw)
To: 75097; +Cc: Efraim Flashner
* gnu/packages/crates-io.scm (rust-nom-5)[arguments]: Adjust.
Change-Id: Iddfad33f6a53aff6faa85d0a3a72b95ffa29ac10
---
gnu/packages/crates-io.scm | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index aa73b59a9e..13d222c5de 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -51513,13 +51513,7 @@ (define-public rust-nom-5
(("rust-criterion" ,rust-criterion-0.2)
("rust-doc-comment" ,rust-doc-comment-0.3)
("rust-jemallocator" ,rust-jemallocator-0.1))
- #:phases
- (modify-phases %standard-phases
- (add-after 'configure 'override-jemalloc
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((jemalloc (assoc-ref inputs "jemalloc")))
- (setenv "JEMALLOC_OVERRIDE"
- (string-append jemalloc "/lib/libjemalloc_pic.a"))))))))))
+ #:phases ,override-jemalloc))))
(define-public rust-nom-4
(package
--
2.45.2
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [bug#75097] [PATCH rust-team 1/8] gnu: override-jemalloc: Add variable.
2024-12-25 20:20 [bug#75097] [PATCH rust-team 1/8] gnu: override-jemalloc: Add variable Herman Rimm via Guix-patches via
` (6 preceding siblings ...)
2024-12-25 20:21 ` [bug#75097] [PATCH rust-team 8/8] gnu: rust-nom-5: " Herman Rimm via Guix-patches via
@ 2024-12-26 13:44 ` Efraim Flashner
7 siblings, 0 replies; 9+ messages in thread
From: Efraim Flashner @ 2024-12-26 13:44 UTC (permalink / raw)
To: Herman Rimm; +Cc: 75097
[-- Attachment #1: Type: text/plain, Size: 2079 bytes --]
This one I'm unconvinced about. I could see adding CARGO_FEATURE... to
the cargo-build-system, but this seems like a temporary problem that I
hope gets fixed upstream. If we move this out to a separate location
I'm worried we'll forget about it when it's no longer needed.
Plus we're using libjemalloc_pic.a here and libjemalloc.so in
rust-apps.scm, and I'd prefer to not hard-code one or the other.
On Wed, Dec 25, 2024 at 09:20:20PM +0100, Herman Rimm wrote:
> * gnu/packages/crates-io.scm (override-jemalloc): Add variable.
>
> Change-Id: I3e1666306c9f005072f9ed230f03386b2f78b0b2
> ---
> gnu/packages/crates-io.scm | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
> index b3d9bcd783..fb7710c5a9 100644
> --- a/gnu/packages/crates-io.scm
> +++ b/gnu/packages/crates-io.scm
> @@ -39209,6 +39209,19 @@ (define-public rust-javascriptcore-rs-sys-0.2
> "Sys functions for the Rust bindings of the javacriptcore library.")
> (license license:expat)))
>
> +(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-jemalloc-ctl-0.5
> (package
> (name "rust-jemalloc-ctl")
>
> base-commit: 32ab343e03e998ada27c063ef7d8a00aa88436dd
> --
> 2.45.2
>
>
>
--
Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2024-12-26 13:46 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-25 20:20 [bug#75097] [PATCH rust-team 1/8] gnu: override-jemalloc: Add variable Herman Rimm via Guix-patches via
2024-12-25 20:21 ` [bug#75097] [PATCH rust-team 2/8] gnu: rust-jemalloc-ctl-0.5: Use override-jemalloc phases Herman Rimm via Guix-patches via
2024-12-25 20:21 ` [bug#75097] [PATCH rust-team 3/8] gnu: rust-jemalloc-sys-0.5: " Herman Rimm via Guix-patches via
2024-12-25 20:21 ` [bug#75097] [PATCH rust-team 4/8] gnu: rust-jemalloc-sys-0.3: " Herman Rimm via Guix-patches via
2024-12-25 20:21 ` [bug#75097] [PATCH rust-team 5/8] gnu: rust-jemallocator-0.5: " Herman Rimm via Guix-patches via
2024-12-25 20:21 ` [bug#75097] [PATCH rust-team 6/8] gnu: rust-jemallocator-0.1: " Herman Rimm via Guix-patches via
2024-12-25 20:21 ` [bug#75097] [PATCH rust-team 7/8] gnu: rust-nom-6: " Herman Rimm via Guix-patches via
2024-12-25 20:21 ` [bug#75097] [PATCH rust-team 8/8] gnu: rust-nom-5: " Herman Rimm via Guix-patches via
2024-12-26 13:44 ` [bug#75097] [PATCH rust-team 1/8] gnu: override-jemalloc: Add variable Efraim Flashner
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).