From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4CrLAeNKR2FLWgEAgWs5BA (envelope-from ) for ; Sun, 19 Sep 2021 16:36:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id eNHmOOJKR2ETHAAAbx9fmQ (envelope-from ) for ; Sun, 19 Sep 2021 14:36:18 +0000 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 12C1C19899 for ; Sun, 19 Sep 2021 16:36:14 +0200 (CEST) Received: from localhost ([::1]:36458 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRxvR-0001fS-1D for larch@yhetil.org; Sun, 19 Sep 2021 10:36:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56314) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRxvG-0001ev-A4 for guix-patches@gnu.org; Sun, 19 Sep 2021 10:36:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56180) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRxvG-0001dh-27 for guix-patches@gnu.org; Sun, 19 Sep 2021 10:36:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mRxvF-0003cw-Ny for guix-patches@gnu.org; Sun, 19 Sep 2021 10:36:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50614] [PATCH core-updates v2] build: utils: Add =?UTF-8?Q?=E2=80=98list-when=E2=80=99?= macro. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 19 Sep 2021 14:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50614 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Xinglu Chen , 50614@debbugs.gnu.org Cc: Sarah Morgensen , Liliana Marie Prikler Received: via spool by 50614-submit@debbugs.gnu.org id=B50614.163206214613921 (code B ref 50614); Sun, 19 Sep 2021 14:36:01 +0000 Received: (at 50614) by debbugs.gnu.org; 19 Sep 2021 14:35:46 +0000 Received: from localhost ([127.0.0.1]:39493 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRxuz-0003cR-Rv for submit@debbugs.gnu.org; Sun, 19 Sep 2021 10:35:46 -0400 Received: from laurent.telenet-ops.be ([195.130.137.89]:44714) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRxuv-0003cG-6d for 50614@debbugs.gnu.org; Sun, 19 Sep 2021 10:35:44 -0400 Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by laurent.telenet-ops.be with bizsmtp id vqbe2500N0mfAB401qbeV8; Sun, 19 Sep 2021 16:35:39 +0200 Message-ID: From: Maxime Devos Date: Sun, 19 Sep 2021 16:35:33 +0200 In-Reply-To: References: <08db559a4e24a409d332b3552d6a176de6353166.1631867018.git.public@yoctocell.xyz> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-/+q60Zrx7GMH1YzLHan3" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1632062139; bh=2++V0jegDqVbgfOYPIHQX/I5Q8n6AREgy6njdMnsZmM=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=vDMroWZHkisn+T1+dXmiFQeyObcQIH8Q014uCLp+mB7t81jTfWY5eQQ6paaBsERjc 0RzbLw4l43qmpylZ2Zt5M08L5sATP0CA2VJ4ywD/03hqJo6XdylWmU1Ay428KfeA3O qfNpYh/z2LRYEQC/HfLYxngYNubJ2cOL7YVAvg1tZ2Ta6GUyZtzHZ7S6unSxOg6B3S 6mw2l6EEUfSAzjUdiHc4/7nh1xqhIJPH4rEP/gEwTw6S957wcAQhVlQsDCf/WJaIWK +w/wSEZXzR9gMWwgb/2E/+uJ2hx0n8p/dlUhT/uB9/T5bl9x1pivUSCidTPCKdIjt2 URc/mHiF5H70g== 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632062174; 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=2++V0jegDqVbgfOYPIHQX/I5Q8n6AREgy6njdMnsZmM=; b=g/CWqXc79w9zALTkpclCy9MO8BWqJ2Y+AX8//xPCwVgH7x52aUwK7p4ZJKDaoE0Wguw8xs ebRRAWJV/Qg1VA/brhc/TVw7wOE5Frs09hbI6Bb6OBUeUMZQLDuDbbo+1kdzDSIRHFqKiU kVUty/nh2bPolZnuRGPtxj4waZj4VswxdcFl+emVA2m1C4MxLYgS5RENBh+VJmdb+CYSX+ 9PNAMLtO5OTYn07peFLx+GaMKptLGQSWgqjefWj93fx3guliPz9Cu4ZRoLbQ2eE2PG21d+ RJiqoelAyv+Poxud30ToJcSGBoT99U501rXjqndOke0YxZMzgOEbpvQoyCk9kg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632062174; a=rsa-sha256; cv=none; b=X8XgRjpKLs7z6TGxoNJNDdvjgU0SgA5r4bS6L6B3LQGoKHIbEsEw8YDGY9hCF0YZOYaGKD ixqGoV3euOfVUTxnGCmUozUs+5uinkWA08zlI0xetMw3aQMOtPhxNkuA3FOaD5SM35HkHD TMbfaLOLwh53W9OCZu478P+/N9J4xtnDn9RrRb4XAtntOSYPkYyooyprCKe6AZwyQnBiwW i3Fi4K6C3uycTCACwkYdtQ3ftV/+kmvDVJgx/1Jp8Th3tJLKBE7m5hyPNd66cHetcE1O4Y Az355DBa6nWtRXDIoZNNa44wWSnhUF3+p1QsIKPeys1I7HD/fPVvh+HYcPnkYA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=vDMroWZH; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.89 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=vDMroWZH; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 12C1C19899 X-Spam-Score: -1.89 X-Migadu-Scanner: scn0.migadu.com X-TUID: ihNEkux0Q4Uy --=-/+q60Zrx7GMH1YzLHan3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xinglu Chen schreef op zo 19-09-2021 om 15:50 [+0200]: > * guix/build/utils.scm (list-when): New syntax > * tests/build-utils.scm ("list-when: expr1 is non-#f", list-when: expr1 i= s #f"): > Test it. > * guix.texi (Build Utilities): Document it. > * .dir-locals.el: Set =E2=80=98scheme-indent-function=E2=80=99 to 1 for = =E2=80=98list-when=E2=80=99. > --- If you will be doing this in (guix build utils), leading to a world-rebuild= , you light want to define list-unless as well. E.g., 'boost' has (native-inputs `(("perl" ,perl) ,@(if (%current-target-system) '() `(("python" ,python-wrapper))) ("tcsh" ,tcsh))) with 'list-when', this could be rewritten to (native-inputs `(("perl" ,perl) ,@(list-when (not (%current-target-system)) `("python" ,python-wrapper)) ("tcsh" ,tcsh))) but '(when (not ...) EXP ...)' is simply '(unless EXP ...)', so it would be nice to be able to do (native-inputs `(("perl" ,perl) ,@(list-unless (%current-target-system) `("python" ,python-wrapper)) ("tcsh" ,tcsh))) Greetings, Maxime. --=-/+q60Zrx7GMH1YzLHan3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYUdKtRccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7oeqAQCisuejRuC9mQo0jx+nCkv847vv eDaw96SW/LJnWnyIOwD/Q4G1ICKxjEcqYvSrZseNvcsxPd+j23w4TRETuGzsewE= =wKgS -----END PGP SIGNATURE----- --=-/+q60Zrx7GMH1YzLHan3--