From 0fd901d485c7f2d80ffd25c834f10a06f5b2d52f Mon Sep 17 00:00:00 2001 From: Alf Gaida Date: Thu, 14 Jan 2016 00:48:03 +0100 Subject: [PATCH] patching: 798053 'TCGETS' not declared --- debian/.gitignore | 8 +++++++ debian/changelog | 6 ++++++ debian/patches/series | 1 + debian/patches/tcgets.patch | 42 +++++++++++++++++++++++++++++++++++++ 4 files changed, 57 insertions(+) create mode 100644 debian/patches/series create mode 100644 debian/patches/tcgets.patch diff --git a/debian/.gitignore b/debian/.gitignore index 23bae61..b801435 100644 --- a/debian/.gitignore +++ b/debian/.gitignore @@ -1 +1,9 @@ /mangled +/*.debhelper/ +/files +/*.log +/*.substvars +/libqtermwidget5-0-dev/ +/libqtermwidget5-0/ +/qtermwidget5-data/ +/tmp/ diff --git a/debian/changelog b/debian/changelog index 48d510a..a6d47a6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +qtermwidget (0.6.0+20160108-2) unstable; urgency=medium + + * patching: 798053 'TCGETS' not declared + + -- Alf Gaida Thu, 14 Jan 2016 00:47:51 +0100 + qtermwidget (0.6.0+20160108-1) unstable; urgency=medium [ Alf Gaida ] diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..6b2b4d4 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +tcgets.patch diff --git a/debian/patches/tcgets.patch b/debian/patches/tcgets.patch new file mode 100644 index 0000000..495b0cb --- /dev/null +++ b/debian/patches/tcgets.patch @@ -0,0 +1,42 @@ +Description: fix FTBFS for non-linux + . +Author: Alf Gaida + +--- +Last-Update: + +--- a/lib/kpty.cpp ++++ b/lib/kpty.cpp +@@ -117,24 +117,20 @@ + # define _NEW_TTY_CTRL + #endif + +-#if defined (__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined (__bsdi__) || defined(__APPLE__) || defined (__DragonFly__) ++#if HAVE_TCGETATTR ++# define _tcgetattr(fd, ttmode) tcgetattr(fd, ttmode) ++#elif defined (__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined (__bsdi__) || defined(__APPLE__) || defined (__DragonFly__) + # define _tcgetattr(fd, ttmode) ioctl(fd, TIOCGETA, (char *)ttmode) + #else +-# if defined(_HPUX_SOURCE) || defined(__Lynx__) || defined (__CYGWIN__) +-# define _tcgetattr(fd, ttmode) tcgetattr(fd, ttmode) +-# else +-# define _tcgetattr(fd, ttmode) ioctl(fd, TCGETS, (char *)ttmode) +-# endif ++# define _tcgetattr(fd, ttmode) ioctl(fd, TCGETS, (char *)ttmode) + #endif + +-#if defined (__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined (__bsdi__) || defined(__APPLE__) || defined (__DragonFly__) ++#if HAVE_TCSETATTR ++# define _tcsetattr(fd, ttmode) tcsetattr(fd, TCSANOW, ttmode) ++#elif defined (__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined (__bsdi__) || defined(__APPLE__) || defined (__DragonFly__) + # define _tcsetattr(fd, ttmode) ioctl(fd, TIOCSETA, (char *)ttmode) + #else +-# if defined(_HPUX_SOURCE) || defined(__CYGWIN__) +-# define _tcsetattr(fd, ttmode) tcsetattr(fd, TCSANOW, ttmode) +-# else +-# define _tcsetattr(fd, ttmode) ioctl(fd, TCSETS, (char *)ttmode) +-# endif ++# define _tcsetattr(fd, ttmode) ioctl(fd, TCSETS, (char *)ttmode) + #endif + + //#include