From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KDvMBz3AomGHdgEAgWs5BA (envelope-from ) for ; Sun, 28 Nov 2021 00:33:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id ULFuAz3AomFRagAAB5/wlQ (envelope-from ) for ; Sat, 27 Nov 2021 23:33:17 +0000 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 D50208DE2 for ; Sun, 28 Nov 2021 00:33:16 +0100 (CET) Received: from localhost ([::1]:58882 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mr7Bz-00016E-OF for larch@yhetil.org; Sat, 27 Nov 2021 18:33:15 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57882) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mr7Bn-00010e-Id for guix-patches@gnu.org; Sat, 27 Nov 2021 18:33:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51380) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mr7Bn-0001yq-6V for guix-patches@gnu.org; Sat, 27 Nov 2021 18:33:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mr7Bm-00041T-Tn for guix-patches@gnu.org; Sat, 27 Nov 2021 18:33:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51198] [PATCH v2 2/2] gnu: b2sum: Build on the local machine. Resent-From: Leo Famulari Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 27 Nov 2021 23:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51198 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51198@debbugs.gnu.org Received: via spool by 51198-submit@debbugs.gnu.org id=B51198.163805597515436 (code B ref 51198); Sat, 27 Nov 2021 23:33:02 +0000 Received: (at 51198) by debbugs.gnu.org; 27 Nov 2021 23:32:55 +0000 Received: from localhost ([127.0.0.1]:34692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mr7Be-00040o-Tc for submit@debbugs.gnu.org; Sat, 27 Nov 2021 18:32:55 -0500 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:44125) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mr7Bd-00040P-5S for 51198@debbugs.gnu.org; Sat, 27 Nov 2021 18:32:53 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 6F57D320091A; Sat, 27 Nov 2021 18:32:47 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sat, 27 Nov 2021 18:32:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=from:to:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=mesmtp; bh=YQJO7n46BA jhMG1bNbgyNmfWUOLYsKrhvQExfUgpIp8=; b=Qj6m/7f1xxTEmn46MarpqK3JJN SLRCj1lDtDykuuJcaaOppIqNskUjEll9RJcrVT0LW6diOtls1djjWb3ubl+A+o4F ekKp+o0QTIb6G3x9QwzfrCIEEkY4SXKKgJLl1GDzyHZTGfWAnP5OcFaBq6ALQ5UN 3M/4kwxOYGSr2lM4Q= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=YQJO7n46BAjhMG1bNbgyNmfWUOLYsKrhvQExfUgpIp8=; b=DkM31fPL +KX6EaIj6w8v4Uqsg++jT4FhW0LI7tQ1VISWpr2ojl6YxbS8ajX9DirElwcIw2jl zn6ePUF2CV5kdx5wm0JS99qxm1j+Lq+BqaAChCuy9EueoWQSSqXf4Ffifi0Y1qX0 xohV9XSSag0WCXemIHIYtemcwGMEQE2fyAlPEJEmeNt0pVpUYlJp3zz0OYpuLILw yuSCFiRdRaidh4cOKVo9ST5k37SN5EQ/lfWmEgUQOsroW1aBreezGMbHRZmoExUx hBxN6nKN47E4wi8HnMOq102LAirdDqJdToCdNB/NOf8bBXBjcBbeWBanvYyXD+pE T4BZBL19tDcOzw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrheehgdduudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtkeertd ertddtnecuhfhrohhmpefnvghoucfhrghmuhhlrghrihcuoehlvghosehfrghmuhhlrghr ihdrnhgrmhgvqeenucggtffrrghtthgvrhhnpedtffejjeeuudehueetheeivddviedtie egtedvudejjeeltdehfffhhedtheeltdenucffohhmrghinhepghhithhhuhgsrdgtohhm pdhgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomheplhgvohesfhgrmhhulhgrrhhirdhnrghmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for <51198@debbugs.gnu.org>; Sat, 27 Nov 2021 18:32:46 -0500 (EST) From: Leo Famulari Date: Sat, 27 Nov 2021 18:32:38 -0500 Message-Id: <0a0f14aab09280676f078f3df5eeef44b019760d.1638055958.git.leo@famulari.name> X-Mailer: git-send-email 2.33.1 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638055996; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=YQJO7n46BAjhMG1bNbgyNmfWUOLYsKrhvQExfUgpIp8=; b=QthWKf4s/E4JqEYK5xyKb0QLddJU8vr1RYksEIZpsSX71Z6HSf5JiXuVyV6C79bBHjpXNz jQTw0xOVhUqt5S2ji6ZpoqjJyL3egRh8rFsGhiXOaMz8gYhuvEvG5jf8JeDlnibEgDx+QT QYuNAQffuRfpuiS7YZg5xhcQsOIoOv0sFxwgFw1vU3HFqwDs1GCS94ylDNstd5z5Z5uaeQ 5SYRr9pBsgS14b13ncTUlkW69EwvO7g051NyMqf1HbPml/m13ThUUwHpdbuDmrUbt8GyUg I62aVc+aIVPrYkpyOlNgwMx8pg+YR6QEQDYacHK2h4HrwLL+ScAxVXYFbs1d0Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638055996; a=rsa-sha256; cv=none; b=OiVoorCEVRMwexNEpkKM1nQlBHfFht4cAqmzyGWYYKS7SA/lSD8QtQGXggVCuZglzgFj5P X5Xr2V+oCjpWmtpp2Q5eQzzhZtgkBG7eQKY4alUqOTHdpTHsU8PBhoF/9jYkkKSUgIuxdh 4egAWPb4gMskuo4lugcX/ZIeXBvVnHUMOBFLfqNDsqhzx/jqfg6tQQMKc+MQj91IYWVdWv cm7E0ox2k99Fk3jWibGTANQ2vBSiXGkl39Zwlwagr9SVRRWJkQTEUan9r+HGSHDYkaKHyH Y29jINSD8g7SRZvUbDRIBnbw1sT/aZwK6hp++6dEtZDuH80UfnPhJq7+S+MXQQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=famulari.name header.s=mesmtp header.b="Qj6m/7f1"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=DkM31fPL; dmarc=none; 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" X-Migadu-Spam-Score: -0.50 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=famulari.name header.s=mesmtp header.b="Qj6m/7f1"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=DkM31fPL; dmarc=none; 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" X-Migadu-Queue-Id: D50208DE2 X-Spam-Score: -0.50 X-Migadu-Scanner: scn0.migadu.com X-TUID: MmHXxPTOBbfQ * gnu/packages/crypto.scm (b2sum)[arguments]: Set '#:substitutable? #f' and '#:local-build? #t'. --- gnu/packages/crypto.scm | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm index b6f2010a80..d4c6717eb5 100644 --- a/gnu/packages/crypto.scm +++ b/gnu/packages/crypto.scm @@ -858,9 +858,19 @@ (define-public b2sum (base32 "04z631v0vzl52g73v390ask5fnzi5wg83lcjkjhpmmymaz0jn152")))) (build-system gnu-build-system) (arguments - `(#:make-flags (list (string-append "CC=" ,(cc-for-target)) - (string-append "PREFIX=" (assoc-ref %outputs "out"))) + `(;; By default, b2sum uses the compiler to generate instructions + ;; tailored to the CPU of the running machine, using "-march=native". + ;; This gives a ~1.5x speedup on a Core i5-6300U with a large dataset + ;; paged in, whereas compilation of b2sum takes ~1.5 seconds. + ;; b2sum does not support run-time feature detection: + ;; https://github.com/BLAKE2/BLAKE2/issues/1 + ;; For more information, see the discussion beginning here: + ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51198#13 + #:substitutable? #f + #:local-build? #t #:tests? #f ; No test suite + #:make-flags (list (string-append "CC=" ,(cc-for-target)) + (string-append "PREFIX=" (assoc-ref %outputs "out"))) #:phases (modify-phases %standard-phases (add-before 'build 'change-directory -- 2.33.1