Message ID | m1leqjcx6q.fsf@fastmail.net |
---|---|
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 E5C4327BBEA; Fri, 16 Sep 2022 13:38:09 +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,FREEMAIL_FROM,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 A6C5A27BBE9 for <patchwork@mira.cbaines.net>; Fri, 16 Sep 2022 13:38:09 +0100 (BST) Received: from localhost ([::1]:56096 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 1oZAbg-0002B3-SX for patchwork@mira.cbaines.net; Fri, 16 Sep 2022 08:38:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38548) 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 1oZAba-0002Av-Jh for guix-patches@gnu.org; Fri, 16 Sep 2022 08:38:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42982) 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 1oZAba-00029h-BZ for guix-patches@gnu.org; Fri, 16 Sep 2022 08:38:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1oZAbZ-00061D-VN for guix-patches@gnu.org; Fri, 16 Sep 2022 08:38:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57858] [PATCH] gnu: git-annex: Promote git to propagated input Resent-From: Konrad Hinsen <konrad.hinsen@fastmail.net> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 16 Sep 2022 12:38:01 +0000 Resent-Message-ID: <handler.57858.B.166333184823083@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57858 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57858@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166333184823083 (code B ref -1); Fri, 16 Sep 2022 12:38:01 +0000 Received: (at submit) by debbugs.gnu.org; 16 Sep 2022 12:37:28 +0000 Received: from localhost ([127.0.0.1]:42060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1oZAb2-00060F-JS for submit@debbugs.gnu.org; Fri, 16 Sep 2022 08:37:28 -0400 Received: from lists.gnu.org ([209.51.188.17]:38812) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <konrad.hinsen@fastmail.net>) id 1oZAay-000606-VG for submit@debbugs.gnu.org; Fri, 16 Sep 2022 08:37:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43636) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <konrad.hinsen@fastmail.net>) id 1oZAay-00029C-Pl for guix-patches@gnu.org; Fri, 16 Sep 2022 08:37:24 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:45149) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <konrad.hinsen@fastmail.net>) id 1oZAaw-00026w-Tf for guix-patches@gnu.org; Fri, 16 Sep 2022 08:37:24 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 13B0E5C026F; Fri, 16 Sep 2022 08:37:20 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Fri, 16 Sep 2022 08:37:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h= cc:content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=fm2; t= 1663331840; x=1663418240; bh=Wr9B3bLxhKNoei2CiyKVB7qIyb3FZEbk+Pd YAZud6Cs=; b=NCb/rOLrn2ZTjsppiJ3ro97EPYq599eyp1JQKPg1nzV9rfR5qhy ThTpV5vuNR6WayrpPQHx1VZryNVcU0G1I2Y3vIW0QMJB483q14vgIyVbP4oL8Eb+ PWkIZDcE9FugKF2e9dgUzorSHpEgOO6qS0g4Z/pesOPDStcSbR7hUSQTJahSrIZd cWvlpqRNyxaTUmis3t7A9XB3uJWmPIoOclb/y/a0oWu9lNL/RddCuRGKvjMwbFdv ZZCK+khGO/EqZBQ0gjOn3GuJYbvI69JQU5JDHfLPC6pBdNU4qSDUn+htvxvtFMOZ L/9s8zlzZYVu1KTPH3KdtNcbYcoXhmXm5VQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1663331840; x= 1663418240; bh=Wr9B3bLxhKNoei2CiyKVB7qIyb3FZEbk+PdYAZud6Cs=; b=I elSbhMAJ2RnkLiBYEn3pijRM0/FJe3ctQD7AZobyp3yTutofUte+4wBm6rsJa5+p Jep6xqgmqMaN/QDkHM4JB4umGl3fxYqxRWLweMRgbqzVmjHXrTcDvsXnxyiQHDcj X7rJbc0mFFN7JhDBhbUREQXMO7XXTseQ/G1s0gNnRW3jfZ2wWFdVPxwdYuqNGLfH Yd4NUFWHBnXNVhuF9c6LYW4JUBplYn5C7MjQx0UqxrYXm77meUKjA8k87kzoHkil f6veZ/CFYCJy6xsri0S3WdtrUbtBBqTAuKPtjXSESQybQ6b9dpmO788bXr4Jwr// 0eNVNn1RhMpj5eyxhP/5Q== X-ME-Sender: <xms:_20kYwfq9BQ7q7w6tjtZqqE54CM2Ols2gM81ijZ6JzBFAbbLLD_qsA> <xme:_20kYyML9A7VDUk2mlqvt2sOEHPNDONZy2ESi8dAy63dWtLnEBqUXPeHD8ApfaGrN PhrcyZV_5ohqKrV> X-ME-Received: <xmr:_20kYxiIjjXdY1JoZw07PeKQGmRV7N0j-zejjuqz7yigec6cd21LRQJz2gpkh8QK-w5hzXYTxHfJXK53> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedvtddgheeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkgggtsehttdertddttd dtnecuhfhrohhmpefmohhnrhgrugcujfhinhhsvghnuceokhhonhhrrggurdhhihhnshgv nhesfhgrshhtmhgrihhlrdhnvghtqeenucggtffrrghtthgvrhhnpeevfeevuedtiedtte etgfeghedvudeileekgfehkeehudetveehgeeuteeuveejheenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehkohhnrhgrugdrhhhinhhsvghnse hfrghsthhmrghilhdrnhgvth X-ME-Proxy: <xmx:_20kY1_u-Gaf9krjYI8OGBDe0p86Uau0dWVTW6xfktJ5XR-LCPQrZw> <xmx:_20kY8uc_tvo2oSIt0S3bieNWJvBrMa_igjPvCl6WzNyMZQoMiqaPA> <xmx:_20kY8HAUYL4IiIPBbSWMEWzIrB65pYuAibEbLKVXSyXASKP6Si5-A> <xmx:AG4kYy2QqynyZaCQhB8y4oOxxxgLEKUaOo2j_okCvxhHk5VaOqvqFA> Feedback-ID: i184641e2:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 16 Sep 2022 08:37:19 -0400 (EDT) From: Konrad Hinsen <konrad.hinsen@fastmail.net> Date: Fri, 16 Sep 2022 14:37:17 +0200 Message-ID: <m1leqjcx6q.fsf@fastmail.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=66.111.4.29; envelope-from=konrad.hinsen@fastmail.net; 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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: <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> X-getmail-retrieved-from-mailbox: Patches |
Series |
[bug#57858] gnu: git-annex: Promote git to propagated input
|
|
Commit Message
Konrad Hinsen
Sept. 16, 2022, 12:37 p.m. UTC
* gnu/packages/haskell-apps.scm (git-annex): changed inputs [propagated-inputs]: Add git [inputs]: Remove git --- gnu/packages/haskell-apps.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Comments
On 16-09-2022 14:37, Konrad Hinsen wrote: > * gnu/packages/haskell-apps.scm (git-annex): changed inputs > [propagated-inputs]: Add git > [inputs]: Remove git > --- > gnu/packages/haskell-apps.scm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) What's the reason for this patch? My guess is that it's because git-annex cannot find git: $ guix shell --pure git-annex -- git-annex test git-annex: git: createProcess: posix_spawnp: does not exist (No such file or directory) If so, propagation (which as a few small downsides) can be avoided with an appropriate substitute* fixing the file name of the git binary. Greetings, Maxime
Maxime Devos <maximedevos@telenet.be> writes: > What's the reason for this patch? My guess is that it's because > git-annex cannot find git: That was indeed the starting point. But... > If so, propagation (which as a few small downsides) can be avoided with > an appropriate substitute* fixing the file name of the git binary. ... I tried that and still got error messages whose exact cause I don't quite understand. What made me opt for git as a propagated input is that (1) it works just fine and (2) there isn't much you can do with git-annex without having git as well. git is even the official user interface of git-annex. Cheers, Konrad
Hi, Konrad Hinsen <konrad.hinsen@fastmail.net> skribis: > Maxime Devos <maximedevos@telenet.be> writes: > >> What's the reason for this patch? My guess is that it's because >> git-annex cannot find git: > > That was indeed the starting point. But... > >> If so, propagation (which as a few small downsides) can be avoided with >> an appropriate substitute* fixing the file name of the git binary. > > ... I tried that and still got error messages whose exact cause I don't > quite understand. > > What made me opt for git as a propagated input is that (1) it works just > fine and (2) there isn't much you can do with git-annex without having > git as well. git is even the official user interface of git-annex. Yeah, that sounds reasonable: I’d have made the same suggestion as Maxime but any improvement here is welcome. Applied, thanks! Ludo’.
Hi, On lun., 17 oct. 2022 at 10:07, Ludovic Courtès <ludo@gnu.org> wrote: >> What made me opt for git as a propagated input is that (1) it works just >> fine and (2) there isn't much you can do with git-annex without having >> git as well. git is even the official user interface of git-annex. > > Yeah, that sounds reasonable: I’d have made the same suggestion as > Maxime but any improvement here is welcome. We are usually not propagating. For example, emacs-magit or git-lfs or etc. From my understanding, this change is not coherent with other parts. About (2), what do you mean Konrad? Is ’git-annex’ not working as expected? Well, ’git annex’ is a shorthand for ’git-annex’ and I thought this ’git-annex’ is self-contained; for which operations ’git-annex’ depends on the ’git’ binaires? Cheers, simon
zimoun <zimon.toutoune@gmail.com> writes: > About (2), what do you mean Konrad? Is ’git-annex’ not working as > expected? Well, ’git annex’ is a shorthand for ’git-annex’ and I > thought this ’git-annex’ is self-contained; for which operations > ’git-annex’ depends on the ’git’ binaires? Maxime quoted a simple command line example. git-annex requires git for pretty much everything it does. But that's not the question here. As Maxime said, git could just be a standard (non-propagated) input with a small patch to git-annex. That makes it work to a large degree (requiring you to replace "git annex" by "git-annex" in all command lines), but it occasionally failed for me and I didn't invest much effort to explore why, given that I consider it pointless to try to use git-annex without git. But you are right in pointing out that this is an instance of a situation for which Guix should have a general policy. git-lfs is probably in exactly the same situation. Not emacs-magit though: it works perfectly fine without exposing git in the same profile. Being a git plugin is not the same as being a git wrapper. Cheers, Konrad
Hi Konrad, On lun., 17 oct. 2022 at 12:11, Konrad Hinsen <konrad.hinsen@fastmail.net> wrote: > But you are right in pointing out that this is an instance of a > situation for which Guix should have a general policy. git-lfs is > probably in exactly the same situation. Not emacs-magit though: it works > perfectly fine without exposing git in the same profile. Being a git > plugin is not the same as being a git wrapper. From my understanding, the general policy is to not propagate git. :-) From gnu/packages/version-control.scm, where xyz: is the line number --8<---------------cut here---------------start------------->8--- 778:(define-public git-cal no inputs 907:(define-public git-crypt inputs: git 960:(define-public git-remote-gcrypt no inputs 1108:(define-public python-git-multimail inputs: git 1311:(define-public git-flow inputs: no git 1451:(define-public git-test-sequence no inputs 2681:(define-public git-annex-remote-rclone inputs: no git 2901:(define-public git-when-merged inputs: git 2952:(define-public git-imerge inputs: git 2997:(define-public git-lfs native-inputs only and no git 3046:(define-public git-open inputs: no git 3392:(define-public git-filter-repo inputs: no git --8<---------------cut here---------------end--------------->8--- The package git-repo from (gnu packages android) contains git as inputs. The package git-absord from (gnu packages rust-apps) does not contains git as inputs. I understand the issue but I think the propagation is not the correct solution. :-) Cheers, simon
On 17-10-2022 12:11, Konrad Hinsen wrote: > But you are right in pointing out that this is an instance of a > situation for which Guix should have a general policy. git-lfs is > probably in exactly the same situation. Not emacs-magit though: it works > perfectly fine without exposing git in the same profile. Being a git > plugin is not the same as being a git wrapper. The current policy, IMO, is that plugins don't propagate what they are plugged into -- even if the plugin is useless without the thing it plugs-in into (compare: search paths are set in 'consumers', not 'producers'). Taking 'emacs-magit' as an example, emacs-magit is an Emacs plugin, but it doesn't propagate emacs. Likewise, (in some usages) 'git-annex' is a git plugin, yet it (IMO) shouldn't propagate git. Greetings Maxime.
diff --git a/gnu/packages/haskell-apps.scm b/gnu/packages/haskell-apps.scm index 50380281d7..d5e855cf9a 100644 --- a/gnu/packages/haskell-apps.scm +++ b/gnu/packages/haskell-apps.scm @@ -462,8 +462,9 @@ (define-public git-annex ghc-utf8-string ghc-uuid ghc-vector - git rsync)) + (propagated-inputs + (list git)) (native-inputs (list ghc-tasty ghc-tasty-hunit ghc-tasty-quickcheck ghc-tasty-rerun perl))