[Pkg-javascript-devel] Bug#1078902: science.js: FTBFS: Error parsing /<<PKGBUILDDIR>>/package.json: Unexpected end of JSON input

Santiago Vila sanvila at debian.org
Sat Aug 17 14:41:16 BST 2024


Package: src:science.js
Version: 1.9.3+dfsg-3
Severity: serious
Control: close -1 1.9.3+dfsg-4
Tags: ftbfs bookworm

Dear maintainer:

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

--------------------------------------------------------------------------------
[...]
  debian/rules binary
dh binary
    dh_update_autotools_config
    dh_autoreconf
    dh_auto_configure --buildsystem=nodejs
/!\ ./package.json not found
    debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
make JS_COMPILER=uglifyjs
make[2]: Entering directory '/<<PKGBUILDDIR>>'
cat src/core/core.js src/core/ascending.js src/core/constants.js src/core/expm1.js src/core/functor.js src/core/hypot.js src/core/quadratic.js src/core/zeroes.js >> science.core.js
cat src/lin/lin.js src/lin/decompose.js src/lin/cross.js src/lin/dot.js src/lin/length.js src/lin/normalize.js src/lin/determinant.js src/lin/gaussjordan.js src/lin/inverse.js src/lin/multiply.js src/lin/transpose.js src/lin/tridag.js >> science.lin.js
cat src/stats/stats.js src/stats/bandwidth.js src/stats/distance.js src/stats/erf.js src/stats/phi.js src/stats/kernel.js src/stats/kde.js src/stats/kmeans.js src/stats/hcluster.js src/stats/iqr.js src/stats/loess.js src/stats/mean.js src/stats/median.js src/stats/mode.js src/stats/quantiles.js src/stats/variance.js src/stats/distribution.js src/stats/distribution/gaussian.js >> science.stats.js
cat science.core.js science.lin.js science.stats.js >> science.v1.js
uglifyjs < science.v1.js > science.v1.min.js
node src/package.js > package.json
node:internal/modules/package_json_reader:92
         throw error;
         ^

SyntaxError: Error parsing /<<PKGBUILDDIR>>/package.json: Unexpected end of JSON input
     at parse (<anonymous>)
     at read (node:internal/modules/package_json_reader:79:16)
     at readPackage (node:internal/modules/package_json_reader:140:10)
     at readPackageScope (node:internal/modules/package_json_reader:157:19)
     at shouldUseESMLoader (node:internal/modules/run_main:77:15)
     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:122:24)
     at node:internal/main/run_main_module:28:49 {
   path: '/<<PKGBUILDDIR>>/package.json'
}

Node.js v18.19.0
make[2]: *** [Makefile:80: package.json] Error 1
rm science.lin.js science.stats.js science.core.js
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [debian/rules:11: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:8: binary] Error 2
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/bookworm/

About the archive rebuild: The build was made on virtual machines
of type m6a.large and r6a.large 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 affects, so that this is still visible in the BTS web
page for this package.

Thanks.



More information about the Pkg-javascript-devel mailing list