[Buildroot] [PATCH] ruby: bump version to 2.4.0

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sun Feb 5 22:07:11 UTC 2017


Hello,

On Mon, 30 Jan 2017 10:18:39 +0100, Peter Korsgaard wrote:

> Yes, that might be the way to go. Notice that musl implements isinf /
> isnan as macros, so the detection fails. The reason why it doesn't cause
> linker errors is that include/ruby/missing.h checks if isnan is a macro
> before providing a local declaration:
> 
> #ifndef isnan
> # ifndef HAVE_ISNAN
> RUBY_EXTERN int isnan(double);
> # endif
> #endif
> 
> vs:
> 
> #ifndef HAVE_FINITE
> RUBY_EXTERN int finite(double);
> #endif
> 
> So another solution is to add an #ifndef finite around it. That fix
> could probably be upstreamed as they already do it for a number of other
> functions.

Vicente, since you provided the patch bumping ruby to 2.4.0, could you
provide a patch that fixes the build issues, as suggested by Peter?

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com


More information about the buildroot mailing list