From 3f4f2ee404d328cbfb846aa18aafa33ee6ae3cff Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= <ludo@gnu.org>
Date: Tue, 12 Mar 2019 23:29:47 +0100
Subject: [PATCH] describe: 'package-path-entries' no longer includes the
 "guix" entry.

Fixes <https://bugs.gnu.org/34833>
Reported by mikadoZero <mikadozero@yandex.com>.

By returning the "guix" entry, we were then adding it to
%PACKAGE-MODULE-PATH, causing the discovery code to scan the whole tree,
including gnu/installer modules, which would in turn lead to warnings.
Regression introduced in bfc9c339301ffe6dd15d156894dc27e05f6f081f.

* guix/describe.scm (package-path-entries): Use
'current-channel-entries', not 'current-profile-entries'.
---
 guix/describe.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guix/describe.scm b/guix/describe.scm
index 8851bc46d1..00372bbed7 100644
--- a/guix/describe.scm
+++ b/guix/describe.scm
@@ -86,7 +86,7 @@ when applicable."
                        (string-append (manifest-entry-item entry)
                                       "/lib/guile/" (effective-version)
                                       "/site-ccache")))
-               (current-profile-entries))))
+               (current-channel-entries))))
 
 (define (package-provenance package)
   "Return the provenance of PACKAGE as an sexp for use as the 'provenance'