From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id gNozCJt2HmA6aAAA0tVLHw (envelope-from ) for ; Sat, 06 Feb 2021 10:59:39 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id sAjGA5t2HmC/LQAAB5/wlQ (envelope-from ) for ; Sat, 06 Feb 2021 10:59:39 +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 4CC53940275 for ; Sat, 6 Feb 2021 10:59:38 +0000 (UTC) Received: from localhost ([::1]:50054 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l8LJR-0004wC-As for larch@yhetil.org; Sat, 06 Feb 2021 05:59:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37000) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8LIs-0004fO-Bq for guix-patches@gnu.org; Sat, 06 Feb 2021 05:59:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:33618) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l8LIs-0008GZ-4M for guix-patches@gnu.org; Sat, 06 Feb 2021 05:59:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l8LIs-00036z-3j for guix-patches@gnu.org; Sat, 06 Feb 2021 05:59:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46215] [PATCH] Add yadm Resent-From: Ellis =?UTF-8?Q?Keny=C5=91?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 06 Feb 2021 10:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46215 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Leo Prikler Cc: 46215@debbugs.gnu.org Received: via spool by 46215-submit@debbugs.gnu.org id=B46215.161260909611901 (code B ref 46215); Sat, 06 Feb 2021 10:59:02 +0000 Received: (at 46215) by debbugs.gnu.org; 6 Feb 2021 10:58:16 +0000 Received: from localhost ([127.0.0.1]:45164 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8LI8-00035s-0f for submit@debbugs.gnu.org; Sat, 06 Feb 2021 05:58:16 -0500 Received: from mail.elken.dev ([165.22.120.78]:51897) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8LI5-00035b-Ev for 46215@debbugs.gnu.org; Sat, 06 Feb 2021 05:58:14 -0500 Received: from authenticated-user (mail.elken.dev [165.22.120.78]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by mail.elken.dev (Postfix) with ESMTPSA id F2CF23F156; Sat, 6 Feb 2021 11:58:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elken.dev; s=mail; t=1612609087; bh=cofRkQTmoKadt2vVk7eSFlQje6Yj0y3D138lmbXfqqM=; h=In-Reply-To:References:Subject:From:Date:To:CC:From; b=dmrct5tsiWPPdJfo7voVaAb4xfqmDQeHHSQKwW4X2qMr7aAqh8IlEEOX5jl+uVJOk yHX2QbnIa6KXfH4E0awDfWp4PPBzZCBBTVtXLLqFZ0W/PUsPIleTI9ZMUIXo1gAaaY 1aeOQlsSfYbdss7+H+4M4MtD+8mAj/nWsKpDZJJApKGTopAakOBW7EG15ehxntXYB1 pKS6pXzH9kgeaRDzMNihJ5EqDk++o+na+3LYHg0cwdrb4+4QEqYgzQo6lTKcWh3bwU +uKA+DpTimlYGozNcIGTIWXdn/WzVAEnbLVk+iY29/J72Tuwx9K9ZEfqlck1dMoOxY 4cjsge48tbv/w== In-Reply-To: References: <20210131164721.8792-1-me@elken.dev> <84ab5054792abeb5e9b85d21229cd7182204d817.camel@student.tugraz.at> <87czxkc0yv.fsf@elken.dev> <0ff6a0c2cc9a2f65cd51c1eeb9e6a33aa4789766.camel@student.tugraz.at> <669deac8-ffa5-42ba-8741-3cae0b18220e@elken.dev> <38ed969df583e9254802fa7a4a80299ec5caddc4.camel@student.tugraz.at> <9efaa5895bc488ddd4fd8c456aa5c2fdf09cb4af.camel@student.tugraz.at> <87pn1dpkwr.fsf@elken.dev> X-Referenced-Uid: 2617 Thread-Topic: Re: [PATCH] Add yadm X-Is-Generated-Message-Id: true MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----1TFWF4E09KZGMFB9XTE25HP6FDJQ0N" Content-Transfer-Encoding: 7bit Date: Sat, 06 Feb 2021 10:58:06 +0000 Message-ID: <9b32a7b7-9664-4108-a66c-f3de42d10c68@elken.dev> 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" Reply-to: Ellis =?UTF-8?Q?Keny=C5=91?= X-ACL-Warn: , Ellis =?UTF-8?Q?Keny=C5=91?= via Guix-patches From: Ellis =?UTF-8?Q?Keny=C5=91?= via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.86 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elken.dev header.s=mail header.b=dmrct5ts; dmarc=pass (policy=none) header.from=gnu.org; 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: 4CC53940275 X-Spam-Score: -2.86 X-Migadu-Scanner: scn1.migadu.com X-TUID: OGSsB1oa4WpZ ------1TFWF4E09KZGMFB9XTE25HP6FDJQ0N Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 > As long as it can reasonably be expected, that users will want it, yes=2E= If the soft dependency is indeed completely optional, the software works p= erfectly fine without it and few people will be negatively impacted by a mi= nor feature missing, then it's fine to leave it as-is This is the only poi= nt I'm making=2E Things like templates and encryption aren't used by everyo= ne so could definitely be optional, so I was asking if there was a simple w= ay to handle optional inputs=2E As it doesn't seem like there is I'll just = add everything required=2E On 6 Feb 2021, 10:48, at 10:48, Leo Prikler wrote: >Hi Ellis, > >Am Samstag, den 06= =2E02=2E2021, 10:05 +0000 schrieb Ellis Keny=C5=91: >> I don't think you're= understanding my question=2E >> >> A number of the dependencies are optio= nal, for example some of the >> jinja template commands=2E >And Guix' poli= cy is =E2=80=93 as I've already pointed out =E2=80=93 to provide such >opti= onal dependencies as inputs up to a reasonable limit in closure >size=2E > = >> When this builds, if those packages aren't installed before you >> inst= all yadm, the path gets set to `#f`=2E >That's not how building works=2E I= f jinja is *present in the build >environment*, it is available for substit= ution=2E This has nothing to do >with packages the user may or may not hav= e installed at that point=2E >If not, then yeah, you end up with #f=2E It = makes no sense to set up >substitutions for commands, that aren't present i= n the build >environment=2E > >> If you then later install them (one of the= m for example is a >> python module so likely wouldn't be installed throug= h guix), the >> path in yadm is still `#f` so it would never find them=2E = >You can and should install python packages through Guix=2E We here at >Gu= ix Solutions=E2=84=A2 do not approve of the need for programming language >= specific package managers, especially not multiple ones within the same >pr= oject=2E > >> Do I have to also package everything it has a soft dependency= on? >As long as it can reasonably be expected, that users will want it, ye= s=2E >If the soft dependency is indeed completely optional, the software >w= orks perfectly fine without it and few people will be negatively >impacted = by a minor feature missing, then it's fine to leave it as-is, >provided tha= t the missing dependency is itself free software=2E If there >is an option= al dependency on non-free software, mentions of that >software should be re= moved=2E > >Regards, >Leo ------1TFWF4E09KZGMFB9XTE25HP6FDJQ0N Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
> As long= as it can reasonably be expected, that users will want it, yes=2E
If the soft dependency is indeed completely optional, t= he software
works perfectly fine without it and= few people will be negatively
impacted by a mi= nor feature missing, then it's fine to leave it as-is

This is the only point I'm making=2E Things like templates and e= ncryption aren't used by everyone so could definitely be optional, so I was= asking if there was a simple way to handle optional inputs=2E As it doesn'= t seem like there is I'll just add everything required=2E
On 6 Feb 2021, at 10:48, Leo Prikler <leo=2Eprikler@stud= ent=2Etugraz=2Eat> wrote:
Hi Ellis,

Am Samstag, den 06= =2E02=2E2021, 10:05 +0000 schrieb Ellis Keny=C5=91:
I don't think you're understanding my questio= n=2E

A number of the dependencies are optional, for example some o= f the
jinja template commands=2E
And Guix' policy is = =E2=80=93 as I've already pointed out =E2=80=93 to provide such
optional= dependencies as inputs up to a reasonable limit in closure
size=2E
<= br>
When this builds, if t= hose packages aren't installed before you
install yadm, the path gets = set to `#f`=2E
That's not how building works=2E If jinja i= s *present in the build
environment*, it is available for substitution= =2E This has nothing to do
with packages the user may or may not have i= nstalled at that point=2E
If not, then yeah, you end up with #f=2E It m= akes no sense to set up
substitutions for commands, that aren't present = in the build
environment=2E

If you then later install them (one of them for example is a <= br> python module so likely wouldn't be installed through guix), the
p= ath in yadm is still `#f` so it would never find them=2E
Yo= u can and should install python packages through Guix=2E We here at
Gui= x Solutions=E2=84=A2 do not approve of the need for programming languagespecific package managers, especially not multiple ones within the sameproject=2E

Do I h= ave to also package everything it has a soft dependency on?
As long as it can reasonably be expected, that users will want it, yes=2E<= br>If the soft dependency is indeed completely optional, the software
wo= rks perfectly fine without it and few people will be negatively
impacted= by a minor feature missing, then it's fine to leave it as-is,
provided = that the missing dependency is itself free software=2E If there
is an o= ptional dependency on non-free software, mentions of that
software shoul= d be removed=2E

Regards,
Leo
<= /html> ------1TFWF4E09KZGMFB9XTE25HP6FDJQ0N--