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 Support for FreeBSD #36

Open
QantumEntangled opened this issue Mar 5, 2023 · 3 comments
Open

Add Support for FreeBSD #36

QantumEntangled opened this issue Mar 5, 2023 · 3 comments

Comments

@QantumEntangled
Copy link

The Linux executables are not compatible with the BSD (specifically FreeBSD in my case) architecture. I believe DotNet has support for compiling to FreeBSD now, but I am not familiar enough to do it myself (I couldn't find compiling instructions for Tone to follow).

@sandreas
Copy link
Owner

sandreas commented Mar 5, 2023

I believe DotNet has support for compiling to FreeBSD now

Mmh could you provide a source? Usually I keep an eye on the runtime id catalog on every dotnet release, but I do not see anything bsd related here.

There are some guides how to get some dotnet stuff working on FreeBSD, but it is a lot of effort and compiling dotnet sdk from scratch would definitely exceed the time limit of the github action to build releases for tone.

Maybe you could try to give docker on FreeBSD a shot?

https://wiki.freebsd.org/Docker

Example (be careful - this is untested sample scripting!)

# change these to your liking
DOCKER_USER="sandreas"
ZROOT="rpool"

# get root
su -

# install docker packages
pkg install docker-freebsd ca_root_nss

# create zfs dataset
zfs create -o mountpoint=/usr/docker $ZROOT/docker

# make docker available for user (instead of root only)
pw usermod $DOCKER_USER -G operator

# enable docker service on boot and start it now
sysrc -f /etc/rc.conf docker_enable="YES"
service docker start

# logout and login again

Then

docker pull sandreas/tone:v0.1.4
alias tone='docker run -it --rm -u $(id -u):$(id -g) -v "$(pwd)":/mnt sandreas/tone:v0.1.4'
tone --version 
tone dump a-file-in-current-dir.mp3

I never tried, but since FreeBSD is POSIX, it may work like that.

@rookiejet
Copy link

From cursory reading, it seems like upstream support for FreeBSD in .NET is getting close, so that's good news.
https://wiki.freebsd.org/.NET

In the meantime, you can run tone's Linux binaries through FreeBSD's linuxemu as well. That is how I'm using it atm, and it works reasonably well.
https://docs.freebsd.org/en/books/handbook/linuxemu/

@sandreas
Copy link
Owner

@rookiejet Thank you for providing this information. As soon as I find the time, tone will get some love again. It was a pretty busy summer this year but end of october is close \o/...

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

No branches or pull requests

3 participants