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

Add OpenBSD support. #1705

Merged
merged 2 commits into from
Jul 5, 2024
Merged

Add OpenBSD support. #1705

merged 2 commits into from
Jul 5, 2024

Conversation

ibara
Copy link
Contributor

@ibara ibara commented Jun 23, 2024

Add OpenBSD support.

I am running the latest OpenBSD/amd64 -current with tip-of-tree GNAT:

GNAT 15.0.0 20240622 (experimental)
Copyright (C) 1996-2024, Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

The test suite (run in a venv) looks like this:

INFO     Summary:
_  PASS         220
_  FAIL         46
_  SKIP         5

Thanks.

@mosteo
Copy link
Member

mosteo commented Jun 23, 2024

Thanks, @ibara. Do you think we could use e.g. https://github.com/marketplace/actions/cross-platform-action to run our testsuite on OpenBSD?

@ibara
Copy link
Contributor Author

ibara commented Jun 24, 2024

Thanks, @ibara. Do you think we could use e.g. https://github.com/marketplace/actions/cross-platform-action to run our testsuite on OpenBSD?

Probably. Honestly, I've not tried it so I am not sure how to set it up. Also, OpenBSD does not ship a package of GCC 15 (it ships a package of GCC 11.2.0, soon to be 11.4.0). And OpenBSD also does not ship a package of gprbuild I built it from bootstrap and used that to build alire.

I can get you a package of those things, but it would be for OpenBSD -current, not 7.5 release, if that works for you.

@mosteo
Copy link
Member

mosteo commented Jun 25, 2024

Mmm I see. GNAT 11 shouldn't be a problem, but the lack of gprbuild would be, unless it's simple to build.

It doesn't make much sense to have a complicated or involved setup if users are unlikely to go through the same process. The idea of testing these platforms is not only to check that alr works, but also that the default user experience also works. Also, I prefer to test a platform that is more likely to be the one chosen by users and that also has some guaranteed lifetime, e.g., stable releases.

Given that any Alire would-be-user would need to build its own gprbuild, could you elaborate a bit about the difficulty of that?

@ibara
Copy link
Contributor Author

ibara commented Jun 28, 2024

Given that any Alire would-be-user would need to build its own gprbuild, could you elaborate a bit about the difficulty of that?

It was very simple. I'll write up some directions for you shortly.

@mosteo
Copy link
Member

mosteo commented Jul 5, 2024

I'm merging these changes, as the testing support can be added at a latter date.

@mosteo mosteo merged commit 3afe31a into alire-project:master Jul 5, 2024
26 checks passed
@ibara
Copy link
Contributor Author

ibara commented Jul 5, 2024

Thanks. Sorry, I've been traveling for the US holiday but hope to get you something early next week.

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.

2 participants