Your message dated Wed, 16 Apr 2014 09:22:27 +0000
with message-id <[email protected]>
and subject line Bug#742017: fixed in ruby-sigar 0.7.2-3.1
has caused the Debian Bug report #742017,
regarding ruby-sigar FTBFS: build for mips/mipsel failed with TIOCGETC
undeclared error
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
742017: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=742017
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
Source: ruby-sigar
Source-Version: 0.7.2-3.1
We believe that the bug you reported is fixed in the latest version of
ruby-sigar, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Anibal Monsalve Salazar <[email protected]> (supplier of updated ruby-sigar
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Wed, 16 Apr 2014 01:11:13 +0100
Source: ruby-sigar
Binary: ruby-sigar
Architecture: source mipsel
Version: 0.7.2-3.1
Distribution: unstable
Urgency: medium
Maintainer: Debian Ruby Extras Maintainers
<[email protected]>
Changed-By: Anibal Monsalve Salazar <[email protected]>
Description:
ruby-sigar - System Information Gatherer And Reporter
Closes: 742017
Changes:
ruby-sigar (0.7.2-3.1) unstable; urgency=medium
.
* Non-maintainer upload.
* Define TIOCGETC
Patch by Dejan Latinovic
Closes: #742017
Checksums-Sha1:
f3f6892a59f7a4ee03241689e45f45e18d6f2272 2002 ruby-sigar_0.7.2-3.1.dsc
a7f975aa3ec576b7503e33931bccb805eb29bc3e 4432
ruby-sigar_0.7.2-3.1.debian.tar.xz
12989e52fc975390851514f6098a2c7e3dc968fd 61320 ruby-sigar_0.7.2-3.1_mipsel.deb
Checksums-Sha256:
7e8a79a49071fd50446e3dee3af1954d03bd8044bea57f675202a2f931bce91a 2002
ruby-sigar_0.7.2-3.1.dsc
aaaec9716636cd85284859a34bde8ec6cff92e174d3dc2a5f020baea0c520ebf 4432
ruby-sigar_0.7.2-3.1.debian.tar.xz
d23fd5b4997b59d2b1502b1b9b4b741386b7cd4a8f6007e21c855ddf26dbf2a5 61320
ruby-sigar_0.7.2-3.1_mipsel.deb
Files:
de12e35a14d651c1ccad606ce0e8cc34 2002 ruby optional ruby-sigar_0.7.2-3.1.dsc
865002815a0cbaa36d5e8d433c7d157a 4432 ruby optional
ruby-sigar_0.7.2-3.1.debian.tar.xz
17b5cfb4418ff7cf10b63109f022af72 61320 ruby optional
ruby-sigar_0.7.2-3.1_mipsel.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBCgAGBQJTTjbRAAoJEHxWrP6UeJfYGSoP/0VF/5RXBdfqrg03EAlQeJC1
tCj/ZpzirEMMoVuao5QYCqub39+53oxLd/JyKgK49NEwVmiuhJt193WPBYgzjK2W
/SANiTkIub29drhMMGKxSD1KC/ppVYXXgKObzhR87mIcgjqVSsuBs1M8pwOa9OpI
sZXWmUtjNjWKkJeKBeQxUQX3ZTtNUcDvcEcS5OSKaFLZhX6W5NuqMRLb5XjeIjzl
e8KOF546yMb33fk8flWdhlzU2/3xgAF0FuhCwIQugr+DcbIGF9nZKNOgE9YRRFP/
5gzU+SGaXr3LVapscFx8Q2IkAn9GD+qSY6t0MuigTdhxp3kHPytAY4eqeMShLpTh
bwRbpLgdkjuiDJWsqYhcBTts6zDmz4SROGfMVgy3ja8zGVYqzbg78yiDL354M8vi
ZKe8ECRheAj8j1S656CVVEit7mIoTbi2/I/Rd41YIrnLIQZZlLLpEm1V9qkRFij0
qM76qjaRZkvJHadQhBaIvNpyAEt6qaQBECw7I42JFIV4Gdxa/jGMWtEwFI6fg4Uh
WEti+i5UAh2GyyXOHi0kWvMWAruNPOwA1nE445oAEBdU90++tnHnUxTQMhE5/JCE
k/MEo/P2NmdcVLLOm1nBO3j3bvUwuYK4a/wLVzZg7UzAFMxnGOuKFQ6hsdoiHHhh
mym1CnmMNT4e8Wt4zmw4
=JN3d
-----END PGP SIGNATURE-----
--- End Message ---