From patchwork Mon Apr 4 19:32:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dominic Martinez X-Patchwork-Id: 38318 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 0FCD127BBEB; Mon, 4 Apr 2022 20:34:13 +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_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS autolearn=unavailable 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 A530027BBE9 for ; Mon, 4 Apr 2022 20:34:12 +0100 (BST) Received: from localhost ([::1]:40694 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nbSSp-0002It-Op for patchwork@mira.cbaines.net; Mon, 04 Apr 2022 15:34:11 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33016) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbSSh-0002Hg-He for guix-patches@gnu.org; Mon, 04 Apr 2022 15:34:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59175) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nbSSh-0002Rc-9D for guix-patches@gnu.org; Mon, 04 Apr 2022 15:34:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nbSSh-000498-6v for guix-patches@gnu.org; Mon, 04 Apr 2022 15:34:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54335] [PATCH v3 08/10] gnu: Add go-google-golang-org-protobuf. Resent-From: Dominic Martinez Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 04 Apr 2022 19:34:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54335 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54335@debbugs.gnu.org Cc: Dominic Martinez Received: via spool by 54335-submit@debbugs.gnu.org id=B54335.164910079115795 (code B ref 54335); Mon, 04 Apr 2022 19:34:03 +0000 Received: (at 54335) by debbugs.gnu.org; 4 Apr 2022 19:33:11 +0000 Received: from localhost ([127.0.0.1]:53063 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nbSRq-00046V-TE for submit@debbugs.gnu.org; Mon, 04 Apr 2022 15:33:11 -0400 Received: from mta-06-4.privateemail.com ([198.54.122.146]:57567) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nbSRo-00045J-3A for 54335@debbugs.gnu.org; Mon, 04 Apr 2022 15:33:08 -0400 Received: from mta-06.privateemail.com (localhost [127.0.0.1]) by mta-06.privateemail.com (Postfix) with ESMTP id AD39018000A0; Mon, 4 Apr 2022 15:33:02 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dominicm.dev; s=default; t=1649100782; bh=CSqUIdhaUsXeczzHCjcBLOzvWN+GwmhRKvmOKANzs0w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k9uKkHM/TZwAu16uM7YL09XBf0niVxaqb3LY5rln9EpG2mOgMOSjv0P3TA/axQph6 IvreqftTrHe7557cLNIw9hl/biLlGcqOB2jXi9QtGpm1tgKMqL8gRhtelkMvFpYbFu 7VJG6z0qYuWZZ5rW4blBjCrNVaMdiBMtdRCBamVckM8lnHdJbUBA605Hgwy8NRyPVI mtR0MtSRH345uupxUojA+4Wzp9Ngf3B283XrkFUDjjLyGxSdSZbwYLjQA2WgCetba3 ARFhmsprAJ/QwFzOdYqkbPVjjfF7KXzX6hqkVK94UfTDV5cSBlXFWQgwea+J0R57GA krmXwDOjrAkOw== Received: from guix.wireless.duke.edu (unknown [10.20.151.184]) by mta-06.privateemail.com (Postfix) with ESMTPA id 1EDD118000AE; Mon, 4 Apr 2022 15:33:00 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dominicm.dev; s=default; t=1649100782; bh=CSqUIdhaUsXeczzHCjcBLOzvWN+GwmhRKvmOKANzs0w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k9uKkHM/TZwAu16uM7YL09XBf0niVxaqb3LY5rln9EpG2mOgMOSjv0P3TA/axQph6 IvreqftTrHe7557cLNIw9hl/biLlGcqOB2jXi9QtGpm1tgKMqL8gRhtelkMvFpYbFu 7VJG6z0qYuWZZ5rW4blBjCrNVaMdiBMtdRCBamVckM8lnHdJbUBA605Hgwy8NRyPVI mtR0MtSRH345uupxUojA+4Wzp9Ngf3B283XrkFUDjjLyGxSdSZbwYLjQA2WgCetba3 ARFhmsprAJ/QwFzOdYqkbPVjjfF7KXzX6hqkVK94UfTDV5cSBlXFWQgwea+J0R57GA krmXwDOjrAkOw== From: Dominic Martinez Date: Mon, 4 Apr 2022 15:32:06 -0400 Message-Id: <20220404193208.27634-9-dom@dominicm.dev> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220404193208.27634-1-dom@dominicm.dev> References: <20220404193208.27634-1-dom@dominicm.dev> MIME-Version: 1.0 X-Virus-Scanned: ClamAV using ClamSMTP 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/golang.scm (go-google-golang-org-protobuf): New variable. --- I took this go-google-golang-org-protobuf definition from #54560. I had disabled builds/tests before because this package has many subpackages and no top-level files, which the go-build-system doesn't directly support, so this modifications builds and tests all the subpackages. gnu/packages/golang.scm | 43 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 23543a0c2b..db1ea44d8c 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -9954,3 +9954,46 @@ (define-public go-github-com-songgao-water library for Go that efficiently works with standard packages like io, bufio, etc.. Use waterutil with it to work with TUN/TAP packets/frames.") (license license:bsd-3))) + +(define-public go-google-golang-org-protobuf + (package + (name "go-google-golang-org-protobuf") + (version "1.28.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://go.googlesource.com/protobuf") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1nzcc4qc00afi24nb7nlnwyzvvr6b8s8qdrn1sw085nygh2y2x8r")))) + (build-system go-build-system) + (arguments + '(#:import-path "google.golang.org/protobuf" + #:phases + ;; Build and test all sub-packages + (let ((glob-path "google.golang.org/protobuf/...")) + (modify-phases %standard-phases + (replace 'build + (lambda args + (apply (assoc-ref %standard-phases + 'build) + `(,@args #:import-path + ,glob-path)))) + (replace 'check + (lambda args + (apply (assoc-ref %standard-phases + 'check) + `(,@args #:import-path + ,glob-path)))))))) + (native-inputs (list go-github-com-google-go-cmp-cmp)) + (synopsis "Go support for Google's protocol buffers") + (description + "Go implementation for protocol buffers, which is a +language-neutral, platform-neutral, extensible mechanism for serializing +structured data. The protocol buffer language is a language for +specifying the schema for structured data. This schema is compiled into +language specific bindings.") + (home-page "https://go.googlesource.com/protobuf") + (license license:bsd-3)))