help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help packaging R Quarto Cli


From: Wojtek Kosior
Subject: Re: Help packaging R Quarto Cli
Date: Mon, 20 Mar 2023 19:03:17 +0100

> Hi,
> 
> Some news about *Quarto* Packaging :

Hi!

It's amazing to still see you pushing this forward ^^

> ## Packaging Quarto
> 
> After running ./configure.sh i get the next step from conda recipe 
> (https://github.com/quarto-dev/quarto-cli/tree/main/package/conda-recipe/build.sh).
> 
> Conda recipe generate a standalone bundle (a ./quarto (sh) and a 
> ./quarto.js) by using this shell script : 
> https://github.com/quarto-dev/quarto-cli/blob/main/package/src/quarto-bld
> 
> As you could see in the code, quarto-bld run Deno with some options, one 
> refer to some .json, that contain lot of thing to download into 
> /vendors. But it seems this part is not activated if the 
> QUARTO_VENDOR_BINARIES env is set to false.
> 
> (A) / quarto-bld update-html-dependencies
> (B) / quarto-bld prepare-dist
> 
> The A step call this thing 
> (https://github.com/quarto-dev/quarto-cli/blob/main/package/src/common/update-html-dependencies.ts)
>  
> that download and patch some file into the project.
> 
> So, A is a problem, and i need to patch this typescript file to give 
> directly the file without downloading it from internet.
> 
> *How could i create an archive that contain already these different 
> files to my quarto build ? *
> 
> *Do you think building a git repo with all of them is a good idea ?* 
> Even if these files are linked to multiple sources : https://unpkg.com/; 
> https://github.com/ ; 
> https://github.com/mozilla/pdf.js/releases/download/ ; 
> https://github.com/twbs/icons/releases/download/

What I'd do is make each of those into a distinct package or even
better — obtain the remote files by creating and then ungexp'ing an
(origin) object for each of them.

To clarify what I mean, let's look at how the `gnome-recipes` packaging
resolves the problem of pulling multiple sources for the build[1].

After so much work on Quatro you're probably already such a guile guru
that no further explanation is needed here :)

> If i download these file by running manually (A) in /tmp after a fail 
> build, the (B) command build a working "./quarto --help" and "./quarto 
> check" command, so end is near \o/

Great! Good luck again :)

Wojtek


[1] 
https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/gnome.scm?id=2336d5f57a4422d9c97db85e1c9a47763f23ad3c#n843

Attachment: pgpd3zu1_nYcl.pgp
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]