From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yE0nGDwRrmEEnwAAgWs5BA (envelope-from ) for ; Mon, 06 Dec 2021 14:33:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 2EneEzwRrmHYVwAAbx9fmQ (envelope-from ) for ; Mon, 06 Dec 2021 13:33:48 +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 1064F121A for ; Mon, 6 Dec 2021 14:33:48 +0100 (CET) Received: from localhost ([::1]:55282 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1muE7n-00085z-2r for larch@yhetil.org; Mon, 06 Dec 2021 08:33:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muDpe-0003ky-Rd for bug-guix@gnu.org; Mon, 06 Dec 2021 08:15:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:49253) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1muDpe-0005w6-Ir for bug-guix@gnu.org; Mon, 06 Dec 2021 08:15:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1muDpe-00082E-EL for bug-guix@gnu.org; Mon, 06 Dec 2021 08:15:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#52284: Partially unifying packages and inferior packages Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 06 Dec 2021 13:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52284 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxime Devos Received: via spool by 52284-submit@debbugs.gnu.org id=B52284.163879648330839 (code B ref 52284); Mon, 06 Dec 2021 13:15:02 +0000 Received: (at 52284) by debbugs.gnu.org; 6 Dec 2021 13:14:43 +0000 Received: from localhost ([127.0.0.1]:60799 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muDpL-00081L-A7 for submit@debbugs.gnu.org; Mon, 06 Dec 2021 08:14:43 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57418) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muDpJ-000817-Jz for 52284@debbugs.gnu.org; Mon, 06 Dec 2021 08:14:41 -0500 Received: from [2001:470:142:3::e] (port=50586 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muDpD-0005sv-Q1; Mon, 06 Dec 2021 08:14:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=gm8+WXm9ZQJm7VmBhOHyy+i+1owef9IUrKRfiaCHvgE=; b=TjnN2s25WdiKSpD0CPCx X2UySrtK5+YqT+wSGRm015IQq/QdamMiDH03Zu50qv0nqamMENu1uyG7rkMInPLC6QriaycMEBc9c xxUH7ofzE17cnoL/9Hpwkr676xwyj871FUeU8yJnXFsyAR7veYLWZ8k4HJOKRnxa+wz/bBXxS5RGI 9OqGTgE3PGjclZNX2Rd0leMQ155bYmBlJEwzUHT2OactD4jx9G+Q0DoxtPRcTMRO2E94mMeKZm9wi qSMfx88HydQpUeAf3QfxOyD0Lb7JvcHIauKZOdgIvX9bZhiiyq2tf3AIhKOhEl/c2gXSg7DY+Wlc8 64BkYyLHUKhTrw==; Received: from [193.50.110.120] (port=41688 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muDpD-0007aj-MF; Mon, 06 Dec 2021 08:14:35 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 16 Frimaire an 230 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: Mon, 06 Dec 2021 14:14:33 +0100 In-Reply-To: (Maxime Devos's message of "Sat, 04 Dec 2021 21:01:42 +0000") Message-ID: <87bl1tnadi.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: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org, 52284@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638797628; 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: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=gm8+WXm9ZQJm7VmBhOHyy+i+1owef9IUrKRfiaCHvgE=; b=O43wGiTvC6BmQeVJRJ4sUjCMvEFDqr/cjIcv0LwT/TeNK1eRFtsxtxKG/KCphFx2TlrTLI 2L8pOgl0v1XcNAA1zjQs1AekBh9NytZtmWYBkhWBW4Nv/5BBet0XuyKHRQlki5/TieeXvk 4JJgxLgge2ZrqCevXn2W9kBch5U3o5Xizz3BszeBhmnWI8hnr6A6Xjg52RsAXcFoqihgt4 ffGl+4C1P1rXbHz7QT2SVIVQfVOyR2ZKZ/CcU+TXyvL9YbKCbJdJ0PfBLpcu328p3pHbdV FJ6d4PmP+LGG4Fx38H87XpCj79VF091Go99xtrfx5ASwGeRYjlkPrhRuM9/Y8A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638797628; a=rsa-sha256; cv=none; b=c7v7f1+/Ukq841UUG6TRUxGpf6U+CNoLq3UCXk4L/sDXAzvgs+W2xxk9xnYafS26T3lEdy O77wo5r2Z/OOOj+2GM6KjJe41DincAIsjLneWNrsYlkhZx+Ytt2ecVZ4rFDgzkTcFxwtRb VTB8o55fSlvR5Uy4osGZ4rbgAqFfM4hSftImHTtYrEawO0x6jHeKlKwArQREBrsMQoEOGv 2USzvT8trdD0CcmSLDp86HK+YXUOM6JGXmiuzOhmQa9MpNegFldeQqBWxT+jzZKghld6F/ YK6FgDmyIx+AuO+gRU7IFXYfaABloo8wJqrinkNPAuXDbGMLFdiWUp8qSGDsvQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=TjnN2s25; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.14 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=TjnN2s25; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 1064F121A X-Spam-Score: -2.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0Hir5utAR9fo Hi, Maxime Devos skribis: > (define (inferior-package->package inf) > ;; TODO: somehow make sure no inheritance happens on this package > (package > (name (inferior-package-name inf)) > (version (inferior-package-version inf)) > (replacement (and=3D> (inferior-package-replacement inf) inferior-pac= kage->package)) > (source #f) ; TODO > (build-system inferior-package-build-system) > (arguments `(#:inferior-package ,inf)) > (synopsis (inferior-package-synopsis inf)) > =C2=A0 (description (inferior-package-description inf)) > (home-page (inferior-package-home-page inf)) > (location (inferior-package-location inf)) > (inputs (map=C2=A0inferior-inputs->inputs (inferior-package-inputs in= f))) > (native-inputs (map inferior-inputs->inputs (inferior-package-native-= inputs inf))) > (propagated-inputs (map inferior-inputs->inputs (inferior-package-pro= pagated-inputs inf))) > (transitive-propagated-inputs (map inferior-inputs->inputs (inferior-= package-transitive-propagated-inputs inf)))=20=20=20=20 > (native-search-paths (propagated-package-native-search-paths inf)) > (search-paths (propagated-package-search-paths inf)) > (license #f)) ; TODO That=E2=80=99s a clever hack! Longer-term, I think it would be nice(r) to use a type hierarchy somehow so instances can truly be used anywhere a is expected. Thanks, Ludo=E2=80=99.