[DRE-maint] Bug#680835: ruby-uglifier: FTBFS: ERROR: Test "ruby1.8" failed. Exiting.

Lucas Nussbaum lucas at lucas-nussbaum.net
Sun Jul 8 17:14:29 UTC 2012


Source: ruby-uglifier
Version: 1.2.5-1
Severity: serious
Tags: wheezy sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20120708 qa-ftbfs
Justification: FTBFS on amd64

Hi,

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

Relevant part:
> make[1]: Entering directory `/«PKGBUILDDIR»'
> dh_auto_install
> /usr/lib/ruby/vendor_ruby/gem2deb.rb:17: warning: setting Encoding.default_external
> /usr/lib/ruby/1.9.1/rubygems/psych_tree.rb:31: warning: method redefined; discarding old visit_String
> /usr/lib/ruby/1.9.1/rubygems/psych_tree.rb:4: warning: previous definition of visit_String was here
> /usr/lib/ruby/1.9.1/rubygems/psych_tree.rb:39: warning: method redefined; discarding old register
> /usr/lib/ruby/1.9.1/rubygems/psych_tree.rb:12: warning: previous definition of register was here
> /usr/lib/ruby/1.9.1/rubygems/psych_tree.rb:43: warning: method redefined; discarding old format_time
> /usr/lib/ruby/1.9.1/rubygems/psych_tree.rb:16: warning: previous definition of format_time was here
> /usr/lib/ruby/1.9.1/rubygems/syck_hack.rb:115: warning: method redefined; discarding old to_s
> /usr/lib/ruby/1.9.1/rubygems/syck_hack.rb:44: warning: previous definition of to_s was here
>   Entering dh_ruby --install
> install -d /«PKGBUILDDIR»/debian/ruby-uglifier/usr/lib/ruby/vendor_ruby
> install -D -m644 lib/uglifier.rb /«PKGBUILDDIR»/debian/ruby-uglifier/usr/lib/ruby/vendor_ruby/uglifier.rb
> install -D -m644 lib/es5.js /«PKGBUILDDIR»/debian/ruby-uglifier/usr/lib/ruby/vendor_ruby/es5.js
> install -D -m644 lib/uglify.js /«PKGBUILDDIR»/debian/ruby-uglifier/usr/lib/ruby/vendor_ruby/uglify.js
> /usr/bin/ruby1.8 -I/usr/lib/ruby/vendor_ruby /usr/lib/ruby/vendor_ruby/gem2deb/test_runner.rb
> /usr/bin/ruby1.8 -S rspec spec/uglifier_spec.rb
> FFFFFFFFFFFFFFFFFFFFFFF
> 
> Failures:
> 
>   1) Uglifier minifies JS
>      Failure/Error: Unable to find matching line from backtrace
>      Errno::ENOENT:
>        No such file or directory - /usr/share/javascript/ruby-uglifier/es5.js
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:51:in `open'
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./spec/uglifier_spec.rb:7:in `new'
>      # ./spec/uglifier_spec.rb:7
> 
>   2) Uglifier throws an exception when compilation fails
>      Failure/Error: Unable to find matching line from backtrace
>        expected ExecJS::Error, got #<Errno::ENOENT: No such file or directory - /usr/share/javascript/ruby-uglifier/es5.js>
>      # ./spec/uglifier_spec.rb:15
> 
>   3) Uglifier doesn't omit null character in strings
>      Failure/Error: Unable to find matching line from backtrace
>      Errno::ENOENT:
>        No such file or directory - /usr/share/javascript/ruby-uglifier/es5.js
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:51:in `open'
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./spec/uglifier_spec.rb:21:in `new'
>      # ./spec/uglifier_spec.rb:21
> 
>   4) Uglifier doesn't try to mangle $super by default to avoid breaking PrototypeJS
>      Failure/Error: Unable to find matching line from backtrace
>      Errno::ENOENT:
>        No such file or directory - /usr/share/javascript/ruby-uglifier/es5.js
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:51:in `open'
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./spec/uglifier_spec.rb:25:in `new'
>      # ./spec/uglifier_spec.rb:25
> 
>   5) Uglifier adds trailing semicolon to minified source
>      Failure/Error: Unable to find matching line from backtrace
>      Errno::ENOENT:
>        No such file or directory - /usr/share/javascript/ruby-uglifier/es5.js
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:51:in `open'
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./spec/uglifier_spec.rb:30:in `new'
>      # ./spec/uglifier_spec.rb:30
> 
>   6) Uglifier does additional squeezing when unsafe options is true
>      Failure/Error: Unable to find matching line from backtrace
>      Errno::ENOENT:
>        No such file or directory - /usr/share/javascript/ruby-uglifier/es5.js
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:51:in `open'
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./spec/uglifier_spec.rb:67:in `new'
>      # ./spec/uglifier_spec.rb:67
> 
>   7) Uglifier mangles variables only if mangle is set to true
>      Failure/Error: Unable to find matching line from backtrace
>      Errno::ENOENT:
>        No such file or directory - /usr/share/javascript/ruby-uglifier/es5.js
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:51:in `open'
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./spec/uglifier_spec.rb:72:in `new'
>      # ./spec/uglifier_spec.rb:72
> 
>   8) Uglifier squeezes code only if squeeze is set to true
>      Failure/Error: Unable to find matching line from backtrace
>      Errno::ENOENT:
>        No such file or directory - /usr/share/javascript/ruby-uglifier/es5.js
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:51:in `open'
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:43:in `new'
>      # ./lib/uglifier.rb:43:in `compile'
>      # ./spec/uglifier_spec.rb:77
> 
>   9) Uglifier should allow top level variables to be mangled
>      Failure/Error: Unable to find matching line from backtrace
>      Errno::ENOENT:
>        No such file or directory - /usr/share/javascript/ruby-uglifier/es5.js
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:51:in `open'
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:43:in `new'
>      # ./lib/uglifier.rb:43:in `compile'
>      # ./spec/uglifier_spec.rb:82
> 
>   10) Uglifier allows variables to be excluded from mangling
>      Failure/Error: Unable to find matching line from backtrace
>      Errno::ENOENT:
>        No such file or directory - /usr/share/javascript/ruby-uglifier/es5.js
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:51:in `open'
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:43:in `new'
>      # ./lib/uglifier.rb:43:in `compile'
>      # ./spec/uglifier_spec.rb:87
> 
>   11) Uglifier allows disabling of function name mangling
>      Failure/Error: Unable to find matching line from backtrace
>      Errno::ENOENT:
>        No such file or directory - /usr/share/javascript/ruby-uglifier/es5.js
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:51:in `open'
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:43:in `new'
>      # ./lib/uglifier.rb:43:in `compile'
>      # ./spec/uglifier_spec.rb:92
> 
>   12) Uglifier honors max line length
>      Failure/Error: Unable to find matching line from backtrace
>      Errno::ENOENT:
>        No such file or directory - /usr/share/javascript/ruby-uglifier/es5.js
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:51:in `open'
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:43:in `new'
>      # ./lib/uglifier.rb:43:in `compile'
>      # ./spec/uglifier_spec.rb:99
> 
>   13) Uglifier lifts vars to top of the scope
>      Failure/Error: Unable to find matching line from backtrace
>      Errno::ENOENT:
>        No such file or directory - /usr/share/javascript/ruby-uglifier/es5.js
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:51:in `open'
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:43:in `new'
>      # ./lib/uglifier.rb:43:in `compile'
>      # ./spec/uglifier_spec.rb:104
> 
>   14) Uglifier can be configured to output only ASCII
>      Failure/Error: Unable to find matching line from backtrace
>      Errno::ENOENT:
>        No such file or directory - /usr/share/javascript/ruby-uglifier/es5.js
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:51:in `open'
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:43:in `new'
>      # ./lib/uglifier.rb:43:in `compile'
>      # ./spec/uglifier_spec.rb:109
> 
>   15) Uglifier escapes </script when asked to
>      Failure/Error: Unable to find matching line from backtrace
>      Errno::ENOENT:
>        No such file or directory - /usr/share/javascript/ruby-uglifier/es5.js
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:51:in `open'
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:43:in `new'
>      # ./lib/uglifier.rb:43:in `compile'
>      # ./spec/uglifier_spec.rb:114
> 
>   16) Uglifier quotes keys
>      Failure/Error: Unable to find matching line from backtrace
>      Errno::ENOENT:
>        No such file or directory - /usr/share/javascript/ruby-uglifier/es5.js
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:51:in `open'
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:43:in `new'
>      # ./lib/uglifier.rb:43:in `compile'
>      # ./spec/uglifier_spec.rb:119
> 
>   17) Uglifier Copyright Preservation preserves copyright notice
>      Failure/Error: Unable to find matching line from backtrace
>      Errno::ENOENT:
>        No such file or directory - /usr/share/javascript/ruby-uglifier/es5.js
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:51:in `open'
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:43:in `new'
>      # ./lib/uglifier.rb:43:in `compile'
>      # ./spec/uglifier_spec.rb:41
> 
>   18) Uglifier Copyright Preservation handles multiple copyright blocks
>      Failure/Error: Unable to find matching line from backtrace
>      Errno::ENOENT:
>        No such file or directory - /usr/share/javascript/ruby-uglifier/es5.js
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:51:in `open'
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:43:in `new'
>      # ./lib/uglifier.rb:43:in `compile'
>      # ./spec/uglifier_spec.rb:41
> 
>   19) Uglifier Copyright Preservation does include different comment types
>      Failure/Error: Unable to find matching line from backtrace
>      Errno::ENOENT:
>        No such file or directory - /usr/share/javascript/ruby-uglifier/es5.js
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:51:in `open'
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:43:in `new'
>      # ./lib/uglifier.rb:43:in `compile'
>      # ./spec/uglifier_spec.rb:41
> 
>   20) Uglifier Copyright Preservation puts comments on own lines
>      Failure/Error: Unable to find matching line from backtrace
>      Errno::ENOENT:
>        No such file or directory - /usr/share/javascript/ruby-uglifier/es5.js
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:51:in `open'
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:43:in `new'
>      # ./lib/uglifier.rb:43:in `compile'
>      # ./spec/uglifier_spec.rb:41
> 
>   21) Uglifier Copyright Preservation omits copyright notification if copyright parameter is set to false
>      Failure/Error: Unable to find matching line from backtrace
>      Errno::ENOENT:
>        No such file or directory - /usr/share/javascript/ruby-uglifier/es5.js
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:51:in `open'
>      # ./lib/uglifier.rb:51:in `initialize'
>      # ./lib/uglifier.rb:43:in `new'
>      # ./lib/uglifier.rb:43:in `compile'
>      # ./spec/uglifier_spec.rb:41
> 
>   22) Uglifier Input Formats handles strings
>      Failure/Error: Unable to find matching line from backtrace
>        expected no Exception, got #<Errno::ENOENT: No such file or directory - /usr/share/javascript/ruby-uglifier/es5.js>
>      # ./spec/uglifier_spec.rb:124
> 
>   23) Uglifier Input Formats handles files
>      Failure/Error: Unable to find matching line from backtrace
>        expected no Exception, got #<Errno::ENOENT: No such file or directory - /usr/share/javascript/ruby-uglifier/es5.js>
>      # ./spec/uglifier_spec.rb:130
> 
> Finished in 0.00531 seconds
> 23 examples, 23 failures
> 
> Failed examples:
> 
> rspec /usr/lib/ruby/vendor_ruby/rspec/core/metadata.rb:164 # Uglifier minifies JS
> rspec /usr/lib/ruby/vendor_ruby/rspec/core/metadata.rb:164 # Uglifier throws an exception when compilation fails
> rspec /usr/lib/ruby/vendor_ruby/rspec/core/metadata.rb:164 # Uglifier doesn't omit null character in strings
> rspec /usr/lib/ruby/vendor_ruby/rspec/core/metadata.rb:164 # Uglifier doesn't try to mangle $super by default to avoid breaking PrototypeJS
> rspec /usr/lib/ruby/vendor_ruby/rspec/core/metadata.rb:164 # Uglifier adds trailing semicolon to minified source
> rspec /usr/lib/ruby/vendor_ruby/rspec/core/metadata.rb:164 # Uglifier does additional squeezing when unsafe options is true
> rspec /usr/lib/ruby/vendor_ruby/rspec/core/metadata.rb:164 # Uglifier mangles variables only if mangle is set to true
> rspec /usr/lib/ruby/vendor_ruby/rspec/core/metadata.rb:164 # Uglifier squeezes code only if squeeze is set to true
> rspec /usr/lib/ruby/vendor_ruby/rspec/core/metadata.rb:164 # Uglifier should allow top level variables to be mangled
> rspec /usr/lib/ruby/vendor_ruby/rspec/core/metadata.rb:164 # Uglifier allows variables to be excluded from mangling
> rspec /usr/lib/ruby/vendor_ruby/rspec/core/metadata.rb:164 # Uglifier allows disabling of function name mangling
> rspec /usr/lib/ruby/vendor_ruby/rspec/core/metadata.rb:164 # Uglifier honors max line length
> rspec /usr/lib/ruby/vendor_ruby/rspec/core/metadata.rb:164 # Uglifier lifts vars to top of the scope
> rspec /usr/lib/ruby/vendor_ruby/rspec/core/metadata.rb:164 # Uglifier can be configured to output only ASCII
> rspec /usr/lib/ruby/vendor_ruby/rspec/core/metadata.rb:164 # Uglifier escapes </script when asked to
> rspec /usr/lib/ruby/vendor_ruby/rspec/core/metadata.rb:164 # Uglifier quotes keys
> rspec /usr/lib/ruby/vendor_ruby/rspec/core/metadata.rb:164 # Uglifier Copyright Preservation preserves copyright notice
> rspec /usr/lib/ruby/vendor_ruby/rspec/core/metadata.rb:164 # Uglifier Copyright Preservation handles multiple copyright blocks
> rspec /usr/lib/ruby/vendor_ruby/rspec/core/metadata.rb:164 # Uglifier Copyright Preservation does include different comment types
> rspec /usr/lib/ruby/vendor_ruby/rspec/core/metadata.rb:164 # Uglifier Copyright Preservation puts comments on own lines
> rspec /usr/lib/ruby/vendor_ruby/rspec/core/metadata.rb:164 # Uglifier Copyright Preservation omits copyright notification if copyright parameter is set to false
> rspec /usr/lib/ruby/vendor_ruby/rspec/core/metadata.rb:164 # Uglifier Input Formats handles strings
> rspec /usr/lib/ruby/vendor_ruby/rspec/core/metadata.rb:164 # Uglifier Input Formats handles files
> rake aborted!
> /usr/bin/ruby1.8 -S rspec spec/uglifier_spec.rb failed
> 
> Tasks: TOP => default => spec
> (See full trace by running task with --trace)
> ERROR: Test "ruby1.8" failed. Exiting.
> dh_auto_install: dh_ruby --install /«PKGBUILDDIR»/debian/ruby-uglifier returned exit code 1
> make[1]: *** [override_dh_auto_install] Error 1

The full build log is available from:
   http://people.debian.org/~lucas/logs/2012/07/08/ruby-uglifier_1.2.5-1_unstable.log

A list of current common problems and possible solutions is available at 
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.





More information about the Pkg-ruby-extras-maintainers mailing list