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

freeBSD #22

Closed
mosteo opened this issue Mar 26, 2018 · 7 comments
Closed

freeBSD #22

mosteo opened this issue Mar 26, 2018 · 7 comments
Assignees
Labels
type: feature New feature or request

Comments

@mosteo
Copy link
Member

mosteo commented Mar 26, 2018

No description provided.

@mosteo mosteo added the type: feature New feature or request label Mar 26, 2018
@mosteo mosteo self-assigned this Mar 26, 2018
@mosteo mosteo added this to the 1.0 milestone Apr 29, 2018
@stcarrez
Copy link
Contributor

The biggest issue today is the availability of a recent compiler and recent gprbuild.
A user must first build and install a recent gprbuild (it works).
Then, the gcc6-aux will fail to build alr because several Ada 2012 pre-conditions are not recognized by gcc6.

@mosteo
Copy link
Member Author

mosteo commented Dec 16, 2019

Do you think it would be easy/useful to "downgrade" alr to gcc6? Or will freeBSD upgrade to gcc7+ in the near term?

@stcarrez
Copy link
Contributor

I have no visibility of Ada support on FreeBSD. The gcc6-aux is still a separate compiler and package installation. I don't forecast any change soon but I may be wrong.

If we can downgrade easily, I would suggest to make some FreeBSD branch (or whatever name) so that the mainstream keeps using the Ada 2012 features.

@mosteo
Copy link
Member Author

mosteo commented Dec 17, 2019

Given how shorthanded we are right now, perhaps the idea of a FreeBSD branch could be undertaken by some Adaist actively involved in/using FreeBSD

@mosteo mosteo removed this from the 1.0 milestone Dec 30, 2020
@stcarrez
Copy link
Contributor

stcarrez commented Aug 6, 2022

FYI, gcc6-aux has been removed in Feb 2022 from FreeBSD ports.

Now Alire builds with gcc 12.1 on FreeBSD 13.1 if you manage to have the gcc 12 compiler running on it.

The OS detection is lacking support for FreeBSD, in particular the case(os) condition cannot be setup for freebsd which is annoying. I can have a look at this.

Now, the biggest issue is not technical but if we introduce a new OS and we start to use it in crates, then the alire repository will have to change its version I think. In other words, how can we achieve backward compatibility if we add a new OS and want to publish a crate that defines conditions on it?

@mosteo
Copy link
Member Author

mosteo commented Aug 8, 2022

Great news about the GCC update.

Actually, unknown enum values are allowed in crates from an index, just for this use case. But still, publishing will be inconvenient as the checks are strict about not accepting unknown values, and so a new alr release is needed in order to be able to publish these crates normally.

We could be proactive and include plausible near-future variable values in these enums anyway.

And 1.2.1 is not far away...

stcarrez added a commit to stcarrez/alire that referenced this issue Aug 19, 2022
* update GNAT project to recognize -XOS=freebsd and configure accordingly
* add FreeBSD as a valid operating system
* add AMD64 as an alias for X86_64 because uname -m returns amd64 on FreeBSD
* add platform specific implementation for FreeBSD

To build on FreeBSD, we should use

gprbuild -j0 -P alr_env -XOS=freebsd
mosteo pushed a commit that referenced this issue Aug 26, 2022
* Add support for FreeBSD (#22)

* update GNAT project to recognize -XOS=freebsd and configure accordingly
* add FreeBSD as a valid operating system
* add AMD64 as an alias for X86_64 because uname -m returns amd64 on FreeBSD
* add platform specific implementation for FreeBSD

To build on FreeBSD, we should use

gprbuild -j0 -P alr_env -XOS=freebsd

* Fixes requested during code review

Co-authored-by: GHA <[email protected]>
@mosteo
Copy link
Member Author

mosteo commented Aug 26, 2022

Merged in #1148

@mosteo mosteo closed this as completed Aug 26, 2022
mosteo pushed a commit that referenced this issue Aug 26, 2022
* Add support for FreeBSD (#22)

* update GNAT project to recognize -XOS=freebsd and configure accordingly
* add FreeBSD as a valid operating system
* add AMD64 as an alias for X86_64 because uname -m returns amd64 on FreeBSD
* add platform specific implementation for FreeBSD

To build on FreeBSD, we should use

gprbuild -j0 -P alr_env -XOS=freebsd

* Fixes requested during code review

Co-authored-by: GHA <[email protected]>
@mosteo mosteo moved this to Waiting in Alire project Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature New feature or request
Projects
Archived in project
Development

No branches or pull requests

2 participants