[Pkg-javascript-devel] Bug#1004658: Help to compile a wasm package

Jan Niehusmann jan at gondor.com
Mon Jan 31 17:01:58 GMT 2022


On Mon, Jan 31, 2022 at 05:29:23PM +0100, Geert Stappers wrote:
> At https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1004658#35
> is adviced:
> 
>   source-map-mappings should be packaged separately,
>   and then build-depended on from package node-source-map.

Would this really solve the issue?

The artifact needed by node-source-map is a WASM binary of
source_map_mappings_wasm_api. What kind of deb package would provide
that file?

The description of source-map-mappings says:
"This is intended to be compiled to WebAssembly and eventually used from
the mozilla/source-map library. This is not a general purpose source
maps library."

It seems to be a integral part of node-source-map, and only
distributed separately because it's written in a different language.

So I wonder if a debian package of source-map-mappings would be useful
at all.

Is this a good reason to include it in the debian source package of
node-source-map?

> Rust packages / crates needs to packaged for Debian.
> 
> > > >   * libc-0.2.116
> With https://packages.debian.org/search?suite=stable&section=all&arch=any&searchon=all&keywords=libc+rust
> did I found `librust-libc-dev`.
> > > >   * rand-0.4.6
> There is Debian package `librust-rand+libc-dev`.

source-map-mappings depends on version 0.4.x of rand, but debian
contains 0.7.3. However it seems like those are sufficiently compatible:
Just updating the dependency in source-map-mappings/Cargo.toml seems to
work. (Compiles successfully - I did not test if the result actually works.)

After updating the version of rand, the version of librust-libc-dev
available in debian should also match the required dependencies.

> > > >   * vlq-0.5.1
> That one seems to be missing.

Right, but at least it doesn't have further dependencies, so it should
be reasonably easy to package.

Jan



More information about the Pkg-javascript-devel mailing list