[Top][All Lists]

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

03/06: Avoid warnings for the 'delete' binding of (guix build utils).

From: guix-commits
Subject: 03/06: Avoid warnings for the 'delete' binding of (guix build utils).
Date: Wed, 15 Jan 2020 12:41:21 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit 5a2639f9cb367bc42a552a6fe9c7081f8b7c4cf0
Author: Ludovic Court├Ęs <address@hidden>
AuthorDate: Wed Jan 15 15:03:08 2020 +0100

    Avoid warnings for the 'delete' binding of (guix build utils).
    On Guile 3, importing (guix build utils) leads to warnings such as:
      WARNING: (gnu packages embedded): imported module (guix build utils) 
overrides core binding `delete'
    * gnu/packages/embedded.scm: Select 'alist-replace' from (guix build utils).
    * guix/ui.scm: Hide 'delete' from (guix build utils).
 gnu/packages/embedded.scm | 2 +-
 guix/ui.scm               | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm
index 67c6fda..1f73e78 100644
--- a/gnu/packages/embedded.scm
+++ b/gnu/packages/embedded.scm
@@ -32,7 +32,7 @@
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system python)
   #:use-module (guix build-system trivial)
-  #:use-module (guix build utils)
+  #:use-module ((guix build utils) #:select (alist-replace))
   #:use-module (gnu packages)
   #:use-module (gnu packages autotools)
   #:use-module ((gnu packages base) #:prefix base:)
diff --git a/guix/ui.scm b/guix/ui.scm
index 023e604..b99a9e5 100644
--- a/guix/ui.scm
+++ b/guix/ui.scm
@@ -55,7 +55,9 @@
                 ;; in 5d669883ecc104403c5d3ba7d172e9c02234577c, #:hide
                 ;; unwanted bindings instead of #:select'ing the needed
                 ;; bindings.
-                #:hide (package-name->name+version))
+                #:hide (package-name->name+version
+                        ;; Avoid "overrides core binding" warning.
+                        delete))
   #:use-module (srfi srfi-1)
   #:use-module (srfi srfi-11)
   #:use-module (srfi srfi-19)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]