[Pkg-mozext-maintainers] Bug#1030186: enigmail: FTBFS (Error: Cannot find module 'chalk')

Andreas Henriksson andreas at fatal.se
Sat Feb 11 18:08:25 GMT 2023


On Wed, Feb 01, 2023 at 12:32:44AM +0100, Santiago Vila wrote:
> Package: src:enigmail
> Version: 2:2.2.4-0.3
> Severity: serious
> Tags: ftbfs
> 
> Dear maintainer:
> 
> I've just noticed that enigmail currently fails to build in bookworm:
> 
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>    dh_auto_test -i
>         make -j1 test "TESTSUITEFLAGS=-j1 --verbose" VERBOSE=1
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> static_analysis/eslint package
> There was a problem loading formatter: /usr/share/nodejs/eslint/lib/cli-engine/formatters/stylish
> Error: Cannot find module 'chalk'
[...]

/usr/share/nodejs/eslint/lib/cli-engine/formatters/stylish is part of
eslint package.

The eslint package (build-depends and) *recommends* node-chalk.

This changelog entry seems relevant:

eslint (1.3.1~dfsg-3) experimental; urgency=medium

  * Fix install executable.
  * Add patch cherry-picked upstream to lazy-load rules.
    Relax to recommend (not depend on)
    node-chalk node-inquirer node-strip-ansi node-text-table.
    Fix explicitly depend on node-escape-string-regexp
    (previously pulled in by node-chalk).
  
 -- Jonas Smedegaard <dr at jones.dk>  Sat, 12 Oct 2019 15:19:55 +0200

I'm not able to determine if either enigmail should dep on node-chalk
itself because it uses supposedly optional components of eslint
or if there's a mistake in eslint which should have node-chalk
as a depends rather than recommends....

Hope someone else can figure this out.

Regards,
Andreas Henriksson



More information about the Pkg-mozext-maintainers mailing list