• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/expect/0001-enable-cross-compilation.patch
Peter KorsgaardPeter Korsgaard committed 298cd8eaa2103 Feb 2015
Raw file
Source viewDiff to previous
 
1
From: Andrew Ruder <andrew.ruder@elecsyscorp.com>
2
Subject: [PATCH] enable cross compilation for expect
3
​
4
This patch was created by running ./configure on a modern Linux machine
5
and inserting the results into the cross compilation section of
6
each AC_MSG_CHECKING that bombed out with an error.
7
​
8
Signed-off-by: Andrew Ruder <andrew.ruder@elecsyscorp.com>
9
---
10
​
11
Index: expect-5.45/configure.in
12
===================================================================
13
--- expect-5.45.orig/configure.in   2013-11-14 07:59:58.732100595 -0600
14
+++ expect-5.45/configure.in    2013-11-14 07:59:58.732100595 -0600
15
@@ -481,7 +481,7 @@
16
 ,
17
    AC_MSG_RESULT(no)
18
 ,
19
-   AC_MSG_ERROR([Expect can't be cross compiled])
20
+   AC_MSG_RESULT(no)
21
 )
22
 
23
 AC_MSG_CHECKING([if any value exists for WNOHANG])
24
@@ -506,7 +506,8 @@
25
    AC_MSG_RESULT(no)
26
    AC_DEFINE(WNOHANG_BACKUP_VALUE, 1)
27
 ,
28
-   AC_MSG_ERROR([Expect can't be cross compiled])
29
+   AC_MSG_RESULT(yes)
30
+   AC_DEFINE(WNOHANG_BACKUP_VALUE, 1)
31
 )
32
 
33
 #
34
@@ -574,7 +575,7 @@
35
    AC_DEFINE(REARM_SIG)
36
 ,
37
    AC_MSG_RESULT(no)
38
-, AC_MSG_WARN([Expect can't be cross compiled])
39
+, AC_MSG_RESULT(no)
40
 )
41
 
42
 # HPUX7 has trouble with the big cat so split it
43
@@ -725,7 +726,7 @@
44
 ,
45
         AC_MSG_RESULT(no)
46
 ,
47
-   AC_MSG_ERROR([Expect can't be cross compiled])
48
+   AC_MSG_RESULT(no)
49
 )
50
 
51
 # mach systems have include files for unimplemented features
52
@@ -749,7 +750,9 @@
53
 ,
54
         AC_MSG_RESULT(no)
55
 ,
56
-   AC_MSG_ERROR([Expect can't be cross compiled])
57
+    AC_DEFINE(HAVE_TERMIO)
58
+    PTY_TYPE=termios
59
+   AC_MSG_RESULT(yes)
60
 )
61
 
62
   # now check for the new style ttys (not yet posix)
63
@@ -771,7 +774,9 @@
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.