[DRE-maint] Bug#995346: ruby-chef-utils: depends on the Internet during build
Steve Langasek
steve.langasek at canonical.com
Thu Sep 30 08:20:50 BST 2021
Source: ruby-chef-utils
Version: 16.12.3-2
Severity: important
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu impish
Hi Pirate,
The ruby-chef-utils package does not build from source on Ubuntu builders
because it tries to access the Internet during build, and fails when it
cannot reach a remote host:
[...]
Failures:
1) ChefUtils::DSL::PlatformFamily on centos8 reports false for rhel6?
Failure/Error: let(:node) { Fauxhai.mock(options).data }
SocketError:
Failed to open TCP connection to raw.githubusercontent.com:443 (getaddrinfo: Name or service not known)
# /usr/share/rubygems-integration/all/gems/fauxhai-7.4.0/lib/fauxhai/mocker.rb:50:in `block in data'
# /usr/share/rubygems-integration/all/gems/fauxhai-7.4.0/lib/fauxhai/mocker.rb:72:in `data'
# ./spec/unit/dsl/platform_family_spec.rb:36:in `block (2 levels) in <top (required)>'
# ./spec/unit/dsl/platform_family_spec.rb:30:in `block (2 levels) in pf_reports_true_for'
# ------------------
# --- Caused by: ---
# SocketError:
# getaddrinfo: Name or service not known
[...]
(https://launchpad.net/ubuntu/+source/ruby-chef-utils/16.12.3-2/+build/21689349)
This failure is reproducible by pointing raw.githubusercontent.com in
/etc/hosts to a host that returns connection refused on port 443.
The problem seems to be that the tests require ruby-fauxhai to report on
platforms for which it has no local data, causing it to fall back to the
website. I'm not sure if this is properly a fauxhai or a ruby-chef-utils
bug, but it makes the package unbuildable in Ubuntu, or on Debian systems
without a network.
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer https://www.debian.org/
slangasek at ubuntu.com vorlon at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20210930/4d631dc9/attachment.sig>
More information about the Pkg-ruby-extras-maintainers
mailing list