Subject: [PATCH v4 rust-team 17/22] build/cargo: Unconditionally use system gettext.

From: Hilton Chain <[email-masked]>
Date: Tue, 29 Apr 2025 00:23:14 +0800

No special value is required for this environment variable.

* guix/build/cargo-build-system.scm (configure): Set GETTEXT_SYSTEM
unconditionally.

Change-Id: Id40fecaf75fa76c7b7f1404db226fa1ca6a45a5e
---
 guix/build/cargo-build-system.scm | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/guix/build/cargo-build-system.scm b/guix/build/cargo-build-system.scm
index 39a9487841..edc4e0d836 100644
--- a/guix/build/cargo-build-system.scm
+++ b/guix/build/cargo-build-system.scm
@@ -247,6 +247,7 @@ (define* (configure #:key source inputs
       (setenv "TARGET_PKG_CONFIG" (string-append target "-pkg-config")))
     (setenv "CC" (string-append (assoc-ref inputs "gcc") "/bin/gcc")))
 
+  (setenv "GETTEXT_SYSTEM" "1")
   (setenv "LIBGIT2_SYS_USE_PKG_CONFIG" "1")
   (setenv "LIBSQLITE3_SYS_USE_PKG_CONFIG" "1")
   (setenv "LIBSSH2_SYS_USE_PKG_CONFIG" "1")
@@ -255,8 +256,6 @@ (define* (configure #:key source inputs
   (setenv "ZSTD_SYS_USE_PKG_CONFIG" "1")
   (when (assoc-ref inputs "openssl")
     (setenv "OPENSSL_DIR" (assoc-ref inputs "openssl")))
-  (when (assoc-ref inputs "gettext")
-    (setenv "GETTEXT_SYSTEM" (assoc-ref inputs "gettext")))
   (when (assoc-ref inputs "clang")
     (setenv "LIBCLANG_PATH"
             (string-append (assoc-ref inputs "clang") "/lib")))
-- 
2.49.0