summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--guix/profiles.scm6
1 files changed, 3 insertions, 3 deletions
diff --git a/guix/profiles.scm b/guix/profiles.scm
index d8b83bf730..cedf9faa82 100644
--- a/guix/profiles.scm
+++ b/guix/profiles.scm
@@ -1268,9 +1268,6 @@ are cross-built for TARGET."
                          (guix search-paths)
                          (srfi srfi-1))
 
-            ;; Don't complain about _IO* on Guile 2.2.
-            (debug-disable 'warn-deprecated)
-
             (setvbuf (current-output-port) _IOLBF)
             (setvbuf (current-error-port) _IOLBF)
 
@@ -1293,6 +1290,9 @@ are cross-built for TARGET."
                       #:system system
                       #:target target
 
+                      ;; Don't complain about _IO* on Guile 2.2.
+                      #:env-vars '(("GUILE_WARN_DEPRECATED" . "no"))
+
                       ;; Not worth offloading.
                       #:local-build? #t