[GHC] #15946: configure script makes use of argument flag that is not supported in OpenBSD
GHC
ghc-devs at haskell.org
Sun Nov 25 01:27:58 UTC 2018
#15946: configure script makes use of argument flag that is not supported in
OpenBSD
-------------------------------------+-------------------------------------
Reporter: klomeli | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone: 8.6.3
Component: Compiler | Version: 8.6.2
Keywords: configure | Operating System: OpenBSD
Architecture: | Type of failure: Building GHC
Unknown/Multiple | failed
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
After some head-scratching, I found that the configure script makes use of
the **-v** verbose flag. This flag does not exist in OpenBSD. It was
causing the build process to fail due to some files not existing during
the compilation process.
I'm getting around this by removing all **-v** occurrences as a pre-
compilation step:
{{{
find . -type f | xargs sed -i -e 's|^ln -f -v |ln -f |'
}}}
To make the process a little smoother for other folks, perhaps creating an
alias that is conditional based OS type at the header of the script along
the lines of would be best:
{{{
case "$build_os" in
openbsd*)
alias mksymlnk="ln -f"
;;
*)
alias mksymlnk="ln -f -v"
;;
esac
...
mksymlnk utils/fs/fs.* utils/lndir/
...
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15946>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list