diff options
-rw-r--r-- | debian/patches/debian/0003-no-relative-imports.patch | 35 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 36 insertions, 0 deletions
diff --git a/debian/patches/debian/0003-no-relative-imports.patch b/debian/patches/debian/0003-no-relative-imports.patch new file mode 100644 index 0000000..89e4ea5 --- /dev/null +++ b/debian/patches/debian/0003-no-relative-imports.patch @@ -0,0 +1,35 @@ +Author: Daniel Baumann <daniel.baumann@progress-linux.org> +Description: Using absolute imports rather than now not supported relative ones to fix FTBFS. + +diff -Naurp bootstrap-html.orig/build/build-plugins.mjs bootstrap-html/build/build-plugins.mjs +--- bootstrap-html.orig/build/build-plugins.mjs ++++ bootstrap-html/build/build-plugins.mjs +@@ -8,9 +8,9 @@ + + import path from 'node:path' + import { fileURLToPath } from 'node:url' +-import { babel } from '@rollup/plugin-babel' +-import globby from 'globby' +-import { rollup } from 'rollup' ++import { babel } from "file:///usr/share/nodejs/@rollup/plugin-babel/dist/cjs/index.js" ++import globby from "file:///usr/share/nodejs/globby/index.cjs" ++import { rollup } from "file:///usr/share/nodejs/rollup/dist/rollup.js" + import banner from './banner.mjs' + + const __filename = fileURLToPath(import.meta.url) +diff -Naurp bootstrap-html.orig/build/rollup.config.mjs bootstrap-html/build/rollup.config.mjs +--- bootstrap-html.orig/build/rollup.config.mjs ++++ bootstrap-html/build/rollup.config.mjs +@@ -1,9 +1,9 @@ + import path from 'node:path' + import process from 'node:process' + import { fileURLToPath } from 'node:url' +-import { babel } from '@rollup/plugin-babel' +-import { nodeResolve } from '@rollup/plugin-node-resolve' +-import replace from '@rollup/plugin-replace' ++import { babel } from "file:///usr/share/nodejs/@rollup/plugin-babel/dist/cjs/index.js" ++import { nodeResolve } from "file:///usr/share/nodejs/@rollup/plugin-node-resolve/dist/cjs/index.js" ++import replace from "file:///usr/share/nodejs/@rollup/plugin-replace/dist/cjs/index.js" + import banner from './banner.mjs' + + const __dirname = path.dirname(fileURLToPath(import.meta.url)) diff --git a/debian/patches/series b/debian/patches/series index b98c713..9621fa9 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ debian/0001-do-not-update-copyright-year.patch debian/0002-dont-check-for-caniuse-lite-update.patch +debian/0003-no-relative-imports.patch |