Processed: Re: [Pkg-javascript-devel] Bug#963425: node-terser: FTBFS: ERROR: `m` is not a supported option

2020-07-05 Thread Debian Bug Tracking System
Processing control commands:

> tags -1 + patch
Bug #963425 [node-commander] node-terser: FTBFS: ERROR: `m` is not a supported 
option
Added tag(s) patch.

-- 
963425: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=963425
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#963425: [Pkg-javascript-devel] Bug#963425: node-terser: FTBFS: ERROR: `m` is not a supported option

2020-07-05 Thread Xavier
Control: tags -1 + patch

Le 05/07/2020 à 16:47, Jonas Smedegaard a écrit :
> Control: reassign -1 node-commander 4.1.1-1
> Control: affects -1 uglifyjs.terser
> 
> Quoting Lucas Nussbaum (2020-06-21 22:24:18)
>> Source: node-terser
>> Version: 4.1.2-6
>> Severity: serious
>> Justification: FTBFS on amd64
>> Tags: bullseye sid ftbfs
>> Usertags: ftbfs-20200620 ftbfs-bullseye
>>
>> Hi,
>>
>> During a rebuild of all packages in sid, your package failed to build
>> on amd64.
> 
> Thanks, Lucas.
> 
> These errors are caused by node-commander upgrade to new major release 
> without proper testing reverse dependencies.

Hi,

it was tested but test reports just a warning and build succeeded
locally. Here is the fix (I can't push an MR since MR are disabled in
this salsa repo!). However I pushed a branch named commander-4 with this
patch:


--- a/bin/uglifyjs
+++ b/bin/uglifyjs
@@ -28,6 +28,15 @@
 program.version(info.name + " " + info.version);
 program.parseArgv = program.parse;
 program.parse = undefined;
+var argv = [];
+process.argv.forEach(function(arg){
+  if(arg.match(/^-([pcmbode]+)$/)) {
+argv = argv.concat(RegExp.$1.split('').map(s => { return '-'+s }));
+  }
+  else argv.push(arg);
+});
+process.argv = argv;
+
 if (process.argv.includes("ast")) program.helpInformation = describe_ast;
 else if (process.argv.includes("options")) program.helpInformation =
function() {
 var text = [];



Bug#963425: node-terser: FTBFS: ERROR: `m` is not a supported option

2020-07-05 Thread Jonas Smedegaard
Control: reassign -1 node-commander 4.1.1-1
Control: affects -1 uglifyjs.terser

Quoting Lucas Nussbaum (2020-06-21 22:24:18)
> Source: node-terser
> Version: 4.1.2-6
> Severity: serious
> Justification: FTBFS on amd64
> Tags: bullseye sid ftbfs
> Usertags: ftbfs-20200620 ftbfs-bullseye
> 
> Hi,
> 
> During a rebuild of all packages in sid, your package failed to build
> on amd64.

Thanks, Lucas.

These errors are caused by node-commander upgrade to new major release 
without proper testing reverse dependencies.

> >   231 passing (12s)
> >   4 pending
> >   7 failing
> > 
> >   1) bin/uglifyjs (2)
> >Should dump AST as JSON:
> >  Uncaught Command failed: "/usr/bin/node" bin/uglifyjs 
> > test/input/global_defs/simple.js -mco ast
> > ERROR: ENOENT: no such file or directory, open 'ast'
> > at Object.openSync (fs.js:458:3)
> > at Object.readFileSync (fs.js:360:35)
> > at read_file (/<>/bin/uglifyjs:353:19)
> > at /<>/bin/uglifyjs:176:37
> > at Array.forEach ()
> > at Object. (/<>/bin/uglifyjs:175:28)
> > at Module._compile (internal/modules/cjs/loader.js:1138:30)
> > at Object.Module._extensions..js 
> > (internal/modules/cjs/loader.js:1158:10)
> > at Module.load (internal/modules/cjs/loader.js:986:32)
> > at Function.Module._load (internal/modules/cjs/loader.js:879:14)
> > 
> >   Error: Command failed: "/usr/bin/node" bin/uglifyjs 
> > test/input/global_defs/simple.js -mco ast
> >   ERROR: ENOENT: no such file or directory, open 'ast'
> >   at Object.openSync (fs.js:458:3)
> >   at Object.readFileSync (fs.js:360:35)
> >   at read_file (bin/uglifyjs:353:19)
> >   at /<>/bin/uglifyjs:176:37
> >   at Array.forEach ()
> >   at Object. (bin/uglifyjs:175:28)
> >   at Module._compile (internal/modules/cjs/loader.js:1138:30)
> >   at Object.Module._extensions..js 
> > (internal/modules/cjs/loader.js:1158:10)
> >   at Module.load (internal/modules/cjs/loader.js:986:32)
> >   at Function.Module._load (internal/modules/cjs/loader.js:879:14)
> >   
> >   at ChildProcess.exithandler (child_process.js:303:12)
> >   at maybeClose (internal/child_process.js:1021:16)
> >   at Process.ChildProcess._handle.onexit 
> > (internal/child_process.js:286:5)
> > 
> >   2) bin/uglifyjs (2)
> >Should mangle toplevel names with the --module option:
> >  Uncaught Command failed: "/usr/bin/node" bin/uglifyjs 
> > test/input/module/input.js --module -mc
> > Supported options:
> >   cachenull
> >   eval false
> >   ie8  false
> >   keep_classnames  false
> >   keep_fnames  false
> >   module   false
> >   properties   false
> >   reserved []
> >   safari10 false
> >   toplevel false
> > ERROR: `c` is not a supported option
> > at o (/<>/dist/bundle.min.js:1:551)
> > at Object.Kn [as minify] (/<>/dist/bundle.min.js:1:314384)
> > at run (/<>/bin/uglifyjs:228:27)
> > at Object. (/<>/bin/uglifyjs:178:5)
> > at Module._compile (internal/modules/cjs/loader.js:1138:30)
> > at Object.Module._extensions..js 
> > (internal/modules/cjs/loader.js:1158:10)
> > at Module.load (internal/modules/cjs/loader.js:986:32)
> > at Function.Module._load (internal/modules/cjs/loader.js:879:14)
> > at Function.executeUserEntryPoint [as runMain] 
> > (internal/modules/run_main.js:71:12)
> > at internal/main/run_main_module.js:17:47
> > 
> >   Error: Command failed: "/usr/bin/node" bin/uglifyjs 
> > test/input/module/input.js --module -mc
> >   Supported options:
> > cachenull
> > eval false
> > ie8  false
> > keep_classnames  false
> > keep_fnames  false
> > module   false
> > properties   false
> > reserved []
> > safari10 false
> > toplevel false
> >   ERROR: `c` is not a supported option
> >   at o (dist/bundle.min.js:1:551)
> >   at Object.Kn [as minify] (dist/bundle.min.js:1:314384)
> >   at run (bin/uglifyjs:228:27)
> >   at Object. (bin/uglifyjs:178:5)
> >   at Module._compile (internal/modules/cjs/loader.js:1138:30)
> >   at Object.Module._extensions..js 
> > (internal/modules/cjs/loader.js:1158:10)
> >   at Module.load (internal/modules/cjs/loader.js:986:32)
> >   at Function.Module._load (internal/modules/cjs/loader.js:879:14)
> >   at Function.executeUserEntryPoint [as runMain] 
> > (internal/modules/run_main.js:71:12)
> >   at internal/main/run_main_module.js:17:47
> >   
> >   at ChildProcess.exithandler (child_process.js:303:12)
> >   at maybeClose (internal/child_process.js:1021:16)
> >   at Process.ChildProcess._handle.onexit 
> > (internal/child_process.js:286:5)
> > 
> >   3) bin/uglifyjs
> >Should process inline source map:
> >  Uncaught Command failed: "/usr/bin/node" bin/uglifyjs 
> > test/input/issue-520/input.js -mc toplevel --source-map 

Processed: Re: Bug#963425: node-terser: FTBFS: ERROR: `m` is not a supported option

2020-07-05 Thread Debian Bug Tracking System
Processing control commands:

> reassign -1 node-commander 4.1.1-1
Bug #963425 [src:node-terser] node-terser: FTBFS: ERROR: `m` is not a supported 
option
Bug reassigned from package 'src:node-terser' to 'node-commander'.
No longer marked as found in versions node-terser/4.1.2-6.
Ignoring request to alter fixed versions of bug #963425 to the same values 
previously set
Bug #963425 [node-commander] node-terser: FTBFS: ERROR: `m` is not a supported 
option
Marked as found in versions node-commander/4.1.1-1.
> affects -1 uglifyjs.terser
Bug #963425 [node-commander] node-terser: FTBFS: ERROR: `m` is not a supported 
option
Added indication that 963425 affects uglifyjs.terser

-- 
963425: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=963425
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#963425: node-terser: FTBFS: ERROR: `m` is not a supported option

2020-06-21 Thread Lucas Nussbaum
Source: node-terser
Version: 4.1.2-6
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20200620 ftbfs-bullseye

Hi,

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

Relevant part (hopefully):
> make[1]: Entering directory '/<>'
> NODE_PATH=lib TRAVIS=1 node test/run-tests.js \
>   
> *** Entering [compress]
> --- arguments.js
> Running test [replace_index]
> Running test [replace_index_strict]
> Running test [replace_index_keep_fargs]
> Running test [replace_index_keep_fargs_strict]
> Running test [modified]
> Running test [modified_strict]
> Running test [arguments_in_arrow_func_1]
> Running test [arguments_in_arrow_func_2]
> Running test [arguments_and_destructuring_1]
> Running test [arguments_and_destructuring_2]
> Running test [arguments_and_destructuring_3]
> Running test [duplicate_parameter_with_arguments]
> --- array-constructor.js
> Running test [array_constructor]
> Running test [array_constructor_unsafe]
> --- arrays.js
> Running test [holes_and_undefined]
> Running test [constant_join]
> Running test [constant_join_2]
> Running test [spread_with_variable_as_last_element]
> Running test [spread_with_variable_in_middle]
> Running test [spread_with_variable_at_front]
> Running test [spread_with_variable_at_front_after_elisions]
> Running test [spread_with_array_at_end]
> Running test [spread_with_logical_expression_at_end]
> Running test [spread_with_logical_expression_at_middle]
> Running test [constant_join_3]
> Running test [for_loop]
> Running test [index]
> Running test [length]
> Running test [index_length]
> --- arrow.js
> Running test [arrow_functions_without_body]
> Running test [arrow_functions_with_body]
> Running test [arrow_function_with_single_parameter_with_default]
> Running test [arrow_binding_pattern]
> Running test [arrow_binding_pattern_strict]
> Running test [arrow_with_regexp]
> Running test [arrow_unused]
> Running test [arrow_unused_toplevel]
> Running test [no_leading_parentheses]
> Running test [async_identifiers]
> Running test [async_function_expression]
> Running test [issue_27]
> Running test [issue_2105_1]
> Running test [issue_2105_2]
> Running test [issue_2136_2]
> Running test [issue_2136_3]
> Running test [call_args]
> Running test [call_args_drop_param]
> Running test [issue_485_crashing_1530]
> Running test [issue_2084]
> Running test [export_default_object_expression]
> Running test [concise_methods_with_computed_property2]
> Running test [async_object_literal]
> Running test [issue_2271]
> Running test [concise_method_with_super]
> Running test [issue_3092a]
> Running test [issue_3092b]
> --- ascii.js
> Running test [ascii_only_true]
> Running test [ascii_only_false]
> --- asm.js
> Running test [asm_mixed]
> Running test [asm_toplevel]
> Running test [asm_function_expression]
> Running test [asm_nested_functions]
> --- assignment.js
> Running test [op_equals_left_local_var]
> Running test [op_equals_right_local_var]
> Running test [op_equals_left_global_var]
> Running test [op_equals_right_global_var]
> --- async.js
> Running test [await_precedence]
> Running test [await_precedence_prop]
> Running test [await_precedence_call]
> Running test [async_function_declaration]
> Running test [async_function_expression]
> Running test [async_class]
> Running test [async_object_literal]
> Running test [async_export]
> Running test [async_inline]
> Running test [async_identifiers]
> Running test [async_shorthand_property]
> Running test [async_arrow]
> Running test [async_arrow_wait]
> Running test [async_arrow_iife]
> Running test [async_arrow_iife_negate_iife]
> Running test [issue_2344_1]
> Running test [issue_2344_2]
> Running test [issue_3079]
> Running test [issue_3079_2]
> Running test [for_await_of]
> Running test [for_await_of_2]
> Running test [issue_87]
> Running test [async_generator_function]
> Running test [async_generator_class_method]
> Running test [async_generator_static_class_method]
> Running test [async_generator_object_literal_method]
> --- big_int.js
> Running test [big_int_positive]
> Running test [big_int_negative]
> Running test [big_int_hex]
> Running test [big_int_binary]
> Running test [big_int_octal]
> --- block-scope.js
> Running test [let_statement]
> Running test [do_not_hoist_let]
> Running test [do_not_remove_anon_blocks_if_they_have_decls]
> Running test [remove_unused_in_global_block]
> Running test [regression_block_scope_resolves]
> Running test [switch_block_scope_mangler]
> Running test [issue_241]
> Running test [issue_334]
> --- blocks.js
>