[DRE-maint] Bug#742017: ruby-sigar FTBFS: build for mips/mipsel failed with TIOCGETC undeclared error

Dejan Latinovic Dejan.Latinovic at imgtec.com
Tue Mar 18 11:13:11 UTC 2014


Package: ruby-sigar
Version: 0.7.2-2
Tags: sid patch
Severity: important
Justification: FTBFS
User: debian-mips-dev-discuss at lists.alioth.debian.org
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mips-TIOCGETC-undeclared.patch
Type: text/x-patch
Size: 1150 bytes
Desc: mips-TIOCGETC-undeclared.patch
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20140318/349e52bc/attachment.bin>


More information about the Pkg-ruby-extras-maintainers mailing list