Skip to content

Add support for FreeBSD (#22)#1148

Merged
mosteo merged 2 commits into
alire-project:masterfrom
stcarrez:freebsd
Aug 26, 2022
Merged

Add support for FreeBSD (#22)#1148
mosteo merged 2 commits into
alire-project:masterfrom
stcarrez:freebsd

Conversation

@stcarrez

Copy link
Copy Markdown
Contributor
  • 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

* 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

@Fabien-Chouteau Fabien-Chouteau left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @stcarrez

Comment thread src/alire/alire-platforms.ads Outdated

@mosteo mosteo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @stcarrez, just some trivial tweaks on my side.

Comment thread src/alire/alire-platforms.ads Outdated
Comment thread src/alire/alire-platforms.ads Outdated
Comment thread src/alire/alire-platforms.ads Outdated
@mosteo mosteo merged commit 2e1fc63 into alire-project:master Aug 26, 2022
@mosteo mosteo mentioned this pull request Aug 26, 2022
mosteo pushed a commit that referenced this pull request 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 <actions@github.com>
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.

4 participants