pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
rust186: On NetBSD/x86_64 9.x, use newer gcc to avoid problem w/pkgsrc LLVM.
Module Name: pkgsrc-wip
Committed By: Havard Eidnes <he%NetBSD.org@localhost>
Pushed By: he
Date: Sat Jun 21 17:20:40 2025 +0200
Changeset: 844905e987c9b094f2123b46dfc707aa2fee6615
Modified Files:
rust186/options.mk
Log Message:
rust186: On NetBSD/x86_64 9.x, use newer gcc to avoid problem w/pkgsrc LLVM.
Apparently, using pkgsrc LLVM 19.x does not work on
NetBSD/x86_64 9.x unless rust is built with a newer
gcc than the platform-included 7.5.0. Ref.
https://gnats.netbsd.org/59435 and
https://mail-index.netbsd.org/pkgsrc-users/2025/05/20/msg041603.html
and following discussion.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=844905e987c9b094f2123b46dfc707aa2fee6615
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
rust186/options.mk | 12 ++++++++++++
1 file changed, 12 insertions(+)
diffs:
diff --git a/rust186/options.mk b/rust186/options.mk
index 27bc0a3f16..ea21b8077e 100644
--- a/rust186/options.mk
+++ b/rust186/options.mk
@@ -40,6 +40,18 @@ GCC_REQD+= 12
. endif
.endif
+# Apparently, using pkgsrc LLVM 19.x does not work on
+# NetBSD/x86_64 9.x unless rust is built with a newer
+# gcc than the platform-included 7.5.0. Ref.
+# https://gnats.netbsd.org/59435 and
+# https://mail-index.netbsd.org/pkgsrc-users/2025/05/20/msg041603.html
+# and following discussion.
+.if empty(PKG_OPTIONS:Mrust-internal-llvm)
+. if ${MACHINE_PLATFORM:MNetBSD-9.*-x86_64}
+GCC_REQD+= 10
+. endif
+.endif
+
#
# Use the internal copy of LLVM or the external one?
#
Home |
Main Index |
Thread Index |
Old Index