Bug#1122448: [Pkg-javascript-devel] Bug#1122448: node-wikibase-cli: FTBFS: Exception during run: Error: Cannot find module 'chalk'

2025-12-19 Thread Santiago Vila
On Fri, Dec 19, 2025 at 03:49:02PM +0200, Andrius Merkys wrote:
> Hi Santiago,
> 
> On 2025-12-19 13:07, Santiago Vila wrote:
> > An autoremoval warning has been triggered for this package
> > because of this bug.
> > 
> > I've checked that adding "node-chalk" to build-depends,
> > the problem goes away.
> > 
> > Does it help if I make a team upload with such change?
> > (Or maybe there is another solution?)
> 
> Yes, go ahead with the upload.

Ok, I will also remove  from node-commander because (maybe as
a result of the new nodejs), the package FTBFS again with nocheck
build profile.

Thanks a lot.



Bug#1122448: [Pkg-javascript-devel] Bug#1122448: node-wikibase-cli: FTBFS: Exception during run: Error: Cannot find module 'chalk'

2025-12-19 Thread Andrius Merkys

Hi Santiago,

On 2025-12-19 13:07, Santiago Vila wrote:

An autoremoval warning has been triggered for this package
because of this bug.

I've checked that adding "node-chalk" to build-depends,
the problem goes away.

Does it help if I make a team upload with such change?
(Or maybe there is another solution?)


Yes, go ahead with the upload.


I'd like to know why this is necessary now but not before.
I suspect changes in "nodejs" where some things were
given for free and now you have to use them explicitly.


One hypothesis might be that node-chalk is a transitive dependency from 
some package which misses it, or maybe has it as Suggests.


I sort of dropped ball on node-wikibase-* packages waiting for more 
spare time. Maybe next year.


Best wishes,
Andrius



Bug#1122448: node-wikibase-cli: FTBFS: Exception during run: Error: Cannot find module 'chalk'

2025-12-19 Thread Santiago Vila
Hello.

An autoremoval warning has been triggered for this package
because of this bug.

I've checked that adding "node-chalk" to build-depends,
the problem goes away.

Does it help if I make a team upload with such change?
(Or maybe there is another solution?)

I'd like to know why this is necessary now but not before.
I suspect changes in "nodejs" where some things were
given for free and now you have to use them explicitly.

Thanks.



Bug#1122448: node-wikibase-cli: FTBFS: Exception during run: Error: Cannot find module 'chalk'

2025-12-10 Thread Santiago Vila
Package: src:node-wikibase-cli
Version: 15.15.4-6
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-wikibase-cli, 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 ./node_modules/.cache
rm ./node_modules/.cache
   dh_clean
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure --buildsystem=nodejs
   dh_auto_build --buildsystem=nodejs
No build command found, searching known files
   dh_auto_test --buildsystem=nodejs
mkdir -p node_modules
ln -s ../. node_modules/wikibase-cli
/bin/sh -ex debian/tests/pkg-js/test
+ http_proxy=127.0.0.1 https_proxy=127.0.0.1 mocha --exit test/general.js 
test/wb-aliases.js test/wb-claims.js test/wb-config.js test/wb-convert.js 
test/wb-create-entity.js test/wb-data.js test/wb-description.js 
test/wb-generate-template.js test/wb-hub.js test/wb-id.js test/wb-label.js 
test/wb-lang.js test/wb-lemma.js test/wb-open.js test/wb-query.js 
test/wb-revisions.js test/wb-search.js test/wb-sparql.js test/wb-summary.js

 Exception during run: Error: Cannot find module 'chalk'
Require stack:
- /<>/test/lib/utils.js
- /<>/test/general.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1383:15)
at defaultResolveImpl (node:internal/modules/cjs/loader:1025:19)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1030:22)
at Module._load (node:internal/modules/cjs/loader:1192:37)
at TracingChannel.traceSync (node:diagnostics_channel:328:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
at Module.require (node:internal/modules/cjs/loader:1463:12)
at require (node:internal/modules/helpers:147:16)
at Object. (/<>/test/lib/utils.js:1:20)
at Module._compile (node:internal/modules/cjs/loader:1706:14)
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)
at Module.require (node:internal/modules/cjs/loader:1463:12)
at require (node:internal/modules/helpers:147:16)
at Object. (/<>/test/general.js:2:23)
at Module._compile (node:internal/modules/cjs/loader:1706:14)
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)
at cjsLoader (node:internal/modules/esm/translators:309:5)
at ModuleWrap. (node:internal/modules/esm/translators:202:7)
at ModuleJob.run (node:internal/modules/esm/module_job:343:25)
at async onImport.tracePromise.__proto__ 
(node:internal/modules/esm/loader:665:26)
at async formattedImport 
(/usr/share/nodejs/mocha/lib/nodejs/esm-utils.js:10:14)
at async Object.requireModule [as requireOrImport] 
(/usr/share/nodejs/mocha/lib/nodejs/esm-utils.js:102:30)
at async exports.loadFilesAsync 
(/usr/share/nodejs/mocha/lib/nodejs/esm-utils.js:137:20)
at async singleRun (/usr/share/nodejs/mocha/lib/cli/run-helpers.js:168:3)
at async exports.handler (/usr/share/nodejs/mocha/lib/cli/run.js:379:5) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
'/<>/test/lib/utils.js',
'/<>/test/general.js'
  ]
}
dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1
make: *** [debian/rules:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2