]> code.ossystems Code Review - openembedded-core.git/commit
ruby: fix non-IPv6 support
authorAndré Draszik <andre.draszik@jci.com>
Tue, 1 Oct 2019 09:54:51 +0000 (10:54 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 2 Oct 2019 09:09:28 +0000 (10:09 +0100)
commit6ff71dd308b1611df7a8ea811a79b7cb884c99e9
tree88111c29bd934e41d0825a0e635c41a542759e5b
parentb1afaccdba31341cace4b8d84d118ca76098587e
ruby: fix non-IPv6 support

When IPv6 support is disabled, this recipe mis-configures
ruby so that it end up non-working:
--enable-wide-getaddrinfo instructs ruby to re-implement
the standard getaddinfo(), but IPv6 support is still
automatically detected via ext/socket/extconf.rb
independently of that flag.

To re-implement getaddrinfo(), ruby uses the obsolete
getipnodebyaddr() and getipnodebyname() functions - i.e.
according to the man-page, glibc provided those only in
glibc 2.1.91-95; and of course compilation fails. [1]

Switch to ruby's standard --enable-ipv6= configure
options to make the build work without warnings, and
ruby work at runtime as well.

[1] Compilation and linking actually succeed, albeit with
a warning regarding implicit declaration / unresolved
symbols. The error is only obvious at runtime due to the
unresolved symbols...

Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/ruby/ruby_2.5.5.bb