[From nobody Wed Oct  7 08:27:16 2026
Received: (at submit) by bugs.debian.org; 5 Oct 2026 20:08:17 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-121.4 required=4.0 tests=ALL_TRUSTED,BAYES_00,
 BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
 DKIM_VALID_AU,DKIM_VALID_EF,FROMDEVELOPER,HAS_PACKAGE,SPF_HELO_PASS,
 SPF_PASS,USER_IN_DKIM_WELCOMELIST,X_DEBBUGS_CC autolearn=ham
 autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 18; hammy, 150; neutral, 91; spammy,
 0. spammytokens: hammytokens:0.000-+--HTo:N*Debian, 0.000-+--forky,
 0.000-+--H*F:U*sanvila, 0.000-+--H*rp:U*sanvila, 0.000-+--H*r:sanvila
Return-path: &lt;sanvila@debian.org&gt;
Received: from mailly.debian.org ([2001:41b8:202:deb:6564:a62:52c3:4b72]:46032)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;sanvila@debian.org&gt;) id 1xDoyv-00F2BY-2g
 for submit@bugs.debian.org; Mon, 05 Oct 2026 20:08:17 +0000
Received: via submission
 from C=NA, ST=NA, L=Ankh Morpork, O=Debian SMTP, OU=Debian SMTP CA,
 CN=paradis.debian.org, EMAIL=hostmaster@paradis.debian.org (verified)
 by mailly.debian.org with esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;sanvila@debian.org&gt;) id 1xDoyu-004e4D-1j
 for submit@bugs.debian.org; Mon, 05 Oct 2026 20:08:16 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; 
 s=smtpauto.paradis;
 h=Date:Message-Id:Subject:To:From:Reply-To:Cc:
 MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID:
 Content-Description:In-Reply-To:References;
 bh=1Sn6xu0PYWx2PTmClXFL09ZXfxtxsnwjFbdNEvbZT/4=; b=a7kIaP4kNsHPBxILlQBduHIHWj
 78VuJE6RQk4UxUHJ/k/WgLcIDQQncHh+v6HJW9fgOOXI8LQZK7E56fSrSIQGj4xmW6y3pOvKNirWH
 8q+G8PnR6Okp7GobC15rJs2p5R1jhP1TvrSBfI/auK+dYBgky+1rDQYJlRKQ2nzo/atrQFSsr5+jN
 t2dhLQ4AXq4TR45DQc6rx8IaI/nnq1sDXx/IYbRkLVUw4V+Y3SfkV28hSbiFRmn2K+BOTxN3cpyOT
 O9mowil+C+G0dT5rHqcfcB7HodtSqIBj80BWuXWL6QIsyRSQEZE8bFvF+l2GdpHf4aJCv77fDXLIh
 OdjMCCpA==;
Received: from sanvila by paradis.debian.org with local (Exim 4.96)
 (envelope-from &lt;sanvila@debian.org&gt;) id 1xDoyt-004Hnq-0r
 for submit@bugs.debian.org; Mon, 05 Oct 2026 20:08:15 +0000
From: Santiago Vila &lt;sanvila@debian.org&gt;
To: Debian BTS &lt;submit@bugs.debian.org&gt;
Subject: node-preact: FTBFS: TypeError: Mocha is not a constructor
X-Debbugs-Cc: sanvila@debian.org
Message-Id: &lt;E1xDoyt-004Hnq-0r@paradis.debian.org&gt;
Date: Mon, 05 Oct 2026 20:08:15 +0000
Delivered-To: submit@bugs.debian.org

Package: src:node-preact
Version: 10.29.8-2
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/202610/

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-preact, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
+ sort
/tmp/tmp.vDLTdkrfTj:6
const mocha = new Mocha();
              ^

TypeError: Mocha is not a constructor
    at Object.&lt;anonymous&gt; (/tmp/tmp.vDLTdkrfTj:6:15)
    at Module._compile (node:internal/modules/cjs/loader:1929:14)
    at Object.&lt;anonymous&gt; (node:internal/modules/cjs/loader:2060:10)
    at Module.load (node:internal/modules/cjs/loader:1651:32)
    at Module._load (node:internal/modules/cjs/loader:1443:12)
    at wrapModuleLoad (node:internal/modules/cjs/loader:261:19)
    at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)
    at node:internal/main/run_main_module:33:47

Node.js v24.21.0
+ rm -f /tmp/tmp.cf4qvrxBYA /tmp/tmp.vDLTdkrfTj
dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 123
make: *** [debian/rules:5: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------
]