#12103 - CI for FreeBSD (#12179)

* Ref #12103 - adds FreeBSD CI
* Fix getApplFreebsd - length of the string includes the null terminator byte, so minus 1 for result length
* Show last commit in setup task.
* Remove .git from repository URL
* Don't include noisy details showing last commit.
* Add FreeBSD build status badge
* Fix #12182 - disable tconsole on FreeBSD
* Disable tgetaddrinfo on FreebSD as getaddrinfo doesn't support the ICMP protocol.
* Install boehm-gc-threaded
* Use libgc-threaded.so on FreeBSD rather than libgc.so.
* Simplify build failure handling. Update alt text for CI badge.
* Disable test on FreeBSD
* Simplify build config

- use GNU make to build csources
- set PATH variable using the environment key
- remove modification of config to set CC as this is already set

* Install git which seems to be missing from current freebsd images
* Revert change to how path is set
* Add a comment explaining why the length is truncated
* Fix tconsole.
This commit is contained in:
Euan
2019-11-29 20:00:54 +00:00
committed by Andreas Rumpf
parent 7e6e399d10
commit c5c6bae2a4
10 changed files with 44 additions and 3 deletions

View File

@@ -2722,7 +2722,8 @@ when not weirdTarget and (defined(freebsd) or defined(dragonfly)):
result.setLen(0) # error!
break
else:
result.setLen(pathLength)
# trim the trailing null byte, as the result is a string not a cstring
result.setLen(pathLength-1)
break
when not weirdTarget and (defined(linux) or defined(solaris) or defined(bsd) or defined(aix)):

View File

@@ -1998,6 +1998,8 @@ when defined(boehmgc):
const boehmLib = "libgc.dylib"
elif defined(openbsd):
const boehmLib = "libgc.so.4.0"
elif defined(freebsd):
const boehmLib = "libgc-threaded.so.1"
else:
const boehmLib = "libgc.so.1"
{.pragma: boehmGC, noconv, dynlib: boehmLib.}