Dummy file to be able to build on FreeBSD#12
Conversation
tucksaun
left a comment
There was a problem hiding this comment.
thank you for initiating this.
FreeBSD and Linux support might be relatively close in term of support so we should be able to extract part of truststore_linux.go to truststore_posix.go and make truststore_posix built for linux and freebsd.
@fabpot WDYT?
| os.Getenv("HOME") + "/.mozilla/firefox-trunk/*"} | ||
| NSSBrowsers = "Firefox and/or Chrome/Chromium" | ||
|
|
||
| CertutilInstallHelp string |
There was a problem hiding this comment.
It's been a while since I used FreeBSD (and never as a desktop) but I think it has NSS support (at least I find it in FreshPorts). In such case we should try to mimic linux support and update this with the appropriate NSS install command.
| func (ca *CA) installPlatform() error { | ||
| return nil | ||
| } |
There was a problem hiding this comment.
installing a custom certificate on FreeBSD seems to be done /usr/local/etc/ssl/cert/ and then run certctl rehash
There was a problem hiding this comment.
There is no /usr/local/etc/ssl/cert/ on a FreeBSD default installation. But if you install the ca_root_nss port, you get the following files:
/etc/ssl/cert.pem
/usr/local/etc/ssl/cert.pem.sample
/usr/local/openssl/cert.pem
/usr/local/share/certs/ca-root-nss.crt
/usr/local/share/licenses/ca_root_nss-3.108/LICENSE
/usr/local/share/licenses/ca_root_nss-3.108/MPL20
/usr/local/share/licenses/ca_root_nss-3.108/catalog.mk
|
Hi, Thank you for your comments. FWIW:
and it creates the following files in my home directory: If i can do other tests, feel free to ask. My mid-term goal, ideally, would be to add symfony-cli to the FreeBSD ports tree. |
|
@slegrand45 thank you for the feedback. As NSS is not included by default I guess one could contribute its support on FreeBSD later on. |
Hi,
Without this dummy "truststore_freebsd.go" file, i get these errors if i try a build on FreeBSD 14.3 / Go 1.21.13:
After adding this file, the build is ok and i am able to build symfony-cli. So i can install API Platform as described here : Getting Started With API Platform with Symfony
I guess this is really a workaround but, at least, i'm now able to use
symfony-clion FreeBSD 🙂