From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 6MLiF41FB2RZTQEASxT56A (envelope-from ) for ; Tue, 07 Mar 2023 15:09:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 8NcHF41FB2QmJwAAG6o9tA (envelope-from ) for ; Tue, 07 Mar 2023 15:09:17 +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 2C15F37987 for ; Tue, 7 Mar 2023 15:09:17 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Afdmwo2t; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678198157; 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=F7B1Vu/MnzcDjQpiyXJQB4JJniF+y8JePazYuuINU1g=; b=CLez1tDAA8lfvYid5jCiru+sDauuWgKXZyaEE0rxdFSQGCfOesWyUlV+470dF/kzIrd5Kz KFtKAd261I//K0KYgyG2DhfFwd77FUh0VoSS3WdbOuGOngNJDKetDPhJl0MAuhlh5o1fUJ MvcqlOxJVFzo4iZ7z49wbvfRgkjJ4sbG9+UBxnWKtWcdIyR34K8SnBQWGXzKjr1/Lbg8oC QOoRVsl8COySeiJg8v1hXZj04UObdI23JYeG4jZRWFuEy+SXJTvOejkAejExrK3RA01rgc E2fqRkdBQJnJmmo8w/92nOKAaGQqwdMUhCS59JZ5kNRQksBhWBg7vXnKxMDSFg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678198157; a=rsa-sha256; cv=none; b=c7z/SRVv5atWXJAbZo9MK9oIw8CwI4VBHR5GZOZQmDQd9TNs51W53XweuwLjOCPYtDRYLc sSxe1DCv9yyyaWR+S+Li2YauhUx0chpVepQHdVVyDnk5npP7xnrJIn/8fXqFVLtOzeDE2l kjPNhcu2FE+THw6PEAxVrf5VVf/SNQ81weEp2ctm9Laio926qXwIuOC163fbSCfqaE3Amn Xl+7fzao/xSmuU3lv8eAYk9+ohsIZkpWOEXJacbM1pBVvxMN5G5U0To51Tv0cKtZmC7wVB /RfbxExaNiiYHxl0YsiUtgG24ClGvR6l0Wg8q74gOqEqZmmYns/PervKKOgbeg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Afdmwo2t; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZY01-0005nM-7d; Tue, 07 Mar 2023 09:09:05 -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 1pZXzz-0005l1-E9 for guix-patches@gnu.org; Tue, 07 Mar 2023 09:09:03 -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 1pZXzy-0002mG-6Q for guix-patches@gnu.org; Tue, 07 Mar 2023 09:09:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pZXzx-0004WP-SF for guix-patches@gnu.org; Tue, 07 Mar 2023 09:09:01 -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: Tue, 07 Mar 2023 14:09:01 +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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Josselin Poiret , Christopher Baines , Simon Tournier , Mathieu Othacehe , 60847@debbugs.gnu.org, Tobias Geerinckx-Rice , Lars-Dominik Braun , Ricardo Wurmus , jgart Received: via spool by 60847-submit@debbugs.gnu.org id=B60847.167819810317323 (code B ref 60847); Tue, 07 Mar 2023 14:09:01 +0000 Received: (at 60847) by debbugs.gnu.org; 7 Mar 2023 14:08:23 +0000 Received: from localhost ([127.0.0.1]:44901 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZXzK-0004VK-P7 for submit@debbugs.gnu.org; Tue, 07 Mar 2023 09:08:23 -0500 Received: from mail-qt1-f172.google.com ([209.85.160.172]:44973) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZXzJ-0004V6-9r for 60847@debbugs.gnu.org; Tue, 07 Mar 2023 09:08:21 -0500 Received: by mail-qt1-f172.google.com with SMTP id s12so14313710qtq.11 for <60847@debbugs.gnu.org>; Tue, 07 Mar 2023 06:08:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678198095; h=content-transfer-encoding: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=F7B1Vu/MnzcDjQpiyXJQB4JJniF+y8JePazYuuINU1g=; b=Afdmwo2tVqEpqfJ+RQL8bwD6DNc6KKUshFNCo9ny8fRBRyFu8f+Bei609iZ4XJRAEs DG4BCBUBlyy6HHgUnDZg/rs2LrLIPFyCqWC60dln8iYNGNi/vH6JA0ByuB6OL2E4mILd 6XjsV/s8tMnvLPZDwHlnvaBf4P3PQ7VkM4bMHa+8YlnoXrbz98C2IV6eBSPdEfAZq+C4 6roD+J4iF6yEcFC1IYzXzb8NtQU7YiFFqwluSUJKPIQ379cSZFKLUEVTNpZEDJp/teFj it33pLOjlwtI+uLijdLwws15VIie/kEqckj5rYaxFpFlQKHRVQpIno92KNG4yvg9aSz8 Hkyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678198095; h=content-transfer-encoding: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=F7B1Vu/MnzcDjQpiyXJQB4JJniF+y8JePazYuuINU1g=; b=zTyQp4yRAqWv09UeHxcGm/9tzQtDrtaoSM1XUz1eAW4IAzkHFQGSLAeR0UazcRW01I b608UcIMWVgFdis+LGP2tIz4TrmXnCEJCvpM0exL34d85IhcRQ0lR9PHEcHlT2pSvTt1 p/UsY8zfhvubbWyX51XnA1vwN2eE1fxD9icMwa79d+ibK1QpJlSpATAGNL80oN3ASZeL 55W+N9upUStF7FSWIfUUSGvWviM+EnUGT4hf28hS1wuYY8HIz5LCyh0idur1K5z4afPF wb+NagqQ2f2jEPgGSbjWHigje0qS74Br04sLg8SAXS1YSQZ0ew9CTy0T8WWQdR6knScP sHMw== X-Gm-Message-State: AO0yUKXf7/u9djpYwId2svs7VyM1RmnnAacIiRD1aFv4LKrBaocB9kaT F3mlGR3tkT9y0PJVz6mJj7E= X-Google-Smtp-Source: AK7set/p+GvNL5TWiKfm5tIgo1DBUkP/1ztL6yKOjfByHapa6qcUbhUXij4004ohWrGyexC3P/xnOg== X-Received: by 2002:a05:622a:1650:b0:3bf:c5a3:6143 with SMTP id y16-20020a05622a165000b003bfc5a36143mr25255342qtj.27.1678198095631; Tue, 07 Mar 2023 06:08:15 -0800 (PST) Received: from hurd ([2607:fad8:4:3::1000]) by smtp.gmail.com with ESMTPSA id p23-20020a05620a057700b0071f0d0aaef7sm9397235qkp.80.2023.03.07.06.08.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 06:08:14 -0800 (PST) From: Maxim Cournoyer References: <20230123133217.318-1-maxim.cournoyer@gmail.com> <20230123133217.318-2-maxim.cournoyer@gmail.com> <87zg8p7qvw.fsf_-_@gnu.org> Date: Tue, 07 Mar 2023 09:08:10 -0500 In-Reply-To: <87zg8p7qvw.fsf_-_@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Mon, 06 Mar 2023 18:04:35 +0100") Message-ID: <87jzzsy7qt.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Scanner: scn0.migadu.com X-Migadu-Queue-Id: 2C15F37987 X-Spam-Score: 7.49 X-Migadu-Spam-Score: 7.49 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-Flow: FLOW_IN X-Migadu-Country: US X-TUID: doLp9KrkN6xA Hi Ludo! Ludovic Court=C3=A8s writes: > Hello, > > Maxim Cournoyer skribis: > >> +++ b/guix/packages.scm >> @@ -1864,28 +1864,30 @@ (define* (bag->derivation bag #:optional context) > > [=E2=80=A6] > >> + (let ((builder-name (procedure-name (bag-build bag)))) >> + (if (or (bag-target bag) >> + (eq? 'pyproject-build builder-name)) >> + (bag->cross-derivation bag) > > This one part is a showstopper to me, for two reasons: > > 1. We cannot rely on =E2=80=98procedure-name=E2=80=99 (it=E2=80=99s a d= ebugging aid and it=E2=80=99s > not guaranteed to return something useful). > > 2. Special-casing build systems here is not okay: the bag and build > system abstractions exist to maintain separation of concerns. > > I understand there=E2=80=99s an actual bug to fix and the desire to fix a= more > common issue, but I think this one approach is not the way forward. > > I hope that makes sense! I agree this is not "pretty", but it would be a "temporary" kludge until all the build systems can be migrated (and the package adjusted for) the "new" way, which is: native-inputs and inputs always co-exist, whether the build is a native one or a cross one. In light of this, it seems OK to test the water with a not so significant build system (only a handful of package relies on pyproject-build-system thus far). When all the build systems will have been migrated to the new way (a too big undertaking to be done in one shot), this kludge can be removed. Otherwise, could you offer a concrete suggestion as the way forward? I appreciate the "that's not the way", but stopping short of suggesting a better alternative leaves me wanting more :-). --=20 Thanks, Maxim