The current pkg-plist-server includes a long list of LLVM bitcode (.bc) files that are packaged if the LLVM build option is enabled. However some of these files are not compiled if certain other options are disabled. For example with OPENSSL and GSSAPI disabled I see this error:
=======================<phase: package >============================
===> Building package for postgresql12-server-12.0
pkg-static: Unable to access file /wrkdirs/usr/ports/databases/postgresql12-server/work/stage/usr/local/lib/postgresql/bitcode/postgres/libpq/be-gssapi-common.bc:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/databases/postgresql12-server/work/stage/usr/local/lib/postgresql/bitcode/postgres/libpq/be-secure-gssapi.bc:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/databases/postgresql12-server/work/stage/usr/local/lib/postgresql/bitcode/postgres/libpq/be-secure-openssl.bc:No such file or directory
*** Error code 1
This affects databases/postgresql11-server as well.
Created attachment 208208 [details]
Patch to fix packaging errors
This patch will fix this packaging issue for the postgresql12-server port.
It will do so by declaring two additional PLIST variables %%GSSAPI%% and %%SSL%% in the Makefile for the corresponding options, that should be used in pkg-plist-server to isolate missing files at the package stage.
Created attachment 208209 [details]
Archive with the build logs
This is the Synth test build logs performed on FreeBSD 11.3 adm64 machine.
This archive includes four build logs with LLVM ON, and different GSSAPI and SSL options.
Added patch for the databases/postgresql11-server port