• Bug#1067269: node-react-toastify: FTBFS: make[1]: *** [debian/rules:27:

    From Lucas Nussbaum@21:1/5 to All on Wed Mar 20 22:10:01 2024
    Source: node-react-toastify
    Version: 9.1.2+~1.2.1-3
    Severity: serious
    Justification: FTBFS
    Tags: trixie sid ftbfs
    User: lucas@debian.org
    Usertags: ftbfs-20240319 ftbfs-trixie

    Hi,

    During a rebuild of all packages in sid, your package failed to build
    on amd64.


    Relevant part (hopefully):
    make[1]: Entering directory '/<<PKGBUILDDIR>>'
    dh_auto_build --buildsystem=nodejs
    Found debian/nodejs/clsx/build
    cd ./clsx && sh -ex ../debian/nodejs/clsx/build
    + pkgjs-pjson . main
    + MAIN=dist/clsx.js
    + pkgjs-pjson . module
    + ES=dist/clsx.m.js
    + pkgjs-pjson . unpkg
    + UNPKG=dist/clsx.min.js
    + rollup -p @rollup/plugin-commonjs -o dist/cjs.js -f cjs src/index.js

    src/index.js → dist/cjs.js...
    (!) Mixing named and default exports https://rollupjs.org/configuration-options/#output-exports
    The following entry modules are using named and default exports together: src/index.js

    Consumers of your bundle will have to use chunk.default to access their default export, which may not be what you want. Use `output.exports: "named"` to disable this warning.
    created dist/cjs.js in 68ms
    + grep -v ^export dist/cjs.js
    + echo module.exports = clsx;
    + echo module.exports.clsx = clsx;
    + rm -f dist/cjs.js
    + terser -o dist/clsx.min.js dist/clsx.js
    + cp src/index.js dist/clsx.m.js
    dh_auto_build: warning: Max loop command exceed, aborting
    dh_auto_build: warning: Max loop command exceed, aborting
    dh_auto_build: warning: Max loop command exceed, aborting
    dh_auto_build: warning: Max loop command exceed, aborting
    rollup -p @rollup/plugin-babel -p rollup-plugin-typescript -p rollup-plugin-terser --external react,clsx -f es -o ./dist/react-toastify.esm.mjs src/index.ts

    src/index.ts → ./dist/react-toastify.esm.mjs...
    babelHelpers: 'bundled' option was used by default. It is recommended to configure this option explicitly, read more here: https://github.com/rollup/plugins/tree/master/packages/babel#babelhelpers
    created ./dist/react-toastify.esm.mjs in 1.4s
    rollup -p @rollup/plugin-babel -p rollup-plugin-typescript -p rollup-plugin-terser --external react,clsx -f cjs -o ./dist/react-toastify.js src/index.ts

    src/index.ts → ./dist/react-toastify.js...
    babelHelpers: 'bundled' option was used by default. It is recommended to configure this option explicitly, read more here: https://github.com/rollup/plugins/tree/master/packages/babel#babelhelpers
    created ./dist/react-toastify.js in 1.4s
    tsc -d
    rollup -p @rollup/plugin-babel -p rollup-plugin-typescript -p rollup-plugin-terser --external react,clsx -f es -o ./addons/use-notification-center/index.esm.mjs src/addons/use-notification-center/index.ts

    src/addons/use-notification-center/index.ts → ./addons/use-notification-center/index.esm.mjs...
    babelHelpers: 'bundled' option was used by default. It is recommended to configure this option explicitly, read more here: https://github.com/rollup/plugins/tree/master/packages/babel#babelhelpers
    (!) Unresolved dependencies https://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency
    react-toastify (imported by "src/addons/use-notification-center/useNotificationCenter.ts")
    created ./addons/use-notification-center/index.esm.mjs in 721ms
    rollup -p @rollup/plugin-babel -p rollup-plugin-typescript -p rollup-plugin-terser --external react,clsx -f cjs -o ./addons/use-notification-center/index.js src/addons/use-notification-center/index.ts

    src/addons/use-notification-center/index.ts → ./addons/use-notification-center/index.js...
    babelHelpers: 'bundled' option was used by default. It is recommended to configure this option explicitly, read more here: https://github.com/rollup/plugins/tree/master/packages/babel#babelhelpers
    (!) Unresolved dependencies https://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency
    react-toastify (imported by "src/addons/use-notification-center/useNotificationCenter.ts")
    created ./addons/use-notification-center/index.js in 810ms
    ln -s .. node_modules/react-toastify
    tsc -p debian/addon-tsconfig.json --target ES5
    mv addons/addons/use-notification-center/*.d.ts addons/use-notification-center/
    rm -rf addons/addons node_modules/react-toastify
    node-sass scss/main.scss dist/ReactToastify.css /usr/lib/x86_64-linux-gnu/nodejs/node-sass/lib/binding.js:13
    throw new Error(errors.unsupportedEnvironment());
    ^

    Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (109)
    For more information on which environments are supported please see: https://github.com/sass/node-sass/releases/tag/v8.0.0
    at module.exports (/usr/lib/x86_64-linux-gnu/nodejs/node-sass/lib/binding.js:13:13)
    at Object.<anonymous> (/usr/lib/x86_64-linux-gnu/nodejs/node-sass/lib/index.js:13:35)
    at Module._compile (node:internal/modules/cjs/loader:1356:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
    at Module.load (node:internal/modules/cjs/loader:1197:32)
    at Module._load (node:internal/modules/cjs/loader:1013:12)
    at Module.require (node:internal/modules/cjs/loader:1225:19)
    at require (node:internal/modules/helpers:177:18)
    at Object.<anonymous> (/usr/lib/x86_64-linux-gnu/nodejs/node-sass/bin/node-sass:10:10)
    at Module._compile (node:internal/modules/cjs/loader:1356:14)

    Node.js v18.19.1
    make[1]: *** [debian/rules:27: override_dh_auto_build] Error 1


    The full build log is available from: http://qa-logs.debian.net/2024/03/19/node-react-toastify_9.1.2+~1.2.1-3_unstable.log

    All bugs filed during this archive rebuild are listed at: https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240319;users=lucas@debian.org
    or: https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240319&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

    A list of current common problems and possible solutions is available at http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

    If you reassign this bug to another package, please mark it as 'affects'-ing this package. See https://www.debian.org/Bugs/server-control#affects

    If you fail to reproduce this, please provide a build log and diff it with mine so that we can identify if something relevant changed in the meantime.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)