Package: kde4libs / 4:4.14.2-5+deb8u2

hardcode_ptm_device.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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(-)

--- 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}")