[Pkg-javascript-devel] Bug#1134275: dygraphs: FTBFS: TypeError: smc.eachMapping is not a function

Thorsten Glaser tg at debian.org
Sat Apr 18 21:32:30 BST 2026


Hi Santiago,

seems like someone uploaded a new version of node-source-map
that breaks r-deps, without checking for that.

https://sources.debian.org/data/main/d/dygraphs/2.2.1-4/scripts/env-patcher.js

Yadd, Julien, any idea?


On Sat, 18 Apr 2026, Santiago Vila wrote:

>Package: src:dygraphs
>Version: 2.2.1-4
>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/202604/
>
>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:dygraphs, so that this is still
>visible in the BTS web page for this package.
>
>Thanks.
>
>--------------------------------------------------------------------------------
>[...]
> debian/rules clean
>dh clean --buildsystem=none
>   dh_auto_clean -O--buildsystem=none
>   dh_autoreconf_clean -O--buildsystem=none
>   debian/rules execute_before_dh_clean
>make[1]: Entering directory '/<<PKGBUILDDIR>>'
>echo | cat debian/copyright.in - LICENSE.txt >debian/copyright
>chmod 644 debian/copyright
>rm -rf *.log __pycache__ _site coverage dist disttmp docroot docs/download.html docs/options.html docs/versions.html dygraphs-2.*.tgz env jsdoc jsdoc.tmp node_modules package-lock.json site src-es5
>make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>   dh_clean -O--buildsystem=none
>	rm -f debian/debhelper-build-stamp
>	rm -rf debian/.debhelper/
>	rm -f -- debian/libjs-dygraphs.substvars debian/files
>	rm -fr -- debian/libjs-dygraphs/ debian/tmp/
>	find .  \( \( \
>		\( -path .\*/.git -o -path .\*/.svn -o -path .\*/.bzr -o -path .\*/.hg -o -path .\*/CVS -o -path .\*/.pc -o -path .\*/_darcs \) -prune -o -type f -a \
>	        \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \
>		 -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \
>		 -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \
>		 -o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \
>		\) -exec rm -f {} + \) -o \
>		\( -type d -a \( -name autom4te.cache -o -name __pycache__ \) -prune -exec rm -rf {} + \) \)
> debian/rules binary
>dh binary --buildsystem=none
>   dh_update_autotools_config -O--buildsystem=none
>   dh_autoreconf -O--buildsystem=none
>   dh_auto_configure -O--buildsystem=none
>   debian/rules override_dh_auto_build
>make[1]: Entering directory '/<<PKGBUILDDIR>>'
>env IS_ACTUAL_DEBIAN_BUILD=1 scripts/build.sh
>+ mksh scripts/build-js.sh
>+ <src/dygraph.js
>+ sed -n '/^Dygraph.VERSION = "\(.*\)";$/s//\1/p'
>+ v=2.2.1 
>+ relv=2.2.1 
>+ rm -rf dist disttmp src-es5
>+ mkdir disttmp
>+ pax -rw -l auto_tests src disttmp/
>+ mksh scripts/txt2js.sh LICENSE.txt disttmp/LICENCE.js
>I: converting LICENSE.txt to disttmp/LICENCE.js
>+ header='/*! @license https://github.com/danvk/dygraphs/blob/v2.2.1/LICENSE.txt (MIT) */' 
>+ cd disttmp
>+ babeljs --config-file /<<PKGBUILDDIR>>/babel.config.json --compact false --source-maps inline -d tests5 auto_tests
>Successfully compiled 59 files with Babel (1466ms).
>+ babeljs --config-file /<<PKGBUILDDIR>>/babel.config.json --compact false --source-maps inline -d es5 src
>Successfully compiled 35 files with Babel (1270ms).
>+ rm -rf auto_tests src
>+ ln -s /usr/share/nodejs/core-js .
>+ cp -r es5 src
>+ mksh ../scripts/env-patcher.sh development src
>I: patching src/dygraph-options.js for !prod=true
>/<<PKGBUILDDIR>>/scripts/env-patcher.js:47
>smc.eachMapping(function (omap) {
>    ^
>
>TypeError: smc.eachMapping is not a function
>    at Object.<anonymous> (/<<PKGBUILDDIR>>/scripts/env-patcher.js:47:5)
>    at Module._compile (node:internal/modules/cjs/loader:1705:14)
>    at Module._extensions..js (node:internal/modules/cjs/loader:1838:10)
>    at Module.load (node:internal/modules/cjs/loader:1441:32)
>    at Module._load (node:internal/modules/cjs/loader:1263:12)
>    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
>    at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
>    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5)
>    at node:internal/main/run_main_module:36:49
>
>Node.js v22.22.2
>make[1]: *** [debian/rules:46: override_dh_auto_build] Error 1
>make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>make: *** [debian/rules:43: binary] Error 2
>dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
>--------------------------------------------------------------------------------



More information about the Pkg-javascript-devel mailing list