From patchwork Thu Jul 4 11:10:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 65909 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id A8B8027BBEA; Thu, 4 Jul 2024 12:13:45 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id DC14727BBE2 for ; Thu, 4 Jul 2024 12:13:44 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPKOe-0002Bu-6s; Thu, 04 Jul 2024 07:13:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sPKOb-00029P-Vk for guix-patches@gnu.org; Thu, 04 Jul 2024 07:13:01 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPKOb-00036h-Me for guix-patches@gnu.org; Thu, 04 Jul 2024 07:13:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sPKOc-00032r-Vx for guix-patches@gnu.org; Thu, 04 Jul 2024 07:13:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70684] [PATCH v2 2/9] gnu: Add go-github-com-google-go-tpm. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 04 Jul 2024 11:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70684 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70684@debbugs.gnu.org Cc: Sharlatan Hellseher , Rodion Goritskov Received: via spool by 70684-submit@debbugs.gnu.org id=B70684.172009153911539 (code B ref 70684); Thu, 04 Jul 2024 11:13:02 +0000 Received: (at 70684) by debbugs.gnu.org; 4 Jul 2024 11:12:19 +0000 Received: from localhost ([127.0.0.1]:41616 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sPKNu-000303-Tp for submit@debbugs.gnu.org; Thu, 04 Jul 2024 07:12:19 -0400 Received: from mail-wm1-f48.google.com ([209.85.128.48]:61577) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sPKNt-0002zc-6Y for 70684@debbugs.gnu.org; Thu, 04 Jul 2024 07:12:17 -0400 Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-42564316479so3030825e9.2 for <70684@debbugs.gnu.org>; Thu, 04 Jul 2024 04:12:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720091469; x=1720696269; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=O4cwOYede1tAxBZFhewdawiJG9kVlIEIF/5D056tGCM=; b=A1AxFoo8SooRkKwIPN4Er1nICmQoDgneak7ueNmse0eUEO62Cr2X/DRRCbQSchy14e Bk6evITrg4eNWdIughWT4u9BKWYRPNBYWMu4eY9N50m55a6Y0Y7iI2dTpetjPiRQYdaI 8SwVQyVsx3KpFraURijfFCYIl9LNCytBfgfQQrumo5AgAntMMkgS0a1I0kdXkOlPYH1z 8TOnZpJ8Ofs/CtX7okVUS8arzS0+G9m/+tlwf5tbawv200T1jaSotb0bytTtvtFvq6IU TvyCRDMwfrNQNAiMS3cvZjLEmauoIlzgEZwxg08NL/ZAjkPh5/1UIu7PnBAX0LLk6jtd BClA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720091469; x=1720696269; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=O4cwOYede1tAxBZFhewdawiJG9kVlIEIF/5D056tGCM=; b=QPbmxw61058qz7ZX6yKZwI962B2OWH/wFUaipKwOXcCHq23jQDbsE4AVvMq/2zl4oM bAp9nHOynS3JgGO6k8hfbjDs2/+Za6JjAqKDVz8FwlCmV102JiI7Yyc0KTEJYaHts7PV /f12C33OpsX+3S2WjmqzI7r7VYao0UlJRpf1b+CI0HpiuTXGdIntyt6C+SYxcLpm2Bxv /A042A+DeXH6jNbmJ+o/xHXuCcjJS3Y2+Ja31paDh0EbqncSQ1nsOfWQE3qgLByMNxhf XcCHtWV/lBY2vY7kVMzCbnnpG8/UbyzfDHkcfKRXHk74D5qxyF0x/CMgPt9/JkxwfRAq 9VnQ== X-Gm-Message-State: AOJu0Yw9oy6zLwJ61q8bqbThjH4/UaOWInrTk7HXOqK+8XLMwGl8uSou lZZr39Cjl2ww+t9DkoNXq5DTqWdrJcnErq8LW6QucNHVGGFGFuAAJ6FnBfvp X-Google-Smtp-Source: AGHT+IGDgLXM6JOvBhopM3gkGHAqKjyXui399QBJwhPXPvf8bpSw4PqI2bYYuI0uL4yd45QcyUExDA== X-Received: by 2002:a5d:444f:0:b0:367:8383:62f3 with SMTP id ffacd0b85a97d-3679dd297b5mr984600f8f.28.1720091468158; Thu, 04 Jul 2024 04:11:08 -0700 (PDT) Received: from guxtil.incerto.xyz (bagu-15-b2-v4wan-170076-cust245.vm21.cable.virginm.net. [77.98.0.246]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3679508ff26sm3698486f8f.111.2024.07.04.04.11.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 04:11:07 -0700 (PDT) From: Sharlatan Hellseher Date: Thu, 4 Jul 2024 12:10:52 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From: Rodion Goritskov * gnu/packages/golang-crypto.scm (go-github-com-google-go-tpm-legacy-tpm2): New variable. * gnu/packages/golang-crypto.scm (go-github-com-google-go-tpm-tpmutil): New variable. Change-Id: Ib7b640dcb4ea6b87fca1d320f044315620f7e5f3 Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-crypto.scm | 41 ++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm index ddeb79badf..5dbc9a6ae4 100644 --- a/gnu/packages/golang-crypto.scm +++ b/gnu/packages/golang-crypto.scm @@ -578,6 +578,47 @@ (define-public go-github-com-golang-jwt-jwt-v5 #:go go-1.18 #:import-path "github.com/golang-jwt/jwt/v5")))) +(define-public go-github-com-google-go-tpm + (package + (name "go-github-com-google-go-tpm") + (version "0.9.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/google/go-tpm") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1c5j5cvwl45ka93nknmv454ivd7kp9n8yql19gr6z01z0s1ph7sg")))) + (build-system go-build-system) + (arguments + (list + #:go go-1.22 + #:import-path "github.com/google/go-tpm" + #:phases + #~(modify-phases %standard-phases + ;; XXX: Break cycle: + ;; github.com/google/go-tpm/tpm2/transport/simulator/simulator.go -> + ;; github.com/google/go-tpm-tools -> github.com/google/go-tpm. + ;; Consider to add required inputs on dependent package. + (delete 'build) + (delete 'check)))) + (home-page "https://github.com/google/go-tpm") + (synopsis "Go-TPM Legacy TPM 2.0 library") + (description + "Go-TPM is a Go library that communicates directly with a +@acronym{Trusted Platform Module, TPM} device. The libraries don't implement +the entire spec for neither 1.2 nor 2.0. This package provides following +submodules: +@itemize +@item @code{tpm} - TPM 1.2 client library +@item @code{tpm2} - TPM 2.0 client library. +@item @code{direct} - the prototype \"TPMDirect\" TPM 2.0 API, which is +intended to (eventually) be 1:1 with the TPM 2.0 spec +@end itemize") + (license license:asl2.0))) + ;; It's not public for purpose, as it contains a lot of golang modules which ;; may be inherited from the single source, but the package itself does not ;; have to be installed directly or linked to other packages..