From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KMW/L4wUZGP1ZAAAbAwnHQ (envelope-from ) for ; Thu, 03 Nov 2022 20:20:44 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id mHzVLowUZGNJfwAAG6o9tA (envelope-from ) for ; Thu, 03 Nov 2022 20:20:44 +0100 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 5E07611237 for ; Thu, 3 Nov 2022 20:20:44 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqfkZ-0003hp-Cq; Thu, 03 Nov 2022 15:19:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqfkV-0003eh-Pg for help-guix@gnu.org; Thu, 03 Nov 2022 15:19:36 -0400 Received: from koszko.org ([93.95.227.159]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqfkR-0004Qe-Se for help-guix@gnu.org; Thu, 03 Nov 2022 15:19:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=koszko.org; s=mail; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=HDtXj8sposKLE4nbvgc/NLTE2b/QWxQg5FRXN8HICMs=; b=pshpMNDu1NcO4SrsbgtsuPA2mm jVdYiN+NaSOW/U7x+WB4UVEEOOlmFNAuL7DfHKqAPfQEjxZJ4UckCmGvacDa1yO9N98a8zrJZpOXc fjfAlBiX1oytwu2W/109TQ6mkmLb78UtGZ6C5TAaAph9s3UxmDpNkwZGt0ajFRM3cwUB6czsj4l8S QoF9v8fIx2B13sfROdaFYf1K2FEM4XetehtDXjiTluX1uxYiEJVlx2i26DOav4Fr57xozYjIWI3F0 uTspsrw+1r2UXzMiDpOAitvJT+sKll/dUXyKmbkfXKERKkctW66pgwhuemSBxZPKAlYak3V2xiYCK 6EpytiLQJ1XFaBmlw30VSEvCEhV7iD493DLHRFL2R0J3LXMevTVw+CaisAMvB7/lxQ/L7zbSH5MxM /7lGwPcAWtcyOpg1wK4Rl0g94LkNo5WaHv/qdKUsJaKQdyAhIh1WaR5yM/KABQ9Ou6SladrOh8kAG 0hwaj31VHjhhJO/WDjQBElgC84a6PtSotCNNFGLtXlxgVel/TYIhJtlVyoZRO3coRUqr3i4z5mEvp VwuL+nlw2KcOi8pFA+PkphZXiJgBRaPSbrHMI9o1d4rDcWXrj+p6lS5zHM40tmaEJRy3z4BNxao1m a62z78wowNMxhyHlYAgPj/oHfwgyyHMmRm+EGATZw=; Received: from 77-252-46-244.static.ip.netia.com.pl ([77.252.46.244] helo=koszkonutek-tmp.pl.eu.org) by koszko.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oqfkE-0007Wy-0N; Thu, 03 Nov 2022 20:19:18 +0100 Date: Thu, 3 Nov 2022 20:19:15 +0100 To: =?UTF-8?B?U8OpYmFzdGllbg==?= Rey-Coyrehourcq Cc: zimoun , help-guix Subject: Re: Help packaging R Quarto Cli Message-ID: <20221103201915.7f6f1679@koszkonutek-tmp.pl.eu.org> In-Reply-To: <878rkztyny.fsf@univ-rouen.fr> References: <87ilk9xwtq.fsf@univ-rouen.fr> <87bkq1i1yt.fsf@gmail.com> <20221024204024.2c580b81@koszkonutek-tmp.pl.eu.org> <86czag2p1g.fsf@gmail.com> <20221025131709.36ac4915@koszkonutek-tmp.pl.eu.org> <87a65hyc78.fsf@univ-rouen.fr> <20221027115445.0655c84d@koszkonutek-tmp.pl.eu.org> <87a65fud5k.fsf@univ-rouen.fr> <20221028221738.3bf01294@koszkonutek-tmp.pl.eu.org> <878rkztyny.fsf@univ-rouen.fr> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/bIXNwmW.NfcxG9Um/SJfRj0"; protocol="application/pgp-signature"; micalg=pgp-sha256 Received-SPF: pass client-ip=93.95.227.159; envelope-from=koszko@koszko.org; helo=koszko.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_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Help-Guix" Reply-to: Wojtek Kosior From: Wojtek Kosior via Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667503244; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=HDtXj8sposKLE4nbvgc/NLTE2b/QWxQg5FRXN8HICMs=; b=Wj6NqqDWQ/F2jqju9sJgy/9x1qF3WLPY5gm+twoNT0LQAFc3ELRWR1SmozLFZsJLfBQv1U HgWFoiSJN3k2CYOj+iBDfBozL692HQPyN2jqYibBcTF2+dKzniLixUW0PWE7vReGeI603l nwYBZPYQt8ylcMjsNlbvma0WWT/PkMSVrPXzDZXjIlRK/bYcZqLO9BPVl2+VKi9zw5oS/B 1SK2hBikLWl/Qo8JiXfa0iSkr1TcKoDjOCEuI8qYLCPemv9D/pYjX0rziIvNSnFlp6JiQX rabGSlmsIHNat/3bZfhLkFJdlJDmzJrYAc/ROM6wMutCpgaUQeTOZ1p7lZa8Fw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667503244; a=rsa-sha256; cv=none; b=r3FZtV51DPVowCSUpWySadN6fqBhUAKdPuxE1IxaG/MWbgI3LjFmfs7EWUZY+KY7Jz4Tos puDB704L3uRgywqvcSZwDdPSH4DB54eIE7JONBG69eMkODMR9TsEgR77l9oq1qHCtWB+gY KOtazuQrA8KvoPTAHmtXXqqfOBpOgy2oPuDz5SO+0C548HgndEBa9T7OyCoegDRWrAexp3 ux+MyknK5Vdw5b+e5ZuQ45Hq+A9o5nprhWwLeeDRJD6AvQHbIJBDlGnLSR7djLEnsaH2XJ xBMeD2iFz/LhSqDQkRh4l0xg5ycuNli0xj4EGGJJWl2Z+D4zlJ55GZmx2p8lxw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=pshpMNDu; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.99 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=pshpMNDu; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5E07611237 X-Spam-Score: -4.99 X-Migadu-Scanner: scn0.migadu.com X-TUID: ea9+ak2Z8rI/ --Sig_/bIXNwmW.NfcxG9Um/SJfRj0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > > I think I almost understand your approach. Just a quick question - what > > Guix command are you using to try building? With this setup I=E2=80=99d= try > > something like > > > > guix shell -L ./export/ rust-deno > > =20 >=20 > Actually, from export folder i try : > i try *guix build -L . -f rust-deno-1.scm* I see in your repo that rust-deno-1.scm is a module file (i.e. it has "define-module" at the top), so you're not expected to use it with "-f". Instead, you can rely on Guix loading it (because it is inside the directory passed via "-L") and just do guix build -L . rust-deno Where "rust-deno" is the same as in the package's "name" property. > But the module are not loaded, i don=E2=80=99t understand well the way gu= ix load module it seems. >=20 > Into rust-deno-1.scm i put : >=20 > (define-module (rust-deno-1 rust-deno-1) > #:use-module (rust-cache-control-0.2 rust-cache-control-0.2) >=20 > and into ./rust-cache-control-0.2/rust-cache-control-0.2.scm i put : >=20 > (define-module (rust-cache-control-0.2 rust-cache-control-0.2) >=20 > But any of this pass using the *guix build* command : >=20 > `no code for module (rust-cache-control-0.2 rust-cache-control-0.2)' Perhaps modules can't contain periods ('.')? I'm not sure - too little experience with scheme. I'd try giving them names without version Wojtek -- (sig_start) website: https://koszko.org/koszko.html PGP: https://koszko.org/key.gpg fingerprint: E972 7060 E3C5 637C 8A4F 4B42 4BC5 221C 5A79 FD1A Meet Krak=C3=B3w saints! #12: saint Jadwiga Andegawe=C5=84ska Poznaj =C5=9Bwi=C4=99tych krakowskich! #12: =C5=9Bwi=C4=99ta Jadwiga Andeg= awe=C5=84ska https://pl.wikipedia.org/wiki/Jadwiga_Andegawe=C5=84ska -- (sig_end) On Fri, 28 Oct 2022 23:32:10 +0200 S=C3=A9bastien Rey-Coyrehourcq wr= ote: > Wojtek Kosior writes: >=20 > > I think I almost understand your approach. Just a quick question - what > > Guix command are you using to try building? With this setup I=E2=80=99d= try > > something like > > > > guix shell -L ./export/ rust-deno > > =20 >=20 > Actually, from export folder i try : > i try *guix build -L . -f rust-deno-1.scm* >=20 > But the module are not loaded, i don=E2=80=99t understand well the way gu= ix load module it seems. >=20 > Into rust-deno-1.scm i put : >=20 > (define-module (rust-deno-1 rust-deno-1) > #:use-module (rust-cache-control-0.2 rust-cache-control-0.2) >=20 > and into ./rust-cache-control-0.2/rust-cache-control-0.2.scm i put : >=20 > (define-module (rust-cache-control-0.2 rust-cache-control-0.2) >=20 > But any of this pass using the *guix build* command : >=20 > `no code for module (rust-cache-control-0.2 rust-cache-control-0.2)' >=20 >=20 > > and then I=E2=80=99d put > > > > (define-module (rust-ecdsa-0.14 rust-ecdsa-0.14) > > #:use-module (rust-serdect-0.1 rust-serdect-0.1)) > > > > inside `./export/rust-ecdsa-0.14/rust-ecdsa-0.14.scm`. That=E2=80=99s h= ow guile > > modules work - a module is identified by a list of symbols that match > > module file=E2=80=99s path (starting from a guile=E2=80=99s modules roo= t directory, in > > this case the one passed via the `-L` option). > > =20 > >> If that works locally i suppose i could sent a patch with all the > >> rust modules needed to build Deno ? =20 > > > > A patch would then expect the module(s) to be put under gnu/packages in > > the Guix repo and then their `#:use-module` lines would need to be > > modified accordingly=E2=80=A6 So you=E2=80=99d need to make these small= adaptations > > first. > > > > Honestly, I haven=E2=80=99t been submitting patches before and I don=E2= =80=99t know > > exactly what module structure Guix devs expect. Perhaps someone else > > may help you here. > > > > Anyway, it seems right now you just have the result of running > > `guix import` and you have not yet built any of those recipes? I don=E2= =80=99t > > want to be pessimistic but here=E2=80=99s a warning - there=E2=80=99ll = surely be some > > fixes you=E2=80=99ll have to make. Be prepared to dive into scheme :) > > =20 >=20 > I first put all the things into deno.scm, with thousand of lines, that co= mpile a little=E2=80=A6 and i changing my mind finally =E2=80=A6 > imho the module way is perhaps less discouraging : Resolving bug modules = by modules=E2=80=A6 >=20 > I push some corrections to my python script to generate good module name = when i found. >=20 > Yes, i probably need some guile diving =E2=80=A6 >=20 > Best, > Sr-C. >=20 > > Best, > > Wojtek > > > > =E2=80=93 (sig_start) > > website: > > PGP: > > fingerprint: E972 7060 E3C5 637C 8A4F 4B42 4BC5 221C 5A79 FD1A > > > > Meet Krak=C3=B3w saints! #16: saint Jan z Dukli > > Poznaj =C5=9Bwi=C4=99tych krakowskich! #16: =C5=9Bwi=C4=99ty Jan z Duk= li > > > > =E2=80=93 (sig_end) > > > > > > On Fri, 28 Oct 2022 18:19:32 +0200 > > S=C3=A9bastien Rey-Coyrehourcq wrote: > > =20 > >> Hi, > >> > >> Wojtek Kosior writes: > >> =20 > >> >> Hi, > >> >> > >> >> I continue the packaging using guix import crate, this is a slow pr= ocess, but everything goes well at this time. > >> >> > >> >> My file deno.scm contain 6000 line, with all packages imported, thi= s is a problem because i need to remove duplicate. > >> >> The best way was probably to export all `(define public method =E2= =80=A6 )` into a folder with corresponding library.scm. =20 > >> > > >> > Do you have wour work-in-progress in some public repo? This would ma= ke > >> > us easier to understand your setup and would also allow more ppl to > >> > cooperate (although unfortunately Idk if there=E2=80=99s anyone else= who=E2=80=99s > >> > particularly interested in deno at this particular moment). > >> > =20 > >> > >> Here we are : > >> > >> This is a wip python script that build an `export/=E2=80=99 directory = containing all rust module needed to compile deno (i suppose) > >> > >> The deno script is localized at the root of `export/=E2=80=99 folder > >> > >> I build the modules folders, but know i don=E2=80=99t know how to comp= ile all this folders correctly using correct path =E2=80=A6 > >> Any guile help appreciated to do that ! > >> > >> For example, the module *./export/rust-ecdsa-0.14/rust-ecdsa-0.14.scm*= need a module localized to *./export/rust-serdect-0.1/rust-serdect-0.1.scm* > >> > >> I simply try *#:use-module (../rust-serdect-01)* in *rust-ecdsa-0.14* = define-module but this probably not the good way. > >> =20 > >> >> I need to create a module by package do you thing ? and after that = import all the package using `use-modules` ? =20 > >> > > >> > From what I=E2=80=99ve seen, Guix package definitions are usually gr= ouped into > >> > modules thematically. Although until you actually try upstreaming yo= ur > >> > work, you=E2=80=99re not bound by any reqs and you can structure the > >> > definitions in a way that=E2=80=99s comfortable for you. > >> > > >> > Also, are you adding your package by modifying the actual Guix sourc= es? > >> > Or by creating modules outsite of these? Perhaps this was already > >> > metioned but I don=E2=80=99t have previous emails on the top=E2=80=A6 > >> > =20 > >> > >> If that works locally i suppose i could sent a patch with all the rust= modules needed to build Deno ? > >> > >> Best ! > >> SR. > >> =20 > >> > Good luck :) > >> > Wojtek > >> > > >> > =E2=80=93 (sig_start) > >> > website: > >> > PGP: > >> > fingerprint: E972 7060 E3C5 637C 8A4F 4B42 4BC5 221C 5A79 FD1A > >> > > >> > Meet Krak=C3=B3w saints! #33: blessed Antonin Bajewski > >> > Poznaj =C5=9Bwi=C4=99tych krakowskich! #33: b=C5=82ogos=C5=82awiony= Antonin Bajewski > >> > > >> > =E2=80=93 (sig_end) > >> > > >> > > >> > On Thu, 27 Oct 2022 09:05:52 +0200 > >> > S=C3=A9bastien Rey-Coyrehourcq wrote: > >> > =20 > >> >> Hi, > >> >> > >> >> I continue the packaging using guix import crate, this is a slow pr= ocess, but everything goes well at this time. > >> >> > >> >> My file deno.scm contain 6000 line, with all packages imported, thi= s is a problem because i need to remove duplicate. > >> >> The best way was probably to export all `(define public method =E2= =80=A6 )` into a folder with corresponding library.scm. > >> >> > >> >> I need to create a module by package do you thing ? and after that = import all the package using `use-modules` ? > >> >> > >> >> Best > >> >> > >> >> Wojtek Kosior writes: > >> >> > >> >> =20 > >> >> >> > Out of curiosity - what are the problems between Guix and JS? = When I > >> >> >> > read this my first suspicion was that maybe TS is a self-hosted > >> >> >> > language and cannot be bootstrapped. However, when I ran `guix= search > >> >> >> > typescript`, it revealed the existence of some TS->JS compiler= called > >> >> >> > =E2=80=99rust-swc=E2=80=99. So I guess problems lie somewhere = else, right? =20 > >> >> >> > >> >> >> Nothing per se. Note that =C2=ABTypeScript is a strongly typed = programming > >> >> >> language that builds on JavaScript=C2=BB and from my understandi= ng (maybe I > >> >> >> am wrong?), it is hard to package Javascript for Guix because the > >> >> >> Javascript ecosystem is messy. Janneke provides some explanatio= ns [1] > >> >> >> and I am not convinced the situation have changed since then. M= aybe I > >> >> >> am wrong=E2=80=A6 > >> >> >> > >> >> >> 1: =20 > >> >> > > >> >> > A few months ago (I think) I did run some code to actually check = what > >> >> > the dependency tree of the protocol buffers JS library (from npm)= is. > >> >> > The tree of runtime deps wasn=E2=80=99t horribly big. The tree of > >> >> > recursively-computed dev deps was, on the other hand, as bad as > >> >> > described by Janneke or even worse=E2=80=A6 However, It seems in = most cases > >> >> > many of those packages designated as dev deps are not strictly ne= eded > >> >> > for actually building stuff. Some are just test dependencies. Oth= ers > >> >> > were perhaps put there because developers understood =E2=80=9Cdev= dependencies=E2=80=9D > >> >> > differently from how packagers understand it=E2=80=A6 > >> >> > > >> >> > Anyway, it seems the only way to check what the situation really = is is > >> >> > to actually try packaging something. I=E2=80=99m confident it wil= l be way > >> >> > easier than it seems :) > >> >> > > >> >> > Luckily for S=C3=A9bastien, it seems quarto-cli - although writte= n mostly in > >> >> > JS/TS - has no NPM deps. Or at least I don=E2=80=99t see any=E2= =80=A6 > >> >> > > >> >> > Wojtek > >> >> > > >> >> > =E2=80=93 (sig_start) > >> >> > website: > >> >> > PGP: > >> >> > fingerprint: E972 7060 E3C5 637C 8A4F 4B42 4BC5 221C 5A79 FD1A > >> >> > > >> >> > Meet Krak=C3=B3w saints! #15: saint Jan Pawe=C5=82 II > >> >> > Poznaj =C5=9Bwi=C4=99tych krakowskich! #15: =C5=9Bwi=C4=99ty Jan= Pawe=C5=82 II > >> >> > > >> >> > =E2=80=93 (sig_end) > >> >> > > >> >> > > >> >> > On Tue, 25 Oct 2022 12:08:59 +0200 > >> >> > zimoun wrote: > >> >> > =20 > >> >> >> Hi, > >> >> >> > >> >> >> On Mon, 24 Oct 2022 at 20:40, Wojtek Kosior via wrote: > >> >> >> =20 > >> >> >> > Out of curiosity - what are the problems between Guix and JS? = When I > >> >> >> > read this my first suspicion was that maybe TS is a self-hosted > >> >> >> > language and cannot be bootstrapped. However, when I ran `guix= search > >> >> >> > typescript`, it revealed the existence of some TS->JS compiler= called > >> >> >> > =E2=80=99rust-swc=E2=80=99. So I guess problems lie somewhere = else, right? =20 > >> >> >> > >> >> >> Nothing per se. Note that =C2=ABTypeScript is a strongly typed = programming > >> >> >> language that builds on JavaScript=C2=BB and from my understandi= ng (maybe I > >> >> >> am wrong?), it is hard to package Javascript for Guix because the > >> >> >> Javascript ecosystem is messy. Janneke provides some explanatio= ns [1] > >> >> >> and I am not convinced the situation have changed since then. M= aybe I > >> >> >> am wrong=E2=80=A6 > >> >> >> > >> >> >> 1: > >> >> >> > >> >> >> Cheers, > >> >> >> simon > >> >> >> =20 > >> >> > > >> >> > =20 > >> > > >> > =20 > > > > =20 --Sig_/bIXNwmW.NfcxG9Um/SJfRj0 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQTpcnBg48VjfIpPS0JLxSIcWnn9GgUCY2QUMwAKCRBLxSIcWnn9 GlQBAQCCa8o2ksOitwr3ojE6sMLrKurJ1KbQrp5QgfUDTL6C7gEAind9pVGvaqFH GUvl40+JLgY92JCzKusqOzl9N+uDUQo= =2Plj -----END PGP SIGNATURE----- --Sig_/bIXNwmW.NfcxG9Um/SJfRj0--