[GHC] #15946: configure script makes use of argument flag that is not supported in OpenBSD

#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

#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 Resolution: | 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: | -------------------------------------+------------------------------------- Description changed by klomeli: Old description:
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/ ...
}}}
New description: After some head-scratching, I found that the configure script makes use of **ln**'s **-v** verbose flag. This flag does not exist in OpenBSD's version of **ln**. 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#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15946: configure script makes use of ln -v flag which 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 Resolution: | 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: | -------------------------------------+------------------------------------- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15946#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15946: configure script makes use of ln -v flag which is not supported in OpenBSD -------------------------------------+------------------------------------- Reporter: klomeli | Owner: (none) Type: bug | Status: patch Priority: normal | Milestone: 8.6.3 Component: Compiler | Version: 8.6.2 Resolution: | Keywords: configure Operating System: OpenBSD | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D5425 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => patch * differential: => Phab:D5425 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15946#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15946: configure script makes use of ln -v flag which is not supported in OpenBSD
-------------------------------------+-------------------------------------
Reporter: klomeli | Owner: (none)
Type: bug | Status: patch
Priority: normal | Milestone:
Component: Compiler | Version: 8.6.2
Resolution: | Keywords: configure
Operating System: OpenBSD | Architecture:
Type of failure: Building GHC | Unknown/Multiple
failed | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D5425
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari

#15946: configure script makes use of ln -v flag which is not supported in OpenBSD -------------------------------------+------------------------------------- Reporter: klomeli | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.8.1 Component: Compiler | Version: 8.6.2 Resolution: fixed | Keywords: configure Operating System: OpenBSD | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D5425 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: patch => closed * resolution: => fixed * milestone: => 8.8.1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15946#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC