From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: ui: Move 'show-manifest-transaction' from (guix profiles). Date: Wed, 08 Oct 2014 21:55:02 +0200 Message-ID: <877g0amj55.fsf@gnu.org> References: <87eguiiqzt.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54101) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbxKB-0001JM-WC for guix-devel@gnu.org; Wed, 08 Oct 2014 15:55:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XbxK6-0004h6-Dk for guix-devel@gnu.org; Wed, 08 Oct 2014 15:55:03 -0400 Received: from hera.aquilenet.fr ([2a01:474::1]:51178) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbxK6-0004gz-6N for guix-devel@gnu.org; Wed, 08 Oct 2014 15:54:58 -0400 In-Reply-To: <87eguiiqzt.fsf@gmail.com> (Alex Kost's message of "Wed, 08 Oct 2014 18:19:02 +0400") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Alex Kost Cc: guix-devel@gnu.org Alex Kost skribis: > ?: 16 [primitive-load-path "guix/profiles" ...] > In guix/profiles.scm: > 21: 15 [#] > In ice-9/boot-9.scm: > 2951: 14 [define-module* (guix profiles) #:filename ...] > 2926: 13 [resolve-imports (((guix utils)) ((guix records)) ((guix derivat= ions)) ...)] > 2864: 12 [resolve-interface (guix gexp) #:select ...] > 2789: 11 [# # ...] > 3065: 10 [try-module-autoload (guix gexp) #f] > 2401: 9 [save-module-excursion #] > 3085: 8 [#] > In unknown file: > ?: 7 [primitive-load-path "guix/gexp" ...] > In guix/gexp.scm: > 19: 6 [#] > In ice-9/boot-9.scm: > 2951: 5 [define-module* (guix gexp) #:filename ...] > 2926: 4 [resolve-imports ((# # #) (#) (# # #) (#) ...)] > 2877: 3 [resolve-interface (guix store) #:select ...] > 768: 2 [for-each # #] > 2883: 1 [# direct-= store-path?] > In unknown file: > ?: 0 [scm-error misc-error #f ...] > > ERROR: In procedure scm-error: > ERROR: no binding `direct-store-path?' in module (guix store) This is another circularity issue. :-/ There=E2=80=99s: (guix store) -> (guix nar) -> (guix ui) -> (guix store) ... This shouldn=E2=80=99t be a problem, except that occasional uses of #:select trigger a bug (see .) I=E2=80=99ve fiddled a bit on top of your patch, but couldn=E2=80=99t find = any simple fix. However, back to the initial problem, is this a problem if the error conditions are defined in (guix profiles), which is then imported by (guix ui)? This is suboptimal, but this kind of circular reference shouldn=E2=80=99t cause any troubles. HTH, Ludo=E2=80=99.