Skip to content

Commit

Permalink
feat(24.04): Add nodejs slice (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
Linostar authored Feb 7, 2024
1 parent a8808a7 commit afadfc2
Show file tree
Hide file tree
Showing 12 changed files with 151 additions and 0 deletions.
8 changes: 8 additions & 0 deletions slices/libatomic1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package: libatomic1

slices:
libs:
essential:
- libc6_libs
contents:
/usr/lib/*-linux-*/libatomic.so.1*:
10 changes: 10 additions & 0 deletions slices/libbrotli1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package: libbrotli1

slices:
libs:
essential:
- libc6_libs
contents:
/usr/lib/*-linux-*/libbrotlicommon.so.1*:
/usr/lib/*-linux-*/libbrotlidec.so.1*:
/usr/lib/*-linux-*/libbrotlienc.so.1*:
8 changes: 8 additions & 0 deletions slices/libc-ares2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package: libc-ares2

slices:
libs:
essential:
- libc6_libs
contents:
/usr/lib/*-linux-*/libcares.so.2*:
8 changes: 8 additions & 0 deletions slices/libnghttp2-14.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package: libnghttp2-14

slices:
libs:
essential:
- libc6_libs
contents:
/usr/lib/*-linux-*/libnghttp2.so.14*:
23 changes: 23 additions & 0 deletions slices/libnode108.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package: libnode108

slices:
libs:
essential:
# The chisel tool does not support per-architecture packages
# libatomic1 is only required on mips* and riscv64
# - libatomic1_libs
- libbrotli1_libs
- libc-ares2_libs
- libc6_libs
- libgcc-s1_libs
- libicu72_libs
- libnghttp2-14_libs
- libssl3_libs
- libstdc++6_libs
- libuv1_libs
- node-acorn_libs
- node-cjs-module-lexer_libs
- node-undici_libs
- zlib1g_libs
contents:
/usr/lib/*-linux-*/libnode.so.108:
8 changes: 8 additions & 0 deletions slices/libuv1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package: libuv1

slices:
libs:
essential:
- libc6_libs
contents:
/usr/lib/*-linux-*/libuv.so.1*:
37 changes: 37 additions & 0 deletions slices/node-acorn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package: node-acorn

slices:
libs:
essential:
- node-xtend_libs
contents:
# basically avoiding all the .map files (line tables) and unittest drivers
/usr/share/nodejs/acorn-bigint/index.js:
/usr/share/nodejs/acorn-bigint/package.json:
/usr/share/nodejs/acorn-class-fields/index.js:
/usr/share/nodejs/acorn-class-fields/package.json:
/usr/share/nodejs/acorn-dynamic-import/**:
/usr/share/nodejs/acorn-export-ns-from/index.js:
/usr/share/nodejs/acorn-export-ns-from/package.json:
/usr/share/nodejs/acorn-globals/**:
/usr/share/nodejs/acorn-import-assertions/**:
/usr/share/nodejs/acorn-import-meta/index.js:
/usr/share/nodejs/acorn-import-meta/package.json:
/usr/share/nodejs/acorn-jsx/**:
/usr/share/nodejs/acorn-loose/**:
/usr/share/nodejs/acorn-node/**:
/usr/share/nodejs/acorn-numeric-separator/**.js:
/usr/share/nodejs/acorn-numeric-separator/dist/*.mjs:
/usr/share/nodejs/acorn-numeric-separator/package.json:
/usr/share/nodejs/acorn-private-class-elements/**:
/usr/share/nodejs/acorn-private-methods/**.js:
/usr/share/nodejs/acorn-private-methods/dist/*.mjs:
/usr/share/nodejs/acorn-private-methods/package.json:
/usr/share/nodejs/acorn-static-class-features/index.js:
/usr/share/nodejs/acorn-static-class-features/package.json:
/usr/share/nodejs/acorn-walk/dist/*.js:
/usr/share/nodejs/acorn-walk/dist/*.mjs:
/usr/share/nodejs/acorn-walk/package.json:
/usr/share/nodejs/acorn/dist/acorn.js:
/usr/share/nodejs/acorn/dist/acorn.mjs:
/usr/share/nodejs/acorn/package.json:
8 changes: 8 additions & 0 deletions slices/node-busboy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package: node-busboy

slices:
libs:
contents:
/usr/share/nodejs/busboy/lib/**:
/usr/share/nodejs/busboy/package.json:
/usr/share/nodejs/streamsearch/**:
8 changes: 8 additions & 0 deletions slices/node-cjs-module-lexer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package: node-cjs-module-lexer

slices:
libs:
contents:
/usr/share/nodejs/cjs-module-lexer/*.js:
/usr/share/nodejs/cjs-module-lexer/*.json:
/usr/share/nodejs/cjs-module-lexer/dist/**:
13 changes: 13 additions & 0 deletions slices/node-undici.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package: node-undici

slices:
libs:
essential:
- node-busboy_libs
contents:
/usr/share/nodejs/binary-search/*.js:
/usr/share/nodejs/undici/index-fetch.js:
/usr/share/nodejs/undici/index.js:
/usr/share/nodejs/undici/lib/**.js:
/usr/share/nodejs/undici/package.json:
/usr/share/nodejs/undici/undici-fetch.js:
6 changes: 6 additions & 0 deletions slices/node-xtend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package: node-xtend

slices:
libs:
contents:
/usr/share/nodejs/xtend/**:
14 changes: 14 additions & 0 deletions slices/nodejs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package: nodejs

slices:
bins:
essential:
- libc6_libs
# libatomic1_libs is a depndency of libnode108_libs that's required only on
# mips* and riscv64, so uncomment its line from libnode108.yaml if you are
# targetting any of those architectures
- libnode108_libs
contents:
/usr/bin/js: {symlink: /usr/bin/nodejs}
/usr/bin/node:
/usr/bin/nodejs:

0 comments on commit afadfc2

Please sign in to comment.