From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 14 00:28:54 2021 Received: (at submit) by debbugs.gnu.org; 14 Oct 2021 04:28:54 +0000 Received: from localhost ([127.0.0.1]:34252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1masMK-0008UA-9l for submit@debbugs.gnu.org; Thu, 14 Oct 2021 00:28:54 -0400 Received: from lists.gnu.org ([209.51.188.17]:39250) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1masMH-0008U0-Ax for submit@debbugs.gnu.org; Thu, 14 Oct 2021 00:28:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56440) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1masMH-0003zP-4g for guix-patches@gnu.org; Thu, 14 Oct 2021 00:28:45 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:51389) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1masMF-0004lo-49 for guix-patches@gnu.org; Thu, 14 Oct 2021 00:28:44 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 2656C5C0063; Thu, 14 Oct 2021 00:28:41 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 14 Oct 2021 00:28:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=mesmtp; bh=X2BTH1j3Plu5Eu/2+ZoJoa5 GJUarshbpQ6TfntTaR8o=; b=ve3X+xXJZdB1Qv3C9+n8g0XP/6GoJ31TXhqBxIi KaVlDF1PPKvnDNmI9px10AilfF1D3nWlF5IO0QascbZJvTGlH20m4ThA7fJDN/wg a3mafByk6zs7fHW4FmTkJqZDDAOP5rjopAjl6B2wHwb5TmDsYJbScA3XWVTqYSvD 8gAE= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=X2BTH1 j3Plu5Eu/2+ZoJoa5GJUarshbpQ6TfntTaR8o=; b=R0VFUVFgV5yCIrNS8dOaB6 TTViXlDlU0MP8NrmzI5VG9hHgrDdl/qNwVk3wQR9x/YEgCnSwj1VEk909giIyjiE i7+lvqYEVS8Q5EGV7/sdDneE3jiR15DvYoDsNEAxGeEOzdhcqqa9jegc0Cr+eJKd RHsnCD08RdtHAAKMDg4ytORtHlfjHXDbUpwrDa8sUjqWK6ZUhzpx9Ohyhha7wGGI 0LuR1IeKqvuB/lKmGuIvYLxf2w78wX4hOq/5/LmBphpP5KNNPgKdrXST9/5yfohi yiaJVKi1Y1U4gPSe2LMYuunjFX/xUo1WjmigFzPQ7Pydwm2ZeiLw0zl154yxxSAQ == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdduuddgjeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofggtgfgsehtkeertd ertdejnecuhfhrohhmpefnvghoucfhrghmuhhlrghrihcuoehlvghosehfrghmuhhlrghr ihdrnhgrmhgvqeenucggtffrrghtthgvrhhnpeeghfekheduheehgfdtgfdugfehgfekgf ekfedtjefhueeivdfhheduffeifeevfeenucffohhmrghinhepghhithhhuhgsrdgtohhm pdgslhgrkhgvvddrnhgvthenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehlvghosehfrghmuhhlrghrihdrnhgrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 14 Oct 2021 00:28:40 -0400 (EDT) From: Leo Famulari To: guix-patches@gnu.org Subject: [PATCH] gnu: Add b2sum. Date: Thu, 14 Oct 2021 00:28:36 -0400 Message-Id: X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=66.111.4.29; envelope-from=leo@famulari.name; helo=out5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) * gnu/packages/crypto.scm (b2sum): New variable. --- gnu/packages/crypto.scm | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm index 64cdf48d5d..9d16d64ed2 100644 --- a/gnu/packages/crypto.scm +++ b/gnu/packages/crypto.scm @@ -1,7 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2014 David Thompson ;;; Copyright © 2015, 2017, 2018, 2019 Ricardo Wurmus -;;; Copyright © 2016, 2017, 2018, 2019 Leo Famulari +;;; Copyright © 2016, 2017, 2018, 2019, 2021 Leo Famulari ;;; Copyright © 2016 Lukas Gradl ;;; Copyright © 2016–2021 Tobias Geerinckx-Rice ;;; Copyright © 2016, 2017 Nikita @@ -838,6 +838,42 @@ (define-public libb2 BLAKE.") (license license:public-domain))) +(define-public b2sum + ;; Upstream doesn't seem to use a versioned release workflow, so build from + ;; a recent commit. + (let ((commit "54f4faa4c16ea34bcd59d16e8da46a64b259fc07") + (revision "0")) + (package + (name "b2sum") + (version (git-version "20190724" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/BLAKE2/BLAKE2") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "04z631v0vzl52g73v390ask5fnzi5wg83lcjkjhpmmymaz0jn152")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags (list (string-append "CC=" ,(cc-for-target)) + (string-append "PREFIX=" (assoc-ref %outputs "out"))) + #:tests? #f ; No test suite + #:phases + (modify-phases %standard-phases + ;; XXX Can add-before and delete be expected to work like this? + (add-before 'configure 'change-directory + (lambda _ + (chdir "b2sum"))) + (delete 'configure)))) + (home-page "https://www.blake2.net/") + (synopsis "BLAKE2 checksum tool") + (description "BLAKE2 is a cryptographic hash function faster than MD5, +SHA-1, SHA-2, and SHA-3, yet is at least as secure as SHA-3.") + ;; You may also choose to redistribute this program as Apache 2.0 or the + ;; OpenSSL license. See 'b2sum/b2sum.c' in the source distribution. + (license license:cc0)))) + (define-public rhash (package (name "rhash") -- 2.33.0 From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 26 12:08:09 2021 Received: (at 51198-done) by debbugs.gnu.org; 26 Oct 2021 16:08:09 +0000 Received: from localhost ([127.0.0.1]:47397 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfOzg-000491-W0 for submit@debbugs.gnu.org; Tue, 26 Oct 2021 12:08:09 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:36153) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfOzf-00048b-Fr for 51198-done@debbugs.gnu.org; Tue, 26 Oct 2021 12:08:08 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 76B333201C3C; Tue, 26 Oct 2021 12:08:01 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 26 Oct 2021 12:08:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:subject:message-id:mime-version:content-type; s= mesmtp; bh=lKokpEWzvIzqqPuPhYInsEWWXXnmWclB9Y7SlgyaAlM=; b=yR5eh x8T2Op33lklIsZRRUytPR1WABHtePsXG4LmhaZ8RR4rsinDCv31YcWMSVH6+lZVR ZG6iQAqmoRizzT6LYao/qqrNMd7oprbDvB7U8RTNpb1leX5SG7Xcdo9BzV+MM+oc y25G6fAWOwd6q4Rxb3R6axZD1xTookZ6N/Bids= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=lKokpEWzvIzqqPuPhYInsEWWXXnmW clB9Y7SlgyaAlM=; b=L+IR855i9XNphAGQ/bY3CpYe+fS/idesAfADMnaIbbv/l ub+FV/gnvXIE/pi9YeFbzwW9kZb+yT8Nf9OSIZ3tWuyuSWihh8he26PDnfsfE++q YmCbCmerbEmBiS9Mx2Hxu8kCKwlaauc7JLgzcNeb++Rpo6KO+XI0oAI6ANBZaQso YcbeHsAwT3WGBPCXxhGk91ZbiRSsWYx5n5k2mtIiDi2X6uPuCTtLANWBVJBefIiY fwJi2MPpmMJXhBVnNhSP2ROj7YPWt2XQmljVl2j++4qy8Ilwq6RDWATPhCZnWBP6 AoBwJsxnkmPUumBXD9g/HhAZa4dx2s/TWAEZCRUig== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdefkedgheegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkgggtugesthdtredttd dtvdenucfhrhhomhepnfgvohcuhfgrmhhulhgrrhhiuceolhgvohesfhgrmhhulhgrrhhi rdhnrghmvgeqnecuggftrfgrthhtvghrnhepffehtdeffedtvdeuieefudeujedvkeehff euieejgfdvteelgeehgeefheehuddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomheplhgvohesfhgrmhhulhgrrhhirdhnrghmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for <51198-done@debbugs.gnu.org>; Tue, 26 Oct 2021 12:08:00 -0400 (EDT) Date: Tue, 26 Oct 2021 12:07:57 -0400 From: Leo Famulari To: 51198-done@debbugs.gnu.org Subject: Re: [PATCH] gnu: Add b2sum. Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51198-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Pushed as 3d51fd19faee59d9455eebbb957cf6498ecc1220 From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 26 18:26:10 2021 Received: (at 51198) by debbugs.gnu.org; 26 Oct 2021 22:26:10 +0000 Received: from localhost ([127.0.0.1]:47784 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfUtW-0000J0-Gp for submit@debbugs.gnu.org; Tue, 26 Oct 2021 18:26:10 -0400 Received: from mail-ed1-f49.google.com ([209.85.208.49]:33731) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfUtU-0000Ik-UK for 51198@debbugs.gnu.org; Tue, 26 Oct 2021 18:26:09 -0400 Received: by mail-ed1-f49.google.com with SMTP id z20so2675135edi.0 for <51198@debbugs.gnu.org>; Tue, 26 Oct 2021 15:26:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:in-reply-to:references:date:message-id:mime-version :content-transfer-encoding; bh=Q49kzz3E6onBJ4p+PvR3wtBeeBX48QWDAP7ftfUHEr0=; b=cv/OrjLiE+UEWHC2VTW07zoIcISWdhKIXooKQxhIBDj3lN/B7xk4EAL3/oZe9Y8Gxy tu07fK9VSFrrYqjY1JeXqyHKOaNzeK23KGxyMqosSo5B1iGx/8QQQtJmgaRdAYLVGoco 7nRfvZO0/fONhgDT7P1Thrg+koAzA23LhtYDJ6oCtyVLWtR8D7gifXH5sIM4Ty64Q7Fd xVPqSBTqzsqUDJWu6ZTLxhM0AroEhEgR65PdKeKGQFjM4cmr8VVMu+UTDDkLhBr5DV3P 0KbVVkJX8t38atSJz02zQCg+42kFbiWYwL+5jpiAbKEKS1lAY8bNn7ohX6I0C1OxioBb zx0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=Q49kzz3E6onBJ4p+PvR3wtBeeBX48QWDAP7ftfUHEr0=; b=L1qqxCHzoQjNDKU99cYo2U0A58dX49XsuG5qzyNj9GHWfPGcv1kotCEVL9c/GJYTZX YpjNVXusFmeGEwDrJ1Sfj1q59TkoqEzso3ub9fBpL7oWGmjuqxO7aGD9sPMXJw/fB8tV 3xXS026GhGjyGLHBUJgj5cj2V3pq2Lw6zX5S6+Yo9Sz2yj4Zs5w0vxx5NPU1kZu1xLEi A1g4MUSbUuJRZ7ThvvIS4FrXLSqPycVtSZvMgvq6JRfPgyCbIFsXHqwsfmZ7YN3JbPTj DGFUCRi3SENNcodE03QnbgOBL64vazseTeFDCq6NYryrUX7PwfnAJIKAgef/50LVJNjC QLrg== X-Gm-Message-State: AOAM5324IM54Bj45U3iOM0m7s4OpMxNRM97/gWQjU40Wk/ps0yruGY7O dvgtlkSUYT27KSIeXkiBn5W7byKrEPU= X-Google-Smtp-Source: ABdhPJx6Z+2uyDoOUBCBhNc5LwntnvsG09GwitgQdADADk+y0/JxuKf9OpGlH1eZCdhGOVOJF9Fi5g== X-Received: by 2002:a17:906:a0d7:: with SMTP id bh23mr33075253ejb.82.1635287162964; Tue, 26 Oct 2021 15:26:02 -0700 (PDT) Received: from localhost (host-79-16-165-197.retail.telecomitalia.it. [79.16.165.197]) by smtp.gmail.com with ESMTPSA id f20sm4290210edf.17.2021.10.26.15.26.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Oct 2021 15:26:02 -0700 (PDT) From: =?utf-8?Q?Nicol=C3=B2?= Balzarotti To: Leo Famulari , 51198@debbugs.gnu.org Subject: Re: [bug#51198] [PATCH] gnu: Add b2sum. In-Reply-To: References: Date: Wed, 27 Oct 2021 00:26:01 +0200 Message-ID: <878ryfjudi.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 51198 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Leo Famulari writes: > * gnu/packages/crypto.scm (b2sum): New variable. Hi, I guix pulled and wanted to try this, but I get >> b2sum --help > Illegal instruction (I'm on an old X200 thinkpad). Might it be that build is not deterministic (and we should disable some optimization)? Thanks, Nicol=C3=B2 From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 26 18:54:16 2021 Received: (at 51198) by debbugs.gnu.org; 26 Oct 2021 22:54:16 +0000 Received: from localhost ([127.0.0.1]:47860 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfVKh-0003Ho-E1 for submit@debbugs.gnu.org; Tue, 26 Oct 2021 18:54:15 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:54485) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfVKU-0003Gs-Lp for 51198@debbugs.gnu.org; Tue, 26 Oct 2021 18:54:12 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 5C3D85C0115; Tue, 26 Oct 2021 18:53:57 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 26 Oct 2021 18:53:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-transfer-encoding:in-reply-to; s=mesmtp; bh=IVdDa1QwGFd5PAuVFzIcDymtOG6Y4ywKok8RpihuFsw=; b=kYjXvEFb2x2d KIC+Bed8phmwiSiyzNVVddD2KJpUZSV5JODV25jiICGkn8LGE/UcYKsT2u3R7UJF xJSzGz0r6WkMi1SSJLjBmz8HvVV1bsFUDTD09xBTCBZ5khf+irbA8KDwrBb+gsBC F+OGg+NqnMYE5748fq7YeXgyHEHGsQA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :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=IVdDa1QwGFd5PAuVFzIcDymtOG6Y4ywKok8RpihuF sw=; b=VA1wpYNkVjIUjboJ2jOYXodHembgPR27LHasOoXCfdlrZeZRSGU980g9E 8kYtnDIx67rOwOzEfdpm2QwjnMoOo38nBDFliNTavOZXw1oBEH1HVmuX5PQddNSp 1NLEd6rgGO3n0/qw6kUgZD3I4TTxjfbIA9Pq7zoRR9Wzp73/l0yzDbkqfVc3omKO fsMb1jRO6sFiW1pLTc8fTOnP1vYFHWNKcf3D/582XKeDTA4WBMOHR4nwFI1oPFol wGeoW5fqF5RbvvD9z57yg5GhgC8F+GbaSj4aYdA3q8ub99/O7JK79Os9zh4sDHEM i8RN9lLzejg0lmveZh8akLPSiCy2w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdefledgudduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggugfgjsehtke ertddttddunecuhfhrohhmpefnvghoucfhrghmuhhlrghrihcuoehlvghosehfrghmuhhl rghrihdrnhgrmhgvqeenucggtffrrghtthgvrhhnpeegieelteeuuedujeehfefhtddugf effeehuedtueevfefhhffffffgveeileduhfenucffohhmrghinhepghhnuhdrohhrghen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlvghose hfrghmuhhlrghrihdrnhgrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 26 Oct 2021 18:53:56 -0400 (EDT) Date: Tue, 26 Oct 2021 18:53:55 -0400 From: Leo Famulari To: =?iso-8859-1?Q?Nicol=F2?= Balzarotti Subject: Re: [bug#51198] [PATCH] gnu: Add b2sum. Message-ID: References: <878ryfjudi.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <878ryfjudi.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 51198 Cc: 51198@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Wed, Oct 27, 2021 at 12:26:01AM +0200, Nicolò Balzarotti wrote: > Leo Famulari writes: > > > * gnu/packages/crypto.scm (b2sum): New variable. > > Hi, I guix pulled and wanted to try this, but I get > > >> b2sum --help > > Illegal instruction > > (I'm on an old X200 thinkpad). Might it be that build is not > deterministic (and we should disable some optimization)? I guess it's because the package built with "-march=native". What's the right choice for this parameter? https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html CC-ing Mark Weaver because he often has good advice on this subject. 'gnu/packages' does include some "-march=" examples. From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 26 18:54:46 2021 Received: (at 51198) by debbugs.gnu.org; 26 Oct 2021 22:54:46 +0000 Received: from localhost ([127.0.0.1]:47864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfVLC-0003Ig-1x for submit@debbugs.gnu.org; Tue, 26 Oct 2021 18:54:46 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:38967) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfVL9-0003IR-TR for 51198@debbugs.gnu.org; Tue, 26 Oct 2021 18:54:44 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id A68415C0114; Tue, 26 Oct 2021 18:54:38 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 26 Oct 2021 18:54:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=mesmtp; bh=gqMQ1/E1khaR+AUy9l4yA1vW 2tZMqGmF0yQOIdhY83U=; b=wtf4jRUn2Nmxlwf4vS3vZiMMgzy2F8dKIChJ1Vmb moanCpUAkTV/m7QCDb/g+Ht+wdiPqexHEO7koEQJdOQPaVh29U2cgdpmj+ZspErZ TtFwYsDkVdfISR4y/nhOiSxkie9GsRMB2rPKAaX1mKWuVGXDcKTcwFSxVSDjYGrb ohg= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type: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=gqMQ1/ E1khaR+AUy9l4yA1vW2tZMqGmF0yQOIdhY83U=; b=CwNuhiF+x0EN6QUVdWAN5o FKXCLuJf9X6uIMojdvCZR7e1cTkThTUHAwH63X47+DiMoQ4k0sqnT4e4WoUHEipb Bf5A5lse6o4ESkJa5TRe+KOgYrdNBklnCPW1uHXL0dqWro9PaRXhG9nGn0hEleMy Ey+BzqIcqpDKgnoZgaNQZ7YGVqWT7B7OXzfuKvZ8wuP2kSoJuyls6Cl/N7THpSgk KE9zZ//DiFvyh2Cs2aWDn6NtGr23MaJVaX+J/OD8LClYIEmY8DRmDGE0agdrJ7Ch wql/A93AiI8MJLheRp+lplP791TDf3rNmUGop/QDG5wbNUopnTxvtdIQLVrHPCPg == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdefledgudduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujgesthdtre dttddtvdenucfhrhhomhepnfgvohcuhfgrmhhulhgrrhhiuceolhgvohesfhgrmhhulhgr rhhirdhnrghmvgeqnecuggftrfgrthhtvghrnhepvddvudegffefiedttdfhfedvuefhgf ekieekgeekveetgefhfeetgfegueduffeinecuffhomhgrihhnpehgnhhurdhorhhgnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhgvohesfh grmhhulhgrrhhirdhnrghmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 26 Oct 2021 18:54:37 -0400 (EDT) Date: Tue, 26 Oct 2021 18:54:36 -0400 From: Leo Famulari To: =?iso-8859-1?Q?Nicol=F2?= Balzarotti Subject: Re: [bug#51198] [PATCH] gnu: Add b2sum. Message-ID: References: <878ryfjudi.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51198 Cc: Mark H Weaver , 51198@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Tue, Oct 26, 2021 at 06:53:55PM -0400, Leo Famulari wrote: > I guess it's because the package built with "-march=native". > > What's the right choice for this parameter? > > https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html > > CC-ing Mark Weaver because he often has good advice on this subject. > > 'gnu/packages' does include some "-march=" examples. Er, CC-ing for real now From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 26 19:16:33 2021 Received: (at 51198) by debbugs.gnu.org; 26 Oct 2021 23:16:33 +0000 Received: from localhost ([127.0.0.1]:47892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfVgH-0003uF-6W for submit@debbugs.gnu.org; Tue, 26 Oct 2021 19:16:33 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:37583) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfVgF-0003ty-Go for 51198@debbugs.gnu.org; Tue, 26 Oct 2021 19:16:32 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id DD00B5C01E0; Tue, 26 Oct 2021 19:16:24 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 26 Oct 2021 19:16:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-transfer-encoding:in-reply-to; s=mesmtp; bh=RpN9cFttsFaOJTOEDM2NIUb500/SDnYkx0TfOgsmkls=; b=oe5eTdrh2bgz gLmLuuOmWYwRNs1Xv5lpwa4p3H6ENJDnf6G27hGbgllcRidTDLvhpmMKDt0UgUks 4WNvf5qUyv39bMCOlqrxh7E/nC8Oh0LKK1uG9ojVMtECIh4m07Vhd88n0aKjSMLQ pWcPztVVQVRPmVHV4hvctmyFvf/XGeg= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :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=RpN9cFttsFaOJTOEDM2NIUb500/SDnYkx0TfOgsmk ls=; b=hV2F4ea2/SpvJLXaf4BbQ4O5KHyMAtAahcoBpYMATG9/HVUrAWO5dJoGL 8FLHfvo2W0I1oUbtLYxc6JVexgObeqOJk5Z2QePN4rSH18Pe5jK2UdSjhLFQDOBF gyAoLVZY5aRhbQjgGIlLoPmyG8DO4DPaC2Q5WDsE10lLB3D3/KUWyUYUscPe1hNu WsyvIVEKIp8hZXNvPFtI6Yd/PyalDFXlRosL+DmIebV20gfqhlrc/s9iANlCsqAN sGBt+21vpdd+tVGq6oDHI+lmlKI3n9OJMMQfiC08unioMXBn6Ejwlgkr1xC1XIxi 3ssL/Ji7JSe+O4dmlaClTu4DyH67w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdefledgudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggugfgjsehtke ertddttddunecuhfhrohhmpefnvghoucfhrghmuhhlrghrihcuoehlvghosehfrghmuhhl rghrihdrnhgrmhgvqeenucggtffrrghtthgvrhhnpeegieelteeuuedujeehfefhtddugf effeehuedtueevfefhhffffffgveeileduhfenucffohhmrghinhepghhnuhdrohhrghen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlvghose hfrghmuhhlrghrihdrnhgrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 26 Oct 2021 19:16:24 -0400 (EDT) Date: Tue, 26 Oct 2021 19:16:22 -0400 From: Leo Famulari To: =?iso-8859-1?Q?Nicol=F2?= Balzarotti Subject: Re: [bug#51198] [PATCH] gnu: Add b2sum. Message-ID: References: <878ryfjudi.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <878ryfjudi.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51198 Cc: 51198@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Wed, Oct 27, 2021 at 12:26:01AM +0200, Nicolò Balzarotti wrote: > (I'm on an old X200 thinkpad). Might it be that build is not > deterministic (and we should disable some optimization)? As a test, I replaced march=native with march=x86-64. My benchmark is hashing a ~7GB tree of files [0]. Once the files are cached by the kernel: "march=native": ~13 seconds "march=x86-64": ~20 seconds I wonder if some of the other values of -march are faster... Or maybe the package could use #:substitutable #f, since b2sum is a very quick build. Although BLAKE3 / b3sum [1] is radically faster, b2sum is nice because it's not in Rust, which is still suboptimal on Guix. With b3sum, my benchmark takes less than 2 seconds! [0] `LC_ALL=C; find "$1" -type f -print0 | sort -z | xargs -0 b2sum | time b2sum` [1] https://bugs.gnu.org/51289 From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 27 04:44:59 2021 Received: (at 51198) by debbugs.gnu.org; 27 Oct 2021 08:44:59 +0000 Received: from localhost ([127.0.0.1]:48398 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfeYM-00032J-On for submit@debbugs.gnu.org; Wed, 27 Oct 2021 04:44:58 -0400 Received: from mail-ed1-f42.google.com ([209.85.208.42]:45667) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfeYL-000323-EI for 51198@debbugs.gnu.org; Wed, 27 Oct 2021 04:44:57 -0400 Received: by mail-ed1-f42.google.com with SMTP id m17so7347124edc.12 for <51198@debbugs.gnu.org>; Wed, 27 Oct 2021 01:44:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=2tUcqCekC9/I8dUY+lBADvbwZ6iIpNK2yI/+LkbdHrE=; b=U1plAGCPtqefXVPt/NjtVWRxTmxq2ZTFbsNqc/DD0AcpZizfXrWDlwbovwi/0uu2BA lqmwnkYvcG+GsQwsdCZi/DV1Zr6t+AbwrrffhbEnIAVIhE7tDn2Xq/xOsTyE8F3VFo6r tqs45Lfn+B1gpxDh56/fUw0SZhbxhpSoPnZJj61/bxmulxTwG2l1xKpXCjHJnrLYCHci Cv3bnHzAbZNNAYQ9n9PAZsvfKinvGyVNWfvfkSPB9uq2g/o16TWc+rbc0/0+mVu7UuxC x8W5AwTsDe2n90YqjW99C33PZIHx7CjcTWSgK7LL9BpdgH7BncFc0h7Ra2/foNEVwzE+ L7MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=2tUcqCekC9/I8dUY+lBADvbwZ6iIpNK2yI/+LkbdHrE=; b=d987r0s7eYCgDG6pamCdklFLQZ5v2/o80jyOTHqgwyNXLRdC9+JpXwzU8B5OYodcNB 5zW0wSuLY1jj8EYwCY3yLILyKdlr7JRZK/MNp/48S3qXtnkW+k8Cmjvs8Du4vGx1olyz BL9dIZ6N/+hhqflv1CBZx002M/OgLOq1F+m+b6aBmTJWfCpMCuRueH4b49p1FRbkMgsU YwrGYl+VT6Md31ZG7eUZCVnKYyrrkqMTA/UEDut7zRkVYXtnUC2xQIzoyt4+avFKELGh 23xo+DC/V4rMBlpA32hQNfcM3Vnij48XycJB4KzcfGsY81v0QMJ2bjyv+zZT1/3YlU7S wI7Q== X-Gm-Message-State: AOAM531Z4KmcHF3+3HLziDbIy4KbwahkK3aa7Z/nDDauyvg4bxtZtUY0 HU7kiD+iJuZJbuNgdOrA/nHiGU7x3fE= X-Google-Smtp-Source: ABdhPJw2aHXVUcSTgCORH2xodYo3YE2Txt3Qf4K1SnsTycmr26FFodHxOQcfHE0Mx1DCrplvBgo4nA== X-Received: by 2002:a17:907:7f14:: with SMTP id qf20mr38260636ejc.110.1635324286646; Wed, 27 Oct 2021 01:44:46 -0700 (PDT) Received: from localhost (host-79-16-165-197.retail.telecomitalia.it. [79.16.165.197]) by smtp.gmail.com with ESMTPSA id p25sm12200672edt.23.2021.10.27.01.44.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Oct 2021 01:44:46 -0700 (PDT) From: =?utf-8?Q?Nicol=C3=B2?= Balzarotti To: Leo Famulari Subject: Re: [bug#51198] [PATCH] gnu: Add b2sum. In-Reply-To: References: <878ryfjudi.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me> Date: Wed, 27 Oct 2021 10:44:45 +0200 Message-ID: <874k92kgaq.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 51198 Cc: 51198@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Leo, Leo Famulari writes: > On Wed, Oct 27, 2021 at 12:26:01AM +0200, Nicol=C3=B2 Balzarotti wrote: >> (I'm on an old X200 thinkpad). Might it be that build is not >> deterministic (and we should disable some optimization)? > > As a test, I replaced march=3Dnative with march=3Dx86-64. > > [...] > > Or maybe the package could use #:substitutable #f, since b2sum is a very > quick build. This blog post [fn:1] on guix-hpc address the "Pre-built binaries vs. performance" dilemma. I guess the easiest way is to provide a variant (b2sum-avx or something like that) with avx enabled. Else, I'd just go with the unoptimized version as it happens for many other packages, but let's hear from others. Thanks, Nicol=C3=B2 [fn:1] https://hpc.guix.info/blog/2018/01/pre-built-binaries-vs-performance/ From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 27 11:38:21 2021 Received: (at 51198) by debbugs.gnu.org; 27 Oct 2021 15:38:21 +0000 Received: from localhost ([127.0.0.1]:50260 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfl0O-0001H8-Nn for submit@debbugs.gnu.org; Wed, 27 Oct 2021 11:38:21 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:52151) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfl0L-0001Gr-Ia for 51198@debbugs.gnu.org; Wed, 27 Oct 2021 11:38:18 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id EA8375C0153; Wed, 27 Oct 2021 11:38:11 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 27 Oct 2021 11:38:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-transfer-encoding:in-reply-to; s=mesmtp; bh=Fbexfu9LxdTTdNV54VJuw169A+bPHPidHJHdVEKkwM8=; b=eisJAP1xEJtf g/IMvN2U9J/rJ9TYG2OqmvoNXu8dCXvFQyVugchj5NVp6yfhhtgCyHu545Dmps8A o8i1hMbLp5d09YdAtg/5UzpMQbKMGnuKOVj1zpQpH+WBA+K9W9uBhApM1ANbRLad nCiluEAr2cfbCt8BPACEHn6oMQCvgh0= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :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=Fbexfu9LxdTTdNV54VJuw169A+bPHPidHJHdVEKkw M8=; b=jkhL41SGRlQclyoYLLtCbPbHBQyNhIKlhXnBqCkKLNDJ7FAK2k7y5rCDc 9CYlw6jJAJAnn5k+/ZB0jifbdDIi6VvtfzQk0pSHyj8T/B5bNdVVVMTujxWc+rZb mLphesdPdq2a+IbFyQ7cSLX1G5ZkROwgWPDP7EuifDNyTht+YRufxRAOdzPOMeTN arN2fbKC1V21e6BILUZ55ybVjE2gy64PfIZFBE1Kee1k9dn2aNLaHX0gmRFOPwGt 07HX9mpqeb8H/cSDNuYQhC3AaFR13p80V/TmqybQOp3hbg5Fl35bkdyWWDZMPvYT whye87Ak9QuEyLsTUBzrnnO2yloIA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdegtddgkeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggugfgjsehmke erredttddunecuhfhrohhmpefnvghoucfhrghmuhhlrghrihcuoehlvghosehfrghmuhhl rghrihdrnhgrmhgvqeenucggtffrrghtthgvrhhnpeffgeekgeelfffftdevhffhtddvud evveduuddvudfgvefgheeutdejffeuleevhfenucffohhmrghinhepghhuihigrdhinhhf ohdpghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehlvghosehfrghmuhhlrghrihdrnhgrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 27 Oct 2021 11:38:11 -0400 (EDT) Date: Wed, 27 Oct 2021 11:38:08 -0400 From: Leo Famulari To: =?iso-8859-1?Q?Nicol=F2?= Balzarotti Subject: Re: [bug#51198] [PATCH] gnu: Add b2sum. Message-ID: References: <878ryfjudi.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me> <874k92kgaq.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="CSb/+FphNSCOEKlG" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <874k92kgaq.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51198 Cc: 51198@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --CSb/+FphNSCOEKlG Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit On Wed, Oct 27, 2021 at 10:44:45AM +0200, Nicolò Balzarotti wrote: > This blog post [fn:1] on guix-hpc address the "Pre-built binaries > vs. performance" dilemma. > > [fn:1] https://hpc.guix.info/blog/2018/01/pre-built-binaries-vs-performance/ It's helpful, but it doesn't look like we are using that method in Guix anymore. It was removed in this commit: https://git.savannah.gnu.org/cgit/guix.git/commit/?id=969adb235ee34decb65255e1ea821ff0e221ed3d I guess it learned how to do runtime feature detection? > I guess the easiest way is to provide a variant (b2sum-avx or something > like that) with avx enabled. Else, I'd just go with the unoptimized > version as it happens for many other packages, but let's hear from > others. The easiest thing is require local building, since it's an extremely cheap build. Only 1.5 seconds on my laptop, total (not just the build phase). With blis, one had to consider the lengthy build time. Because performance is critical for a tool like this, and because it's cheap to build, I've attached a patch to require local building. This is easier for me than creating a set of package variants that will need to be expanded for each new generation of CPUs :) --CSb/+FphNSCOEKlG Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-gnu-b2sum-Build-on-the-local-machine.patch" >From 8b862425310cf631c30c823eb0fa2bfd79d36823 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Wed, 27 Oct 2021 11:29:40 -0400 Subject: [PATCH] gnu: b2sum: Build on the local machine. * gnu/packages/crypto.scm (b2sum)[arguments]: Set '#:substitutable? #f'. --- gnu/packages/crypto.scm | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm index 3acd147f25..de8bcf1d70 100644 --- a/gnu/packages/crypto.scm +++ b/gnu/packages/crypto.scm @@ -858,9 +858,18 @@ (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 #: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 --CSb/+FphNSCOEKlG-- From unknown Sun Jun 22 04:27:01 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: Did not alter fixed versions and reopened. Date: Wed, 27 Oct 2021 15:46:02 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # Did not alter fixed versions and reopened. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 27 11:56:43 2021 Received: (at 51198) by debbugs.gnu.org; 27 Oct 2021 15:56:43 +0000 Received: from localhost ([127.0.0.1]:50361 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mflIA-0001tg-Tb for submit@debbugs.gnu.org; Wed, 27 Oct 2021 11:56:43 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44926) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mflI7-0001tK-Vm for 51198@debbugs.gnu.org; Wed, 27 Oct 2021 11:56:42 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41760) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mflI2-0006V4-Hz; Wed, 27 Oct 2021 11:56:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=ewzpM+EmjEIU7YKg1iXYPpYrQxN0oR1SSZk176vpC2o=; b=Ddajol19vU1w/pQl54VE /pPvSM+8sPiuGVfeJIHSSZ4kOIymjp3klRYxaRHuviAC2lzJ71w/Z50rf9dLngAIqdiZlGg8ClwCJ HC73/qYKidHSA+NWvHaJpSs4MEFYTtiwxZNRIVArhCb3VfDyQb1n7BauTOGSCanyLlozyX/8dwZSO 57mrvR7sO2Xouojb1lGUAsC0QAz0Vpzn2Yl7KdWbpfffJS/ICFI/9SnpTNF38ra9mC1ITLbOVxhIr LX2Orv+U1mni7fCEhMLRX2FNjudSTbGuBAejJ5rY4Wnb735CSFU9CBvgr5AaQvLmkPYK5AAs0AdIe T/SG4Ahhr1SVQQ==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:54244 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mflI2-0008M6-2X; Wed, 27 Oct 2021 11:56:34 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Leo Famulari Subject: Re: bug#51198: [PATCH] gnu: Add b2sum. References: <878ryfjudi.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me> <874k92kgaq.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me> Date: Wed, 27 Oct 2021 17:56:31 +0200 In-Reply-To: (Leo Famulari's message of "Wed, 27 Oct 2021 11:38:08 -0400") Message-ID: <875ytifols.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51198 Cc: 51198@debbugs.gnu.org, =?utf-8?Q?Nicol=C3=B2?= Balzarotti X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi! Leo Famulari skribis: > On Wed, Oct 27, 2021 at 10:44:45AM +0200, Nicol=C3=B2 Balzarotti wrote: >> This blog post [fn:1] on guix-hpc address the "Pre-built binaries >> vs. performance" dilemma. >> >> [fn:1] https://hpc.guix.info/blog/2018/01/pre-built-binaries-vs-performa= nce/ > > It's helpful, but it doesn't look like we are using that method in Guix > anymore. It was removed in this commit: > > https://git.savannah.gnu.org/cgit/guix.git/commit/?id=3D969adb235ee34decb= 65255e1ea821ff0e221ed3d > > I guess it learned how to do runtime feature detection? BLIS has run-time/load-time feature detection now (which is the main approach the blog argues for). >> I guess the easiest way is to provide a variant (b2sum-avx or something >> like that) with avx enabled. Else, I'd just go with the unoptimized >> version as it happens for many other packages, but let's hear from >> others. > > The easiest thing is require local building, since it's an extremely > cheap build. Only 1.5 seconds on my laptop, total (not just the build > phase). With blis, one had to consider the lengthy build time. > > Because performance is critical for a tool like this, and because it's > cheap to build, I've attached a patch to require local building. This is > easier for me than creating a set of package variants that will need to > be expanded for each new generation of CPUs :) > >>>From 8b862425310cf631c30c823eb0fa2bfd79d36823 Mon Sep 17 00:00:00 2001 > From: Leo Famulari > Date: Wed, 27 Oct 2021 11:29:40 -0400 > Subject: [PATCH] gnu: b2sum: Build on the local machine. > > * gnu/packages/crypto.scm (b2sum)[arguments]: Set '#:substitutable? #f'. > --- > gnu/packages/crypto.scm | 13 +++++++++++-- > 1 file changed, 11 insertions(+), 2 deletions(-) > > diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm > index 3acd147f25..de8bcf1d70 100644 > --- a/gnu/packages/crypto.scm > +++ b/gnu/packages/crypto.scm > @@ -858,9 +858,18 @@ (define-public b2sum > (base32 "04z631v0vzl52g73v390ask5fnzi5wg83lcjkjhpmmymaz= 0jn152")))) > (build-system gnu-build-system) > (arguments > - `(#:make-flags (list (string-append "CC=3D" ,(cc-for-target)) > - (string-append "PREFIX=3D" (assoc-ref %outpu= ts "out"))) > + `(;; By default, b2sum uses the compiler to generate instructions > + ;; tailored to the CPU of the running machine, using "-march=3D= native". > + ;; This gives a ~1.5x speedup on a Core i5-6300U with a large d= ataset > + ;; 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=3D51198#13 > + #:substitutable? #f It=E2=80=99s okay but not entirely sufficient: on a cluster setup, you typi= cally talk to a daemon that=E2=80=99s on another machine, so the CPU features it= =E2=80=99ll detect there may be different from those you=E2=80=99ll use. Likewise, as discussed on IRC, you=E2=80=99d also need #:local-build? #t. Anyway, I=E2=80=99d suggest using =E2=80=98guix hash -H blake2s-256=E2=80= =99 or similar (it uses libgcrypt, which does the right thing). I think the latest Coreutils provide a generic =E2=80=98cksum=E2=80=99, too, that probably does the righ= t thing. Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 03 13:32:45 2021 Received: (at 51198) by debbugs.gnu.org; 3 Nov 2021 17:32:45 +0000 Received: from localhost ([127.0.0.1]:41044 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1miK7w-00082q-O8 for submit@debbugs.gnu.org; Wed, 03 Nov 2021 13:32:45 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:49941) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1miK7r-00082b-C6 for 51198@debbugs.gnu.org; Wed, 03 Nov 2021 13:32:43 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 7803B5C0070; Wed, 3 Nov 2021 13:32:38 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 03 Nov 2021 13:32:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-transfer-encoding:in-reply-to; s=mesmtp; bh=c9dHVoucJJEjRxJFLbjkq/Js4s0jWJjRvyi/oYSP8zM=; b=V5DXbqDg0c+6 OKsLaAcSMVyTFOsswPBc55rOycJIpUntzUbvnW12qRYskRdrlex+vJ4GLAJsJDbh jqyrgIWRO1fzyR7vE+GiPVrdiU4hcbZroWU7SgHO0y9jeVR8sM0FvL48IddXzsuU DmA9DLmvj7ALBHLC0O37rTxt7C/6gkc= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :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=c9dHVoucJJEjRxJFLbjkq/Js4s0jWJjRvyi/oYSP8 zM=; b=e4ItGaVeDtRMa519wNg3jyIvlOBCEK16I4U1q/9B0/LS3H9vCRm37Lo00 8mRpHYfNvrwKlHMGGvxBD5QouTFHxChFOOf4qY5cJyFq1ryxUuvnAlH8CYMJwItB wlG+pn9ePQIzFkf8aEBp08Hfwe3oRX2BhO7a4he0DrNDWT5FwU/lG/3zkFedRUeb lERthlPPjJmtLRtxw4V/s3Xy4N+VR3rjtT6qYKPbFboMwxe9ZRf0CrtExX4LEwAK GIK8eBejSE5yVuxiam4fk5ad1SwcBgdm3gdTe5v+chW3L4EuWSU1fblpGwjxsh5N je1MnksY5ON7tVEiSJPqBDBkeHU1Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrtddvgdellecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggugfgjsehmkeerredttdejnecuhfhrohhmpefnvghoucfh rghmuhhlrghrihcuoehlvghosehfrghmuhhlrghrihdrnhgrmhgvqeenucggtffrrghtth gvrhhnpefgffekiefhtdffgfetfeeijeeuffekkeeifefgudduhfelleeihfeviedtgeeh vdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlvg hosehfrghmuhhlrghrihdrnhgrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 3 Nov 2021 13:32:37 -0400 (EDT) Date: Wed, 3 Nov 2021 13:32:35 -0400 From: Leo Famulari To: Ludovic =?iso-8859-1?Q?Court=E8s?= Subject: Re: bug#51198: [PATCH] gnu: Add b2sum. Message-ID: References: <878ryfjudi.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me> <874k92kgaq.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me> <875ytifols.fsf_-_@gnu.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="xaZA1OQpAt/QwxUm" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <875ytifols.fsf_-_@gnu.org> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51198 Cc: 51198@debbugs.gnu.org, =?iso-8859-1?Q?Nicol=F2?= Balzarotti X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --xaZA1OQpAt/QwxUm Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit On Wed, Oct 27, 2021 at 05:56:31PM +0200, Ludovic Courtès wrote: > It’s okay but not entirely sufficient: on a cluster setup, you typically > talk to a daemon that’s on another machine, so the CPU features it’ll > detect there may be different from those you’ll use. Likewise, as > discussed on IRC, you’d also need #:local-build? #t. It seems that #:local-build? is not available in gnu-build-system. Is that correct? Using the attached patch, building fails with "Unrecognized keyword: #:local-build?". Is there a way to turn it on for packages using gnu-build-system? --xaZA1OQpAt/QwxUm Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-gnu-b2sum-Build-on-the-local-machine.patch" >From 77a063e797849332b784decab32f29be3d13f031 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Wed, 27 Oct 2021 11:29:40 -0400 Subject: [PATCH] gnu: b2sum: Build on the local machine. * 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 f48fc23c1f..7ef8504eb7 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 --xaZA1OQpAt/QwxUm-- From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 06 12:45:22 2021 Received: (at 51198) by debbugs.gnu.org; 6 Nov 2021 16:45:22 +0000 Received: from localhost ([127.0.0.1]:50316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mjOoj-0001Oy-GB for submit@debbugs.gnu.org; Sat, 06 Nov 2021 12:45:21 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57702) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mjOoY-0001OS-EE for 51198@debbugs.gnu.org; Sat, 06 Nov 2021 12:45:20 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47936) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjOoS-0006nc-VT; Sat, 06 Nov 2021 12:45:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=zIn0x6MIXrTbZtnIof+0SlbpQ+r2uvWpB5JCgNhlY7k=; b=T8d4P3DijCagZH3pMOi+ JDDE4wUlc7sCWfOJsYWcHbZ+3kp8PyXMf89U/bFMB7VW1+0sC0ZszydXKKnNodxoiUHegFYmW8jdM X0z2eM2KRD8ml1UR5hZS2vi+OGEV9BIYbQ9zQIH2+2l64yRyJBZdNYlN7rxjuyvUS/2C4f+dc0xVX tQaakSiEeAQ0dXXzGKnJBSvJmUdev+JYtYIB8w0K+v89H0Z/uPw6X3sKVtJZvb6OBj/x+1MNKV5z0 UMGyJ4Zgn9iIdP7g4ZHSk1N4C0GdOJgB8WjSCKJ56hwoTM+P/Ex3oYr13CaP7jtc1ydpOxvmfRO4Y TdC291xmpf1Ntw==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:55516 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjOoS-0004Qf-5I; Sat, 06 Nov 2021 12:45:04 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Leo Famulari Subject: Re: bug#51198: [PATCH] gnu: Add b2sum. References: <878ryfjudi.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me> <874k92kgaq.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me> <875ytifols.fsf_-_@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 16 Brumaire an 230 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sat, 06 Nov 2021 17:45:01 +0100 In-Reply-To: (Leo Famulari's message of "Wed, 3 Nov 2021 13:32:35 -0400") Message-ID: <87o86xmdwy.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 51198 Cc: 51198@debbugs.gnu.org, =?utf-8?Q?Nicol=C3=B2?= Balzarotti X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Leo Famulari skribis: > On Wed, Oct 27, 2021 at 05:56:31PM +0200, Ludovic Court=C3=A8s wrote: >> It=E2=80=99s okay but not entirely sufficient: on a cluster setup, you t= ypically >> talk to a daemon that=E2=80=99s on another machine, so the CPU features = it=E2=80=99ll >> detect there may be different from those you=E2=80=99ll use. Likewise, = as >> discussed on IRC, you=E2=80=99d also need #:local-build? #t. > > It seems that #:local-build? is not available in gnu-build-system. Is > that correct? Oh right, it=E2=80=99s missing from (guix build-system gnu). We could easi= ly add it. Though again, it would remain an approximation of what we really want. HTH! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 27 18:32:54 2021 Received: (at 51198) by debbugs.gnu.org; 27 Nov 2021 23:32:55 +0000 Received: from localhost ([127.0.0.1]:34690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mr7Be-00040m-LC for submit@debbugs.gnu.org; Sat, 27 Nov 2021 18:32:54 -0500 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:42039) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mr7Bc-00040M-Sj for 51198@debbugs.gnu.org; Sat, 27 Nov 2021 18:32:53 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 088603200904; Sat, 27 Nov 2021 18:32:45 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sat, 27 Nov 2021 18:32:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; s=mesmtp; bh=h98TlDSRaUhbKD5ElVfDfRW J1hdoa8U7bqWuCAnRPNk=; b=qlEhyP2l2hFltzjtRvVMBiCL58h2RMHWWePxSBD tauOuuyupY1p9xnwybdcJQXFKObODTt8pctE0l7w/aIH63BAsVpHiBgc0ubvP9He hgH8IBYXYn3pgPZgc4y07fUL4eAQPLIUuy/Uv6kHwoEU/tY06qjrnbSohnZQ6vbc Cb8Y= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=h98TlDSRaUhbKD5El VfDfRWJ1hdoa8U7bqWuCAnRPNk=; b=i0JRotGEPtbbtraXI1fZz6PA8xFhqai97 gxCElECJWl2/hkC75c4p2FxbSSqpY2E9iv3vgu2ntl4aQZXYPdcohwSMVLSpH3HL zYJ87+LPCUa2KVO+ZaPOVXz6rE6kbgkhRrZnpCujjpINzyZ3Kaqp46p3stZwvg1W eDe+nnXi3SbFjgoSf9bl8w8ZZ/pdVsj0D9pcmbj57Pp7LA8AnvxZTkU+H4coWN// QFaBrhSVyca1BR7XozyafQ5I3Nf+srSgA/iLnoYQ3XOMKPr/G9kt4nCSPpbv30BC pFCCWc/FigKlNbXVSGVoIog69XqwwcZ/PE3gfhWCpy86e+feq5lZg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrheehgdduudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffoggfgsedtkeertdertd dtnecuhfhrohhmpefnvghoucfhrghmuhhlrghrihcuoehlvghosehfrghmuhhlrghrihdr nhgrmhgvqeenucggtffrrghtthgvrhhnpeetueeigfelheekveffveetffeugeeuuddvge eiffevkeeuffefteduvdfhhfduhfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgr mhepmhgrihhlfhhrohhmpehlvghosehfrghmuhhlrghrihdrnhgrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for <51198@debbugs.gnu.org>; Sat, 27 Nov 2021 18:32:45 -0500 (EST) From: Leo Famulari To: 51198@debbugs.gnu.org Subject: [PATCH v2 1/2] build-system/gnu: Add #:local-build? parameter. Date: Sat, 27 Nov 2021 18:32:37 -0500 Message-Id: X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51198 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * guix/build-system/gnu.scm (gnu-build, gnu-cross-build): Add #:local-build? parameter and pass it to 'build-expression->derivation'. --- guix/build-system/gnu.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/guix/build-system/gnu.scm b/guix/build-system/gnu.scm index 6b481ad45c..fc923f0c5a 100644 --- a/guix/build-system/gnu.scm +++ b/guix/build-system/gnu.scm @@ -349,6 +349,7 @@ (define* (gnu-build store name input-drvs (build (nix-system->gnu-triplet system)) (imported-modules %gnu-build-system-modules) (modules %default-modules) + (local-build? #f) (substitutable? #t) allowed-references disallowed-references) @@ -429,6 +430,7 @@ (define guile-for-build #:inputs input-drvs #:outputs outputs #:modules imported-modules + #:local-build? local-build? #:substitutable? substitutable? #:allowed-references @@ -504,6 +506,7 @@ (define* (gnu-cross-build store name (build (nix-system->gnu-triplet system)) (imported-modules %gnu-build-system-modules) (modules %default-modules) + (local-build? #f) (substitutable? #t) allowed-references disallowed-references) @@ -595,6 +598,7 @@ (define guile-for-build #:inputs (append native-drvs target-drvs) #:outputs outputs #:modules imported-modules + #:local-build? local-build? #:substitutable? substitutable? #:allowed-references -- 2.33.1 From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 27 18:32:55 2021 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 To: 51198@debbugs.gnu.org Subject: [PATCH v2 2/2] gnu: b2sum: Build on the local machine. 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-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51198 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * 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 From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 27 18:36:59 2021 Received: (at 51198) by debbugs.gnu.org; 27 Nov 2021 23:36:59 +0000 Received: from localhost ([127.0.0.1]:34698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mr7Fb-00049z-He for submit@debbugs.gnu.org; Sat, 27 Nov 2021 18:36:59 -0500 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:50843) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mr7FZ-00049h-6R for 51198@debbugs.gnu.org; Sat, 27 Nov 2021 18:36:57 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 28E973200495; Sat, 27 Nov 2021 18:36:51 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sat, 27 Nov 2021 18:36:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-transfer-encoding:in-reply-to; s=mesmtp; bh=BekLjKC5zt+/I1w6077GPb9dilRNzT3mViAYdU+zTG4=; b=LGkyU95zc8oI VunOklpLLjy3LloawpA/B/SP4f/QyTi4t6rqSBdB8qJzsCgo1CbrDIxwu1X2aF35 sxqZqIKaOQR/TjZdUh3wZSTD62p8GOG1AdHKdmcHzteeJpj900nJywAxE+huGOnV ewjH2Fve9pokyrLk1Ov8kOQ1VZXx7MQ= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :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=BekLjKC5zt+/I1w6077GPb9dilRNzT3mViAYdU+zT G4=; b=YXXh+nWj1ltpbSMrmbkuuIQMpj2VucfKZTKc67RgshdhetzTnQ07y1lGl /CJmj7tJRyPvO9/LsorbB0OdL+VRsbo3oB+l0Q3sKcmrUoV4wS8tQerpfBuloayk kRbkAuaal2K9KAHuCMlIHJZFtq1ohp2zRKCcFSNFNhmnw8wWP0EJ51KRx8W+T0qh vbxLftIvO77DqEUKOee5fB1Vc90M3/yw+tEJojCzfBV6HWp7lNHOvty2Ecgi+4cC OPoGkprCr8jb3c9MmyWWYCvZ/1A29iHzYGHsL+K4v0pRtSDfC5JzmC+QQdrqIqwV z7FC6KR87I4e0IbzNeBQBVKm0Fzlg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrheehgdduvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggugfgjsehtkeertddttdejnecuhfhrohhmpefnvghoucfh rghmuhhlrghrihcuoehlvghosehfrghmuhhlrghrihdrnhgrmhgvqeenucggtffrrghtth gvrhhnpefgudffteettdekkeduhffgfefgieefgeeuieetudejffelieduueeifffgudfg udenucffohhmrghinhepghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehlvghosehfrghmuhhlrghrihdrnhgrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 27 Nov 2021 18:36:50 -0500 (EST) Date: Sat, 27 Nov 2021 18:36:48 -0500 From: Leo Famulari To: Ludovic =?iso-8859-1?Q?Court=E8s?= Subject: Re: bug#51198: [PATCH] gnu: Add b2sum. Message-ID: References: <878ryfjudi.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me> <874k92kgaq.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me> <875ytifols.fsf_-_@gnu.org> <87o86xmdwy.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87o86xmdwy.fsf@gnu.org> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51198 Cc: 51198@debbugs.gnu.org, =?iso-8859-1?Q?Nicol=F2?= Balzarotti X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Sat, Nov 06, 2021 at 05:45:01PM +0100, Ludovic Courtès wrote: > Leo Famulari skribis: > > It seems that #:local-build? is not available in gnu-build-system. Is > > that correct? > > Oh right, it’s missing from (guix build-system gnu). We could easily > add it. I've sent patches to make this change. I checked that the derivation of 'hello' is unchanged when building without cross-compilation. https://issues.guix.gnu.org/51198#12 From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 01 10:53:22 2021 Received: (at 51198) by debbugs.gnu.org; 1 Dec 2021 15:53:22 +0000 Received: from localhost ([127.0.0.1]:45222 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1msRv7-0005D9-SZ for submit@debbugs.gnu.org; Wed, 01 Dec 2021 10:53:22 -0500 Received: from mail-wm1-f44.google.com ([209.85.128.44]:55936) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1msRv6-0005Cx-Cs for 51198@debbugs.gnu.org; Wed, 01 Dec 2021 10:53:20 -0500 Received: by mail-wm1-f44.google.com with SMTP id p18so20784366wmq.5 for <51198@debbugs.gnu.org>; Wed, 01 Dec 2021 07:53:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=xCoPCpuMh4Qisg8MrScBO3hjW0gMSQeOcq9Y4egNWeI=; b=iIS43PXk0McYfVEyNKbs6OkZQO096jEDkBff8VdNfORiiiTdtZaGutmRl2g2FnPRA+ xopVqxYssC3Hemo1MMHgjf9L8sWkjExDlx1kr8ZNWpnnhLyNtbb2iTp4Kvb5QiIHNRov qADcvgGO+Tb0iw+fJwopH+HX1GPRpYDn0TfTSq6oIhWW4pESoywab+s5b3GY8TQhWb8z Wn8qBz1yYOy6maCM/Ttvs9t1shjTKCnc3rNa6j+iPkVlqjebLRHqkKmNldXOOLo39Jw1 XzNxiSNJgSewnXuxrh7/2Dul66nioXKOHrjpZsvcReyOjfaD/JCNN0jrB7KKf1A32065 mXRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=xCoPCpuMh4Qisg8MrScBO3hjW0gMSQeOcq9Y4egNWeI=; b=wybnTlfvjbd6jwjPlbR55sgm55Glo+oFmLqPlGr5HaYnZV7mTU7dIdVjz30BRKeu8m i7mHAUDioBSiXq1P5N31XlDGVii6QD+IheK8hMNl76Dd84G3FvwNwCXPGS4s1o3MHCY0 LIM3rEuG2zA2lCemWqbEgiaxNdC5+BuB26n2jKX7rEEBGryJUfumEJ3h49EP3PV+pX4I hmb4JLD548N8euIaM4Pc5rsh+s92Dcs+qw8d1RmYPpIe7bGD95zd/LwjJq82tQHSUCa3 uj/MBIEm7gP5HT+rnHISsvmjVoTYthPcj9GiKsREQn2MZ0gkKqP4Q8AU98MW2mKSXD3p nFlw== X-Gm-Message-State: AOAM533IeeAJmOmwO6ujVZdEBDbIrZjLOO5RBj7R9zS4DQwwoMqQRp3/ 3Ae5CsRvk58fQTFrKRsqgntkF5QYQX8= X-Google-Smtp-Source: ABdhPJyilwdelmSbgn3BGz0Jz4DwocgLtM2NDoHDWPq9XyjG+pNVtsvoWCSnNQiqs4+6pIFemIKW+Q== X-Received: by 2002:a1c:f60a:: with SMTP id w10mr8111706wmc.53.1638373994690; Wed, 01 Dec 2021 07:53:14 -0800 (PST) Received: from pfiuh02 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id r11sm184335wrw.5.2021.12.01.07.53.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Dec 2021 07:53:14 -0800 (PST) From: zimoun To: Leo Famulari Subject: Re: bug#51198: [PATCH] gnu: Add b2sum. References: Date: Wed, 01 Dec 2021 16:34:09 +0100 In-Reply-To: (Leo Famulari's message of "Sat, 27 Nov 2021 18:32:37 -0500") Message-ID: <87k0goqqz2.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 51198 Cc: 51198@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Leo, On Sat, 27 Nov 2021 at 18:32, Leo Famulari wrote: > * guix/build-system/gnu.scm (gnu-build, gnu-cross-build): Add #:local-bui= ld? > parameter and pass it to 'build-expression->derivation'. The manual needs to be updated, I guess. Something there: This gnu-build-system triggers a world rebuild, isn=E2=80=99t it? Maybe, it could go to core-updates-frozen now, no? (Now =3D before merge :-)) Cheers, simon From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 01 12:50:35 2021 Received: (at 51198) by debbugs.gnu.org; 1 Dec 2021 17:50:36 +0000 Received: from localhost ([127.0.0.1]:45519 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1msTkZ-0002DN-Jx for submit@debbugs.gnu.org; Wed, 01 Dec 2021 12:50:35 -0500 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:48089) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1msTkW-0002D2-VY for 51198@debbugs.gnu.org; Wed, 01 Dec 2021 12:50:34 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 787DA3201D1C; Wed, 1 Dec 2021 12:50:26 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 01 Dec 2021 12:50:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-transfer-encoding:in-reply-to; s=mesmtp; bh=YxdbHEQN+rQXDRZvxg7yzlLuQq+dPfC3fDjcem7f+L0=; b=kfiG+kG+/BgT +D3/JA6O58SSBcPg6o9MHXPFiveQpI5jaFfCcLQxCPh2NuM9G5zDAvNWG4P1ap3e PMdtxUp07Rpnr1hmWGmtbfGY6K8kRAjHUrcw7h1sqJxVL6rAUncsAoppDo/AnCKw fEveDr10Pti4d5hjBxvIydLxjTDGnT0= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :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=YxdbHEQN+rQXDRZvxg7yzlLuQq+dPfC3fDjcem7f+ L0=; b=UcrVwQ6t65keY4H+ahcwVt1ppJlErwVi2PUbNhpnmcEvaiYy+f8oIjdQy Cml8AWhoeFf+FTVYlLLN8tWAPamL7m7VZkDYJJd+TtAEl3sDPGN6mgeHfrfp9HwJ KkRRtVr/S0LB88pCodo9owZ1HYYXr5Q6sUspBYKAMpaSnH/OzZbhwrGXsqt3+pfq b7EFC1EvnNMUC5Gvmt7qYnJjUxVLow49KdvoWUqJkkGtXPgeWc14NWXCU7UELfUn DHbCEF6GpYg6WzldNHPFJEkgOWL+nHchl173JR7ioT5oBZTL2EvK+LK1fH+7B4XZ H2mq1RRNPqP0wTaPHYnWCgnvuytIA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrieefgddutdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggugfgjsehtke ertddttdejnecuhfhrohhmpefnvghoucfhrghmuhhlrghrihcuoehlvghosehfrghmuhhl rghrihdrnhgrmhgvqeenucggtffrrghtthgvrhhnpefgudffteettdekkeduhffgfefgie efgeeuieetudejffelieduueeifffgudfgudenucffohhmrghinhepghhnuhdrohhrghen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlvghose hfrghmuhhlrghrihdrnhgrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 1 Dec 2021 12:50:25 -0500 (EST) Date: Wed, 1 Dec 2021 12:50:23 -0500 From: Leo Famulari To: zimoun Subject: Re: bug#51198: [PATCH] gnu: Add b2sum. Message-ID: References: <87k0goqqz2.fsf_-_@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87k0goqqz2.fsf_-_@gmail.com> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51198 Cc: 51198@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Wed, Dec 01, 2021 at 04:34:09PM +0100, zimoun wrote: > On Sat, 27 Nov 2021 at 18:32, Leo Famulari wrote: > > * guix/build-system/gnu.scm (gnu-build, gnu-cross-build): Add #:local-build? > > parameter and pass it to 'build-expression->derivation'. > > The manual needs to be updated, I guess. Something there: > > Good idea, I'll send a revised patch series. > This gnu-build-system triggers a world rebuild, isn’t it? Maybe, it > could go to core-updates-frozen now, no? (Now = before merge :-)) As far as I can tell, this does not change any derivations, except of course if a package definition uses the new #:local-build? option. So it should be okay for the master branch, if it's a change that we want to make. From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 18 13:12:52 2022 Received: (at 51198-done) by debbugs.gnu.org; 18 Mar 2022 17:12:52 +0000 Received: from localhost ([127.0.0.1]:58269 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVG9j-0005D5-Se for submit@debbugs.gnu.org; Fri, 18 Mar 2022 13:12:52 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:56421) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVG9h-0005Co-HP for 51198-done@debbugs.gnu.org; Fri, 18 Mar 2022 13:12:50 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 1DB485C00FE; Fri, 18 Mar 2022 13:12:44 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 18 Mar 2022 13:12:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=mesmtp; bh=XIdkVV020Ax KsnbAiB4Ii+OlcdJcFAHKfh6rT4wQadc=; b=aHNX04ezlb9sqLygnJdeKTzxogu yoXRkAeV/S2bwY9bTrva30WWT+LmlvbSRO1B3IadTB9hFQeIL1hFfObFQ6z5m0m0 9VQMjQgOR78kp0LqnvH1I7JFojzMH8G5iE/LDUX9ksWKiXQZ8tiNJzoFG8bwWAzc GpF3nXNHKR0nn9ng= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=XIdkVV020AxKsnbAiB4Ii+OlcdJcFAHKfh6rT4wQa dc=; b=oJb4GH2SWxWyjHimalM5UL6l6+qKVNm7MhGLoVNOGn6EUVZy4Z0VfhDCS OgtuDRaQfS0z06NJ0mkxlF4It6321C+e39Fe31g7+O3OPTgI6PCICw8BQSQ4YB7Z BP143SpDMso8c+D4N+yLXs36+g8Y5PtToqVP1TmCENtYPOineJZLm7E7WiiC1tkf TlmuTM+zQBUS6Bn8/TUxgbIyveKjcxTG4n9kH+jUx23Bs25ehiX/X85adrr9kRRu +yoItSWmo7AMYApB5n5We+FxqyU2aWaZD0v8pLiayGZRH4EbZPPi8oxx03M0pISy pfOAgpVzNarWOmCQbx3Ad3CDIx7eA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudefiedgleekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggugfgjsehtke ertddttddunecuhfhrohhmpefnvghoucfhrghmuhhlrghrihcuoehlvghosehfrghmuhhl rghrihdrnhgrmhgvqeenucggtffrrghtthgvrhhnpeegieelteeuuedujeehfefhtddugf effeehuedtueevfefhhffffffgveeileduhfenucffohhmrghinhepghhnuhdrohhrghen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlvghose hfrghmuhhlrghrihdrnhgrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 18 Mar 2022 13:12:43 -0400 (EDT) Date: Fri, 18 Mar 2022 13:12:42 -0400 From: Leo Famulari To: =?iso-8859-1?Q?Nicol=F2?= Balzarotti Subject: Re: [bug#51198] [PATCH] gnu: Add b2sum. Message-ID: References: <878ryfjudi.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <878ryfjudi.fsf@guix.i-did-not-set--mail-host-address--so-tickle-me> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 51198-done Cc: 51198-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Wed, Oct 27, 2021 at 12:26:01AM +0200, Nicolò Balzarotti wrote: > Leo Famulari writes: > > > * gnu/packages/crypto.scm (b2sum): New variable. > > Hi, I guix pulled and wanted to try this, but I get > > >> b2sum --help > > Illegal instruction > > (I'm on an old X200 thinkpad). Might it be that build is not > deterministic (and we should disable some optimization)? I just pushed commit 386adb6df0e00e7170df0cdfaf0e04c38d0f3e11, which removes the "march=native" compiler flag, so that the package should work generically. https://git.savannah.gnu.org/cgit/guix.git/commit/?id=386adb6df0e00e7170df0cdfaf0e04c38d0f3e11 This commit also enables the 'tunable?' property of the package, so that one can use this program with the highest performance in a way that is tailored to their hardware. Just add the --tune command-line option to any Guix command that provides this package and it should do the right thing. Thanks Nicolò for reporting the problem and thanks to Ludovic for developing the solution. From unknown Sun Jun 22 04:27:01 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 16 Apr 2022 11:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator