haskell / unix

POSIX functionality
https://hackage.haskell.org/package/unix
Other
107 stars 92 forks source link

Fix building and testing with the JS backend #290

Closed hsyl20 closed 1 year ago

hsyl20 commented 1 year ago

Note that most tests have been disabled because they don't pass due to missing C function support (e.g. pipe). But it's a good basis to start adding tests for supported things (e.g. touchFd, cf #285).

This requires a recent version of GHC that provides getMonotonicTimeNSec. See https://gitlab.haskell.org/ghc/ghc/-/issues/23687 and https://gitlab.haskell.org/ghc/ghc/-/merge_requests/10900.

hsyl20 commented 1 year ago

For some reason, Fedora mirror site is 404

bgamari commented 1 year ago

Thanks for doing this, @hsyl20 !

Bodigrim commented 1 year ago

@hsyl20 is it expected that this PR submits config.{guess,sub}?

hsyl20 commented 1 year ago

Yes otherwise the platform isn't recognized by the configure script.

hsyl20 commented 1 year ago

(we overwrite these files when we build the package in the ghc tree)