From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id CL4FEd1/JGeDPQAA62LTzQ:P1 (envelope-from ) for ; Fri, 01 Nov 2024 07:14:37 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id CL4FEd1/JGeDPQAA62LTzQ (envelope-from ) for ; Fri, 01 Nov 2024 08:14:37 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=vho1GXKG; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=XVse0m+Y; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1730445277; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=1o97jMQTV3I+A7SArMDjlozbs9qPGdGcGl8O/7GkqGo=; b=eUfcbtqlrEjDQZ7l2BWngIiMxvRCNcIKjapbSkbC/1tm2kHWdly2rsdjiDYtvcbcqZtCTU t9uxBQ1EBBhw1PToRJtD8R2QvKyLKRhGs1Za49auAVLzx1OSkAQyVxUec9KC6TYZ89SOwZ uC7QCVlIUsg02RrGgQ+ZpVDYc/5nBgbqP+tucrkQSPwPwoUxe/oLZSGGjL8h0xfBr0rmhu /lLekvkF6A2gp5/wa9bb4Rga80ThJOyrKqm2gkAhWiFsNGia54e1C0dwrez2/tnHQ0dK+u 6hVMzocHGxmnjrp5XobPOOnI7D2/dWMgmUQUHA1NwrvKLrrJdfGclRS2diheFg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1730445277; a=rsa-sha256; cv=none; b=pSGvgNlXaMncXzKAJSYLSSTVAomyAkXfoUO6Vkaik/yjikm9FwprHTAWIX2lD2wFjLMXNp F6k4XZu2TPKPr7JaN0pM7LdFcEDo6F5lBKFkq8M3syKvl2ozsQ+Y+S1ExJWrdmUBXIAua3 NOkCgnzGTgKvjnjKKnk6eCvSNGqzZ/PbVsoKe84nGq1fmGRvJOEhkX8RQbI5BC/7oOoDZX DAjYDdF5mcW1VdupjIgAOKnbiiUPjSgaf+BcKBODAQ1yhy0mSSpv5aaCHwN0LgYf2ypGce KcGFz63iW70CIC0Fk1Sdll6MMflBjn3q59s79FcGo5DtjxNu8emGeJoZ7npdag== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=vho1GXKG; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=XVse0m+Y; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9B26E7864B for ; Fri, 01 Nov 2024 08:14:36 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t6lrE-0004LF-Gf; Fri, 01 Nov 2024 03:14:08 -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 1t6lrA-0004KU-R2 for guix-patches@gnu.org; Fri, 01 Nov 2024 03:14:04 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t6lr9-0001C5-Gf for guix-patches@gnu.org; Fri, 01 Nov 2024 03:14:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=1o97jMQTV3I+A7SArMDjlozbs9qPGdGcGl8O/7GkqGo=; b=vho1GXKG5MdQ6aDxN89R/rQCWg0PvzPZDsRpyLhjOwRFAUIxTkSBk4SVKO7a8fNiKUQMQChsNETwU3a9expZ5mMhg4E3XDe80Iq2Bed29QzMJJbCwedUY6HygVCPhDpdtLeHYgzFDnc+DIgGehSfMb4t0vcglM3KS+kBvmq5NRd2uiFbkGLvkm0obcnez4qcnUqtsyLuyImOtT81Z1kNIDuCro0q7iE3hpafzspfycCPwp8L2ltm5I2PvgYcyex7r8H2UW1G/dMnBMSadYEFdj7vq0towVvrmGW1AMZKoZsAwyLEU7PPapZZOxfqQZk9mpjMoNJz0U351ZlanLy6hw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t6lr9-0005Ks-BC; Fri, 01 Nov 2024 03:14:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#74151] [PATCH 3/7] system/vm: Fix virtual-machine bug. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: maxim.cournoyer@gmail.com, guix-patches@gnu.org Resent-Date: Fri, 01 Nov 2024 07:14:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74151 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74151@debbugs.gnu.org Cc: Maxim Cournoyer , Maxim Cournoyer X-Debbugs-Original-Xcc: Maxim Cournoyer Received: via spool by 74151-submit@debbugs.gnu.org id=B74151.173044520520418 (code B ref 74151); Fri, 01 Nov 2024 07:14:03 +0000 Received: (at 74151) by debbugs.gnu.org; 1 Nov 2024 07:13:25 +0000 Received: from localhost ([127.0.0.1]:47334 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6lqX-0005JG-11 for submit@debbugs.gnu.org; Fri, 01 Nov 2024 03:13:25 -0400 Received: from mail-qt1-f171.google.com ([209.85.160.171]:47446) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6lqV-0005It-U4 for 74151@debbugs.gnu.org; Fri, 01 Nov 2024 03:13:24 -0400 Received: by mail-qt1-f171.google.com with SMTP id d75a77b69052e-4609d8874b1so12438321cf.3 for <74151@debbugs.gnu.org>; Fri, 01 Nov 2024 00:13:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730445138; x=1731049938; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1o97jMQTV3I+A7SArMDjlozbs9qPGdGcGl8O/7GkqGo=; b=XVse0m+Yk9jFZXD45WVff9IHzdL40vpvCjPBQ+txLXM3nHphN2Q/QZHqnqcYrjsqGi u8wylKa1vsopwRGs35zdeWoq7TNvNsoyZbCtuacem1Rq9BrmaehsSyFgJoT+ok6T58em PNyr3NNIhvlZ/KpqJxbloKqP4LSckQvw90ER3zjZS2dEyZ1u/NL/z4Wb8yszw7I8s14F gK6y3Evyb/4d9Xq6mdGpu6n/Imyjrs1WOwmldbcsq5TDV7G0eUsFUDKpMPKC+LfL8tDy yj056VE1kjx5k6BR/tS79ot0fsvcrzKrMxRxTm53Oll3W+GrK1TJWiFNR6k9Bq/Ac7+/ WcSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730445138; x=1731049938; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1o97jMQTV3I+A7SArMDjlozbs9qPGdGcGl8O/7GkqGo=; b=LpzJO2m4udUdKETCzNFMZx9IS3Is620MWC39L4+ebVapin69sc56F1E8Vzay18Q7tf aqt9BNe2R5S4l+5tk8E//qo2WOy/vPqQstnJgoOKs7Id41KxAA2O5KcGJXqPy67ZA2JQ lmsLTKR49ljirz/RMD/78nfqB9aWTl39pqr+tLfQwrc8I22U5bvaCyA2aT/s24djmHiw dgeehtl1wXXHHKjICUTkH2CinnBrTHcPf0i2vqrXwaq9Qe7vkMZcK3DhmYmVfyeU+vfC ylP4N0aQSrH1PRmnYfmT9HtxL22KqVP56e5dGAz45v9Uul9cmEaQ5ErPX3rj/3a9QZkJ b70g== X-Gm-Message-State: AOJu0YyqxrWfr59PliTd3x7rRlkOroN+R4TZ35I0aOdTJAZzB+UvyeCs waOFZwQfXLem6eHW5e9U1RpdoEsmt26KYNerA0hjkiiVKVEEVmfeFbLmt0o+ X-Google-Smtp-Source: AGHT+IEdSguZkGgfmQfnrEX4G7Me+zx2QCVVGvBzBZ9J5MSTOqqTiyTHw25gqvgIk2SfWxnwOdk2jQ== X-Received: by 2002:a05:622a:1788:b0:460:cac8:bd1c with SMTP id d75a77b69052e-462ab2fcda4mr81939461cf.43.1730445138154; Fri, 01 Nov 2024 00:12:18 -0700 (PDT) Received: from localhost.localdomain (vps-6234970c.vps.ovh.ca. [51.222.13.224]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-462ad1a0f59sm15646821cf.81.2024.11.01.00.12.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Nov 2024 00:12:17 -0700 (PDT) From: Maxim Cournoyer Date: Fri, 1 Nov 2024 16:11:39 +0900 Message-ID: <397067fb8b2b50efef8092d77c93c04e0f28225a.1730441684.git.maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 0.68 X-Spam-Score: 0.68 X-Migadu-Queue-Id: 9B26E7864B X-Migadu-Scanner: mx13.migadu.com X-TUID: XzeXsA5B6RPH The virtual-machine syntax would not accept a single operating-system field, which was puzzling. * gnu/system/vm.scm (virtual-machine): Add a pattern matching a single literal 'operating-system' field and value. Change-Id: If207fd71df3a3f763b2e63229eafa82f63e80773 --- gnu/system/vm.scm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm index a2743453e7..4a400056d7 100644 --- a/gnu/system/vm.scm +++ b/gnu/system/vm.scm @@ -422,10 +422,14 @@ (define-record-type* %virtual-machine (default #f))) (define-syntax virtual-machine - (syntax-rules () + (syntax-rules (operating-system) "Declare a virtual machine running the specified OS, with the given options." - ((_ os) ;shortcut + ((_ (operating-system os)) + ;; Also accept the long form (virtual-machine (operating-system os)), for + ;; correctness. + (%virtual-machine (operating-system os))) + ((_ os) ;shortcut (%virtual-machine (operating-system os))) ((_ fields ...) (%virtual-machine fields ...)))) -- 2.46.0