mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-08 14:15:07 +02:00
Tidyups: - $(cargo_crate_uris) - Rust BDEPENDS come from the eclass except in very rare circumstances (RUST_OPTIONAL=1) - RUST_M{AX,IN}_VER where required. - Suboptimal crate separator (`-` -> `@`) Signed-off-by: Matt Jolly <kangie@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/39218 Signed-off-by: Matt Jolly <kangie@gentoo.org>
34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
From 28d4871c5844b41d63a5cbc093b4453c98d5427e Mon Sep 17 00:00:00 2001
|
|
From: Matt Jolly <kangie@gentoo.org>
|
|
Date: Thu, 7 Nov 2024 20:08:44 +1000
|
|
Subject: [PATCH] Fix rust in configure
|
|
|
|
RUSTC and CARGO are standard variables that are often used to indicate
|
|
the desired implementation to build systems.
|
|
|
|
Prefix existing usage of these variables with `HAS_` so that this
|
|
does not just break
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -95,10 +95,10 @@ AS_IF([test "$enable_rust_offline" = yes],
|
|
[rust_vendor_sources=""])
|
|
AC_SUBST([rust_vendor_sources])
|
|
if test "$enable_rust_offline" = yes; then
|
|
- AC_CHECK_PROG(CARGO, [cargo], [yes], [no])
|
|
- AC_CHECK_PROG(RUSTC, [rustc], [yes], [no])
|
|
+ AC_CHECK_PROG(HAS_CARGO, [cargo], [yes], [no])
|
|
+ AC_CHECK_PROG(HAS_RUSTC, [rustc], [yes], [no])
|
|
|
|
- AS_IF([test "$CARGO" != "yes" -o "$RUSTC" != "yes"], [
|
|
+ AS_IF([test "$HAS_CARGO" != "yes" -o "$HAS_RUSTC" != "yes"], [
|
|
AC_MSG_FAILURE("Rust based plugins cannot be built cargo=$CARGO rustc=$RUSTC")
|
|
])
|
|
fi
|
|
@@ -944,4 +944,3 @@ AC_CONFIG_FILES([Makefile rpm/389-ds-base.spec ])
|
|
AC_CONFIG_FILES([.cargo/config])
|
|
|
|
AC_OUTPUT
|
|
-
|
|
--
|
|
2.47.0
|
|
|