From unknown Sat Aug 16 20:56:34 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#66419 <66419@debbugs.gnu.org> To: bug#66419 <66419@debbugs.gnu.org> Subject: Status: Incorrect handling of -L flag on guix system commands Reply-To: bug#66419 <66419@debbugs.gnu.org> Date: Sun, 17 Aug 2025 03:56:34 +0000 retitle 66419 Incorrect handling of -L flag on guix system commands reassign 66419 guix submitter 66419 Sergio Pastor P=C3=A9rez severity 66419 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 09 06:22:32 2023 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: =?utf-8?Q?Sergio_Pastor_P=C3=A9rez?= To: bug-guix@gnu.org Subject: Incorrect handling of -L flag on guix system commands 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+JCnJ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nMwQVN2NlZDR1cvOFo3YTNpTzFXdURiUGN2UndGaDlGei9HSFBkR1k3?= =?utf-8?B?Q0FEZi9uVytyWEQrL1p1M3A3ME9uV2RacFJiK1JHMm01V2ZBUkNkUk1LMXdw?= =?utf-8?Q?jG8ZGMw1CN60ZQEbWMLMwCHyFKeT3iWoH72shEGNvyvM=3D?= 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-Debbugs-Envelope-To: submit 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 debbugs-submit-bounces@debbugs.gnu.org Thu Oct 12 10:29:33 2023 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: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Sergio Pastor =?utf-8?Q?P=C3=A9rez?= Subject: Re: bug#66419: Incorrect handling of -L flag on guix system commands In-Reply-To: ("Sergio Pastor =?utf-8?Q?P=C3=A9rez=22'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-Debbugs-Envelope-To: 66419 Cc: 66419@debbugs.gnu.org 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.