Skip to content

fix: handle empty output from getconf#5473

Closed
mndrix wants to merge 1 commit intoocaml:mainfrom
mndrix:empty-getconf
Closed

fix: handle empty output from getconf#5473
mndrix wants to merge 1 commit intoocaml:mainfrom
mndrix:empty-getconf

Conversation

@mndrix
Copy link
Copy Markdown
Contributor

@mndrix mndrix commented Feb 21, 2022

If getconf prints nothing to its standard output, input_line raises
End_of_file instead of returning a string. That, or any other problem
while capturing the CPU count, should cause auto_concurrency to
attempt the next approach for detecting concurrency.

Fixes #5471

Signed-off-by: Michael Hendricks michael@ndrix.org

@rgrinberg rgrinberg added this to the 3.0.3 milestone Feb 22, 2022
If getconf prints nothing to its standard output, input_line raises
End_of_file instead of returning a string. That should cause
auto_concurrency to attempt the next approach for detecting
concurrency.

Fixes ocaml#5471

Signed-off-by: Michael Hendricks <michael@ndrix.org>
@rgrinberg
Copy link
Copy Markdown
Member

Thanks. I merged it.

@rgrinberg rgrinberg closed this Feb 22, 2022
rgrinberg added a commit to rgrinberg/opam-repository that referenced this pull request Mar 1, 2022
…e-rpc, dune-rpc-lwt, dune-private-libs, dune-glob, dune-configurator, dune-build-info and dune-action-plugin (3.0.3)

CHANGES:

- Do not enable warnings 63-70 by default (ocaml/dune#5476, fixes ocaml/dune#5464, @rgrinberg)

- Allow %{read-lines} to introduce dynamic dependencies like %{read}. (ocaml/dune#5440,
  @anmonteiro)

- Look up `gmake` before `make` (ocaml/dune#5474, fixes ocaml/dune#5470, @rgrinberg)

- Handle empty output from `getconf` (ocaml/dune#5473 fixes ocaml/dune#5471, @mndrix)

- Depend on any provided `foreign_archives` for ctypes stub generation (ocaml/dune#5475,
  @mbacarella)
@mndrix mndrix deleted the empty-getconf branch April 26, 2022 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3.0.2: "Error: exception End_of_file" for all builds on OpenBSD

2 participants