[Pkg-javascript-devel] which recently changed dependency broke node-terser? See bug#950666

Xavier yadd at debian.org
Tue Feb 4 20:32:17 GMT 2020


Le 04/02/2020 à 21:02, Xavier a écrit :
> Le 04/02/2020 à 17:52, Xavier a écrit :
>>
>>
>> Le 4 février 2020 17:06:44 GMT+01:00, Jonas Smedegaard <dr at jones.dk> a écrit :
>>> Hi,
>>>
>>> node-terser has not been changed for 3 months.
>>>
>>> Today it was reported broken: https://bugs.debian.org/950666
>>>
>>> Smells like the thing broken is some recent change in its dependency 
>>> chain rather than the node-terser package itself.
>>>
>>> Anyone recognize a recently uploaded module among the ones below?
>>>
>>> Mocha, perhaps?
>>>
>>> @Xavier, you mention in changelog that mocha had "successful tests" - 
>>> did those tests include rebuilding node-terser?
>>
>> I didn't test all rebuild but fixed all autopkgtest failures due to mocha changes (all easy to fix btw). I'll take a look at terser tomorrow morning.
> 
> Hi,
> 
> build fails also, this seems not related to mocha:
> 
> [WARNING] This document format requires a nonempty <title> element.
>   Please specify either 'title' or 'pagetitle' in the metadata,
>   e.g. by using --metadata pagetitle="..." on the command line.
>   Falling back to 'README'
> help2man: can't get `--help' info from debian-man/uglifyjs.terser
> Try `--no-discard-stderr' if option outputs to stderr
> 
> main.js → dist/bundle.js...
> internal/modules/cjs/loader.js:638
>     throw err;
>     ^
> 
> Error: Cannot find module
> '/<<PKGBUILDDIR>>/debian-man/../dist/bundle.min.js'
>       at Function.Module._resolveFilename
> (internal/modules/cjs/loader.js:636:15)
>       at Function.Module._load (internal/modules/cjs/loader.js:562:25)
>       at Module.require (internal/modules/cjs/loader.js:692:17)
>       at require (internal/modules/cjs/helpers.js:25:18)
>       at Object.<anonymous>
> (/<<PKGBUILDDIR>>/debian-man/uglifyjs.terser:17:16)
>       at Module._compile (internal/modules/cjs/loader.js:778:30)
>       at Object.Module._extensions..js
> (internal/modules/cjs/loader.js:789:10)
>       at Module.load (internal/modules/cjs/loader.js:653:32)
>       at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
>       at Function.Module._load (internal/modules/cjs/loader.js:585:3)
>   make[1]: *** [debian/rules:33: debian-man/uglifyjs.terser.1] Error 1
>   make[1]: *** Waiting for unfinished jobs....

However autopkgtest succeeds locally using .deb downloaded from unstable
and an updated schroot, so nothing related to mocha ;-)

  $ autopkgtest -B ../uglifyjs.terser_4.1.2-4_all.deb \
                -- schroot unstable-amd64-sbuild
  [...]
  autopkgtest [21:26:55]: @@@@@@@@@@@@@@@@@@@@ summary
  command1             PASS (superficial)
  command2             PASS (superficial)
  command3             PASS (superficial)


It looks like dist/bundle.min.js is no more generated during build




More information about the Pkg-javascript-devel mailing list