Message ID | 20220803120439.5108-31-paren@disroot.org |
---|---|
State | New |
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 6C52127BBEA; Wed, 3 Aug 2022 13:12:33 +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,URIBL_BLOCKED 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 32C7927BBE9 for <patchwork@mira.cbaines.net>; Wed, 3 Aug 2022 13:12:33 +0100 (BST) Received: from localhost ([::1]:42538 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org>) id 1oJDEm-0006O7-BT for patchwork@mira.cbaines.net; Wed, 03 Aug 2022 08:12:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58604) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1oJD9o-0008HF-Nj for guix-patches@gnu.org; Wed, 03 Aug 2022 08:07:26 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56761) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1oJD9o-0003G2-F9 for guix-patches@gnu.org; Wed, 03 Aug 2022 08:07:24 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1oJD9o-0003Cd-9H for guix-patches@gnu.org; Wed, 03 Aug 2022 08:07:24 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56939] [PATCH 31/41] gnu: Add go-github-com-google-shlex. Resent-From: "(" <paren@disroot.org> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 03 Aug 2022 12:07:24 +0000 Resent-Message-ID: <handler.56939.B.165952842511842@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56939 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56939@debbugs.gnu.org Cc: "\(unmatched-parenthesis" <paren@disroot.org> X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165952842511842 (code B ref -1); Wed, 03 Aug 2022 12:07:24 +0000 Received: (at submit) by debbugs.gnu.org; 3 Aug 2022 12:07:05 +0000 Received: from localhost ([127.0.0.1]:46435 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1oJD9U-00034d-NM for submit@debbugs.gnu.org; Wed, 03 Aug 2022 08:07:05 -0400 Received: from lists.gnu.org ([209.51.188.17]:49330) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <paren@disroot.org>) id 1oJD9O-00031j-Cq for submit@debbugs.gnu.org; Wed, 03 Aug 2022 08:06:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58388) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <paren@disroot.org>) id 1oJD9O-00082N-75 for guix-patches@gnu.org; Wed, 03 Aug 2022 08:06:58 -0400 Received: from knopi.disroot.org ([178.21.23.139]:49266) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <paren@disroot.org>) id 1oJD9K-000362-AQ for guix-patches@gnu.org; Wed, 03 Aug 2022 08:06:57 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 7B4F94195A; Wed, 3 Aug 2022 14:06:41 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with UTF8SMTP id WJd47gpR2bcF; Wed, 3 Aug 2022 14:06:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1659528292; bh=dA0Bna/1zGEzun8WhQ/F+ULMCUIS05Cn2M8jrNXoMb0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=LvkL5olNyawDRY7k/lDmMUMySlEc1n/PlxxTFnFt3NK9ZzZ72d8ul0xzAUzS0Lu2D DlG5afJU2rH2hdwtc6MypNNhVVMw60xribxiCLEGKC3mMrnJUglKGkSZsYchHaGuxB EuYuIFnDUZDJczw+Ruj3o7T52lF2klZjDM4ne1HLqvCHjRZlvv3gAfrq4mcWv/5PkK bVsx9E9TyM7TIWTVJlXVHXlUFHUArM9HWEa4gdDxnzX6q8JDGRhxKMdLQ30YZdH/cy vLfuz3Xm/msc/Cv3tQXaqRy8bjZrbRkpIvVOrFWoMcmW5w4QY/GDGUq5i72lP33ZCn kdHuwC2kRqXgg== Date: Wed, 3 Aug 2022 13:04:29 +0100 Message-Id: <20220803120439.5108-31-paren@disroot.org> In-Reply-To: <20220803120439.5108-1-paren@disroot.org> References: <20220803120439.5108-1-paren@disroot.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=178.21.23.139; envelope-from=paren@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> Reply-to: "\(" <paren@disroot.org> X-ACL-Warn: , "\( via Guix-patches" <guix-patches@gnu.org> From: "\( via Guix-patches" via <guix-patches@gnu.org> X-getmail-retrieved-from-mailbox: Patches |
Series |
[bug#56909,01/41] gnu: Add go-github-com-zenhack-go-notmuch.
|
|
Commit Message
\(
Aug. 3, 2022, 12:04 p.m. UTC
From: "(unmatched-parenthesis" <paren@disroot.org>
* gnu/packages/golang.scm (go-github-com-google-shlex): New variable.
---
gnu/packages/golang.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
Comments
On 03-08-2022 14:04, ( via Guix-patches via wrote: > + (arguments > + (list #:import-path "github.com/zenhack/go.notmuch" > + ;; XXX: Tests require you to download fixtures from the Internet. > + ;; See<https://github.com/zenhack/go.notmuch/blob/master/Makefile>. > + #:tests? #f)) > + (propagated-inputs (list notmuch)) Can we just substitute* in the appropriate library reference or whatever is the Go equivalent instead of propagating? Maybe in in configList.go, we can replace -lnotmuch by -l/gnu/store/.../libnotmuch.so or add a -L/gnu/store/... there? > From: "(unmatched-parenthesis"<paren@disroot.org> > > * gnu/packages/golang.scm (go-github-com-google-shlex): New variable. > --- > gnu/packages/golang.scm | 23 +++++++++++++++++++++++ > 1 file changed, 23 insertions(+) > > diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm > index fd2335b61a..9959dd118c 100644 > --- a/gnu/packages/golang.scm > +++ b/gnu/packages/golang.scm > @@ -10720,3 +10720,26 @@ (define-public go-github-com-lithammer-fuzzysearch > "A speedy fuzzy matching package for Go inspired by the JavaScript > library bevacqua/fuzzysearch.") > (license license:expat))) > + > +(define-public go-github-com-google-shlex > + (package > + (name "go-github-com-google-shlex") > + (version "0.0.0-20191202100458-e7afc7fbc510") Why has the commit and description been changed since <https://issues.guix.gnu.org/37444>? The change in synopsis seems good to me though. Also, there are multiple patches adding go-github-com-google-shlex now -- as I've asked in the past, can we stop doing that, or at least add a pointer to the previous version to avoid double work for reviewers? Likewise for: * https://issues.guix.gnu.org/search?query=go-google-golang-org-protobuf * https://issues.guix.gnu.org/search?query=go-github-com-xo-terminfo * https://issues.guix.gnu.org/search?query=go-github-com-go-ini-ini * https://issues.guix.gnu.org/search?query=go-github-com-emersion-go-pgpmail * [...] Like, if I would properly review (including checking the source code) this patch series and didn't know some of those were reviewed previously, then I would have to do the review again even though that's double work better spent elsewhere and if I later discover these were actually reviewed previously, that doesn't sound good for motivation to me. And even though I know some of those have been submitted and reviewed previously, I don't remember which ones exactly and to which degree (only superficial checks like checking synopsis, description and #:tests?, or also source code checks, ...), so if I were to review this (*), I would have to look up the old patches and reviews, see which ones were reviewed previously and to what degree, look if changes have been made (e.g. changing which commit to use) that invalidated the review, ..., which is not motivating to me. (*) To be clear, I consider it unlikely for me to seriously review Go stuff in the future, as the Go world is full of forks that make no attempt to contribute back to upstream, or many independent implementations (see e.g. terminfo and shlex) where a single or maybe two implementations would suffice, often there's a lack of attempting backwards compatibility and version numbers are often just 0.0.0, ... Greetings, Maxime.
On Wed Aug 3, 2022 at 4:38 PM BST, Maxime Devos wrote: > Can we just substitute* in the appropriate library reference or whatever > is the Go equivalent instead of propagating? Maybe in in configList.go, > we can replace -lnotmuch by -l/gnu/store/.../libnotmuch.so or add a > -L/gnu/store/... there? Good point! I'll try that. > > * gnu/packages/golang.scm (go-github-com-google-shlex): New variable. > > --- > > gnu/packages/golang.scm | 23 +++++++++++++++++++++++ > > 1 file changed, 23 insertions(+) > > > > diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm > > index fd2335b61a..9959dd118c 100644 > > --- a/gnu/packages/golang.scm > > +++ b/gnu/packages/golang.scm > > @@ -10720,3 +10720,26 @@ (define-public go-github-com-lithammer-fuzzysearch > > "A speedy fuzzy matching package for Go inspired by the JavaScript > > library bevacqua/fuzzysearch.") > > (license license:expat))) > > + > > +(define-public go-github-com-google-shlex > > + (package > > + (name "go-github-com-google-shlex") > > + (version "0.0.0-20191202100458-e7afc7fbc510") > > Why has the commit and description been changed since > <https://issues.guix.gnu.org/37444>? The change in synopsis seems good > to me though. I never referenced that issue in the making of this patchset :) I'll change its description to that issue's version if you wish. > Also, there are multiple patches adding go-github-com-google-shlex now > -- as I've asked in the past, can we stop doing that, or at least add a > pointer to the previous version to avoid double work for reviewers? > Likewise for: > > * https://issues.guix.gnu.org/search?query=go-google-golang-org-protobuf > * https://issues.guix.gnu.org/search?query=go-github-com-xo-terminfo > * https://issues.guix.gnu.org/search?query=go-github-com-go-ini-ini > * https://issues.guix.gnu.org/search?query=go-github-com-emersion-go-pgpmail > * [...] Maybe we could merge the patches adding those duplicate packages standalone, without merging the other parts of the patchsets, so there would be no need for anyone to write them again in the future. > (*) To be clear, I consider it unlikely for me to seriously review Go > stuff in the future, as the Go world is full of forks that make no > attempt to contribute back to upstream, or many independent > implementations (see e.g. terminfo and shlex) where a single or maybe > two implementations would suffice, often there's a lack of attempting > backwards compatibility and version numbers are often just 0.0.0, ... I know what you mean. It's a huge pain. -- (
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index fd2335b61a..9959dd118c 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -10720,3 +10720,26 @@ (define-public go-github-com-lithammer-fuzzysearch "A speedy fuzzy matching package for Go inspired by the JavaScript library bevacqua/fuzzysearch.") (license license:expat))) + +(define-public go-github-com-google-shlex + (package + (name "go-github-com-google-shlex") + (version "0.0.0-20191202100458-e7afc7fbc510") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/google/shlex") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "14z8hqyik910wk2qwnzgz8mjsmiamxa0pj55ahbv0jx6j3dgvzfm")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/google/shlex")) + (home-page "https://github.com/google/shlex") + (synopsis "Simple lexer for Go") + (description + "Shlex is a simple lexer for Go that supports shell-style quoting, +commenting, and escaping.") + (license license:asl2.0)))