1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
From: Debian/Kubuntu Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Date: Wed, 13 Apr 2016 16:40:33 +0200
Subject: hardcode_ptm_device
In a build environment /dev/ptmx is not always present.
Bypass build time check as /dev/ptmx is alsways present at runtime.
---
ConfigureChecks.cmake | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 25c869e867..a8292511be 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -176,13 +176,7 @@ if (UNIX)
set(HAVE_OPENPTY)
execute_process(
- COMMAND sh -c "
- for ptm in ptc ptmx ptm ptym/clone; do
- if test -c /dev/$ptm; then
- echo /dev/$ptm
- break
- fi
- done"
+ COMMAND sh -c "echo /dev/ptmx"
OUTPUT_VARIABLE PTM_DEVICE
OUTPUT_STRIP_TRAILING_WHITESPACE)
message(STATUS "PTY multiplexer: ${PTM_DEVICE}")
|