From patchwork Fri Nov 8 14:44:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "ashish.is--- via Guix-patches\" via" X-Patchwork-Id: 70148 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 EB2F927BBE9; Fri, 8 Nov 2024 18:46:45 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0010C27BBE2 for ; Fri, 8 Nov 2024 18:46:45 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t9Tzg-0003EU-3O; Fri, 08 Nov 2024 13:46:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t9Tze-0003E8-Kp for guix-patches@gnu.org; Fri, 08 Nov 2024 13:46:02 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t9Tze-0007jK-Bs for guix-patches@gnu.org; Fri, 08 Nov 2024 13:46:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=qraXdG5bZux7K+Xr+9kMW7nQmGqz+NTI+jjy+CHuWXQ=; b=VeK5FTpvHHn5vI89ip/yOVYOtgb3W+fJ/1AMkZ1LyRf1NdVtyrjizDLD3W94nGZ6f3OGyPfPcrG+r/cT8DF7EgURQGBYmQjt3HSLg00Yb9iDelLJZnx0rBVDjzNETzSjYxWumNL/JFawltJPVrWLL9y6y7yt7C59n/mNlZVUKiHsKEKHJ0hHNRgEsrQt1///9krEvJNhrvMVYpUxoarfCOkTB5FAV9doe3ecdtLMw9dL1ZNXcdZNkLgcR2tlyZ9RljivMzf+6qdLjuQJhMEo7xMzmxLefuPTty1qgEnA/17bPt6O32DxoNEJcWcNYXeHUMtrfkdK02PZbwS5qK8d3w==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t9Tzd-0004We-Vi for guix-patches@gnu.org; Fri, 08 Nov 2024 13:46:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74265] [PATCH] guix: packages: Fix building development profiles. Resent-From: pjals@privacyrequired.com Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 08 Nov 2024 18:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74265 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74265@debbugs.gnu.org Cc: "Daniel \[REDACTED\]" X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.173109150416963 (code B ref -1); Fri, 08 Nov 2024 18:46:01 +0000 Received: (at submit) by debbugs.gnu.org; 8 Nov 2024 18:45:04 +0000 Received: from localhost ([127.0.0.1]:52136 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t9Tyh-0004PB-Bq for submit@debbugs.gnu.org; Fri, 08 Nov 2024 13:45:04 -0500 Received: from lists.gnu.org ([209.51.188.17]:38300) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t9QFP-0001s9-J6 for submit@debbugs.gnu.org; Fri, 08 Nov 2024 09:46:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t9QFO-0003tQ-23 for guix-patches@gnu.org; Fri, 08 Nov 2024 09:46:02 -0500 Received: from confino.investici.org ([93.190.126.19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t9QFI-0005AB-UQ for guix-patches@gnu.org; Fri, 08 Nov 2024 09:46:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=privacyrequired.com; s=stigmate; t=1731077150; bh=qraXdG5bZux7K+Xr+9kMW7nQmGqz+NTI+jjy+CHuWXQ=; h=From:To:Cc:Subject:Date:From; b=F/jqeFS+E4ZzkKgZIjlQPFTfRzu0H58HkQZXcc+w49heI5+p5/5RoFaJRy1od5m/g Cct6iIZvjg/j4/qZyDdOopoAAF/S9H9DjQN3EtuDh5vKAUnVKmGpa+ggsrrhX5ZYvJ MHbJa41sBzZ1xLRhWirHRIl9gSvzvvMvLyI52LlE= Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4XlMFB4tHMz1113; Fri, 8 Nov 2024 14:45:50 +0000 (UTC) Received: from [93.190.126.19] (mx1.investici.org [93.190.126.19]) (Authenticated sender: lightpug@krutt.org) by localhost (Postfix) with ESMTPSA id 4XlMFB3GSgz1108; Fri, 8 Nov 2024 14:45:50 +0000 (UTC) Date: Fri, 8 Nov 2024 16:44:46 +0200 Message-ID: <20241108144504.5263-2-pjals@privacyrequired.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Received-SPF: pass client-ip=93.190.126.19; envelope-from=pjals@privacyrequired.com; helo=confino.investici.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 08 Nov 2024 13:44:56 -0500 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: , Reply-to: pjals@privacyrequired.com X-ACL-Warn: , pjals--- via Guix-patches X-Patchwork-Original-From: pjals--- via Guix-patches via From: "ashish.is--- via Guix-patches\" via" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From: "Daniel [REDACTED]" * guix/packages.scm (bag-transitive-inputs): Set %current-target-system while finding bag transitive inputs. Change-Id: If33a0fc2bf038e09819c87f535c27dfe5e873973 --- guix/packages.scm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) base-commit: 2a6d96425eea57dc6dd48a2bec16743046e32e06 diff --git a/guix/packages.scm b/guix/packages.scm index f373136d22..40d5e7b1d5 100644 --- a/guix/packages.scm +++ b/guix/packages.scm @@ -1443,12 +1443,6 @@ (define (bag-direct-inputs bag) (bag-host-inputs bag) (bag-target-inputs bag))) -(define (bag-transitive-inputs bag) - "Same as 'package-transitive-inputs', but applied to a bag." - (parameterize ((%current-target-system #f) - (%current-system (bag-system bag))) - (transitive-inputs (bag-direct-inputs bag)))) - (define (bag-transitive-build-inputs bag) "Same as 'package-transitive-native-inputs', but applied to a bag." (parameterize ((%current-target-system #f) @@ -1467,6 +1461,12 @@ (define (bag-transitive-target-inputs bag) (%current-system (bag-system bag))) (transitive-inputs (bag-target-inputs bag)))) +(define (bag-transitive-inputs bag) + "Same as 'package-transitive-inputs', but applied to a bag." + (append (bag-transitive-build-inputs bag) + (bag-transitive-host-inputs bag) + (bag-transitive-target-inputs bag))) + (define* (package-development-inputs package #:optional (system (%current-system)) #:key target)