Bug#935585: node-d3-scale breaks node-d3 autopkgtest: SyntaxError: Unexpected token export

2019-08-24 Thread Pirate Praveen
Control: block -1 by 930920

On Sat, 24 Aug 2019 11:29:57 +0200 Paul Gevers  wrote:
> autopkgtest [18:11:04]: test require: [---
> /usr/lib/nodejs/d3/node_modules/d3-scale/index.js:1
> (function (exports, require, module, __filename, __dirname) { export {
>   ^^
> 
> SyntaxError: Unexpected token export
> at new Script (vm.js:79:7)
> at createScript (vm.js:251:10)
> at Object.runInThisContext (vm.js:303:10)
> at Module._compile (internal/modules/cjs/loader.js:657:28)
> at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
> at Module.load (internal/modules/cjs/loader.js:599:32)
> at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
> at Function.Module._load (internal/modules/cjs/loader.js:530:3)
> at Module.require (internal/modules/cjs/loader.js:637:17)
> at require (internal/modules/cjs/helpers.js:22:18)
> autopkgtest [18:11:05]: test require: ---]
> 

I think the root cause is broken d3-format.js in node_modules

/usr/share/nodejs/d3$ ls node_modules/d3-format/d3-format.js -l
lrwxrwxrwx 1 root root 51 Aug 23 08:32
node_modules/d3-format/d3-format.js ->
../../../../share/javascript/d3-format/d3-format.js

Root cause is #930920 which forces me to embed d3-format and d3-scale in
the first place by adding lots of hacks.



Bug#935585: node-d3-scale breaks node-d3 autopkgtest: SyntaxError: Unexpected token export

2019-08-24 Thread Paul Gevers
Source: node-d3-scale, node-d3
Control: found -1 node-d3-scale/1.0.7-5
Control: found -1 node-d3/4.13.0-3
Control: found -1 node-d3/4.13.0-4
Severity: serious
Tags: sid bullseye
X-Debbugs-CC: debian...@lists.debian.org
User: debian...@lists.debian.org
Usertags: breaks needs-update

Dear maintainers,

With a recent upload of node-d3-scale the autopkgtest of node-d3 fails
in testing when that autopkgtest is run with the binary packages of
node-d3-scale from unstable, it also fails in pure unstable. It passes
when run with only packages from testing. In tabular form:
   passfail
node-d3-scale  from testing1.0.7-5
node-d3from testing4.13.0-3
all others from testingfrom testing

I copied some of the output at the bottom of this report.

Currently this regression is blocking the migration of node-d3-scale to
testing [1]. Due to the nature of this issue, I filed this bug report
against both packages. Can you please investigate the situation and
reassign the bug to the right package? If needed, please change the
bug's severity.

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[1] https://qa.debian.org/excuses.php?package=node-d3-scale

https://ci.debian.net/data/autopkgtest/testing/amd64/n/node-d3/2801114/log.gz

autopkgtest [18:11:04]: test require: [---
/usr/lib/nodejs/d3/node_modules/d3-scale/index.js:1
(function (exports, require, module, __filename, __dirname) { export {
  ^^

SyntaxError: Unexpected token export
at new Script (vm.js:79:7)
at createScript (vm.js:251:10)
at Object.runInThisContext (vm.js:303:10)
at Module._compile (internal/modules/cjs/loader.js:657:28)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
autopkgtest [18:11:05]: test require: ---]



signature.asc
Description: OpenPGP digital signature