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 ms11 with LMTPS id AClsGsVhsl9PIgAA0tVLHw (envelope-from ) for ; Mon, 16 Nov 2020 11:25:57 +0000 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 AHJjFsVhsl+idQAAB5/wlQ (envelope-from ) for ; Mon, 16 Nov 2020 11:25:57 +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 219FE9404C4 for ; Mon, 16 Nov 2020 11:25:57 +0000 (UTC) Received: from localhost ([::1]:55412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kecdw-0006jW-1h for larch@yhetil.org; Mon, 16 Nov 2020 06:25:56 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45446) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kecdQ-0006j0-2d for guix-devel@gnu.org; Mon, 16 Nov 2020 06:25:24 -0500 Received: from mail-oln040092255016.outbound.protection.outlook.com ([40.92.255.16]:19896 helo=APC01-HK2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kecdJ-0007O6-TI; Mon, 16 Nov 2020 06:25:23 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D9yy8ONfQ7ugBOVqynW8u/nYzKVTlkb/A/42prbbiCyfHcWNO03OozWJZGIK7JWRjD0pdJ+yGnTVuoFyM2MjMm/eu3BZR8hBD3fjJ04JA90JP+ezx+XSkkHK9Ma+4j4MfvVomgD2nzzf1cKl4NtUxNGR9M8bUhJxTXRAtZ4SDuFV4erei+gmwY5oP8toFDcapkrvLSynTkoArqgx69LmYlzKVdhI4FzcyyzQsep1kfaR42W+yIuD4xqD6+B7ycL/kj5t5ZkqnyZ689E6cPKvvIvQ6r1G/x62du7oR5xHcqYz++b1htMVF7pjWBdb9N3a1s/r1luXRTiHfaF/Yn9Zow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+Sq2ZVZsnbp/CONfd1tGXVVemfVOPma7Ky9oTU77ImA=; b=acylXNFV5henRtFQVDZUxl0zQFr4o78F/AYcrxxNwvuh9knTRUZB0GoQL2HtsabV/cr6O1jLBWfBRqKJKfKR4GHJar64IjKj8jQ/nLwYam6rnuAaqKWfCjMm1L+D/HfcmC9+/j2lIoeC8deVyDcuMe50ZHB1+785rxPQSE3IuDqHiibOq5pzczktgoK5Koi+UcFPtvSg7qh8DOyD6l3fizWXQ/0+AguIlqqefednHromG3UsZfRBasXEerpjN+VWKUrRYGpmnozk/kec3YrAldkmkQCXWFhxa2nfOuyBtHGLT/AfLylB4oUyBF4RZp6KZgIYOK3WlW74+55El21TSQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+Sq2ZVZsnbp/CONfd1tGXVVemfVOPma7Ky9oTU77ImA=; b=QGQSwcHAacXjM8zxIP8s4VOndl1cjStrzrirsxeXCy38dT4ETziPRq2Xq7hE1n8nxW7HjOBOSuwsy8ojdLfrkdlANox84jAyMhwYoeYtV8OZMT9to3Dtt8yNSi8UVevgSy6LGUI1GYnopaE7jGIPddCeOa1OPhNaxuazgSxENDftLjoEYGv8bjozf417t/Vj+s9YlWu+gRRlvs79K4KbVy8kjIsH+3qgbkI69vnqSdrbgwhITBKDbJbRVZlTjUnyYXhp9aoZnml5TNNdgFC76my9qtjaYX5V+3ZtHN9qjsoRkH5KlRDLM7iZSs+UnQh2/yaN+c671+EYuDlUxRcc3g== Received: from HK2APC01FT063.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebc::40) by HK2APC01HT216.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebc::309) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3564.22; Mon, 16 Nov 2020 11:25:06 +0000 Received: from OS0P286MB0178.JPNP286.PROD.OUTLOOK.COM (2a01:111:e400:7ebc::4d) by HK2APC01FT063.mail.protection.outlook.com (2a01:111:e400:7ebc::400) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3564.22 via Frontend Transport; Mon, 16 Nov 2020 11:25:06 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:90419C26BD419A9B641212E13CE3658A397F4562B5E2C771258B98E6BFE361B5; UpperCasedChecksum:877D2A6A475415835B81969CB9AA917FE7D1CCBF53734E687E364BC902EF221C; SizeAsReceived:8865; Count:47 Received: from OS0P286MB0178.JPNP286.PROD.OUTLOOK.COM ([fe80::3813:6edd:69a0:95e]) by OS0P286MB0178.JPNP286.PROD.OUTLOOK.COM ([fe80::3813:6edd:69a0:95e%8]) with mapi id 15.20.3564.028; Mon, 16 Nov 2020 11:25:06 +0000 From: =?utf-8?B?5a6L5paH5q2m?= To: zimoun Subject: Make mutiple packages from outputs (Was: A plan for parameterized packages) References: <87eeku8trb.fsf@gnu.org> <20201115214658.41223d15@scratchpost.org> <86mtzis4lf.fsf@gmail.com> Date: Mon, 16 Nov 2020 19:25:16 +0800 In-Reply-To: <86mtzis4lf.fsf@gmail.com> (zimoun's message of "Sun, 15 Nov 2020 22:16:44 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-TMN: [KkPdE64kA06vw0anjaCkVQddiuWUcsadXKBEJ/KYwma4TWc6twqqYNt7kcH4kCDk] X-ClientProxiedBy: SJ0PR03CA0011.namprd03.prod.outlook.com (2603:10b6:a03:33a::16) To OS0P286MB0178.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:95::7) X-Microsoft-Original-Message-ID: <87zh3hv90j.fsf_-_@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost (2409:8a62:375:bb00:2f1:f5ff:fe18:6bb) by SJ0PR03CA0011.namprd03.prod.outlook.com (2603:10b6:a03:33a::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3564.28 via Frontend Transport; Mon, 16 Nov 2020 11:25:03 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 47 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 6ee7f703-b30c-40d5-097e-08d88a22440a X-MS-TrafficTypeDiagnostic: HK2APC01HT216: X-MS-Exchange-MinimumUrlDomainAge: github.com#4787 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Cdvg2aQR9qy8d/LzJb2+Vvq/9QBGM6fWV82CtvlixqaOlPxptdt8cZrgUsXBLuhzpBR1MqICBUCPa2nubguiVXdnG5v6HuH5HIBUsZKQ+HwJMUWvjSH3IKb/5Ucl1ZsS4hVKtSp0e2BI+uflaxmsI8+C3mCD4MNPAw62eHJCfHvq0TxnTy90vMnc5pbHIOCUlcUOewNG6awE4I2dvJvVbUF6FujHyvq+m1ilux0jbQCyyhWtPjxVxggGzdsqj5kr X-MS-Exchange-AntiSpam-MessageData: 0CiCmezU0eYi/UhIbvwBXCIHBEe5A/y37cylb1hhnm8iQUjThdrfJkxp31FoKV1CZxYvOm/fA728T4Yeea253OYrvB1KbWNHAltzo49lQ9Oqb3q5M0Cts5JU8giRMD9BIZfOSIqbPQFOE1Cs7tOjsJfEOo+vb1/28LB75zyRW2E9mL3fiu+4mpyedr505kL42BsjBmXZ+9fI7tOoQVXNFg== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6ee7f703-b30c-40d5-097e-08d88a22440a X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Nov 2020 11:25:06.3555 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: HK2APC01FT063.eop-APC01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2APC01HT216 Received-SPF: pass client-ip=40.92.255.16; envelope-from=iyzsong@outlook.com; helo=APC01-HK2-obe.outbound.protection.outlook.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/16 06:25:11 X-ACL-Warn: Detected OS = Windows NT kernel [generic] [fuzzy] 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, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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 Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b=QGQSwcHA; arc=pass (microsoft.com:s=arcselector9901:i=1); dmarc=pass (policy=none) header.from=outlook.com; 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-Spam-Score: -2.71 X-TUID: LwTGhSTnUjvc zimoun writes: > Dear, > > On Sun, 15 Nov 2020 at 21:46, Danny Milosavljevic wrote: > >> * Enable/disable building the documentation. I really don't need a 40 M= iB >> manual stored onto a 16 MiB firmware flash chip. If that's better done = as an >> extra output, fair enough. > > Related (I hope) is: build packages with several outputs. For instance, > =E2=80=99git=E2=80=99 has several 'outputs' ("send-email", "svn", etc.), = so the list of > "inputs" provides e.g., "subversion" even if I am only interested by > e.g., "git:send-email". This matters about closure. > > And it is maybe an occasion to revisit the museum, i.e., the TODO file: > > ** extend =E2=80=98propagated-build-inputs=E2=80=99 with support for mult= iple outputs > > #+BEGIN_SRC scheme > (outputs '("out" "include")) > (propagated-build-inputs > `(((("i1" ,p1 "o1") > ("i2" ,p2)) > =3D> "include") > ("i3" ,p3))) > #+END_SRC > > For one reference: > > > > > All the best, > simon I'd like to suggest another plan: Make every =E2=80=98output=E2=80=99 becom= e a object, so =E2=80=98propagated-build-inputs=E2=80=99 doesn=E2=80=99t need t= o change. Then we=E2=80=99ll have something like debian=E2=80=99s source/binary packages [1] and archlin= ux=E2=80=99s base/split packages [2]. Example: --8<---------------cut here---------------start------------->8--- (define-public %gtk+ (source-package (name "gtk+") (version "3.24.20") (source ...) (inputs ...) (native-inputs ...) (outputs `(("out" . (binary-package (name "gtk+") ; version inherit from source (propagated ...) ; per output propagated-inputs here (native-search-paths ...) (synopsis ...) ; can override package metadata (description ...))) ("gtk-update-icon-cache" . (binary-package (name "gtk-update-icon-cache") ...)))) (arguments ...) (home-page ...) (synopsis ...) (descirption ...) (license ...))) (define-public gtk+ (source-package->binary-package %gtk+ "out")) (define-public gtk-update-icon-cache (source-package->binary-package %gtk+ "gtk-update-icon-cache")) --8<---------------cut here---------------end--------------->8--- [1] https://sources.debian.org/src/gtk+3.0/3.24.23-2/debian/control/ [2] https://github.com/archlinux/svntogit-packages/blob/packages/gtk3/trunk= /PKGBUILD We'll have to build some compatibility layer with existing =E2=80=98package= =E2=80=99 and adjust UI though. I think this is possible and will bring various benefits!