From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Blog: Guix packaging tutorial Date: Sat, 29 Sep 2018 18:28:34 +0200 Message-ID: <87wor4xo7h.fsf@gnu.org> References: <87in397jsd.fsf@ambrevar.xyz> <20180913191151.GA1865@jurong> <87woro5ocf.fsf@ambrevar.xyz> <20180914113302.elqrk3tvdkln2cde@thebird.nl> <87o9cmj0fc.fsf@ambrevar.xyz> <87mus6iypf.fsf@ambrevar.xyz> <87lg7n3vjh.fsf@gnu.org> <87wor6269r.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49366) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6I6w-0006v9-3I for guix-devel@gnu.org; Sat, 29 Sep 2018 12:28:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g6I6v-0001aS-5L for guix-devel@gnu.org; Sat, 29 Sep 2018 12:28:54 -0400 In-Reply-To: <87wor6269r.fsf@ambrevar.xyz> (Pierre Neidhardt's message of "Thu, 27 Sep 2018 19:34:56 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Pierre Neidhardt Cc: guix-devel , guix-blog@gnu.org Hello! Pierre Neidhardt skribis: >> s/conventionally.*/typically used for read-only global variables/ > > But aren't they generated in scope? I think we should mention this, or e= lse > new users try to access them out of scope. I=E2=80=99m not sure what you mean by =E2=80=9Cgenerated in scope=E2=80=9D. The =E2=80=98%=E2=80=99 convention is just a convention (and Andy and I rea= lized a while back we interpreted the convention differently :-)) so we shouldn=E2=80=99t= draw too much from that. Regarding =E2=80=98%build-inputs=E2=80=99 and =E2=80=98%outputs=E2=80=99, I= think it=E2=80=99s enough to say that these are global variables. Whether they are in scope depends on whether a local variable shadows them. Does that make sense? >> It doesn=E2=80=99t make much sense to propagate a tarball, does it? > > Not really, but I just wanted to use "propagated input". We need a better > example. Any idea? The typical example are C, Python, or Guile libraries that propagate libraries they depend on. Another option is to skip propagated inputs altogether. Thoughts? >> > The astute reader may have noticed the quasi-quote and comma syntax in= the >> > argument field. Indeed, the build code in the package declaration sho= uld not be >> > evaluated on the client side, but only when passed to the Guix daemon.= This >> > mechanism of passing code around two running processes is called [[htt= ps://arxiv.org/abs/1709.00833][code staging]]. >> > See [[https://www.gnu.org/software/guix/manual/en/html_node/G_002dExpr= essions.html][the "G-Expressions" chapter]] from the manual. >> >> Though precisely package definitions don=E2=80=99t use gexps yet=E2=80= =A6 Not sure if >> we should mention it; maybe it=E2=80=99s outside the scope of this tutor= ial. > > Hmmm... I think it's important to mention why code is not evaluated. May= be this > rather obscure paragraph could be simplified? > I'll remove the mention to G-exp, it does not belong here indeed. I think it=E2=80=99s good to mention code staging and the fact that there= =E2=80=99s =E2=80=9Cbuild-side code=E2=80=9D, but the G-Expressions chapter says more = than this, which could be confusing. >> > See https://guix.info/contact/ for the mailing lists, IRC, etc. >> >> For now please use gnu.org/software/guix URLs. > > Ok for this one, but I'd also like to link to the channels section in the > manual, but it's not on gnu.org. Or is it? Not yet. So yeah, you can use guix.info for this one if you need it. > Last but not least, what should I do next? Should we wait for more revie= ws? > Should I go ahead and push to master? I suppose you can push to guix-artwork.git master; Ricardo? Please try to use tags already used by the other articles. When would you like it to be on line? Thanks, Ludo=E2=80=99.