From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aBp3EJTpRGFsUQAAgWs5BA (envelope-from ) for ; Fri, 17 Sep 2021 21:16:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 8CL/C5TpRGGiMgAAB5/wlQ (envelope-from ) for ; Fri, 17 Sep 2021 19:16:36 +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 4E24616FD5 for ; Fri, 17 Sep 2021 21:16:35 +0200 (CEST) Received: from localhost ([::1]:49808 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRJLd-0006Hy-5p for larch@yhetil.org; Fri, 17 Sep 2021 15:16:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46248) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRJL9-0006Fe-1G for guix-patches@gnu.org; Fri, 17 Sep 2021 15:16:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49719) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRJL8-0002nD-PH for guix-patches@gnu.org; Fri, 17 Sep 2021 15:16:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mRJL8-0002Md-F5 for guix-patches@gnu.org; Fri, 17 Sep 2021 15:16:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50614] [PATCH] build: utils: Add =?UTF-8?Q?=E2=80=98list-when=E2=80=99?= macro. Resent-From: Sarah Morgensen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 17 Sep 2021 19:16:02 +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: Liliana Marie Prikler Cc: 50614@debbugs.gnu.org, Xinglu Chen Received: via spool by 50614-submit@debbugs.gnu.org id=B50614.16319061119026 (code B ref 50614); Fri, 17 Sep 2021 19:16:02 +0000 Received: (at 50614) by debbugs.gnu.org; 17 Sep 2021 19:15:11 +0000 Received: from localhost ([127.0.0.1]:33032 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRJKJ-0002LV-HL for submit@debbugs.gnu.org; Fri, 17 Sep 2021 15:15:11 -0400 Received: from out0.migadu.com ([94.23.1.103]:59209) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRJKH-0002LI-17 for 50614@debbugs.gnu.org; Fri, 17 Sep 2021 15:15:10 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mgsn.dev; s=key1; t=1631906107; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hZQu4pcLw4VdLE+L45LAh9Z6tqshfkFGjyjfLPDlhvU=; b=d9PKEZjzPAjHKxCzCwvrP1HQMbtMBGdmk7BDOgee76LzK+btV2b3T4t6ChUjzxwv3322pg aza61QToGE8jyH123mz2Ah5yEvvno3+jpVS5TE2iCFNMn3euK1SOChRca4gTioYDf8VIuI Xbw2POeacrB1XU7ykaTJ3x7Q2lpjlqE= From: Sarah Morgensen References: <08db559a4e24a409d332b3552d6a176de6353166.1631867018.git.public@yoctocell.xyz> Date: Fri, 17 Sep 2021 12:15:03 -0700 In-Reply-To: (Liliana Marie Prikler's message of "Fri, 17 Sep 2021 19:55:52 +0200 (1 hour, 17 minutes, 50 seconds ago)") Message-ID: <86v92zggjs.fsf@mgsn.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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=1631906195; 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: 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=hZQu4pcLw4VdLE+L45LAh9Z6tqshfkFGjyjfLPDlhvU=; b=uVMPhjhx9ya4JCygB+7XIQUY+ecWCEEFQIDUrQT5ULUfXl0UxlfUUf7x7WcYQYjN0iImwh 7WZ/hUNCUD3HvMYH66eakC7tGI5W7ao9K8XmwRgGWx09F5DkvK+3BGHPQ0WJeD/sH68yu9 GW21EBxRDG4Uw4MgKBaxpreDLNGrJaCdb/53aY4LhLC1uxUw9oPoC+hM5KKQm55lW8rgNU Q+Enj8TGPFekmh0lI9UlmWEbK+qAGUG7qPl3Z29m7+TwsCjF9Bg9SEDYJf86KpihfngSLt OkhfFx+ya9pNJ7qTBz8E0zC4sDZ7ZCGjCpQGCyl50v6Ok0M8pVQIKEGnRVnviQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631906195; a=rsa-sha256; cv=none; b=Td4LNKj5WMtrrlOOgc6G0+jbGmhZ+SPH7A+o+EdFBpWMAf9KlzeS4S3JW0d3wTY/rXt7L6 3RfTMy/H7ZttjcpjDeptnRpZ79hltIU9Fpe/R5i/eXyWDhqvRSHlNwUR2BkKFmEBUu9VQX q1QMa5tqG15rze8Qcf5T8b/3V7mNnKBwwhbEe/b0s+qjJBLjtxDP2PkJdIBJwBjYenxGJG JJ0Z3kkHoeYTXMVNa9xR6Wlg/MhlvhVYWk/sWe+plK7O22bpkn+nIxSpMlleTIW4FYgRFr oL8LQmaR2IB1iMFuwz817jc7VdRgCc44c7XOdvy2WBEbmz2COEej/QAr7qXPww== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mgsn.dev header.s=key1 header.b=d9PKEZjz; dmarc=fail reason="SPF not aligned (relaxed)" header.from=mgsn.dev (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.30 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mgsn.dev header.s=key1 header.b=d9PKEZjz; dmarc=fail reason="SPF not aligned (relaxed)" header.from=mgsn.dev (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: 4E24616FD5 X-Spam-Score: -1.30 X-Migadu-Scanner: scn0.migadu.com X-TUID: MjtgCOVfUJxW Hi, Liliana Marie Prikler writes: > Am Freitag, den 17.09.2021, 10:26 +0200 schrieb Xinglu Chen: >> * guix/build/utils.scm (list-when): New syntax >> * tests/build-utils.scm ("list-when: expr1 is non-#f", list-when: >> expr1 is #f"): >> Test it. >> * guix.texi (Build Utilities): Document it. >> --- >> Changes since v1: >>=20 >> * Rename =E2=80=98optional=E2=80=99 to =E2=80=98list-when=E2=80=99. >>=20 >> * Make >>=20 >> (list-when test consequent ...) >>=20 >> equivalent to >>=20 >> (if tests >> (list consequent ...) >> '()) > LGTM, but let's wait on more opinions. IIRC, changing (guix build) > causes a world rebuild, no? So this patch might go to core-updates > first. Do we actually use this idiom anywhere build-side? (If not, does it belong in (guix utils)? Or should we stick it in (guix build utils) just to be safe?) -- Sarah