Bug 250831 - databases/postgresql13-server: Unwanted dependency on devel/llvm11 on FreeBSD 12.2-RELEASE
Summary: databases/postgresql13-server: Unwanted dependency on devel/llvm11 on FreeBSD...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-03 15:54 UTC by Christian Ullrich
Modified: 2021-01-22 17:19 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 2021-01-22 17:19:34 UTC
See also bug #250824. I've attached a patch there.