Blog: 2023-12-28

From razwiki
Jump to navigation Jump to search

Back at it packaging deno. This tutorial gave me the following helpful command:

   $ dch --create -v 1.0-1 --package hithere 

Always happy to have a way to write out bespoke file formats automatically.

Ok now I have found, maybe it will make the deb automatically? Let's try

Sweet, after installing this dependency: sudo apt install -y protobuf-compiler

I ran this command and got this positive result:

deno $ cargo deb -p deno
   Compiling ring v0.17.7
   Compiling deno v1.39.1 (/home/razzi/forks/deno/cli)
    Finished release [optimized] target(s) in 18m 11s
deno $ ls
Cargo.lock    cli/     runtime/             test_ffi/   tools/
Cargo.toml  debian/  rust-toolchain.toml  test_napi/  bench_util/  ext/     target/              test_util/
deno $ ls -lahtr target/debian/
total 111M
drwxr-xr-x 4 razzi razzi 4.0K Dec 28 07:31 ../
-rwxr-xr-x 1 razzi razzi  85M Dec 28 08:02 deno.tmp0-stripped*
-rw-r--r-- 1 razzi razzi  26M Dec 28 08:02 deno_1.39.1-1_amd64.deb

Ok looking into it a bit the description is a bit odd:

fish $ apt show deno
Package: deno
Version: 1.39.1-1
Status: install ok installed
Priority: optional
Maintainer: the Deno authors
Installed-Size: 88.9 MB
Depends: libc6 (>= 2.38)
Download-Size: unknown
APT-Manual-Installed: yes
APT-Sources: /var/lib/dpkg/status
Description: Provides the deno executable
 # Deno CLI Crate
 This provides the actual deno executable and the user-facing APIs.
 The deno crate uses the deno_core to provide the executable.

At the very least, nice to edit it to have a nicer description. Also make sure Apt-Sources works maybe Download-Size too.

--- (aside) Interesting (new shiny) ---

Ok there is progress towards deno as apt:

Looks like some people are already thinking about this. I should get in touch with the debian javascript team

Finally made the comment

More relevant discussion from rust users perspective:

Work-Needing and Prospective Packages: