From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aeX2NRSyZ2HDaQEAgWs5BA (envelope-from ) for ; Thu, 14 Oct 2021 06:29:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id gHwdMRSyZ2GTEgAA1q6Kng (envelope-from ) for ; Thu, 14 Oct 2021 04:29:08 +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 58EDF133C2 for ; Thu, 14 Oct 2021 06:29:08 +0200 (CEST) Received: from localhost ([::1]:35848 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1masMd-000406-IG for larch@yhetil.org; Thu, 14 Oct 2021 00:29:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56484) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1masMY-0003zx-S0 for guix-patches@gnu.org; Thu, 14 Oct 2021 00:29:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50939) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1masMY-00052p-JS for guix-patches@gnu.org; Thu, 14 Oct 2021 00:29:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1masMY-0008Ue-A6 for guix-patches@gnu.org; Thu, 14 Oct 2021 00:29:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51198] [PATCH] gnu: Add b2sum. Resent-From: Leo Famulari Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 14 Oct 2021 04:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51198 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51198@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163418573432632 (code B ref -1); Thu, 14 Oct 2021 04:29:02 +0000 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 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-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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634185748; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=X2BTH1j3Plu5Eu/2+ZoJoa5GJUarshbpQ6TfntTaR8o=; b=ayha9So8Y6kM7tppzO+gFTT5z24P0f6lfn+feDCavIYBndazT6fSbAgrgqOAemjypdNYRs dmbanZXDWJ3WGmgEzGK/57/QlmeoPI2jsD0s5sQIcLmgHXHDAFygC4Qh7jL7l/rwShQ0xo rVqorqcJawicH484v2vPkMLf4tLRqg09M/gRUDdF7Lg8CXjJiBazaVprWR3sfYFhqlHhv8 vTqe3LdyAwRDgEUW+CPuKZu1wumrv4K3Heokeejwm8pTSOZaftimMLv5HBI5pk0kaNFE4T Futd/3xh5riFrxU1nxrQBc8RAv/E4TTEZbk9MAKcrQUz+2ZvUk4Z/5fLQTzQzQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634185748; a=rsa-sha256; cv=none; b=ARnyZKCfU83U29ynV+A3knWST42GiYZO6elO5t4dRM9j+qELj7DAHGrE0XxQ3/3x8BrA1h x1qssobRdlJeSvKtCD9M5T484+RfD/jHrHbDHdUBi3wd8ot7zdJItrNRrFFHSP66Qqz9AF MxPVlgCtQZ5gDD53x2jW/vq2SNHN9Crf8/B3HP9OkYs1fY22ttgScf4oZ9Irh/BgTTedUC 8nuL6zCi2kR6I+u1wE/JlfbFLLiqxfRTPnqS9V0Q8LlyCfsGJODoO4jNrITLKvY4isCfTJ PZbv7/T8EzDxfs/HpB7NsCvEpERNN2h0BYaAR2urfadPlXRSqDc6yuGnigvViw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=famulari.name header.s=mesmtp header.b=ve3X+xXJ; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=R0VFUVFg; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 1.09 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=famulari.name header.s=mesmtp header.b=ve3X+xXJ; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=R0VFUVFg; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 58EDF133C2 X-Spam-Score: 1.09 X-Migadu-Scanner: scn0.migadu.com X-TUID: oiHHpZt4xvO4 * 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