Skip to content
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

getconf: LONG_BIT: unknown variable #6215

Open
mndrix opened this issue Sep 30, 2024 · 4 comments · May be fixed by #6217
Open

getconf: LONG_BIT: unknown variable #6215

mndrix opened this issue Sep 30, 2024 · 4 comments · May be fixed by #6217

Comments

@mndrix
Copy link
Contributor

mndrix commented Sep 30, 2024

On OpenBSD 7.5 amd64 running opam version 2.3.0~alpha1, opam upgrade produces the following error:

getconf: LONG_BIT: unknown variable
'opam upgrade' failed.
Fatal error:
End_of_file

The output of opam config report 2>&1 encounters the same error:

# opam config report
# opam-version         2.3.0~alpha1
# self-upgrade         no
getconf: LONG_BIT: unknown variable
# read-state           End_of_file

It doesn't look like I'll get around to sending a patch this week, but maybe this weekend 🤞

@dra27
Copy link
Member

dra27 commented Sep 30, 2024

Cross-referencing #5950

@kit-ty-kate
Copy link
Member

It looks like OpenBSD is the only unix platform i could find where uname -m actually returns the "kernel architecture" instead of the "machine architecture" so the call to getconf LONG_BIT or equivalent is not required here.

Source:

I'll open a PR in the next hour

@kit-ty-kate kit-ty-kate linked a pull request Sep 30, 2024 that will close this issue
@kit-ty-kate
Copy link
Member

That took a bit longer than expected as i had an idea on how to improve related code and discovered a bug elsewhere.
Anyway, this hasn't been tested outside of Linux yet but i believe it should work so feel free to test it: #6217

@mndrix
Copy link
Contributor Author

mndrix commented Oct 1, 2024

Confirming that #6217 fixes this problem for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants