[Pkg-javascript-devel] Bug#1123408: node-autoprefixer: 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:41 GMT 2025


Package: src:node-autoprefixer
Version: 10.4.21.0+dfsg1+~cs24.8.25-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-autoprefixer, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --with nodejs --package=node-autoprefixer
   dh_auto_clean --buildsystem=nodejs -O--package=node-autoprefixer
/!\ ./package.json not found
Found debian/nodejs/additional_components
Adding component(s): build
	rm -rf autoprefixer/node_modules/.cache autoprefixer/.nyc_output
	rm -rf build/node_modules/.cache build/.nyc_output
	rm -rf fractionjs/node_modules/.cache fractionjs/.nyc_output
	rm -rf types-autoprefixer/node_modules/.cache types-autoprefixer/.nyc_output
Found debian/nodejs/additional_components
Adding component(s): build
rm autoprefixer/node_modules/.cache
rm build/node_modules/.cache
rm fractionjs/node_modules/.cache
rm types-autoprefixer/node_modules/.cache
rm autoprefixer/node_modules/.cache
rm ./node_modules/.cache
Found debian/nodejs/additional_components
Adding component(s): build
unlink node_modules/build
unlink node_modules/fraction.js
unlink node_modules/@types/autoprefixer
   dh_autoreconf_clean -O--package=node-autoprefixer
   dh_clean -O--package=node-autoprefixer
dh clean --buildsystem=ruby --with ruby --package=ruby-autoprefixer-rails
   dh_auto_clean --buildsystem=nodejs -O--buildsystem=ruby -O--package=ruby-autoprefixer-rails
	dh_ruby --clean
W: XS-Ruby-Versions is deprecated, and will be ignored
   dh_autoreconf_clean -O--buildsystem=ruby -O--package=ruby-autoprefixer-rails
   dh_clean -O--buildsystem=ruby -O--package=ruby-autoprefixer-rails
 debian/rules binary
dh binary --with nodejs --package=node-autoprefixer
   dh_update_autotools_config -O--package=node-autoprefixer
   dh_autoreconf -O--package=node-autoprefixer
   dh_auto_configure --buildsystem=nodejs -O--package=node-autoprefixer
/!\ ./package.json not found
Found debian/nodejs/additional_components
Adding component(s): build
Found debian/nodejs/additional_components
Adding component(s): build
Link node_modules/build -> ../build
Link node_modules/fraction.js -> ../fractionjs
Link node_modules/@types/autoprefixer -> ../../types-autoprefixer
   dh_auto_build --buildsystem=nodejs -O--package=node-autoprefixer
/!\ ./package.json not found
Found debian/nodejs/additional_components
Adding component(s): build
No build command found, searching known files
No build command found, searching known files
Found debian/nodejs/autoprefixer/build
	cd ./autoprefixer && sh -ex ../debian/nodejs/autoprefixer/build
+ cd ../build
+ mkdir -p node_modules
+ ln -s ../../autoprefixer node_modules
+ rollup -c

autoprefixer.js → ../vendor/autoprefixer.js...
(!) Plugin replace: @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.
created ../vendor/autoprefixer.js in 3.4s
   dh_auto_test --buildsystem=nodejs -O--package=node-autoprefixer
/!\ ./package.json not found
Found debian/nodejs/additional_components
Adding component(s): build
	ln -s ../debian/tests/test_modules/nanospy node_modules/nanospy
	ln -s ../autoprefixer node_modules/autoprefixer
	/bin/sh -ex debian/tests/pkg-js/test
+ test  != 
+ cd autoprefixer
+ uvu test \.test\.js$ --bail
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:14: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------



More information about the Pkg-javascript-devel mailing list