Package: ruby-sigar Version: 0.7.2-2 Tags: sid patch Severity: important Justification: FTBFS User: [email protected] Usertags: mips-patch
In an attempt to build the package on mips/mipsel, build failed with an error: > make[1]: Entering directory `/«PKGBUILDDIR»/bindings/ruby' > compiling sigar_format.c > compiling sigar_getline.c > sigar_getline.c: In function 'gl_char_init': > sigar_getline.c:416:14: error: 'TIOCGETC' undeclared (first use in this > function) > ioctl(0, TIOCGETC, &tch); Full build log is available here: https://buildd.debian.org/status/fetch.php?pkg=ruby-sigar&arch=mipsel&ver=0.7.2-2&stamp=1388676984 On MIPS architectures TIOCGETP is defined in: /usr/include/mips-linux-gnu/asm/ioctls.h, but TIOCGETC is not. Based on powerpc and alpha architectures, I created a patch that fixes this issue for mips/mipsel. The patch is attached. Could you consider applying this patch? Thanks, Dejan
diff -uNr ruby-sigar-0.7.2.orig/src/sigar_getline.c ruby-sigar-0.7.2/src/sigar_getline.c --- ruby-sigar-0.7.2.orig/src/sigar_getline.c 2012-04-11 04:46:09.000000000 +0000 +++ ruby-sigar-0.7.2/src/sigar_getline.c 2014-03-17 13:16:59.000000000 +0000 @@ -360,9 +360,12 @@ #if defined(__linux__) && defined(__alpha__) # define R__ALPHALINUX // = linux on Alpha #endif +#if defined(__linux__) && defined(__mips__) +# define R__MIPSLINUX // = linux on MIPS +#endif #if defined(TIOCGETP) && !defined(__sgi) && !defined(R__MKLINUX) && \ - !defined(R__ALPHALINUX) /* use BSD interface if possible */ + !defined(R__ALPHALINUX) &&!defined(R__MIPSLINUX) /* use BSD interface if possible */ #include <sgtty.h> static struct sgttyb new_tty, old_tty; static struct tchars tch; @@ -371,7 +374,7 @@ #ifdef SIGTSTP /* need POSIX interface to handle SUSP */ #include <termios.h> #if defined(__sun) || defined(__sgi) || defined(R__MKLINUX) || \ - defined(R__ALPHALINUX) + defined(R__ALPHALINUX) || defined(R__MIPSLINUX) #undef TIOCGETP /* Solaris and SGI define TIOCGETP in <termios.h> */ #undef TIOCSETP #endif
_______________________________________________ Pkg-ruby-extras-maintainers mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers
