[DRE-maint] Bug#742017: NMU patch for ruby-sigar_0.7.2-3.1
Aníbal Monsalve Salazar
anibal at debian.org
Wed Apr 16 01:22:52 UTC 2014
Hello,
At Imagination Technologies (http://imgtec.com/) Dejan Latinovic have
found a solution to Debian bug #742017.
https://bugs.debian.org/742017
My NMU patch for ruby-sigar_0.7.2-3.1 is below, at the end of this
message.
With the changes in the NMU patch ruby-sigar builds successfully on
mips, mipsel and amd64.
Please note that this bug has been open without a response for more than
four weeks.
Regards,
Aníbal
--
Aníbal Monsalve Salazar <Anibal.MonsalveSalazar at imgtec.com>
debdiff ruby-sigar_0.7.2-3.dsc ruby-sigar_0.7.2-3.1.dsc
diff -Nru ruby-sigar-0.7.2/debian/changelog ruby-sigar-0.7.2/debian/changelog
--- ruby-sigar-0.7.2/debian/changelog 2014-04-04 10:05:50.000000000 +0100
+++ ruby-sigar-0.7.2/debian/changelog 2014-04-16 01:11:20.000000000 +0100
@@ -1,3 +1,12 @@
+ruby-sigar (0.7.2-3.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Define TIOCGETC
+ Patch by Dejan Latinovic
+ Closes: #742017
+
+ -- Anibal Monsalve Salazar <anibal at debian.org> Wed, 16 Apr 2014 01:11:13 +0100
+
ruby-sigar (0.7.2-3) unstable; urgency=low
* Bump gem2deb build dep to 0.7.4~
diff -Nru ruby-sigar-0.7.2/debian/patches/mips-TIOCGETC-undeclared.patch ruby-sigar-0.7.2/debian/patches/mips-TIOCGETC-undeclared.patch
--- ruby-sigar-0.7.2/debian/patches/mips-TIOCGETC-undeclared.patch 1970-01-01 01:00:00.000000000 +0100
+++ ruby-sigar-0.7.2/debian/patches/mips-TIOCGETC-undeclared.patch 2014-04-16 01:09:59.000000000 +0100
@@ -0,0 +1,37 @@
+From: Dejan Latinovic <Dejan.Latinovic at imgtec.com>
+Date: Mon, 17 Mar 2014 19:23:47 +0100
+Description: define TIOCGETC
+ On MIPS archs 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.
+Debian-Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=742017
+
+diff -uNr a/src/sigar_getline.c b/src/sigar_getline.c
+--- a/src/sigar_getline.c 2012-04-11 05:46:09.000000000 +0100
++++ b/src/sigar_getline.c 2014-04-16 01:06:13.829243757 +0100
+@@ -360,9 +360,12 @@ static void search_forw(int s);
+ #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 @@ static struct ltchars ltch;
+ #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
diff -Nru ruby-sigar-0.7.2/debian/patches/series ruby-sigar-0.7.2/debian/patches/series
--- ruby-sigar-0.7.2/debian/patches/series 1970-01-01 01:00:00.000000000 +0100
+++ ruby-sigar-0.7.2/debian/patches/series 2014-03-18 06:01:24.000000000 +0000
@@ -0,0 +1 @@
+mips-TIOCGETC-undeclared.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20140416/85796f05/attachment.sig>
More information about the Pkg-ruby-extras-maintainers
mailing list