[GHC] #8366: haskeline Posix backend needs #include <sys/termios.h> on Solaris
#8366: haskeline Posix backend needs #include <sys/termios.h> on Solaris -------------------------------------+------------------------------------- Reporter: oddsignals | Owner: Type: bug | Status: new Priority: high | Milestone: 7.8.1 Component: libraries (other) | Version: 7.7 Keywords: | Operating System: Solaris Architecture: Unknown/Multiple | Type of failure: Building GHC Difficulty: Easy (less than 1 | failed hour) | Test Case: Blocked By: | Blocking: Related Tickets: | -------------------------------------+------------------------------------- !System/Console/Haskeline/Backend/Posix.hsc needs an #include <sys/termios.h> to compile under Solaris. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8366> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8366: haskeline Posix backend needs #include <sys/termios.h> on Solaris -------------------------------------+------------------------------------- Reporter: oddsignals | Owner: Type: bug | Status: new Priority: high | Milestone: 7.8.1 Component: libraries | Version: 7.7 (other) | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Solaris | Difficulty: Easy (less than 1 Type of failure: Building GHC | hour) failed | Blocked By: Test Case: | Related Tickets: 8361 Blocking: | -------------------------------------+------------------------------------- Changes (by leroux): * related: => 8361 Comment: Thanks, I believe this will also fix #8361, If so, I'll close it (#8361) as a dupe. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8366#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8366: haskeline Posix backend needs #include <sys/termios.h> on Solaris -------------------------------------+------------------------------------- Reporter: oddsignals | Owner: Type: bug | Status: new Priority: high | Milestone: 7.8.1 Component: libraries | Version: 7.7 (other) | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Solaris | Difficulty: Easy (less than 1 Type of failure: Building GHC | hour) failed | Blocked By: Test Case: | Related Tickets: 8361 Blocking: | -------------------------------------+------------------------------------- Comment (by AlainODea): Should the patch have the full paths from the ghc base directory? It currently has to be applied from libraries/haskeline/ to work correctly. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8366#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8366: haskeline Posix backend needs #include <sys/termios.h> on Solaris -------------------------------------+------------------------------------- Reporter: oddsignals | Owner: Type: bug | Status: new Priority: high | Milestone: 7.8.1 Component: libraries | Version: 7.7 (other) | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Solaris | Difficulty: Easy (less than 1 Type of failure: Building GHC | hour) failed | Blocked By: Test Case: | Related Tickets: 8361 Blocking: | -------------------------------------+------------------------------------- Comment (by leroux): Yeah, it's a patch for the library itself. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8366#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8366: haskeline Posix backend needs #include <sys/termios.h> on Solaris -------------------------------------+------------------------------------- Reporter: oddsignals | Owner: Type: bug | Status: new Priority: high | Milestone: 7.8.1 Component: libraries | Version: 7.7 (other) | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Solaris | Difficulty: Easy (less than 1 Type of failure: Building GHC | hour) failed | Blocked By: Test Case: | Related Tickets: 8361 Blocking: | -------------------------------------+------------------------------------- Comment (by AlainODea): I learned how to use patch properly and I realize this is a non-issue: {{{ patch -p1 -d libraries/haskeline < \ 0001-Include-termios.h-for-solaris2-host.-Fixes-8366.patch }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8366#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8366: haskeline Posix backend needs #include <sys/termios.h> on Solaris -------------------------------------+------------------------------------- Reporter: oddsignals | Owner: Type: bug | Status: patch Priority: high | Milestone: 7.8.1 Component: libraries | Version: 7.7 (other) | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Solaris | Difficulty: Easy (less than 1 Type of failure: Building GHC | hour) failed | Blocked By: Test Case: | Related Tickets: 8361 Blocking: | -------------------------------------+------------------------------------- Changes (by leroux): * status: new => patch -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8366#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8366: haskeline Posix backend needs #include <sys/termios.h> on Solaris -------------------------------------+------------------------------------- Reporter: oddsignals | Owner: thoughtpolice Type: bug | Status: patch Priority: high | Milestone: 7.8.1 Component: libraries | Version: 7.7 (other) | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Solaris | Difficulty: Easy (less than 1 Type of failure: Building GHC | hour) failed | Blocked By: Test Case: | Related Tickets: 8361 Blocking: | -------------------------------------+------------------------------------- Changes (by thoughtpolice): * owner: => thoughtpolice -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8366#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8366: haskeline Posix backend needs #include <sys/termios.h> on Solaris -------------------------------------+------------------------------------- Reporter: oddsignals | Owner: thoughtpolice Type: bug | Status: patch Priority: high | Milestone: 7.8.1 Component: libraries | Version: 7.7 (other) | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Solaris | Difficulty: Easy (less than 1 Type of failure: Building GHC | hour) failed | Blocked By: Test Case: | Related Tickets: 8361 Blocking: | -------------------------------------+------------------------------------- Comment (by oddsignals): I've attached a patch for the segfaulting GHCi Solaris issue as well, as discussed on IRC. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8366#comment:7> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8366: haskeline Posix backend needs #include <sys/termios.h> on Solaris -------------------------------------+------------------------------------- Reporter: oddsignals | Owner: thoughtpolice Type: bug | Status: patch Priority: high | Milestone: 7.8.1 Component: libraries | Version: 7.7 (other) | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Solaris | Difficulty: Easy (less than 1 Type of failure: Building GHC | hour) failed | Blocked By: Test Case: | Related Tickets: 8361 Blocking: | -------------------------------------+------------------------------------- Comment (by judahj): haskeline.cabal already has: {{{ if os(solaris) { cpp-options: -DUSE_TERMIOS_H } }}} Do you know why that's not working? Do we need to change that condition, or fix Cabal to detect Solaris correctly? -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8366#comment:8> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8366: haskeline Posix backend needs #include <sys/termios.h> on Solaris -------------------------------------+------------------------------------- Reporter: oddsignals | Owner: thoughtpolice Type: bug | Status: infoneeded Priority: high | Milestone: 7.8.1 Component: libraries | Version: 7.7 (other) | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Solaris | Difficulty: Easy (less than 1 Type of failure: Building GHC | hour) failed | Blocked By: Test Case: | Related Tickets: 8361 Blocking: | -------------------------------------+------------------------------------- Changes (by thoughtpolice): * status: patch => infoneeded Comment: oddsignals, can you please comment on this ticket? Is this still needed for Solaris, or can you provide any more info? -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8366#comment:9> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8366: haskeline Posix backend needs #include <sys/termios.h> on Solaris -------------------------------------+------------------------------------- Reporter: oddsignals | Owner: thoughtpolice Type: bug | Status: infoneeded Priority: high | Milestone: 7.8.1 Component: libraries | Version: 7.7 (other) | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Solaris | Difficulty: Easy (less than 1 Type of failure: Building GHC | hour) failed | Blocked By: Test Case: | Related Tickets: #8361 #8670 Blocking: | -------------------------------------+------------------------------------- Changes (by hvr): * related: 8361 => #8361 #8670 Comment: Replying to [comment:8 judahj]:
{{{ if os(solaris) { cpp-options: -DUSE_TERMIOS_H } }}} Do you know why that's not working? Do we need to change that condition, or fix Cabal to detect Solaris correctly?
see also #8670 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8366#comment:10> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8366: haskeline Posix backend needs #include <sys/termios.h> on Solaris -------------------------------------+------------------------------------- Reporter: oddsignals | Owner: thoughtpolice Type: bug | Status: closed Priority: high | Milestone: 7.8.1 Component: libraries | Version: 7.7 (other) | Keywords: Resolution: fixed | Architecture: Unknown/Multiple Operating System: Solaris | Difficulty: Easy (less than 1 Type of failure: Building GHC | hour) failed | Blocked By: Test Case: | Related Tickets: #8361 #8670 Blocking: | -------------------------------------+------------------------------------- Changes (by thoughtpolice): * status: infoneeded => closed * resolution: => fixed * milestone: 7.8.3 => 7.8.1 Comment: This looks fixed. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8366#comment:11> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC