From b042c5cda98a4ce1b946d72c72ff1af211c5d3be Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Sun, 29 Sep 2024 19:35:26 -0400 Subject: [PATCH 1/2] Depend upon `unix` when building for Javascript The new `CommunicationsHandle` abstraction requires the `setFdOptions` from `unix`. Fixes #327. --- process.cabal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process.cabal b/process.cabal index 937ca65c..3f4a6ada 100644 --- a/process.cabal +++ b/process.cabal @@ -68,6 +68,7 @@ library extra-libraries: kernel32, ole32, rpcrt4 cpp-options: -DWINDOWS else + build-depends: unix >= 2.5 && < 2.9 if arch(javascript) js-sources: jsbits/process.js @@ -79,7 +80,6 @@ library cbits/posix/posix_spawn.c cbits/posix/find_executable.c other-modules: System.Process.Posix - build-depends: unix >= 2.5 && < 2.9 include-dirs: include install-includes: From b8c88fb5bbdebbcbb3e7c734f0c7515dd3cef84e Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Sun, 29 Sep 2024 19:57:00 -0400 Subject: [PATCH 2/2] Bump version to 1.6.25.0 --- changelog.md | 4 ++++ process.cabal | 2 +- test/process-tests.cabal | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index c55e87a1..e01843ee 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,9 @@ # Changelog for [`process` package](http://hackage.haskell.org/package/process) +## 1.6.25.0 *September 2024* + +* Fix build with Javascript backend ([#327](https://github.com/haskell/process/issues/327)) + ## 1.6.24.0 *September 2024* * Fix detection of `posix_spawn_file_actions_addchdir[_np]` ([#303](https://github.com/haskell/process/issues/303)) diff --git a/process.cabal b/process.cabal index 3f4a6ada..a780d3a9 100644 --- a/process.cabal +++ b/process.cabal @@ -1,6 +1,6 @@ cabal-version: 2.4 name: process -version: 1.6.24.0 +version: 1.6.25.0 -- NOTE: Don't forget to update ./changelog.md license: BSD-3-Clause license-file: LICENSE diff --git a/test/process-tests.cabal b/test/process-tests.cabal index d2a1fc76..d5c3ab49 100644 --- a/test/process-tests.cabal +++ b/test/process-tests.cabal @@ -18,7 +18,7 @@ source-repository head common process-dep build-depends: - process == 1.6.24.0 + process == 1.6.25.0 custom-setup setup-depends: