Bug 250831

Summary: databases/postgresql13-server: Unwanted dependency on devel/llvm11 on FreeBSD 12.2-RELEASE
Product: Ports & Packages Reporter: Christian Ullrich <chris>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed DUPLICATE    
Severity: Affects Only Me CC: brooks, decke, girgen, olce, pgsql
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Christian Ullrich 2020-11-03 15:54:57 UTC
On 12.2-RELEASE (where the system compiler is clang 10.0.1), the llvm dependency should be version 10 according to the comments. Instead, it depends on the highest available version 11.

The Makefile checks ${COMPILER_VERSION} <= 11 (line 249), but with clang 10.0, ${COMPILER_VERSION} is 100, contrary to its specification ("two digits") in Uses/compiler.mk .

Fix: Another painful conditional catering to both one-digit and two-digit major versions, unless compiler.mk can be persuaded to provide the major version only (or we can assume that versions 8 and 80 are not in circulation at the same time).
Comment 1 Olivier Certner freebsd_committer freebsd_triage 2021-01-22 17:19:34 UTC
See also bug #250824. I've attached a patch there.
Comment 2 Palle Girgensohn freebsd_committer freebsd_triage 2021-05-14 23:35:45 UTC

*** This bug has been marked as a duplicate of bug 250824 ***