#1134275 dygraphs: FTBFS: TypeError: smc.eachMapping is not a function

#1134275#5
Date:
2026-04-18 17:31:24 UTC
From:
To:
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
--------------------------------------------------------------------------------

#1134275#10
Date:
2026-04-18 20:32:30 UTC
From:
To:
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?

#1134275#17
Date:
2026-07-27 04:04:33 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
dygraphs, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1134275@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Thorsten Glaser <tg@mirbsd.de> (supplier of updated dygraphs package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 27 Jul 2026 05:30:45 +0200
Source: dygraphs
Architecture: source
Version: 2.2.2-1
Distribution: unstable
Urgency: medium
Maintainer: Thorsten Glaser <tg@mirbsd.de>
Changed-By: Thorsten Glaser <tg@mirbsd.de>
Closes: 1134275
Changes:
 dygraphs (2.2.2-1) unstable; urgency=medium
 .
   * “Could we please keep Debian unensloppified, tyvm?” upload
   * New upstream release
   * Adjust for breaking change in node-source-map (Closes: #1134275)
   * Bump Policy
   * Update lintian overrides
Checksums-Sha1:
 bdccc6af1200dd47cd1ad2d75a6035285dea68fa 1987 dygraphs_2.2.2-1.dsc
 a16c9c484363297af36da597cadccf2acbdd556b 1408147 dygraphs_2.2.2.orig.tar.gz
 c17d9170793d86747ed87ed0794baa3af24773c8 4248 dygraphs_2.2.2-1.debian.tar.xz
Checksums-Sha256:
 534f6f0475bb4340c73cfee3c53691913c8ee6000fe1dd0bd005ac431f01c688 1987 dygraphs_2.2.2-1.dsc
 4da185ebe714a86a61e809ab626e2abdc180b601e911177f3a7751a551434cd7 1408147 dygraphs_2.2.2.orig.tar.gz
 8c63c9016d94e4946be8c03ea306e4623ee06a00503b82131522636a298d0cce 4248 dygraphs_2.2.2-1.debian.tar.xz
Files:
 2a2eff7c083a20829ff6bfc2b95d0aec 1987 javascript optional dygraphs_2.2.2-1.dsc
 0984057ad0ab04e9c0de2a9ddb41c423 1408147 javascript optional dygraphs_2.2.2.orig.tar.gz
 d12d8b65a8ba4b96f7534f589af77f1e 4248 javascript optional dygraphs_2.2.2-1.debian.tar.xz
iQIcBAEBCQAGBQJqZtUEAAoJEHa1NLLpkAfg/6oP/0TdbVvypl3xtvch77Oqbm+a
gsuHIYKP3MGC8klsySAmppa+6mGa86RI5oy7j25hL8CxpbaVf8H+LCryOGhSPOD9
grwnN0VX5ru3xq2zj9Lc4iERalljUfaNPdLQau6KBGIVsEYgAepW5E2CWyIt6IyC
70GDD1zUzekahMkM2esGz8rqfh+fRbpni/OFyxBsg+yPkU3JQnFrQE8IrvasX8jI
mVnPXiHrALO90cQvfsYjOtf17Gy2qwVieBt6qty3qjyv73DjhyzxZ+qAs0YB9cuV
vKw2ZnV/zK0/dGgMyfbf/r8IIJkL3awrq8ylgVlyo1OC0WQ08UDRdTCgTo5pTKo0
A5Dh3dOblnTofw4S68LRtzr641ed1T7boXzWmGUThep0buGXV9YhKXrNNz+5QSJ9
kQ8NLJ9h4bAn6h7oQ+pOwxmKHjeFFFwqwa2sLH5Hj+V/BgdHD7Z/yJBeZtdE411o
xyP7W+lr4D12s6wUeFYP4kmPaaEs+T9eod8PdCJ8raZQrZOKajOPScUpiOQNFjW1
WSqAoCmyGj4BTj6tJLR0efzulJLhYCLowP/ecMAg0lyjH9mbRTbjhNJJWM4yIeEx
EuPggWMl7ZfOIndKqGVQWqfDLTdCNhQ4hcfRWRweTRK1zkycjq4SxiaNjHmeMtu9
wL9sdnGdyba3zS/8lQu3
=dABG
-----END PGP SIGNATURE-----