git: 7ea16565f303 - main - Uses/llvm.mk: remove broken pre-llvm10 support
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 17 Feb 2025 18:37:15 UTC
The branch main has been updated by brooks:
URL: https://cgit.FreeBSD.org/ports/commit/?id=7ea16565f303706d3b75e1f44ec513e044a58859
commit 7ea16565f303706d3b75e1f44ec513e044a58859
Author: Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2025-02-17 18:37:07 +0000
Commit: Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2025-02-17 18:37:07 +0000
Uses/llvm.mk: remove broken pre-llvm10 support
Once upon a time LLVM releases versions were of the form major.minor as
ports were named things like llvm33 for the 3.3 release. With LLVM 4,
the project switched to a new major version for each release. At the
time I kept the form llvm40 for ease of use. With LLVM 10, I decided it
was time to drop the uniformative minor version to the port bacame
llvm10. This code attempted to keep LLVM_DEFAULT working for
llvm[789]0 working. It was broken for llvm10 and now llvm20. Since
llvm10 was removed last April (6d0c155a81a6) and llvm[789]0 in Jaunary
2023 (21778d8958f5) this code serves no purpose.
Reported by: Mark Millard <marklmi@yahoo.com>
---
Mk/Uses/llvm.mk | 8 --------
1 file changed, 8 deletions(-)
diff --git a/Mk/Uses/llvm.mk b/Mk/Uses/llvm.mk
index da35095bd843..d6108a998882 100644
--- a/Mk/Uses/llvm.mk
+++ b/Mk/Uses/llvm.mk
@@ -75,11 +75,7 @@ _LLVM_MK_VERSION= ${_ver}
. endif
. endfor
. if empty(_LLVM_MK_VERSION)
-. if ${LLVM_DEFAULT:N1[0-9]*}
-_LLVM_MK_VERSION= ${LLVM_DEFAULT:S/0$//}
-. else
_LLVM_MK_VERSION= ${LLVM_DEFAULT}
-. endif
. endif
# === parse environment arguments ===
@@ -118,10 +114,6 @@ _LLVM_MK_VERSION= ${_LLVM_MK_CONSTRAINT_max}
. endif
# === define helpers for the dependencies ===
-. for _ver in ${_LLVM_MK_VALID_VERSIONS:N1[0-9]}
-_LLVM_MK_SUFFIX_${_ver}= ${_ver}0
-. endfor
-
. for _ver in ${_LLVM_MK_VALID_VERSIONS}
_LLVM_MK_SUFFIX_${_ver}?= ${_ver}
. endfor