From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 09 12:02:35 2022 Received: (at submit) by debbugs.gnu.org; 9 Sep 2022 16:02:35 +0000 Received: from localhost ([127.0.0.1]:35108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWgSh-0006jd-Fu for submit@debbugs.gnu.org; Fri, 09 Sep 2022 12:02:35 -0400 Received: from lists.gnu.org ([209.51.188.17]:36820) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWgSd-0006jT-KJ for submit@debbugs.gnu.org; Fri, 09 Sep 2022 12:02:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52312) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWgSb-0006Ck-Sc for guix-patches@gnu.org; Fri, 09 Sep 2022 12:02:31 -0400 Received: from mail-ed1-x542.google.com ([2a00:1450:4864:20::542]:41966) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oWgSa-000224-AU for guix-patches@gnu.org; Fri, 09 Sep 2022 12:02:29 -0400 Received: by mail-ed1-x542.google.com with SMTP id z97so3196574ede.8 for ; Fri, 09 Sep 2022 09:02:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:content-transfer-encoding:to:subject:date :from:from:to:cc:subject:date; bh=T7NXtGAp8UgfAsTmf5v9aIVnSAEoUIQua0GG65/nrpk=; b=p7VEEa0FQSOMGgwfSjHY/1vED3OIHFq9psFv6aM99EioY2rcSMr/9iAp3FdUawilsT ienbtzUdjRbY8E9h0u3oc7C8QAXeDQDIiVGG217n9j5B4m6GPtcXKhE52rGDOm1GCpN5 bamJu52Eq76hGDq/OFNTxJDvK6SgKsen0IWLBbuxvWYDMq0Jf1USMTPD/P1IIGXImOo1 wuhMouKqsv0QuQX3eLeR+BIGVzoRyzhHGad8XJFEwI6iAhqO6YcvAVNbQEw9dFap3fdR jJGJ1zBYETV74eLizEBIVGP/y4DT88QMDwLMriqsig9w0MSiZeJAqLD2ulRzXwGrk0yj hxDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:content-transfer-encoding:to:subject:date :from:x-gm-message-state:from:to:cc:subject:date; bh=T7NXtGAp8UgfAsTmf5v9aIVnSAEoUIQua0GG65/nrpk=; b=APcERgrg0zB+EEck6y27zyBiG0l9fk0NmLBizsCBuJTDYy69RWcBuj0CP/P0l5iu7R pW1wlITd67it4+au4sF3Rfl3oZrH+paIsOOjuTm9YJIYo9mNZhOp9yg0ciK//VOYC3XU AmmK7ySARu7nRHDudK+kM723JuT+9u1/qR8bXtzkFp9ZXUDjGdBlC0CuUu9myxUMzqpT xQe8lNJA++gtluCeh5guT2qfUqYzJBRHz9r5OpK+A08Mtde3vkL5c1uk+fUYYKTQvhNF 5C3WUXqVV9ZGGJZRYsm3mCtRK8/8q7KeiNIXUkRiJbNfS3FPMl0DZ1a05ePMIVDmLKCb mNKA== X-Gm-Message-State: ACgBeo30uYWf2UUIYE4imGIZC8bwoIM+aW0nhnRK/uIoPEGLjERwHJvF nU/dl2Uo+DpLh+1kv9aHGWheAS69gfs= X-Google-Smtp-Source: AA6agR4i3A7tKxPAXiLI/m0VN3zBSjrO9uyRxdqJp7TjDNkYlUYpZ1hB8C46ojTUnfGKWbv4gFq7IQ== X-Received: by 2002:aa7:d5d0:0:b0:44e:f6cc:7107 with SMTP id d16-20020aa7d5d0000000b0044ef6cc7107mr12149958eds.371.1662739346061; Fri, 09 Sep 2022 09:02:26 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id s22-20020a17090699d600b0076559407303sm415538ejn.159.2022.09.09.09.02.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 09:02:25 -0700 (PDT) From: Liliana Marie Prikler Date: Fri, 9 Sep 2022 17:56:20 +0200 Subject: [PATCH core-updates] guix: packages: Remove #f from inputs when sanitizing. to: guix-patches@gnu.org Content-Transfer-Encoding: 7bit Message-ID: MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::542; envelope-from=liliana.prikler@gmail.com; helo=mail-ed1-x542.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) 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: -2.3 (--) This makes it so that new-style inputs can be optional using regular Guile patterns, e.g. (and (target-x86-64?) rust). * guix/packages.scm (sanitize-inputs): Filter inputs by identity before adding labels. --- Note that this patch was prepared using master, but since it affects the package record, it needs to go to core-updates. I don' think there should be a merge conflict here. guix/packages.scm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/guix/packages.scm b/guix/packages.scm index 94e464cd01..5bb2e81e18 100644 --- a/guix/packages.scm +++ b/guix/packages.scm @@ -430,11 +430,12 @@ (define %cuirass-supported-systems (define-inlinable (sanitize-inputs inputs) "Sanitize INPUTS by turning it into a list of name/package tuples if it's not already the case." - (cond ((null? inputs) inputs) - ((and (pair? (car inputs)) - (string? (caar inputs))) - inputs) - (else (map add-input-label inputs)))) + (let ((inputs (filter identity inputs))) + (cond ((null? inputs) inputs) + ((and (pair? (car inputs)) + (string? (caar inputs))) + inputs) + (else (map add-input-label inputs))))) (define-syntax current-location-vector (lambda (s) -- 2.37.2