[DRE-maint] Bug#725556: ruby-packetfu: FTBFS: ERROR: Test "ruby2.0" failed: /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in `require': /«PKGBUILDDIR»/lib/packetfu/protos/lldp.rb:19: invalid multibyte escape: /^\x01\x80\xc2\x00\x00[\x0e\x03\x00]/ (SyntaxError)

David Suárez david.sephirot at gmail.com
Sun Oct 6 19:30:57 UTC 2013


Source: ruby-packetfu
Version: 1.1.8-1
Severity: serious
Tags: jessie sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20131006 qa-ftbfs ruby2-ftbfs
Justification: FTBFS on amd64

Hi,

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

Relevant part (hopefully):
>  fakeroot debian/rules binary
> dh binary --buildsystem=ruby --with ruby
>    dh_testroot -O--buildsystem=ruby
>    dh_prep -O--buildsystem=ruby
>    dh_auto_install -O--buildsystem=ruby
> /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-packetfu/usr/lib/ruby/vendor_ruby
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/capture.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/capture.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/config.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/config.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/inject.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/inject.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/packet.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/packet.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/pcap.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/pcap.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/arp.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/arp.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/arp/header.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/arp/header.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/arp/mixin.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/arp/mixin.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/eth.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/eth.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/eth/header.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/eth/header.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/eth/mixin.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/eth/mixin.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/hsrp.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/hsrp.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/hsrp/header.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/hsrp/header.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/hsrp/mixin.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/hsrp/mixin.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/icmp.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/icmp.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/icmp/header.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/icmp/header.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/icmp/mixin.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/icmp/mixin.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/invalid.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/invalid.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/ip.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/ip.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/ip/header.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/ip/header.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/ip/mixin.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/ip/mixin.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/ipv6.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/ipv6.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/ipv6/header.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/ipv6/header.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/ipv6/mixin.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/ipv6/mixin.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/lldp.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/lldp.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/lldp/header.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/lldp/header.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/lldp/mixin.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/lldp/mixin.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/tcp.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/tcp.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/tcp/ecn.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/tcp/ecn.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/tcp/flags.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/tcp/flags.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/tcp/header.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/tcp/header.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/tcp/hlen.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/tcp/hlen.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/tcp/mixin.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/tcp/mixin.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/tcp/option.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/tcp/option.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/tcp/options.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/tcp/options.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/tcp/reserved.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/tcp/reserved.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/udp.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/udp.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/udp/header.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/udp/header.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/protos/udp/mixin.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/protos/udp/mixin.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/structfu.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/structfu.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/utils.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/utils.rb
> install -D -m644 /«PKGBUILDDIR»/lib/packetfu/version.rb /«PKGBUILDDIR»/debian/ruby-packetfu/usr/lib/ruby/vendor_ruby/packetfu/version.rb
> /usr/bin/ruby1.9.1 -I/usr/lib/ruby/vendor_ruby /usr/lib/ruby/vendor_ruby/gem2deb/test_runner.rb
> /usr/bin/ruby1.9.1 -S rspec ./spec/ethpacket_spec.rb ./spec/packet_spec.rb ./spec/packet_subclasses_spec.rb ./spec/packetfu_spec.rb ./spec/structfu_spec.rb ./spec/tcp_spec.rb
> ..............................................................................................................................................................................................................
> 
> Finished in 0.42813 seconds
> 206 examples, 0 failures
> /usr/bin/ruby2.0 -I/usr/lib/ruby/vendor_ruby /usr/lib/ruby/vendor_ruby/gem2deb/test_runner.rb
> /usr/bin/ruby2.0 -S rspec ./spec/ethpacket_spec.rb ./spec/packet_spec.rb ./spec/packet_subclasses_spec.rb ./spec/packetfu_spec.rb ./spec/structfu_spec.rb ./spec/tcp_spec.rb
> /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in `require': /«PKGBUILDDIR»/lib/packetfu/protos/lldp.rb:19: invalid multibyte escape: /^\x01\x80\xc2\x00\x00[\x0e\x03\x00]/ (SyntaxError)
> 	from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in `require'
> 	from /«PKGBUILDDIR»/lib/packetfu.rb:20:in `block in require_protos'
> 	from /«PKGBUILDDIR»/lib/packetfu.rb:17:in `each'
> 	from /«PKGBUILDDIR»/lib/packetfu.rb:17:in `require_protos'
> 	from /«PKGBUILDDIR»/lib/packetfu.rb:148:in `<top (required)>'
> 	from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in `require'
> 	from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in `require'
> 	from /«PKGBUILDDIR»/spec/ethpacket_spec.rb:2:in `<top (required)>'
> 	from /usr/lib/ruby/vendor_ruby/rspec/core/configuration.rb:896:in `load'
> 	from /usr/lib/ruby/vendor_ruby/rspec/core/configuration.rb:896:in `block in load_spec_files'
> 	from /usr/lib/ruby/vendor_ruby/rspec/core/configuration.rb:896:in `each'
> 	from /usr/lib/ruby/vendor_ruby/rspec/core/configuration.rb:896:in `load_spec_files'
> 	from /usr/lib/ruby/vendor_ruby/rspec/core/command_line.rb:22:in `run'
> 	from /usr/lib/ruby/vendor_ruby/rspec/core/runner.rb:80:in `run'
> 	from /usr/lib/ruby/vendor_ruby/rspec/core/runner.rb:17:in `block in autorun'
> /usr/bin/ruby2.0 -S rspec ./spec/ethpacket_spec.rb ./spec/packet_spec.rb ./spec/packet_subclasses_spec.rb ./spec/packetfu_spec.rb ./spec/structfu_spec.rb ./spec/tcp_spec.rb failed
> ERROR: Test "ruby2.0" failed: 
> dh_auto_install: dh_ruby --install /«PKGBUILDDIR»/debian/ruby-packetfu returned exit code 1
> make: *** [binary] Error 1

The full build log is available from:
   http://aws-logs.debian.net/ftbfs-logs/2013/10/06/ruby-packetfu_1.1.8-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