From patchwork Mon Sep 2 15:33:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Othacehe X-Patchwork-Id: 15263 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 350691734D; Mon, 2 Sep 2019 16:38:56 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 022B017329 for ; Mon, 2 Sep 2019 16:38:56 +0100 (BST) Received: from localhost ([::1]:37692 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4oPu-0006Cs-GM for patchwork@mira.cbaines.net; Mon, 02 Sep 2019 11:38:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42675) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i4oMI-0002HV-It for guix-patches@gnu.org; Mon, 02 Sep 2019 11:35:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i4oMH-0004Wo-CH for guix-patches@gnu.org; Mon, 02 Sep 2019 11:35:10 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50035) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i4oMH-0004Va-7m for guix-patches@gnu.org; Mon, 02 Sep 2019 11:35:09 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i4oMH-0006dm-4g for guix-patches@gnu.org; Mon, 02 Sep 2019 11:35:09 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#36477] [PATCH v3 30/48] packages: Set outputs field as thunked. Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 02 Sep 2019 15:35:09 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36477 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 36477@debbugs.gnu.org Received: via spool by 36477-submit@debbugs.gnu.org id=B36477.156743847425201 (code B ref 36477); Mon, 02 Sep 2019 15:35:09 +0000 Received: (at 36477) by debbugs.gnu.org; 2 Sep 2019 15:34:34 +0000 Received: from localhost ([127.0.0.1]:58794 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i4oLi-0006YJ-6X for submit@debbugs.gnu.org; Mon, 02 Sep 2019 11:34:34 -0400 Received: from mail-wm1-f49.google.com ([209.85.128.49]:35793) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i4oLT-0006Tp-At for 36477@debbugs.gnu.org; Mon, 02 Sep 2019 11:34:19 -0400 Received: by mail-wm1-f49.google.com with SMTP id n10so4387245wmj.0 for <36477@debbugs.gnu.org>; Mon, 02 Sep 2019 08:34:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BdPZS6mt/3o0dctz9JlOGfKDFh4tjhphGSATVcB7Hlk=; b=PYm3PD1CjqwDD8gdrrhnVL3uIB8a6N+DPOkr79nSW1LtOuStnkphOfV4lfmSxVhA2b HSIZYhn9l4CAzeWjuMHb8T7UASrdJYr3s/+4eOj0l2tzggMmA1TOJ6Wa6w8x0ZdnrQYx lY3GMlf1fBhngA5QSbOaQo0ePeka891m3T2iwIlO7E3ttm0K3nn3Qe7/zxkNagnSTTi9 T4taL2yTfb189DMvNPI7zzeYOBK4uQko2laEE9JBHZNuGVg7POBqQWrnI5ZP+wp52fMQ uQ/y1nqidwtzhHvANfgcBrBp7SBHNxlR5Ng387PvZznZRqJIdDPE6QLHEuDT69Y0IjzN 1lVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BdPZS6mt/3o0dctz9JlOGfKDFh4tjhphGSATVcB7Hlk=; b=M3OfYhhZoyru9zQMJgWRIILiXYP7IO5t8HITt+Z/kuTQYW6cCOcVuyvZqWeGj5qCFl FxT+MSfqd0mT+WBBp6SUdKSbdwlS2x56tgvlelA9yDGHDzdm7rRC/v4X641OsvvDQ27h eStyvPaR0MS3hHPtfEwYnc55RvsFIOg5JPbCf6SJ4F5Ppu0mSMNbl0SCmozjN/GP6NZM //nsN++CEWNaxmxrL30R1oQmX/wxP62jnuaskkkLKNA07mNEKbkON9I+X/pdEU3Wt9Ht SbZV1/og5CGFZuaTBchwkUtr8iK8XQgTAGWXW8VG5FsKhhRaLyGPCboTverORHiZaqyf CSnA== X-Gm-Message-State: APjAAAVUmdQFiZjjQ4Q6ArdsCFAlXl1w1l7aNDsNiVvLLPS3R/SfK0Ms jQGw0sC97JCCWZYIddGZTxwPML6f X-Google-Smtp-Source: APXvYqy/VSLEzgH3iAU1wpdZ1/XKIccI4ytHkLOBXm1yVHfXIR0RkLBhTf3W5TJ3kLrF8nizmGvz2g== X-Received: by 2002:a7b:c0d4:: with SMTP id s20mr8637421wmh.110.1567438453546; Mon, 02 Sep 2019 08:34:13 -0700 (PDT) Received: from localhost.localdomain ([80.12.63.115]) by smtp.gmail.com with ESMTPSA id b26sm17232265wmj.14.2019.09.02.08.34.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2019 08:34:13 -0700 (PDT) From: Mathieu Othacehe Date: Mon, 2 Sep 2019 17:33:15 +0200 Message-Id: <20190902153333.11190-31-m.othacehe@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190902153333.11190-1-m.othacehe@gmail.com> References: <20190902153333.11190-1-m.othacehe@gmail.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathieu Othacehe Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches This allows for instance to use %current-target-system to enable/disable some outputs in a package. * guix/packages.scm (): Set outputs field as thunked, (package->bag): adapt make-bag call accordingly. --- guix/packages.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guix/packages.scm b/guix/packages.scm index ac965acd2f..6889dbf116 100644 --- a/guix/packages.scm +++ b/guix/packages.scm @@ -266,7 +266,7 @@ name of its URI." (default '()) (thunked)) (outputs package-outputs ; list of strings - (default '("out"))) + (default '("out")) (thunked)) ; lists of ; , @@ -1046,7 +1046,7 @@ and return it." #:source source #:inputs (append (inputs self) (propagated-inputs self)) - #:outputs outputs + #:outputs (outputs self) #:native-inputs (native-inputs self) #:arguments (args self)) (raise (if target