From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id cGRBNRYXS2amhwAAqHPOHw:P1 (envelope-from ) for ; Mon, 20 May 2024 11:25:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id cGRBNRYXS2amhwAAqHPOHw (envelope-from ) for ; Mon, 20 May 2024 11:25:43 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=rimm.ee header.s=herman header.b=jUyJJeWH; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1716197142; a=rsa-sha256; cv=none; b=n9Vd+lW7hjk1WmBExWi/pAc09/nxw3kmPZfLCe8oDv8vFm4YhtaxZNrQACduSjdRQ3DYyj 0NH2ZmQVPK3nJ5iLUOrnpAQkUXXqRmnA84kzQQeVFbh5OeA3bckBJYsq5J2nt4gFo36Tpz IJApiIOVQJxgjxyAf2XbbjMSVm1BaD3AWqFAfnJPc7tb+XNjGyI3hI/oGiVpq9s9/qYMdm pE4LwCRc6YyWJz2am+QChg6N5Sey//TycTIpHU4IAAD9NOAKF7Jpn1nvZgyhMbi+jhdVfZ 0Ey7lk528G6/9mN6seZpmIrgeclELsf8jqWgsnMm85K7Vkyeb6lO6wjmcQYTvQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=rimm.ee header.s=herman header.b=jUyJJeWH; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1716197142; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=A2iTzRKEIcDkvtOzuhCZUXfjzHatonCb6VPQIPFpL5Y=; b=UNTMbbBlxhTB7pvgSxIkQXg3RxvwyBg4UBTsgyKdyqV3Ny771Sb2DXY2naRb+M/bLk16Um 0hOuVJpQs7TJPou+DI2SgvxC3jtv7UpyMMr7qHRx7ZGCDDqk5X+vgrD3jySgiyXPufBV0i ALSHpUg1c3+gZGXhEKO2tyB8Abz7a79F/xleXXY3QKGvywHVIce11CwlPzk0/WWvuO1ZIJ yswD3ZXRmIed5RIxhf9xoA7ILNHZmCHOSuVECWrT3fIBhzVXE/OFWGz1begNbxqvOsledR pqevhZT5w6JjJENcEgi3LOB6LSDFqsAsndpMbKI6gfQLuXpzfp1Qp+N20kOV0w== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9AD671749B for ; Mon, 20 May 2024 11:25:42 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s8yvK-0002Sg-Lz; Mon, 20 May 2024 05:03:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s8yvD-0002AA-Qn for guix-patches@gnu.org; Mon, 20 May 2024 05:03:07 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s8yvD-0007Jm-EE for guix-patches@gnu.org; Mon, 20 May 2024 05:03:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s8yvH-0007UP-TI; Mon, 20 May 2024 05:03:11 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71076] [PATCH 15/81] gnu: Add rust-tikv-jemalloc-sys-0.5. Resent-From: Herman Rimm Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, guix-patches@gnu.org Resent-Date: Mon, 20 May 2024 09:03:11 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71076 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71076@debbugs.gnu.org Cc: Efraim Flashner X-Debbugs-Original-Xcc: Efraim Flashner Received: via spool by 71076-submit@debbugs.gnu.org id=B71076.171619574928492 (code B ref 71076); Mon, 20 May 2024 09:03:11 +0000 Received: (at 71076) by debbugs.gnu.org; 20 May 2024 09:02:29 +0000 Received: from localhost ([127.0.0.1]:41374 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8yua-0007PO-RT for submit@debbugs.gnu.org; Mon, 20 May 2024 05:02:29 -0400 Received: from 81-205-150-117.fixed.kpn.net ([81.205.150.117]:37059 helo=email.rimm.ee) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s8ysO-00071L-Ra for 71076@debbugs.gnu.org; Mon, 20 May 2024 05:00:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rimm.ee; s=herman; t=1716195599; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=A2iTzRKEIcDkvtOzuhCZUXfjzHatonCb6VPQIPFpL5Y=; b=jUyJJeWHFAekp6fntIiUmoRhBF/4wKUSdur4jbnbSgGZGKX2zGr0N2cuPreISUIUwK6snP eh0/qlr33hhRaCauiyKxXIRggjYVOz5cXysk6UzbB5M+RwNZPpoB+DeDJ24MOk3NJk2Zuq CoF1mAxqLNykT5XEW0fHuN2+26qKfPTrZ+nnEQ0zyrphgOgk8Ry+p+9gwwJsrVQvag22wX lPNHAblaJhSmcgMucb7MjULHkIOjpQzNETszyadorw8hZCiF/NG3HmiiapGq5Uq2Aky9dJ NaLSTQnjfnBI0YNP7xBNgDhMN8ABrSIAJhL3Xs3NtMG4dK4/mMx37MiqG6jmmw== Received: by 81-205-150-117.fixed.kpn.net (OpenSMTPD) with ESMTPSA id 614e3271 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO) for <71076@debbugs.gnu.org>; Mon, 20 May 2024 08:59:59 +0000 (UTC) Date: Mon, 20 May 2024 10:58:20 +0200 Message-ID: <9a33f5d348c0871f4a3fd8cb215be264dab119f7.1716193122.git.herman@rimm.ee> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Herman Rimm X-ACL-Warn: , Herman Rimm via Guix-patches From: Herman Rimm via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 9AD671749B X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -4.86 X-Spam-Score: -4.86 X-TUID: gCw/h7d/ShAs * 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