Bug#642161: [DRE-maint] Bug#642161: ruby-ffi: FTBFS on non-Linux archs
tag 642161 + confirmed thanks Pino Toscano escreveu isso aĆ: Package: ruby-ffi Version: 1.0.9debian-2 Severity: important Tags: patch Hi, currently ruby-ffi fails to build on kFreeBSD and Hurd. The problem is that the C ffi extension does not have a way to detect the endianness on these OSes. Given they both use GNU libc, we can use the same way (endian.h) used for the Linux case already; this is what the attached patch does. There is actually a few more portability issues there. I already pushed some patches upstream and will package a git snapshot soon. -- Antonio Terceiro terce...@debian.org signature.asc Description: Digital signature
Bug#642161: ruby-ffi: FTBFS on non-Linux archs
Package: ruby-ffi Version: 1.0.9debian-2 Severity: important Tags: patch Hi, currently ruby-ffi fails to build on kFreeBSD and Hurd. The problem is that the C ffi extension does not have a way to detect the endianness on these OSes. Given they both use GNU libc, we can use the same way (endian.h) used for the Linux case already; this is what the attached patch does. Thanks, -- Pino --- a/ext/ffi_c/endian.h +++ b/ext/ffi_c/endian.h @@ -4,7 +4,7 @@ #include sys/param.h #include sys/types.h -#if defined(__linux__) || defined(__CYGWIN__) +#if defined(__linux__) || defined(__CYGWIN__) || defined(__GLIBC__) # include_next endian.h #endif