diff options
author | wiedi <wiedi> | 2014-02-09 17:19:14 +0000 |
---|---|---|
committer | wiedi <wiedi> | 2014-02-09 17:19:14 +0000 |
commit | 8f25e922841e43b72cf34979e3c64431a858e3f8 (patch) | |
tree | 68265ec855c6c71eb3a3681bb5378fd49aba5f29 /x11/qt5-qtbase | |
parent | 59cfb021a222708a58af0aea904cf19aa245acc3 (diff) | |
download | pkgsrc-8f25e922841e43b72cf34979e3c64431a858e3f8.tar.gz |
Fix qt5-qtserialport on SunOS by patching cfmakeraw usage
Diffstat (limited to 'x11/qt5-qtbase')
-rw-r--r-- | x11/qt5-qtbase/distinfo | 3 | ||||
-rw-r--r-- | x11/qt5-qtbase/patches/patch-qtserialport_src_serialport_qserialport__unix.cpp | 21 |
2 files changed, 23 insertions, 1 deletions
diff --git a/x11/qt5-qtbase/distinfo b/x11/qt5-qtbase/distinfo index a652c7eeecf..14852086bc1 100644 --- a/x11/qt5-qtbase/distinfo +++ b/x11/qt5-qtbase/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.7 2014/01/28 08:46:14 ryoon Exp $ +$NetBSD: distinfo,v 1.8 2014/02/09 17:19:14 wiedi Exp $ SHA1 (qt-everywhere-opensource-src-5.2.0.tar.xz) = 7d9d8cad4434bc200d9ed87b3c7cb39654a2f1b4 RMD160 (qt-everywhere-opensource-src-5.2.0.tar.xz) = b2dd68f622fa7ff271ef621a7c7f17f2ecf7be9d @@ -43,6 +43,7 @@ SHA1 (patch-qtquick1_tests_auto_declarative_qdeclarativeimage_tst__qdeclarativei SHA1 (patch-qtscript_src_3rdparty_javascriptcore_JavaScriptCore_config.h) = 66dc22ee78727c84f1e82dc10bb342d514f8f9a0 SHA1 (patch-qtscript_src_3rdparty_javascriptcore_JavaScriptCore_runtime_JSValue.h) = ee35790f58ec9cf4d1a370f5549d92b5a680f557 SHA1 (patch-qtscript_src_3rdparty_javascriptcore_JavaScriptCore_wtf_Platform.h) = ea5d9249aaa6e00b2111e0ba5bd8337f2e0f345a +SHA1 (patch-qtserialport_src_serialport_qserialport__unix.cpp) = 27ff0bdedda6099f11ebb3eb4c377052bb605ddd SHA1 (patch-qttools_src_assistant_3rdparty_clucene_src_CLucene_index_SegmentMerger.cpp) = 67c3422f65338ea29d03e45f51bb0f40274760d1 SHA1 (patch-qttools_src_assistant_3rdparty_clucene_src_CLucene_search_FieldCacheImpl.cpp) = 5dc1139b4dbfd464bfecd9eac86090064e5ae816 SHA1 (patch-qttools_src_assistant_3rdparty_clucene_src_CLucene_util_Arrays.h) = 30562da15ccfd3034b6db5430e7abdab2fd5cb94 diff --git a/x11/qt5-qtbase/patches/patch-qtserialport_src_serialport_qserialport__unix.cpp b/x11/qt5-qtbase/patches/patch-qtserialport_src_serialport_qserialport__unix.cpp new file mode 100644 index 00000000000..c56788442c4 --- /dev/null +++ b/x11/qt5-qtbase/patches/patch-qtserialport_src_serialport_qserialport__unix.cpp @@ -0,0 +1,21 @@ +$NetBSD: patch-qtserialport_src_serialport_qserialport__unix.cpp,v 1.1 2014/02/09 17:19:14 wiedi Exp $ + +SunOS doesn't have cfmakeraw +--- qtserialport/src/serialport/qserialport_unix.cpp.orig 2013-12-08 17:09:55.000000000 +0000 ++++ qtserialport/src/serialport/qserialport_unix.cpp +@@ -236,7 +236,15 @@ bool QSerialPortPrivate::open(QIODevice: + } + + currentTermios = restoredTermios; ++#if defined(__sun) ++ currentTermios.c_iflag &= ~(IMAXBEL|IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON); ++ currentTermios.c_oflag &= ~OPOST; ++ currentTermios.c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN); ++ currentTermios.c_cflag &= ~(CSIZE|PARENB); ++ currentTermios.c_cflag |= CS8; ++#else + ::cfmakeraw(¤tTermios); ++#endif + currentTermios.c_cflag |= CLOCAL; + currentTermios.c_cc[VTIME] = 0; + currentTermios.c_cc[VMIN] = 0; |