From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jack Hill Subject: bug#36207: Circular dependency in gnu/services: mcron -> base -> admin -> mcron Date: Fri, 14 Jun 2019 11:49:16 -0400 (EDT) Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="925712948-1517492859-1560526690=:7537" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:59865) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hboTA-0002SQ-MK for bug-guix@gnu.org; Fri, 14 Jun 2019 11:50:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hboT1-0007a3-9i for bug-guix@gnu.org; Fri, 14 Jun 2019 11:50:16 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52354) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hboSo-0007TY-7g for bug-guix@gnu.org; Fri, 14 Jun 2019 11:50:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hboSo-0001i2-5H for bug-guix@gnu.org; Fri, 14 Jun 2019 11:50:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:59822) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hboSb-0002Fg-Cp for bug-guix@gnu.org; Fri, 14 Jun 2019 11:49:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hboSZ-0007Ls-FW for bug-guix@gnu.org; Fri, 14 Jun 2019 11:49:49 -0400 Received: from minsky.hcoop.net ([104.248.1.95]:36128) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hboSZ-00074j-AJ for bug-guix@gnu.org; Fri, 14 Jun 2019 11:49:47 -0400 Received: from marsh.hcoop.net ([45.55.52.66]) by minsky.hcoop.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hboS4-0005Xb-Lr for bug-guix@gnu.org; Fri, 14 Jun 2019 11:49:16 -0400 Content-ID: List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 36207@debbugs.gnu.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --925712948-1517492859-1560526690=:7537 Content-Type: text/plain; FORMAT=flowed; CHARSET=ISO-8859-7 Content-Transfer-Encoding: 8BIT Content-ID: Hi Guix, As discussed on IRC with Ludo˘ and Ricardo, 4252dace19945f56192477e8cb07973c20a526ba introduced a circular dependency among gnu/services modules, by adding a dependency between from base -> admin, resulting in the full dependency chain: mcron -> base -> admin -> mcron I ran into this when building a channel. The error reported by guix pull was: ``` (repl-version 0 0) (exception misc-error (value #f) (value "Unbound variable: ~s") (value (mcron-service-type)) (value #f)) ``` Ludo˘ determined the full error was: ``` gnu/services/admin.scm:161:21: Unbound variable: mcron-service-type ``` by running the repl directly: ``` echo '(primitive-load "/gnu/store/vf892np8mnh2zx9dppcv9k25xk648n2d-inferior-script.scm")' \ | "/gnu/store/j7vxgnaqwimrzsnd8zhq9x1jdp7afl0s-guix-ca45da9fc/bin/guix" "repl" ``` Options for solving this problem include moving the guix-publish service into another module. However, this would break the API of (gnu service base), so we should be careful when doing that. It doesn't look like guix-publish is used elsewhere in the Guix code proper currently. For now, we might want to revert 4252dace19945f56192477e8cb07973c20a526ba. Best, Jack --925712948-1517492859-1560526690=:7537--