[Pkg-javascript-devel] Bug#1011817: node-rollup-plugin-replace: FTBFS: dh_auto_test: error: cd ./legacy && sh -ex ../debian/nodejs/legacy/test returned exit code 1
Lucas Nussbaum
lucas at debian.org
Thu May 26 20:15:23 BST 2022
Source: node-rollup-plugin-replace
Version: 3.0.0+ds+~2.2.0-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20220525 ftbfs-bookworm
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> # Build legacy module
> dh_auto_build --buildsystem=nodejs
> Found debian/nodejs/legacy/build
> cd ./legacy && sh -ex ../debian/nodejs/legacy/build
> + rollup -c
> [36m
> [1msrc/index.js[22m → [1mdist/rollup-plugin-replace.cjs.js, dist/rollup-plugin-replace.es.js[22m...[39m
> [1m[33m(!) Entry module "src/index.js" is implicitly using "default" export mode, which means for CommonJS output that its default export is assigned to "module.exports". For many tools, such CommonJS output will not be interchangeable with the original ES module. If this is intended, explicitly set "output.exports" to either "auto" or "default", otherwise you might want to consider changing the signature of "src/index.js" to use named exports only.[39m[22m
> [90mhttps://rollupjs.org/guide/en/#outputexports[39m
> [1msrc/index.js[22m
> [32mcreated [1mdist/rollup-plugin-replace.cjs.js, dist/rollup-plugin-replace.es.js[22m in [1m38ms[22m[39m
> # Build @rollup/plugin-replace
> cd packages/replace; if rollup -c; then \
> echo "build succeeds"; \
> else \
> echo "build failed, trying with legacy rollup plugins"; \
> rollup -c ../../debian/rollup-legacy.config.js; \
> fi
> [36m
> [1msrc/index.js[22m → [1mdist/rollup-plugin-replace.cjs.js, dist/rollup-plugin-replace.es.js[22m...[39m
> [32mcreated [1mdist/rollup-plugin-replace.cjs.js, dist/rollup-plugin-replace.es.js[22m in [1m46ms[22m[39m
> build succeeds
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> dh_auto_test --buildsystem=nodejs
> mkdir -p node_modules/\@rollup
> ln -s ../../packages/replace node_modules/\@rollup/plugin-replace
> cd ./legacy && sh -ex ../debian/nodejs/legacy/test
> + mocha
>
> Error: Cannot find module 'locate-character'
> Require stack:
> - /<<PKGBUILDDIR>>/legacy/test/test.js
> at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
> at Function.Module._load (node:internal/modules/cjs/loader:778:27)
> at Module.require (node:internal/modules/cjs/loader:1005:19)
> at require (node:internal/modules/cjs/helpers:102:18)
> at Object.<anonymous> (/<<PKGBUILDDIR>>/legacy/test/test.js:9:24)
> at Module._compile (node:internal/modules/cjs/loader:1103:14)
> at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
> at Module.load (node:internal/modules/cjs/loader:981:32)
> at Function.Module._load (node:internal/modules/cjs/loader:822:12)
> at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:161:29)
> at ModuleJob.run (node:internal/modules/esm/module_job:197:25)
> at processTicksAndRejections (node:internal/process/task_queues:96:5)
> at async Promise.all (index 0)
> at async ESMLoader.import (node:internal/modules/esm/loader:337:24)
> at async importModuleDynamicallyWrapper (node:internal/vm/module:437:15)
> at async formattedImport (/usr/share/nodejs/mocha/lib/nodejs/esm-utils.js:7:14)
> at async Object.exports.requireOrImport (/usr/share/nodejs/mocha/lib/nodejs/esm-utils.js:48:32)
> at async Object.exports.loadFilesAsync (/usr/share/nodejs/mocha/lib/nodejs/esm-utils.js:103:20)
> at async singleRun (/usr/share/nodejs/mocha/lib/cli/run-helpers.js:125:3)
> at async Object.exports.handler (/usr/share/nodejs/mocha/lib/cli/run.js:374:5)
> dh_auto_test: error: cd ./legacy && sh -ex ../debian/nodejs/legacy/test returned exit code 1
The full build log is available from:
http://qa-logs.debian.net/2022/05/25/node-rollup-plugin-replace_3.0.0+ds+~2.2.0-1_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220525;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220525&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
More information about the Pkg-javascript-devel
mailing list