From unknown Sat Aug 16 18:38:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#66419: Incorrect handling of -L flag on guix system commands Resent-From: Sergio Pastor =?UTF-8?Q?P=C3=A9rez?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 09 Oct 2023 10:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66419 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 66419@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169684695210680 (code B ref -1); Mon, 09 Oct 2023 10:23:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 Oct 2023 10:22:32 +0000 Received: from localhost ([127.0.0.1]:59368 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpnPD-0002mC-Pv for submit@debbugs.gnu.org; Mon, 09 Oct 2023 06:22:32 -0400 Received: from lists.gnu.org ([2001:470:142::17]:45836) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpnPC-0002ly-4u for submit@debbugs.gnu.org; Mon, 09 Oct 2023 06:22:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qpnOl-0000uO-4X for bug-guix@gnu.org; Mon, 09 Oct 2023 06:22:03 -0400 Received: from mail-he1eur01olkn080a.outbound.protection.outlook.com ([2a01:111:f400:fe1e::80a] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qpnOh-0003pe-N4 for bug-guix@gnu.org; Mon, 09 Oct 2023 06:22:02 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VovlDTjr2Fo+BrS7na9EjkBpHpyw/mXzqf0GRihzKWiFJXH46Ltg/zorvkjpDq+LHUwSXqNs1qACYQ99wGpqnwyNbJaXUH2PqkW3elLi6dx0MKyxjmBTH6CBARcmx0cAT9jcp1Pu6Cht4c+BQ3yo9+jzEvmIsFq8drodGL8FdfCpuzEfYQGMyJqayB9tSEq/BzmAqk+DxmCOemxLdn/TeJSYt4xoj+HFs/99+AOxDt6TekTaPpFdlP+jqqGpy/2f1qv36zHZlMp4Y2VFaOjniMgqtQK7N78a/zK6Ifhe03Lz72tTYRnmKJLif7mgF9N+v56KWSiZ6qrFXvSH5msIbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=poQkvGZqJn6fN8pbS3m4M9jISQ5BYuCkif+MDeGul+o=; b=i+FKEuix2m937rg9ic1c/yH5e+184IShDUIjQj9+ZwuKZ4lzjzJ/vu+0DuSE03N/OQFEm6iANBmFVLo+abnjSqi+YTZxVZ91L8H+kzdmVA4C8BwvH9ooO5noQg8D/CLFWlCcihmznaPU536Xt5dJ+OWGjX/jLYnkt4IABAMWRpXxtBx95R/Qj2LGmRmJ0XlBRr5S/ljPnamGP2JzQq1sAV2RJRtA9s0dI22bKQdX8khuLAiDAcrmvUhBiCMqkyDvlfONLr+fIwnNAwNz7kxsnzTMMVctIZ41sW5GHyELxND4Vl0IRTq/KkNjTnAxmvRXR631LNhE1sT1fPTBLPCWTg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from DU2P193MB2132.EURP193.PROD.OUTLOOK.COM (2603:10a6:10:2f8::9) by AS8P193MB1969.EURP193.PROD.OUTLOOK.COM (2603:10a6:20b:3b0::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.36; Mon, 9 Oct 2023 10:16:53 +0000 Received: from DU2P193MB2132.EURP193.PROD.OUTLOOK.COM ([fe80::5693:2d5:c58c:e127]) by DU2P193MB2132.EURP193.PROD.OUTLOOK.COM ([fe80::5693:2d5:c58c:e127%4]) with mapi id 15.20.6863.032; Mon, 9 Oct 2023 10:16:53 +0000 From: Sergio Pastor =?UTF-8?Q?P=C3=A9rez?= Date: Mon, 09 Oct 2023 12:16:50 +0200 Message-ID: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-TMN: [jQOmug8j7fEffgdu3uwR2zBx2FdrQ1Qw] X-ClientProxiedBy: MR2P264CA0153.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:1::16) To DU2P193MB2132.EURP193.PROD.OUTLOOK.COM (2603:10a6:10:2f8::9) X-Microsoft-Original-Message-ID: <844jj03xt9.fsf@outlook.es> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2P193MB2132:EE_|AS8P193MB1969:EE_ X-MS-Office365-Filtering-Correlation-Id: e2ef61c9-5612-4910-14dd-08dbc8b0db62 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oiY24UE+qpbwD5VVSgMeXrg38xURC06xPFaZxKcyDPCN6vLiTaSEgY1Rq/Ig6GkjE5vyKw7gOuNSgjBZxxD98Czf96PogeKvPQ+J3xi819fuvvGL6lrFOpASWforjlnlRvOHq7vC+MX6V1CkrKOccHWw4eg1xYS0yUosKLen41y30/ySaVWMbOJTkCaoNF2rMYxWezhcKCsKJxGCldC0gwYRnRGB9eoyn8nf/iXqEJw0f2qd6/8dYS7lNM50Q1pYwpZbajemBP17u0yBjGFOzT9QhdFe0nZQNxJNyzqJdNXustgMueRretK/9L8lb+JCnJi/MdWVePSd+WWDWeUoLXH0uWmlUpFhB1lN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Mg33zKVCm5Xy/mQhviGBg/oo3NIWUz/WOW1gjnSkWEmhn0BIbubvDOdDsN6DnVlFBONZ8KUo0UQvL2/Sh4snQFwHoNDYHeEwRuCiztZtxZvVq/0HnYuZl7tKhBXQS+u0KFpCimwsBBug7BM64yiOtdf26Tg+qtCerFbD7taVaYnfCdWMiNQ/U6GSbqzNuHuHMmjj2jRKvUWpXP4+81qIGF51fmshwic9f24XBhQjn0AJSebv+sUAiQA5CjwTB+0fWGfvHGeAo9KaPSPdxpCIppJgpZlkbHsaeDftatO2gz7LK2O+CSKof3gYtmsEW7JSchrPiFvcXXVSvXa5Ibs0ASv6VCGW/8Z7a3iO1WuDbPcvRwFh9Fz/GHPdGY7CADf/nW+rXD+/Zu3p70OnWdZpRb+RG2m5WfARCdRMK1wpjG8ZGMw1CN60ZQEbWMLMwCHyFKeT3iWoH72shEGNvyvM= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-80ceb.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: e2ef61c9-5612-4910-14dd-08dbc8b0db62 X-MS-Exchange-CrossTenant-AuthSource: DU2P193MB2132.EURP193.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Oct 2023 10:16:53.5604 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8P193MB1969 Received-SPF: pass client-ip=2a01:111:f400:fe1e::80a; envelope-from=sergio.pastorperez@outlook.es; helo=EUR01-HE1-obe.outbound.protection.outlook.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 3.0 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Good morning. I've noticed that in system configurations split into different modules, when using the -L flag, the `guix system build` command incorrectly issues some errors. The error is ignored and the system is [...] Content analysis details: (3.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (sergio.pastorperez[at]outlook.es) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 2.0 SPOOFED_FREEMAIL No description available. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Good morning. I've noticed that in system configurations split into different modules, when using the -L flag, the `guix system build` command incorrectly issues some errors. The error is ignored and the system is built successfully. For example, given a base system and 2 systems that inherit from it, the error appears when building any of them: --8<---------------cut here---------------start------------->8--- =CE=BB ls base-system.scm bordercollie.scm sheepbook.scm --8<---------------cut here---------------end--------------->8--- base-system.scm: --8<---------------cut here---------------start------------->8--- (define-module (base-system) #:use-module (gnu)) ... (define-public %base-system (operating-system ...)) --8<---------------cut here---------------end--------------->8--- bordercollie.scm: --8<---------------cut here---------------start------------->8--- (define-module (bordercollie) #:use-module (base-system) ...) (operating-system (inherit %base-system) ...) --8<---------------cut here---------------end--------------->8--- sheepbook.scm: --8<---------------cut here---------------start------------->8--- (define-module (sheepbook) #:use-module (base-system) ...) (operating-system (inherit %base-system) ...) --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- =CE=BB guix system build -L . bordercollie.scm=20 error: %useful-gnome-extensions: unbound variable hint: Did you forget `(use-modules (base-system))'? /gnu/store/gf21yc9ii1cfd3ki9hnn8ac5d65923ir-system --8<---------------cut here---------------end--------------->8--- As you can see this command has built successfully. Note that in this particular case the error says that the unbound variable is `%useful-gnome-extensions'. It will complain always about the first think it encounters. On the other hand relying on the `GUILE_LOAD_PATH', instead of using the '-L' flag, removes the error: --8<---------------cut here---------------start------------->8--- =CE=BB GUILE_LOAD_PATH=3D$(pwd):$GUILE_LOAD_PATH guix system build borderco= llie.scm /gnu/store/gf21yc9ii1cfd3ki9hnn8ac5d65923ir-system --8<---------------cut here---------------end--------------->8--- I've noticed that for the error to appear, there has to be 2 systems inheriting from the `base-system` module. If I remove `bordercollie.scm` or `sheepbook.scm`, the other will build without issuing the error. Regards, Sergio. From unknown Sat Aug 16 18:38:07 2025 X-Loop: help-debbugs@gnu.org Subject: bug#66419: Incorrect handling of -L flag on guix system commands Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 12 Oct 2023 14:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66419 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Sergio Pastor =?UTF-8?Q?P=C3=A9rez?= Cc: 66419@debbugs.gnu.org Received: via spool by 66419-submit@debbugs.gnu.org id=B66419.169712097317116 (code B ref 66419); Thu, 12 Oct 2023 14:30:02 +0000 Received: (at 66419) by debbugs.gnu.org; 12 Oct 2023 14:29:33 +0000 Received: from localhost ([127.0.0.1]:43994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qqwgu-0004Rz-O5 for submit@debbugs.gnu.org; Thu, 12 Oct 2023 10:29:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54160) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qqwgs-0004Rg-Np for 66419@debbugs.gnu.org; Thu, 12 Oct 2023 10:29:31 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qqwgO-0003tj-RZ; Thu, 12 Oct 2023 10:29:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=1c820AuXbHAMu20G/66ws2d49FRlpsSuKO8vnUSIhbE=; b=jaa3kkx0a3vQTXh64VYh okJC8JWd/fmfXT+2X4A9trjfPGinlY/8+FwxX7OeNn42S1tVP0yVpzo3/0coOqeZgTe+dftbP/q5J B4r8SMledUy5vTwUIVnUbMdIRE7jouLy5m3PaM3I1ljfU0c/vQqCoCVB3WOKBumoQVfP3vemH255v pVRgoGsMG/0S7rBQ7xgd+aq8BaVEJyV07J8x8SUV9PChlmJ9DJbiDVYFKo6avQnLDNjmp4fpDoLka XZDEh1VD+JQemwL5NvNtyzy+1fFPmwY1YSOQoSPA5KjG3ggVSBCKgimtXhHDXDRoXYiq3rmPZZiAC BkCKVchPHFrRGg==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: ("Sergio Pastor =?UTF-8?Q?P=C3=A9rez?="'s message of "Mon, 09 Oct 2023 12:16:50 +0200") References: Date: Thu, 12 Oct 2023 16:28:51 +0200 Message-ID: <87ttqvlxss.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Sergio Pastor P=C3=A9rez skribis: > =CE=BB guix system build -L . bordercollie.scm=20 > error: %useful-gnome-extensions: unbound variable > hint: Did you forget `(use-modules (base-system))'? > > /gnu/store/gf21yc9ii1cfd3ki9hnn8ac5d65923ir-system =E2=80=98-L=E2=80=99 does more than setting =E2=80=98GUILE_LOAD_PATH=E2=80= =99; it=E2=80=99s equivalent to =E2=80=98-L=E2=80=99 in other =E2=80=98guix=E2=80=99 commands, meaning that it changes =E2=80=98= %package-search-path=E2=80=99 (like the =E2=80=98GUIX_PACKAGE_PATH=E2=80=99 environment variable). In doing so, it causes package lookup by name to traverse all the .scm files in $PWD in this case. In other words, =E2=80=98guix system -L.=E2=80= =99 ends up loading ./*.scm. This is probably the source of confusion. HTH, Ludo=E2=80=99.