From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id IE8mC0I7C2RHfwAASxT56A (envelope-from ) for ; Fri, 10 Mar 2023 15:14:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id oFteCkI7C2SVCAAAG6o9tA (envelope-from ) for ; Fri, 10 Mar 2023 15:14:26 +0100 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 D1A5D13291 for ; Fri, 10 Mar 2023 15:14:25 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=jTu0ntej; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678457665; 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: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=jv1DEXKfrqC0RJs672G836Arnhk8t464a7KRZP90oj8=; b=bRgCgND2aqWY9K6gmrbtH5s/vrnzi5YuESwbVy0/r5G1fkWUzO66ml+xE0JFKMs6+UtW4/ ejPVzUimo3ML28it18vbHhz56Xzx0Yn9+a8Cd7oBP/m4+pD4MuQoOziqCtCWM6YHliSdRz vLJxtSWjj6BTA27hstmPhI60+s3pVz08/yiK6nfl0m2IEDq4amaIU2p04pb/0HIoaeOckm BvtWLqYHT0pu0cx8dbSdfFfuadR2kPE4RTPdV+pew+VJRLQv53ScpE324mkXmkQpy+zFo5 AEb+PHQHRYiTwrRLovvEWMBHAmqCafFsXaULFQAWQiFHpS+uBDUQI2oWUYJD0w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=jTu0ntej; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678457665; a=rsa-sha256; cv=none; b=MGpVLdzjhYlZn2KZ54rAVEoHYkHkEW+KbMARokVcvBQSYH/Ms12Ln0MM+Mb1ackKda8gpW E4GaKOdNdBVepJSVTftuNAK8pevtz3QcE5UdJJkwfjpcb03hyavmARRaw+96ixragfkbGc pQOiY4knRsxooyMvWwICZosqqY8LWJWhJjIYrn/p9PgxM9aZ0gx8ECX8jRT2rS+FiHpVGd G8T8PzQ8FTtE7fhR2SY6BP8l7LZH/144Q+Fr0UlC0Bs1SHVKzOh4OSIS+c1m5tS6wAt7Oe AqBYysjN34Kv28dXHGjXHj6D9EOC00knI5cYVS4iI3CdB72IFg163eFAycVaHQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1padVd-0007Is-TZ; Fri, 10 Mar 2023 09:14:13 -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 1padVT-0007HF-LS for guix-patches@gnu.org; Fri, 10 Mar 2023 09:14:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1padVS-0004JU-Ci for guix-patches@gnu.org; Fri, 10 Mar 2023 09:14:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1padVS-0002xF-8L for guix-patches@gnu.org; Fri, 10 Mar 2023 09:14:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60847] [PATCH] Enable cross-compilation for the pyproject-build-system. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 10 Mar 2023 14:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60847 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Christopher Baines Cc: 60847@debbugs.gnu.org Received: via spool by 60847-submit@debbugs.gnu.org id=B60847.167845760111283 (code B ref 60847); Fri, 10 Mar 2023 14:14:02 +0000 Received: (at 60847) by debbugs.gnu.org; 10 Mar 2023 14:13:21 +0000 Received: from localhost ([127.0.0.1]:54130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1padUn-0002vu-8h for submit@debbugs.gnu.org; Fri, 10 Mar 2023 09:13:21 -0500 Received: from mail-qv1-f50.google.com ([209.85.219.50]:42512) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1padUl-0002ve-QI for 60847@debbugs.gnu.org; Fri, 10 Mar 2023 09:13:20 -0500 Received: by mail-qv1-f50.google.com with SMTP id ne1so3649281qvb.9 for <60847@debbugs.gnu.org>; Fri, 10 Mar 2023 06:13:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678457594; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=jv1DEXKfrqC0RJs672G836Arnhk8t464a7KRZP90oj8=; b=jTu0ntejiVo/kq4dbAjEgU7ol3VsH+Jv8GwaDDNH/SizN+K082jNXo2ebOKXdQgRJ0 QwuRAV4mTihfV4w4YMr/w500eOBq2685Gh31STIsF2nqMzgMbSeRIa4WHMqpPYz25aCR GFy3bYWYUj0le0jTvOwI9vktLcAiEsr/1Ep6q3/DNIDI3i21yqcqUvQvbHFChTDvlIpZ eloQ9AvnlbuxDsywATXMZGatHOyR4dHk8ZjKqBBcaDt1BxQB/ydYqQxMMBGfIkVlXpZK tMHARpVrFuawoR9KoYNkCFWaZfmV4/2kyFY044iT4GikCD60wCmEiLLcnHaCtmV3p6uw McvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678457594; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=jv1DEXKfrqC0RJs672G836Arnhk8t464a7KRZP90oj8=; b=78O3TJT/dQG3EbQBEdVHQq7dzJBOzkgKQb9XAgeQnTV2Arne9e0AFsevs3hMpBvcFK 2MjF/+rNscGCClyS1jP/oChXDMVRxY9c9GNfdL9M3k3/4o9axeCFc8FjjyA4ecpuw4xx ixs4/FXJp/bBCNiREn7D+MjH29Mb6BWc2+WYBXxWDFviQ+YLsFeUxNGFPEx8We8SHNTR 87lWgi0gyKOPXmGGwkHr+SKP7urwRRMZJkwgSrqecQfpOrEPiGwIbv+Zc3vyG6j9H4ua Cm7e53D1GVoDAZSF7IXv9yvhyxUF6R9+hUne10lLPt/0Os3RCeNdUKJqVmn5nAuU3ztv H5vg== X-Gm-Message-State: AO0yUKXfnEPMEWghOLEn37HXIExa52BCEPCgBlI/0IA+TiYCBQVLDfMP UnPW+NnJw1CPJDAVWcnBacAJjhRnsEeFmA== X-Google-Smtp-Source: AK7set8S9AVk33sHhI2LCilj+y+SvYNirjzwWUsh08FTXeA/dXN2+Qac7qQsJ2BmMOJBa54C5hsriA== X-Received: by 2002:a05:6214:ca8:b0:56e:c238:b719 with SMTP id s8-20020a0562140ca800b0056ec238b719mr47681018qvs.2.1678457593928; Fri, 10 Mar 2023 06:13:13 -0800 (PST) Received: from hurd ([2607:fad8:4:3::1000]) by smtp.gmail.com with ESMTPSA id a10-20020ae9e80a000000b00742743dba2asm1409828qkg.39.2023.03.10.06.13.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 06:13:13 -0800 (PST) From: Maxim Cournoyer References: <20230123133217.318-1-maxim.cournoyer@gmail.com> <20230123133217.318-2-maxim.cournoyer@gmail.com> <87zg8p7qvw.fsf_-_@gnu.org> <87jzzsy7qt.fsf@gmail.com> <87jzzsr3tx.fsf@cbaines.net> <87a60owfi8.fsf@gmail.com> <87fsagqr67.fsf@cbaines.net> Date: Fri, 10 Mar 2023 09:13:12 -0500 In-Reply-To: <87fsagqr67.fsf@cbaines.net> (Christopher Baines's message of "Tue, 07 Mar 2023 19:26:47 +0000") Message-ID: <87zg8kr8xz.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: X-Migadu-Queue-Id: D1A5D13291 X-Spam-Score: -2.39 X-Migadu-Spam-Score: -2.39 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , 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-TUID: 88eWFhhMuFF7 Hello Christopher, Christopher Baines writes: [...] >> Thanks for tipping in. The end goal is to avoid loosing the information >> of which inputs are native (build inputs) vs regular in the bag, and yes >> bag->cross-derivation allows that. It appears to me the distinction in >> the bag representations (native vs cross) was originally perceived >> useful as some kind of optimization (there's less variables to worry >> about, and we can squash the inputs/search-paths together, since they're >> all native anyway), but this information (currently discarded) ends up >> being very useful even on the build side (to wrap only the target >> inputs, say, and not all the native/build inputs). >> >> So yes, the change long term would be to integrate the >> bag->cross-derivation logic into bag->derivation, at which point it >> would be unified for any type of build (the bag representation would be >> shared between native and cross builds). > > Thanks for the explanation, so maybe an alternative to trying to get > bag->derivation to function differently for different build systems > would be to push combining the inputs down in to each build system. > > Take the gnu-build-system as an example, gnu-build in (guix build-system > gnu) would be changed to take multiple lists of inputs, rather than a > single list. It can then combine the lists of inputs as is done in > bag->derivation, to avoid affecting any packages. > > While this does require changing all the build systems, I think it's a > bit more forward thinking compared to trying to add a kludge in to > bag->derivation, since hopefully the change there can be the longer term > one. I'll see if I have a good enough understanding of the code to make sense of your suggestion. I'll definitely try it! Thanks for suggesting. -- Thanks, Maxim