Debian Patches

Status for ttyd/1.7.7-7

Patch Description Author Forwarded Bugs Origin Last update
debian/0001-build-without-sass-loader.patch Workaround missing build-deps on sass-loader with node-sass. Due to webpack plugin sass-loader is missing in Debian. We compile the
the .css files from .scss with `node-sass` commands in debian/rules.
.
And then replace .scss imports with .css imports in TSX files so that
we can drop missing sass-loader build-deps from webpack.config.js.
.
This patch should goes away with the `node-sass` commands in
debian/rules once we have webpack sass-loader plugin available in
Debian.

diff -Naurp ttyd.orig/html/src/components/modal/index.tsx ttyd/html/src/components/modal/index.tsx
Andrew Lee (李健秋) <ajqlee@debian.org>, with the help of an LLM. no
debian/0002-build-without-webpack-plugins.patch disable missing webpack plugins Due to eslint-webpack-plugin and css-minimizer-webpack-plugin are
missing in Debian. We disable them in the buildsystem.
.
Also tell webpack where to resolve node modules in Debian.

diff -Naurp ttyd.orig/html/webpack.config.js ttyd/html/webpack.config.js
Andrew Lee (李健秋) <ajqlee@debian.org>, with the help of an LLM. no
debian/0003-update-tsconfig.patch Adjust tsconfig.json to drop missing build-deps and set path This patch allows tsc and ts-loader to locate required node types in
Debian without depending on node-gts.

diff -Naurp ttyd.orig/html/tsconfig.json ttyd/html/tsconfig.json
Andrew Lee (李健秋) <ajqlee@debian.org>, with the help of an LLM. no
debian/0004-build-without-gulp.patch Add pure nodejs script to build src/html.h. Introduce html/build.js using stdlib zlib and fs to generate
src/html.h directly from webpack output.
.
This bypasses gulp and missing build-deps on it's plugins (gulp-gzip,
gulp-inline-source, through2) and without needing to modify or remove
gulpfile.js file.
.
This patch replace upstream's `node gulpfile.js` build-command with
`node html/build.js` command in debian/rules.

diff -Naurp ttyd.orig/html/build.js ttyd/html/build.js
Andrew Lee (李健秋) <ajqlee@debian.org>, with the help of an LLM. no

All known versions for source package 'ttyd'

Links