Description
Getting following error while creating DPKG from source.
/usr/bin/ruby3.0 -S gem build --config-file /dev/null --verbose /tmp/d20240522-3266536-n4he2y/gemspec Failed to load /dev/null because it doesn't contain valid YAML hash WARNING: See https://guides.rubygems.org/specification-reference/ for help ERROR: While executing gem ... (Gem::InvalidSpecificationException) cert_chain must not be nil /usr/lib/ruby/vendor_ruby/gem2deb.rb:54:in
run': /usr/bin/ruby3.0 -S gem build --config-file /dev/null --verbose /tmp/d20240522-3266536-n4he2y/gemspec (Gem2Deb::CommandFailed)
from /usr/lib/ruby/vendor_ruby/gem2deb/gem_installer.rb:212:in run_gem' from /usr/lib/ruby/vendor_ruby/gem2deb/gem_installer.rb:112:in
block (2 levels) in install_files_and_build_extensions'
from /usr/lib/ruby/vendor_ruby/gem2deb/gem_installer.rb:111:in chdir' from /usr/lib/ruby/vendor_ruby/gem2deb/gem_installer.rb:111:in
block in install_files_and_build_extensions'
from /usr/lib/ruby/vendor_ruby/gem2deb/gem_installer.rb:68:in each' from /usr/lib/ruby/vendor_ruby/gem2deb/gem_installer.rb:68:in
install_files_and_build_extensions'
from /usr/lib/ruby/vendor_ruby/gem2deb/installer.rb:28:in install' from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:86:in
block in install'
from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:84:in each' from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:84:in
install'
from /usr/bin/dh_ruby:89:in <main>' dh_auto_install: error: dh_ruby --install /home/pravin/ruby-eventmachine-httpserver-0.2.1/debian/ruby-eventmachine-httpserver returned exit code 1 make: *** [debian/rules:7: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 debuild: fatal error at line 1182: dpkg-buildpackage -us -uc -ui failed
GemSpec shows s.cert_chail = nil
`Gem::Specification.new do |s|
s.name = %q{eventmachine_httpserver}
s.version = "0.2.1"
s.specification_version = 1 if s.respond_to? :specification_version=
s.required_rubygems_version = nil if s.respond_to? :required_rubygems_version=
s.authors = ["Francis Cianfrocca"]
s.cert_chain = nil
s.date = %q{2007-03-16}
s.description = %q{}
s.email = %q{[email protected]}
s.extensions = ["ext/extconf.rb"]
s.extra_rdoc_files = git ls-files docs
.split
s.files = git ls-files | grep -v .gitignore
.split
s.has_rdoc = true
s.homepage = %q{https://github.com/eventmachine/evma_httpserver}
s.rdoc_options = ["--title", "EventMachine_HttpServer", "--main", "docs/README", "--line-numbers"]
s.require_paths = ["lib"]
s.required_ruby_version = Gem::Requirement.new("> 0.0.0")
s.rubygems_version = %q{1.3.1}
s.summary = %q{EventMachine HTTP Server}
end
`