8000 fix: handle empty output from getconf by mndrix · Pull Request #5473 · ocaml/dune · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: handle empty output from getconf #5473

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

mndrix
Copy link
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
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
0