From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id qJ/KKQ4E6mSVbAEA9RJhRA:P1 (envelope-from ) for ; Sat, 26 Aug 2023 15:54:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id qJ/KKQ4E6mSVbAEA9RJhRA (envelope-from ) for ; Sat, 26 Aug 2023 15:54:22 +0200 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 2420453874 for ; Sat, 26 Aug 2023 15:54:20 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=envs.net header.s=modoboa header.b=VGmQ+aL8; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1693058062; h=from:from:sender:sender:reply-to: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=XwtRDTysApj3vpS2m97cpoNW3cF1epMbR4eHg4BfUgE=; b=WQyULCaTRMShQTNqZWk+zMN0gxgyOWIx5g155Zm3T7OAFOK8xgBn934suSZIY2cHOWSbth Y7q3LdKRO5AHK0b9kx3SDZNilq50QNVVj6TgQdgFBu3Vbnbht8iMtfy9Rs1o0Qq9gHjXKz 22f7o5KSr3b+cGiiRUFKQvHPcWqcL2rz2Q1vtNdxpUKFCHPR61hMk4bw41sziTj88yJy8O DQMc95w9cx9vnpcZHWcIXvnE1iQ/561qUHAjGL24DAwS3nGoNl9bvLyEofi8cy4kHAKxWY genLiV9RRDocBHMUwzYMPSZ9La3pKwal7M6laJUoCdR00Gw7vVDbXVvjzssy7A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=envs.net header.s=modoboa header.b=VGmQ+aL8; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693058062; a=rsa-sha256; cv=none; b=lRhfGvj20AduQTJy5iK7B+sk5KGxBHfXmvGP1TvZ0XSu5vxAa9ZYADFSMnbw9tNy19K0ay SM6oLwyxV+hZ6ugakCpVI/8b0WA4nL5RvCA7ykdD0RQv0SZ4mFkbcmWr5Obh0HDmDA6a3A 5Fo+vZ15aw6d4v2kuGuSJVn60KZMSj5IgtKvOxMIeZwv5NLrdCP7ub2zeb9hdKW0ikYci0 vnpWCcQfnkDgZ+TbFSibVy5fjAbx0k1zcxp0fsmtVt34YMnFdmhkAxNsznz8v55g/BUjBN s7FVVJqa3kaN9pau/G6SqPY8nIhLs95QL0slmURaSqsdp1ZttEXV+qRlWHkTuw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZtjo-0002fO-0z; Sat, 26 Aug 2023 09:54:04 -0400 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 1qZtjm-0002fA-86 for guix-patches@gnu.org; Sat, 26 Aug 2023 09:54:02 -0400 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 1qZtjl-0001Bh-9J; Sat, 26 Aug 2023 09:54:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qZtjl-0007md-S7; Sat, 26 Aug 2023 09:54:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65550] [PATCH] profiles: Don't propagate inputs for non-development packages. References: <87ttsm828q.fsf@envs.net> In-Reply-To: <87ttsm828q.fsf@envs.net> Resent-From: iyzsong@envs.net Original-Sender: "Debbugs-submit" Resent-CC: guix@cbaines.net, dev@jpoiret.xyz, ludo@gnu.org, othacehe@gnu.org, rekado@elephly.net, zimon.toutoune@gmail.com, me@tobias.gr, guix-patches@gnu.org Resent-Date: Sat, 26 Aug 2023 13:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65550 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 65550@debbugs.gnu.org Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= , Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice X-Debbugs-Original-Xcc: Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice Received: via spool by 65550-submit@debbugs.gnu.org id=B65550.169305800329871 (code B ref 65550); Sat, 26 Aug 2023 13:54:01 +0000 Received: (at 65550) by debbugs.gnu.org; 26 Aug 2023 13:53:23 +0000 Received: from localhost ([127.0.0.1]:41885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZtj8-0007lj-Kg for submit@debbugs.gnu.org; Sat, 26 Aug 2023 09:53:22 -0400 Received: from mail.envs.net ([5.199.136.28]:50660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZtj4-0007lX-Ld for 65550@debbugs.gnu.org; Sat, 26 Aug 2023 09:53:21 -0400 Received: from localhost (mail.envs.net [127.0.0.1]) by mail.envs.net (Postfix) with ESMTP id 7D4B938A0135; Sat, 26 Aug 2023 13:53:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa; t=1693057991; bh=XwtRDTysApj3vpS2m97cpoNW3cF1epMbR4eHg4BfUgE=; h=From:To:Cc:Subject:Date:From; b=VGmQ+aL897S3pB4ZL7Ebqw6lhi+GEPZdremt55xzUOSdHLNwaYAiR4bADGmY0BP2r XEAfwoMqNdoRiz987NtbQEurRbUfC8+rs71AtPP9HHRNVP/vjC83FHtle4DgtEZkqG HPnq8aFiO9/n3ssXvmEf2u8Ty995UbX1TpX+l7HKQ9H/0/XcJH9pb/QlximXo+jD2j Cy/CnuCCGzwPB9gNUnCbrEWWwQslRR5kRVJuDU7Bh7nGFt1Bfnr02Vvb6rXgeZ1vPH /mO8HQtPFbED1di4RU4+Kn+0WG1GPIzCAWqTDrazLa0j8PH5r8tmAs8zcwgCNxFHuK rcyS2W5mpKAt/vzlrkfzV+RUgPJjrxYdZR+fEkoKmuO74vyh3LdCVEuTAtnwy74UJ+ /+EeV+4ZFCrSrvZT6FYGLOGqpjNyDQhuBwJdkJWHkarHwhbBfQxhvCSpOnTKcVA8E4 9e3V+N7kcCkelyazUZp3dr7trR2cVqLMuJBJdgs0lIbjQCgh6yhZHSvt/YMKiRb+6P D6sVJPVP5LjRjZLk5vJgWi84UEe8eLFv9XA6VOSpdxfhAKUW+ZAqzTBAyMAFfMyaCZ 8wdo797nub6TT8XFems+X7V2UHk5fKl7tUwVd1IaEVAQQVs7dEpLT22lHbVM3kdz3R sSMdIWhPmA7FpnwZehQoczHk= X-Virus-Scanned: Debian amavisd-new at mail.envs.net Received: from mail.envs.net ([127.0.0.1]) by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id KCuhsznlm3Mu; Sat, 26 Aug 2023 13:53:07 +0000 (UTC) Received: from localhost (unknown [36.170.44.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.envs.net (Postfix) with ESMTPSA; Sat, 26 Aug 2023 13:53:07 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 864af4ec; Sat, 26 Aug 2023 13:53:25 +0000 (UTC) Date: Sat, 26 Aug 2023 21:53:09 +0800 Message-ID: <1f7f85189b17ebddb6d0e26afd7c5fad88c997e9.1693057951.git.iyzsong@member.fsf.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: iyzsong@envs.net X-ACL-Warn: , iyzsong--- via Guix-patches From: iyzsong--- via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx2.migadu.com X-Migadu-Spam-Score: -5.21 X-Spam-Score: -5.21 X-Migadu-Queue-Id: 2420453874 X-TUID: Ib60D9eS5Fw0 From: 宋文武 * guix/profiles.scm (package->manifest-entry): Only include propagated inputs from a package for its "dev" output, or its "out" output if the package doesn't have a "dev" one. --- guix/profiles.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/guix/profiles.scm b/guix/profiles.scm index fea766879d..9ed81dec4d 100644 --- a/guix/profiles.scm +++ b/guix/profiles.scm @@ -390,7 +390,14 @@ (define* (package->manifest-entry package #:optional (output "out") ((label package output) (package->manifest-entry package output #:parent (delay entry)))) - (package-propagated-inputs package))) + ;; Only add propagated inputs for PACKAGE:dev, or + ;; PACKAGE:out when PACKAGE doesn't have a "dev" + ;; output. + (if (if (member "dev" (package-outputs package)) + (equal? "dev" output) + (equal? "out" output)) + (package-propagated-inputs package) + '()))) (entry (manifest-entry (name (package-name package)) (version (package-version package)) base-commit: 98a8666a0cbf33e24efff615243b98144a92c950 -- 2.41.0