Source: ruby-uglifier
Version: 4.2.0+dfsg-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source

Hi,

ruby-uglifier/experimental recently started to FTBFS, probably after some
build-dependency was updated:

[...]
Failures:

  1) Uglifier keeps unused function arguments when keep_fargs option is set
     Failure/Error: expect(Uglifier.compile(code, options.call(false))).not_to 
include("c)")
       expected "function plus(a,b,c){return a+b}plus(1,2);" not to include "c)"
     # /build/ruby-uglifier-4.2.0+dfsg/spec/uglifier_spec.rb:399:in `block (2 
levels) in <top (required)>'

  2) Uglifier context_source_lines contains harmony error message and follows 
error_context_lines option
     Failure/Error:
       expect { Uglifier.compile(code, :harmony => false, :error_context_lines 
=> 4) }
         .to raise_error(Uglifier::Error, %r{
           harmony\smode [^\n]+ Uglifier\.new  # harmony error mesage
           .+ --\n [^\n]+ //_1\n               # 1 should be the first line
           .+ => [^\n]+ bar \e\[\d+m \(\)      # should point to () at line 3
           .+ //_7\n ==\z                      # 7 should be the last line
         }xm)

       expected Uglifier::Error with message matching /
                 harmony\smode [^\n]+ Uglifier\.new  # harmony error mesage
                 .+ --\n [^\n]+ \/\/_...() at line 3
                 .+ \/\/_7\n ==\z                      # 7 should be the last 
line
               /mx, got #<Uglifier::Error: Unexpected token: keyword ?var?, 
expected: punc ?,?. To use ES6 syntax, harmony mo...g('this is correct es5 
syntax')
       ESC[36m  9ESC[0m                 } //_9
       ESC[36m 10ESC[0m               }
       ==> with backtrace:
         # /build/ruby-uglifier-4.2.0+dfsg/lib/uglifier.rb:302:in `parse_result'
         # /build/ruby-uglifier-4.2.0+dfsg/lib/uglifier.rb:232:in `run_uglifyjs'
         # /build/ruby-uglifier-4.2.0+dfsg/lib/uglifier.rb:170:in `compile'
         # /build/ruby-uglifier-4.2.0+dfsg/lib/uglifier.rb:137:in `compile'
         # /build/ruby-uglifier-4.2.0+dfsg/spec/uglifier_spec.rb:752:in `block 
(4 levels) in <top (required)>'
         # /build/ruby-uglifier-4.2.0+dfsg/spec/uglifier_spec.rb:752:in `block 
(3 levels) in <top (required)>'
     # /build/ruby-uglifier-4.2.0+dfsg/spec/uglifier_spec.rb:752:in `block (3 
levels) in <top (required)>'

Finished in 34.44 seconds (files took 0.08862 seconds to load)
100 examples, 2 failures, 7 pending

Failed examples:

rspec /build/ruby-uglifier-4.2.0+dfsg/spec/uglifier_spec.rb:383 # Uglifier 
keeps unused function arguments when keep_fargs option is set
rspec /build/ruby-uglifier-4.2.0+dfsg/spec/uglifier_spec.rb:751 # Uglifier 
context_source_lines contains harmony error message and follows 
error_context_lines option

/usr/bin/ruby2.7 
-I/usr/share/rubygems-integration/all/gems/rspec-support-3.9.3/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.9.2/lib
 /usr/share/rubygems-integration/all/gems/rspec-core-3.9.2/exe/rspec --pattern 
./spec/\*\*/\*_spec.rb --format documentation failed
ERROR: Test "ruby2.7" failed. Exiting.
dh_auto_install: error: dh_ruby --install 
/build/ruby-uglifier-4.2.0\+dfsg/debian/ruby-uglifier returned exit code 1


Andreas

Attachment: ruby-uglifier_4.2.0+dfsg-1.log.gz
Description: application/gzip

Reply via email to