From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qJY6IhE5XGPEJwEAbAwnHQ (envelope-from ) for ; Fri, 28 Oct 2022 22:18:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id oAhEIhE5XGNbDgEA9RJhRA (envelope-from ) for ; Fri, 28 Oct 2022 22:18:25 +0200 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 07D20AA01 for ; Fri, 28 Oct 2022 22:18:25 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooVno-00064i-QB; Fri, 28 Oct 2022 16:18:04 -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 1ooVnh-00064T-Bt for help-guix@gnu.org; Fri, 28 Oct 2022 16:17:58 -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 1ooVne-00048S-Ij for help-guix@gnu.org; Fri, 28 Oct 2022 16:17:57 -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=yg9o6SSehQYTSqPf7f4q/HtjQMhTMSK6YK5xFyk3ZZc=; b=TkzpZkdtnq/0vwPOGxHlQhcTzo pBaoSIOSrVYConJjVgHdDkluZElMRczD2+iArz8FXJ7GTYgbcEGgrf5H9rCPmHgYjBQ4ubVf7xySl gPtI9rHY+OoHdfGEhMh8QhC2+uC0zLJBTh7vZzeYWlbetEz3VXSbPfsUueg18kpyQNzzPvEe4DjCn drXKDB9QPY9ID3UKnYRaUab9PVyEqsgeOHEqjF9lW6YfzNvBY9fCZnzoaMnOc6U9Yn2Lb9ViTDcJk bM/QXwfE75yx0ZPzmpOQOGGwvzUP4QrMnrlT3HikmnP5cS/hZzWuM6gXseptimp7m54nRe38Wj50P jDWefunMAghghXvcfd+6yzkiK57PVM1zmdq3TDoTap8ZMKo3SXRp+okO5/EVGT8Vlx32hPX0pUa9t oCVgJYF4z61ND/b3H/NEbT8GE2dhdj5XzVB0oIeitS5B+b0TlOgm6e/XQo35XwWWqUi98yYf6giy3 PzSyV2o2yli5gfeisdifaGgNY6kAn7upQyJkwq791kRAjJwW3llVDmRKSa/L6EJUxlaX4hmCaBtPq omiwY8Z7CN8Hox/7hXUvsPpZza74HUlkXxaj22/nO+KORYsVD4SRueu+JSgS6H/iOCWfvxPvXOOwd D8Wc3OhLB8M2SHHB8NxEn6SRcidD6ulYo7rIk6hpU=; Received: from 77-252-46-225.static.ip.netia.com.pl ([77.252.46.225] 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 1ooVnR-000276-MA; Fri, 28 Oct 2022 22:17:41 +0200 Date: Fri, 28 Oct 2022 22:17:38 +0200 To: =?UTF-8?B?U8OpYmFzdGllbg==?= Rey-Coyrehourcq Cc: zimoun , help-guix Subject: Re: Help packaging R Quarto Cli Message-ID: <20221028221738.3bf01294@koszkonutek-tmp.pl.eu.org> In-Reply-To: <87a65fud5k.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> 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_/Q+bFUyBvS_TjExm5ek4j0/_"; 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=1666988305; 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=yg9o6SSehQYTSqPf7f4q/HtjQMhTMSK6YK5xFyk3ZZc=; b=dsG4d+oou+YJ2t+xDDpWQJofN6dhj03MUbBYTwY4QV7rmTJ57qLN2Y0abzDTp6SbEgXbCe L3lNszOSFdTDqVN2aiE43ipJld/KJ+1xPLS+AixbeA3lU4fjXyhiaTLfQwpxZEe6LvTSLY KJnRgOW6D6a27wpza2LQuyactKF5qQpnBtR/gFfI4+AaW6hkKftTpn86zSR1/VBzg2jqzy BWhgN66GYOdYuhUAodnRucVaaK3CscoHkP0zVisjbOdfCtXxdMHWsbp2Y+zzp0nz2LFsHk kBoqlAH8H2f3H3YempJ56giszcpAvWGratVbhe1aBRArILBgQFoGtK7FwJvi9A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666988305; a=rsa-sha256; cv=none; b=s7kSTGCYGnIRdr+vn+yKLNkO+62bwSz46sun7C2bdKmMlLSD3+6OhqTOfdLdoGvh66RCRO IGqidI8a84pjB36u6DG04jm54lFp0sON7WQnZKLfw1jpMlLABidI902uoNa4OmqLSeDMs4 PRy5bUvwD572nwivWHxaUl6WP95OcKfnw2B3ATuhFAHclxOiA6Nt6yGb+4LcONtp/3D1cK Q88x0fm/ENluN8Majr5Nu5YVbWWXTMDKUzQ2H0J7byHQUC9+9PTy/+UjDiV+FJr8jM8fbN 2JtdzFk4GVjDG+D1C2bOON8Q1332MATIHdiVK9dmMS5ChpIrk881k8qNWjSyFQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=TkzpZkdt; 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: -6.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=TkzpZkdt; 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: 07D20AA01 X-Spam-Score: -6.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: cZ3kHn6qJz/e --Sig_/Q+bFUyBvS_TjExm5ek4j0/_ 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'd try something like guix shell -L ./export/ rust-deno and then I'd 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's how guile modules work - a module is identified by a list of symbols that match module file's path (starting from a guile's modules root directory, in this case the one passed via the `-L` option). > If that works locally i suppose i could sent a patch with all the > rust modules needed to build Deno ? 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... So you'd need to make these small adaptations first. Honestly, I haven't been submitting patches before and I don't 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't want to be pessimistic but here's a warning - there'll surely be some fixes you'll have to make. Be prepared to dive into scheme :) Best, 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! #16: saint Jan z Dukli Poznaj =C5=9Bwi=C4=99tych krakowskich! #16: =C5=9Bwi=C4=99ty Jan z Dukli https://pl.wikipedia.org/wiki/Jan_z_Dukli -- (sig_end) On Fri, 28 Oct 2022 18:19:32 +0200 S=C3=A9bastien Rey-Coyrehourcq wr= ote: > Hi, >=20 > Wojtek Kosior writes: >=20 > >> Hi, > >> > >> I continue the packaging using guix import crate, this is a slow proce= ss, but everything goes well at this time. > >> > >> My file deno.scm contain 6000 line, with all packages imported, this i= s 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 make > > us easier to understand your setup and would also allow more ppl to > > cooperate (although unfortunately Idk if there=E2=80=99s anyone else wh= o=E2=80=99s > > particularly interested in deno at this particular moment). > > =20 >=20 > Here we are : >=20 > This is a wip python script that build an `export/' directory containing = all rust module needed to compile deno (i suppose) >=20 > The deno script is localized at the root of `export/' folder >=20 > I build the modules folders, but know i don=E2=80=99t know how to compile= all this folders correctly using correct path =E2=80=A6 > Any guile help appreciated to do that ! >=20 > For example, the module *./export/rust-ecdsa-0.14/rust-ecdsa-0.14.scm* ne= ed a module localized to *./export/rust-serdect-0.1/rust-serdect-0.1.scm* >=20 > I simply try *#:use-module (../rust-serdect-01)* in *rust-ecdsa-0.14* def= ine-module but this probably not the good way. >=20 > >> I need to create a module by package do you thing ? and after that imp= ort all the package using `use-modules` ? =20 > > > > From what I=E2=80=99ve seen, Guix package definitions are usually group= ed into > > modules thematically. Although until you actually try upstreaming your > > 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 sources? > > 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 >=20 > If that works locally i suppose i could sent a patch with all the rust mo= dules needed to build Deno ? >=20 > 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 An= tonin 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 proce= ss, but everything goes well at this time. > >> > >> My file deno.scm contain 6000 line, with all packages imported, this i= s 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 imp= ort all the package using `use-modules` ? > >> > >> Best > >> > >> Wojtek Kosior writes: > >> > >> =20 > >> >> > Out of curiosity - what are the problems between Guix and JS? Whe= n I > >> >> > read this my first suspicion was that maybe TS is a self-hosted > >> >> > language and cannot be bootstrapped. However, when I ran `guix se= arch > >> >> > typescript`, it revealed the existence of some TS->JS compiler ca= lled > >> >> > =E2=80=99rust-swc=E2=80=99. So I guess problems lie somewhere els= e, right? =20 > >> >> > >> >> Nothing per se. Note that =C2=ABTypeScript is a strongly typed pro= gramming > >> >> language that builds on JavaScript=C2=BB and from my understanding = (maybe I > >> >> am wrong?), it is hard to package Javascript for Guix because the > >> >> Javascript ecosystem is messy. Janneke provides some explanations = [1] > >> >> and I am not convinced the situation have changed since then. Mayb= e 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 mos= t cases > >> > many of those packages designated as dev deps are not strictly needed > >> > for actually building stuff. Some are just test dependencies. Others > >> > were perhaps put there because developers understood =E2=80=9Cdev de= pendencies=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 will b= e way > >> > easier than it seems :) > >> > > >> > Luckily for S=C3=A9bastien, it seems quarto-cli - although written m= ostly 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 Pa= we=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? Whe= n I > >> >> > read this my first suspicion was that maybe TS is a self-hosted > >> >> > language and cannot be bootstrapped. However, when I ran `guix se= arch > >> >> > typescript`, it revealed the existence of some TS->JS compiler ca= lled > >> >> > =E2=80=99rust-swc=E2=80=99. So I guess problems lie somewhere els= e, right? =20 > >> >> > >> >> Nothing per se. Note that =C2=ABTypeScript is a strongly typed pro= gramming > >> >> language that builds on JavaScript=C2=BB and from my understanding = (maybe I > >> >> am wrong?), it is hard to package Javascript for Guix because the > >> >> Javascript ecosystem is messy. Janneke provides some explanations = [1] > >> >> and I am not convinced the situation have changed since then. Mayb= e I > >> >> am wrong=E2=80=A6 > >> >> > >> >> 1: > >> >> > >> >> Cheers, > >> >> simon > >> >> =20 > >> > > >> > =20 > > > > =20 --Sig_/Q+bFUyBvS_TjExm5ek4j0/_ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQTpcnBg48VjfIpPS0JLxSIcWnn9GgUCY1w44gAKCRBLxSIcWnn9 Gg2uAP9ayqpd3UjZonU3SB/DH5jDPauLlyohhNctN4Poc8mclAD7BnC72QcB+erc PoiSFwPKg07ymY0vAIpnGggSGM+g2wc= =01s7 -----END PGP SIGNATURE----- --Sig_/Q+bFUyBvS_TjExm5ek4j0/_--