• Bug#1101242: node-immutable-tuple: FTBFS: Exception during run: Referen

    From Santiago Vila@21:1/5 to All on Tue Mar 25 01:20:03 2025
    Package: src:node-immutable-tuple
    Version: 0.4.10-11
    Severity: serious
    Tags: ftbfs trixie sid

    Dear maintainer:

    During a rebuild of all packages in unstable, your package failed to build:

    --------------------------------------------------------------------------------
    [...]
    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
    debian/rules override_dh_auto_build
    make[1]: Entering directory '/<<PKGBUILDDIR>>'
    ./scripts/build.sh
    (!) You have passed an unrecognized option
    Unknown input options: sourcemap. Allowed options: acorn, acornInjectPlugins, cache, context, experimentalCacheExpiry, experimentalLogSideEffects, external, inlineDynamicImports, input, logLevel, makeAbsoluteExternalsRelative, manualChunks,
    maxParallelFileOps, maxParallelFileReads, moduleContext, onLog, onwarn, perf, plugins, preserveEntrySignatures, preserveModules, preserveSymlinks, shimMissingExports, strictDeprecations, treeshake, watch

    /<<PKGBUILDDIR>>/src/tuple.js → ../dist/tuple.js...
    created ../dist/tuple.js in 82ms
    (!) You have passed an unrecognized option
    Unknown input options: sourcemap. Allowed options: acorn, acornInjectPlugins, cache, context, experimentalCacheExpiry, experimentalLogSideEffects, external, inlineDynamicImports, input, logLevel, makeAbsoluteExternalsRelative, manualChunks,
    maxParallelFileOps, maxParallelFileReads, moduleContext, onLog, onwarn, perf, plugins, preserveEntrySignatures, preserveModules, preserveSymlinks, shimMissingExports, strictDeprecations, treeshake, watch

    /<<PKGBUILDDIR>>/src/tuple.js → ../dist/tuple.mjs...
    created ../dist/tuple.mjs in 80ms
    uglifyjs dist/tuple.js -o dist/tuple.min.js
    make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    dh_auto_test --buildsystem=nodejs
    mkdir -p node_modules
    ln -s ../debian/tests/test_modules/reify node_modules/reify
    ln -s ../. node_modules/immutable-tuple
    /bin/sh -ex debian/tests/pkg-js/test
    + set -e
    + rm -rf node_modules
    + cp -a debian/tests/test_modules node_modules
    + mocha --require ./node_modules/reify --full-trace --reporter spec test/tests.js
    Since Acorn 8.0.0, options.ecmaVersion is required.
    Defaulting to 2020, but this will stop working in the future.
    (node:84379) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///<<PKGBUILDDIR>>/test/tests.js is not specified and it doesn't parse as CommonJS.
    Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
    To eliminate this warning, add "type": "module" to /<<PKGBUILDDIR>>/package.json.
    (Use `node --trace-warnings ...` to show where the warning was created) [Object: null prototype] { parse: undefined, sourceType: undefined }

    Exception during run: ReferenceError: require is not defined in ES module scope, you can use import instead
    at Suite.<anonymous> (file:///<<PKGBUILDDIR>>/test/tests.js:211:5)
    at Object.create (/usr/share/nodejs/mocha/lib/interfaces/common.js:148:19)
    at context.describe.context.context (/usr/share/nodejs/mocha/lib/interfaces/bdd.js:42:27)
    at file:///<<PKGBUILDDIR>>/test/tests.js:65:1
    at ModuleJob.run (node:internal/modules/esm/module_job:263:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:540:24)
    at async formattedImport (/usr/share/nodejs/mocha/lib/nodejs/esm-utils.js:9:14)
    at async exports.requireOrImport (/usr/share/nodejs/mocha/lib/nodejs/esm-utils.js:42:28)
    at async exports.loadFilesAsync (/usr/share/nodejs/mocha/lib/nodejs/esm-utils.js:100:20)
    at async singleRun (/usr/share/nodejs/mocha/lib/cli/run-helpers.js:162:3)
    at async exports.handler (/usr/share/nodejs/mocha/lib/cli/run.js:375:5) dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1 make: *** [debian/rules:8: binary] Error 25
    dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 --------------------------------------------------------------------------------

    The above is just how the build ends and not necessarily the most relevant part.
    If required, the full build log is available here:

    https://people.debian.org/~sanvila/build-logs/202503/

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

    Thanks.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Sun Apr 6 18:20:02 2025
    Processing control commands:

    tag -1 pending
    Bug #1101242 [src:node-immutable-tuple] node-immutable-tuple: FTBFS: Exception during run: ReferenceError: require is not defined in ES module scope, you can use import instead
    Added tag(s) pending.

    --
    1101242: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1101242
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Yadd@21:1/5 to All on Sun Apr 6 18:20:02 2025
    Control: tag -1 pending

    Hello,

    Bug #1101242 in node-immutable-tuple reported by you has been fixed in the
    Git repository and is awaiting an upload. You can see the commit
    message below and you can check the diff of the fix at:

    https://salsa.debian.org/js-team/node-immutable-tuple/-/commit/4f3d11a287cedb207e29992b4ee4591a315eeb0c

    ------------------------------------------------------------------------
    Fix test files type

    Closes: #1101242 ------------------------------------------------------------------------

    (this message was generated automatically)
    --
    Greetings

    https://bugs.debian.org/1101242

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Sun Apr 6 18:40:02 2025
    This is a multi-part message in MIME format...

    Your message dated Sun, 06 Apr 2025 16:34:36 +0000
    with message-id <E1u1SxA-00EML2-J1@fasolo.debian.org>
    and subject line Bug#1101242: fixed in node-immutable-tuple 0.4.10-12
    has caused the Debian Bug report #1101242,
    regarding node-immutable-tuple: FTBFS: Exception during run: ReferenceError: require is not defined in ES module scope, you can use import instead
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org
    immediately.)


    --
    1101242: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1101242
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 25 Mar 2025 00:11:21 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-119.9 required=4.0 tests=BAYES_00,
    BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
    DKIM_VALID_AU,DKIM_VALID_EF,FROMDEVELOPER,HAS_PACKAGE,
    PP_MIME_FAKE_ASCII_TEXT,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_NONE,
    USER_IN_DKIM_WELCOMELIST,USER_IN_DKIM_WHITELIST,X_DEBBUGS_CC
    autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 90; hammy, 150; neutral, 202; spammy,
    0. spammytokens: hammytokens:0.000-+--trixie, 0.000-+--pkgbuilddir,
    0.000-+--PKGBUILDDIR, 0.000-+--sk:dh_auto, 0.000-+--H*F:U*sanvila Return-path: <sanvila@debian.org>
    Received: from mitropoulos.debian.org