[Pkg-javascript-devel] Bug#1123412: node-caniuse-lite: FTBFS: dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1
Santiago Vila
sanvila at debian.org
Tue Dec 16 20:27:47 GMT 2025
Package: src:node-caniuse-lite
Version: 1.0.30001752+dfsg+~1.0.5-1
Severity: serious
Tags: ftbfs forky sid
Dear maintainer:
During a rebuild of all packages in unstable, this package failed to build.
Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:
https://people.debian.org/~sanvila/build-logs/202512/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:node-caniuse-lite, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
debian/rules clean
dh clean
dh_auto_clean --buildsystem=nodejs
rm -rf ./node_modules/.cache ./.nyc_output
rm -rf types-caniuse-lite/node_modules/.cache types-caniuse-lite/.nyc_output
rm ./node_modules/.cache
unlink ./node_modules/@mdn/browser-compat-data
Trying to remove ./node_modules/@mdn
rm ./node_modules/caniuse-db
rm types-caniuse-lite/node_modules/.cache
rm ./node_modules/.cache
unlink ./node_modules/@mdn/browser-compat-data
Trying to remove ./node_modules/@mdn
rm ./node_modules/caniuse-db
unlink node_modules/@types/caniuse-lite
dh_clean
debian/rules binary
dh binary
dh_update_autotools_config
dh_autoreconf
dh_auto_configure --buildsystem=nodejs
Link ./node_modules/@mdn/browser-compat-data -> /usr/share/nodejs/@mdn/browser-compat-data
Copy /usr/share/nodejs/caniuse-db -> ./node_modules/
Link node_modules/@types/caniuse-lite -> ../../types-caniuse-lite
debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
node copy-mdn.js
rm -Rf data
node src/packer/index.js
Create folders
Browsers - Mangle application name
Browsers - Mangle version naming & agents usage
Features - Mangle support data
Regional - Mangle browser usage data
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_test --buildsystem=nodejs
ln -s ../. node_modules/caniuse-lite
/bin/sh -ex debian/tests/pkg-js/test
+ test !=
+ uvu . .test.js
ReferenceError: require is not defined in ES module scope, you can use import instead
This file is being treated as an ES module because it has a '.js' file extension and '/usr/share/nodejs/uvu/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
at file:///usr/share/nodejs/uvu/dist/index.js:1:13
at ModuleJobSync.runSync (node:internal/modules/esm/module_job:454:37)
at ModuleLoader.importSyncForRequire (node:internal/modules/esm/loader:435:47)
at loadESMFromCJS (node:internal/modules/cjs/loader:1537:24)
at Module._compile (node:internal/modules/cjs/loader:1688:5)
at Module._extensions..js (node:internal/modules/cjs/loader:1839:10)
at Module.load (node:internal/modules/cjs/loader:1441:32)
at Module._load (node:internal/modules/cjs/loader:1263:12)
at TracingChannel.traceSync (node:diagnostics_channel:328:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1
make: *** [debian/rules:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
More information about the Pkg-javascript-devel
mailing list