shawn | 18 Aug 2012 19:36

Bug#685239: ruby-pkg-config: /usr/lib/ruby/vendor_ruby/pkg-config.rb:91:in `search_pkg_config_by_dln_find_exe': undefined method `size' for nil:NilClass (NoMethodError)

Package: ruby-pkg-config
Version: 1.1.2-1
Severity: serious
Tags: patch upstream
Justification: renders package unusable

I converted my ruby binding to use ruby-pkg-config, because I take it that
when ruby is converted to multi-arch, ruby-pkg-config might bring multi-arch
cross-building support, which pkg-config-cross is currently broken, and requires
calling by FQN. This problem didn't happen on a full Precise system, only a cowbuilder
debian sid chroot.

It also appears to be fixed upstream

https://github.com/rcairo/pkg-config/commit/fe7d4ce2974b7727989951cc198019df04503658

/usr/lib/ruby/vendor_ruby/pkg-config.rb:91:in `search_pkg_config_by_dln_find_exe': undefined
method `size' for nil:NilClass (NoMethodError)
	from /usr/lib/ruby/vendor_ruby/pkg-config.rb:52:in `guess_native_pkg_config'
	from /usr/lib/ruby/vendor_ruby/pkg-config.rb:30:in `native_pkg_config'
	from /usr/lib/ruby/vendor_ruby/pkg-config.rb:287:in `guess_default_path'
	from /usr/lib/ruby/vendor_ruby/pkg-config.rb:105:in `initialize'
	from /usr/lib/ruby/vendor_ruby/pkg-config.rb:338:in `new'
	from /usr/lib/ruby/vendor_ruby/pkg-config.rb:338:in `package_config'
	from /usr/lib/ruby/vendor_ruby/pkg-config.rb:353:in `libs_only_l'
	from extconf.rb:5
	from /usr/lib/ruby/vendor_ruby/1.8/rubygems/ext/ext_conf_builder.rb:16:in `build'
	from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:62:in `build_and_install'
	from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:61:in `chdir'
	from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:61:in `build_and_install'
(Continue reading)


Gmane