pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/rust



Module Name:    pkgsrc
Committed By:   he
Date:           Sat Jun 21 14:53:02 UTC 2025

Modified Files:
        pkgsrc/lang/rust: options.mk

Log Message:
lang/rust: on NetBSD/amd64 9.x, use a newer GCC.

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 (PR#59435) and
https://mail-index.netbsd.org/pkgsrc-users/2025/05/20/msg041603.html
and following discussion.


To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 pkgsrc/lang/rust/options.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/rust/options.mk
diff -u pkgsrc/lang/rust/options.mk:1.46 pkgsrc/lang/rust/options.mk:1.47
--- pkgsrc/lang/rust/options.mk:1.46    Tue Jun 17 15:14:57 2025
+++ pkgsrc/lang/rust/options.mk Sat Jun 21 14:53:02 2025
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.46 2025/06/17 15:14:57 jperkin Exp $
+# $NetBSD: options.mk,v 1.47 2025/06/21 14:53:02 he Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.rust
 PKG_SUPPORTED_OPTIONS+=        rust-cargo-static rust-docs
@@ -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