From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oMmXNcml4mJCMwAAbAwnHQ (envelope-from ) for ; Thu, 28 Jul 2022 17:05:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 8NOnNMml4mLmCQEAG6o9tA (envelope-from ) for ; Thu, 28 Jul 2022 17:05:45 +0200 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 714D73A81F for ; Thu, 28 Jul 2022 17:05:45 +0200 (CEST) Received: from localhost ([::1]:60756 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oH556-0004Yw-5D for larch@yhetil.org; Thu, 28 Jul 2022 11:05:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57848) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oH4ye-0007ww-TI for bug-guix@gnu.org; Thu, 28 Jul 2022 10:59:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41271) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oH4ye-0002O7-Jv for bug-guix@gnu.org; Thu, 28 Jul 2022 10:59:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oH4yd-0000NF-GV for bug-guix@gnu.org; Thu, 28 Jul 2022 10:59:03 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#56799: [PATCH v2] gexp: Handle *unspecified* as a gexp input. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 28 Jul 2022 14:59:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56799 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxime Devos Cc: 56799@debbugs.gnu.org Received: via spool by 56799-submit@debbugs.gnu.org id=B56799.16590203421419 (code B ref 56799); Thu, 28 Jul 2022 14:59:03 +0000 Received: (at 56799) by debbugs.gnu.org; 28 Jul 2022 14:59:02 +0000 Received: from localhost ([127.0.0.1]:59250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oH4yc-0000Ml-4g for submit@debbugs.gnu.org; Thu, 28 Jul 2022 10:59:02 -0400 Received: from mail-qt1-f179.google.com ([209.85.160.179]:45006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oH4yZ-0000MH-KO for 56799@debbugs.gnu.org; Thu, 28 Jul 2022 10:59:00 -0400 Received: by mail-qt1-f179.google.com with SMTP id r21so1272278qtn.11 for <56799@debbugs.gnu.org>; Thu, 28 Jul 2022 07:58:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Nwzoq23udU6iZmt19b3tuMkIXtqoLFht7y8DWx9YTjw=; b=VGrsfLa70MJab+2fHO5u19868TDfVaFv6nFbg2uYoaySANI/gmyTcgwlktlJ58swdX dmNZH7WAA7L0c+12By//9bVZVIBDyv4McymouJU21nBsJrqsVpcDyfgmnIyhu7bnf7zt Ypgjc1pv0QwVPHXpIZ9DKWsvFdLorpOqGRGr9APRpHMsmXIWxq/SiNhEzw7DiqqEXAQb UNMBLLc5w2svhpHmj/xsu4S7Kt7+H1Flj0N1SI7rhmCxtUXp1JU1dTq5a+IWleudP/JT m04gH/aHEyOoL0Psu9DooCoKdAp6q+2tiV19zfOZ8ibXC26fj6E7erq+uozwf6TqmYk+ /SOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Nwzoq23udU6iZmt19b3tuMkIXtqoLFht7y8DWx9YTjw=; b=ZXm+1hYU2pLz2xdi/ns8RCUEUC6pRF6IwtMPLBFJ76oc3E/adS29S33myex3xBqEEw nvvba9jgLstvJE5U3bxAtsrlKD1BYFQ/TwFN1uOIPhPV73yQHEzCZwcYeSobpXuEox6T Tj6mZc1JAQpduy5WI2ccGRVBjgHsz37bjb7FR0e1w+sjueuYfm7Um04mvNt7P0rTw4/d d1AQgeVKR4o9u+eU5IXjzGUIE1XIKEBaD3MqoOohAlzr06pEt+3444EHJqyAgkMeE8Yv Ue4Pb5NUc/H2/9uEsuDu/YBaHXA3CzY/kCHxZ7nHPdTEpfwRyp0Jz3d3m4FtPN30iNA/ ubng== X-Gm-Message-State: AJIora8l0QpRnWHrboyva1sjfP76bbFT3qu+HBc1unuZjMOtaXaPKZx3 9hTErfPT3py4w7PXGmWaTliOo0TvsEk= X-Google-Smtp-Source: AGRyM1sXeMA3ZnTJlRSLtQC83w+HbbJWICUw7H+fTNOmmVma6afs7sVLBKBxqUz7lkz2dgY45pq8Dw== X-Received: by 2002:ac8:5d94:0:b0:31f:1e7b:7d9b with SMTP id d20-20020ac85d94000000b0031f1e7b7d9bmr22487915qtx.205.1659020333746; Thu, 28 Jul 2022 07:58:53 -0700 (PDT) Received: from hurd (dsl-10-148-58.b2b2c.ca. [72.10.148.58]) by smtp.gmail.com with ESMTPSA id d7-20020a05620a240700b006a3325fd985sm675968qkn.13.2022.07.28.07.58.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Jul 2022 07:58:53 -0700 (PDT) From: Maxim Cournoyer References: <877d3y8hjj.fsf@gmail.com> <20220727202010.16970-1-maxim.cournoyer@gmail.com> <16e2cf89-bbfb-6336-0249-6af68afa3109@telenet.be> Date: Thu, 28 Jul 2022 10:58:52 -0400 In-Reply-To: <16e2cf89-bbfb-6336-0249-6af68afa3109@telenet.be> (Maxime Devos's message of "Wed, 27 Jul 2022 23:43:55 +0200") Message-ID: <87r125707n.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659020745; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: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=Nwzoq23udU6iZmt19b3tuMkIXtqoLFht7y8DWx9YTjw=; b=RTxN61Rdgpq/82OmpXiGx5bt9+46KZfHYW8q7jHuLgpqY/msRvd4B+l0sFUTXYeodVISO3 zrhIbIWigCXQHG9gaZH0GLM7GsxVMJwqiZfImknTVJMjtMTmT4l55DaIAONLMeE0pn3vm/ O0gL9U5qv3bSFSGiadbHv4g/JZcnyIx7VYM7SGjVLPPfYX+lOFDAx4HEXHOhESe9YB97U1 gGE3mzv+4zhVAYkQcfW2IGOUinC9vGiR/9WtZWosKKxMuTul/P7Ltlk8A4w4SXCMycyqOA m7kINPSzH6cfLg25YzK81odAEl4hpkob+wclNKCtOv0Aypolm9OKSJG/qOzfKA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659020745; a=rsa-sha256; cv=none; b=LyeD/Fyjp2qDCjtQvH0M8He/aMcucl/yItC8eTko6R2a2WgSQh3YIqZFS9FQOAhvXXiSBl ooDUFXpO5StDi81UgdHNj49fftO8zizMFDHHAYKKzUihGzhGUj6nZjxoBJvPBYBx0YPrMo uyyPiGLmDgrLjs6QTeIw1rvtsCmomLClYeygHn+D+LfkG/0Ta0HCzJUC5crGOMt+B3KVjT bIu26cCkvqEIBLy+c2sMzXoBpT0N40A/8Ye2W+qULZUoF+hsg7W3+ayu9zt0iMfO5RA8Yb weic2GvHxDCNtw2HqqDjKp3pduIg0pLj98YbVmh85VwWCU6ChsnjSZ/X1RQzug== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=VGrsfLa7; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.57 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=VGrsfLa7; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 714D73A81F X-Spam-Score: 5.57 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7KrMyZAgUBwI Hi, Maxime Devos writes: > On 27-07-2022 22:20, Maxim Cournoyer wrote: > >> Fixes . >> >> * guix/gexp.scm (gexp->sexp)[*unspecified*]: Quote value when encountering it. > > I recommend writing a test case -- this patch does not actually do that. > > Instead, it returns the symbol x. > > In a ./pre-inst-env guix repl: > >> scheme@(guix-user)> ,use (guix) >> scheme@(guix-user)> ,m (guix gexp) >> scheme@(guix gexp)> ,enter-store-monad >> store-monad@(guix gexp) (gexp->sexp #~(list #$*unspecified*) >> "x86_64-linux" "aarch64-linux-gnu") >> $1 = (list x) > I don't know what exact semantics you had in mind but probably not this. Indeed. Fixed in v3 (which includes a test). Thanks! Maxim