[GHC] #10172: Cross-platform sed
GHC
ghc-devs at haskell.org
Thu Aug 27 13:45:55 UTC 2015
#10172: Cross-platform sed
-------------------------------------+-------------------------------------
Reporter: ezyang | Owner:
Type: task | Status: new
Priority: normal | Milestone:
Component: Build System | Version: 7.11
Resolution: | Keywords:
Operating System: Solaris | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by thomie):
Can't we just make life easy for the majority of developers, and require
GNU tools.
There are already so many things to keep in mind when submitting a patch
to GHC, why make it even harder?
What's the problem with installing GNU tools on Solaris?
It would also free up time to fix *actual* problems on Solaris (there are
plenty, judging by the failing tests on the nightly builders), not these
silly compatibility issues.
For reference, in `configure.ac`:
{{{
dnl ** Find the path to sed
AC_PATH_PROGS(SedCmd,gsed sed,sed)
dnl ** check for time command
AC_PATH_PROG(TimeCmd,time)
dnl ** check for tar
dnl if GNU tar is named gtar, look for it first.
AC_PATH_PROGS(TarCmd,gnutar gtar tar,tar)
dnl ** check for patch
dnl if GNU patch is named gpatch, look for it first
AC_PATH_PROGS(PatchCmd,gpatch patch, patch)
}}}
Also:
{{{
commit 22f78dd456cdf6d6c123556e3f715d008ecd86cd
Author: Ian Lynagh <>
Date: Tue Dec 1 13:07:41 2009 +0000
Look for sed as gsed first
Solaris's sed apparently doesn't understand [:space:]
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10172#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list