Postgrest: FreeBSD port

Created on 14 Jan 2019  Â·  14Comments  Â·  Source: PostgREST/postgrest

Doing manual releases gets tedious quickly(also my FreeBSD disk partition got damaged recently, cannot boot into it :crying_cat_face:).

We could try to automate FreeBSD releases with Cirrus CI, which recently announced support for FreeBSD https://forums.freebsd.org/threads/cirrus-ci-free-freebsd-ci-testing-for-open-source-projects.68560/.

ci help wanted

Most helpful comment

The command would be pkg install hs-postgrest right?

Yes

All 14 comments

Made some progress on this at https://github.com/steve-chavez/postgrest/blob/cirrus-2/.cirrus.yml

Unfortunately the updated GHC broke the build again. I'm leaving the link here in case someone wants to pick it up.

It would be even better if someone can help creating a FreeBSD port. There was an initiative but it didn't got finished.

Main problem FreeBSD ports don't support building via stack, it support only cabal.
But my attempts compile from sources using cabal = failed.

@dwagin Oh, I didn't know that. Maybe the archlinux package PKGBUILD can be of help: https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/postgrest. Looks like it only uses runhaskell.

@dwagin Building with cabal is now possible!

I've added a CI for FreeBSD that has the steps to build postgrest. See here: https://github.com/PostgREST/postgrest/blob/master/.cirrus.yml#L30-L34.

The CI will also ensure that we keep building successfully on FreeBSD.

It'd be great if you could help us with a FreeBSD port!

@steve-chavez I think I'm making some progress.
Which architectures are suitable for postgrest? i386, amd64?

@dwagin Great news!

I think amd64 would be good enough.

In case you're wondering, here's a complete list of what platforms GHC supports: https://gitlab.haskell.org/ghc/ghc/-/wikis/platforms.

@dwagin Nice! Let me know when the patch is merged and I'll include the FreeBSD port on the install page: http://postgrest.org/en/v7.0.0/install.html.

Hi @steve-chavez, hs-postgrest (FreshPorts) commited.

@dwagin Awesome! I'll add that to the install docs!

The command would be pkg install hs-postgrest right?

The command would be pkg install hs-postgrest right?

Yes

@dwagin Added hs-postgrest to the install page!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

isairz picture isairz  Â·  24Comments

LorenzHenk picture LorenzHenk  Â·  23Comments

posix4e picture posix4e  Â·  34Comments

gmiddleton picture gmiddleton  Â·  23Comments

dudleycarr picture dudleycarr  Â·  25Comments