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

Xavier yadd at debian.org
Sun Jul 5 18:45:39 BST 2020


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 = [];



More information about the Pkg-javascript-devel mailing list