From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wONHKFE1OWHmRQAAgWs5BA (envelope-from ) for ; Thu, 09 Sep 2021 00:12:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id EKO6I1E1OWF8MgAAB5/wlQ (envelope-from ) for ; Wed, 08 Sep 2021 22:12:33 +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 BF947630A for ; Thu, 9 Sep 2021 00:12:32 +0200 (CEST) Received: from localhost ([::1]:58880 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mO5nz-0008Vn-Pw for larch@yhetil.org; Wed, 08 Sep 2021 18:12:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55504) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mO5np-0008Vf-Qu for guix-devel@gnu.org; Wed, 08 Sep 2021 18:12:21 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35732) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mO5no-0008KQ-Mx; Wed, 08 Sep 2021 18:12:20 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=35440 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mO5no-0000rO-DW; Wed, 08 Sep 2021 18:12:20 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Maxime Devos Subject: Re: Rethinking propagated inputs? References: <045891c151c74e0d66d91973c9e55e0194272df5.camel@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 23 Fructidor an 229 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 09 Sep 2021 00:12:18 +0200 In-Reply-To: (Maxime Devos's message of "Sun, 05 Sep 2021 18:17:08 +0200") Message-ID: <87y286g1j1.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org, Liliana Marie Prikler Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1631139152; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=bgeB1XXaUuSFPVPdLXM2PPy/8O594MdH0+Z8wIuzjNc=; b=gawebsSzqVW/xONJGtbkqde/Oic8uscLxINo0XNqJ6mRE3vhB7PC8+yU9T7DYe4XYibJyt ZVaQAUuhtFhFp03igN3k47ytMivEeqpgaBZtGzjhDITgTy1EI0WdA7mUnH/2wMUwTWkOvk Pd0w2Hih5PF0YDQQnlnEEzlgdNhcggpISqFSybPmzMPMIueq2em1HnbmBjFskuZfa6EQCF vENNPE+rOmKk3JFJgH3kNtNwmkEB7K+zN6UiR0EzoGhm5DNWBHVgqbFmi7fxo+pADJWbf+ qcs2zxaqk4uLko36VADup9AvlZYKyM31piSUpylwKpUUhduYWlZZflz8oL1mpg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631139152; a=rsa-sha256; cv=none; b=UGsQGBgprNQxUfukAUIORRZcB7lVw0eNqnLy/S20BLItx/4GeYWkZuF7+v6ZUjWQ1erp4u rE41y3pKa8mL08KYhGMSp9OKELBugSnaxFHi7vg2NYtFDY3V35iykpjUsrx4Dx5T4olLBD V6bQsj1lx+4O6pw3IlRR/nHSvrWrx/UcAn3GmsV6e7cQbSYKfBhWHqJni689IJLKyqit7U fgPbWvUlkZQQZU88C0C53hVsujJSnAWWZqicMre1Zg7kKl/npuwkQnm1HIhSY2PF88/Bnm kec4lEq64yTrawpS+aI1sG2tMKUZF+bADAxAnqY4hZ3Jfy6ED3ZXHsvtuBAyzw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -1.91 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: BF947630A X-Spam-Score: -1.91 X-Migadu-Scanner: scn0.migadu.com X-TUID: BLeOGwgNHQIU Hi, Maxime Devos skribis: > For packages using pkg-config, I had the following scheme in mind: As a reminder to everyone, pkg-config is just one of the reasons for propagating inputs, probably not the main one numerically speaking. > A package that has .pc files puts them into a separate "build" output. > The code handling 'propagated-inputs' is modified such that an entry in > 'propagated-inputs' can have an additional 'propagated-for-output' compon= ent. > > (Feel free to suggest a more concise name.) > > I.e., something like: > > (define glib > (package > (name "glib") > (outputs '("out" ; everything > "bin" ; glib-mkenums ... depends on Python > "build")) ; glib-2.0.pc > (propagated-inputs > `(("pcre" ,pcre #:propagate-for-output "build") ; in the Requires= .private field of glib-2.0.pc > ("libffi" ,libffi #:propagate-for-output "build") ; ditto, for = gobject-2.0.pc > ;; etc. > )) > (native-inputs '()) ; not relevant to this e-ail > ...)) Good=E2=80=99ol =E2=80=98ROADMAP=E2=80=99 file has a half-baked proposal al= ong these lines. It=E2=80=99s interesting, but I=E2=80=99m a bit concerned about the mainten= ance cost/benefit ratio of this approach. (It also goes against work on simplifying the surface syntax of inputs.) It would be great if the =E2=80=98Requires=E2=80=99 field of .pc files coul= d specify absolute file name; it would no longer be necessary to set PKG_CONFIG_PATH, and thus propagation wouldn=E2=80=99t be needed in this ca= se. Regarding outputs, Nixpkgs introduced a =E2=80=9Cdev=E2=80=9D output a whil= e back that lumps together our =E2=80=9Clib=E2=80=9D and =E2=80=9Cinclude=E2=80=9D outp= uts, roughly. I think that=E2=80=99s a good idea (for other reasons too). Ludo=E2=80=99.