GNU bug report logs

#60847 [PATCH] Enable cross-compilation for the pyproject-build-system.

PackageSource(s)Maintainer(s)
guix-patches PTS Buildd Popcon
Full log

Message #62 received at 60847@debbugs.gnu.org (full text, mbox, reply):

Received: (at 60847) by debbugs.gnu.org; 12 Mar 2023 04:05:25 +0000
From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 11 23:05:25 2023
Received: from localhost ([127.0.0.1]:58898 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1pbCxZ-0001xJ-BE
	for submit@debbugs.gnu.org; Sat, 11 Mar 2023 23:05:25 -0500
Received: from mail-qt1-f177.google.com ([209.85.160.177]:33731)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@gmail.com>) id 1pbCxX-0001x3-66
 for 60847@debbugs.gnu.org; Sat, 11 Mar 2023 23:05:23 -0500
Received: by mail-qt1-f177.google.com with SMTP id z6so10159861qtv.0
 for <60847@debbugs.gnu.org>; Sat, 11 Mar 2023 20:05:23 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20210112; t=1678593917;
 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=wapCJ+4WPMr3+oPYy9bGOlrHJkyHEl2M5LQvhGbBI5o=;
 b=fEeQWMP9HIrZ4IqJGN2KMlzvTos3J1m+mWaEidZMwVPTXgUyJ3N9dMLhr3hC7W1n7R
 51C4X7kt90e6+UD6E4ZQOi3Uf1RmVB5ddT3yNvSi7QGx53R9UkcaJ3nMgGeHCrJ2yW0S
 wyAUZCG+aNx2rrrSWz55SOdI7EXDTKZDSgemFSPfD7SH9YfMeXD37dEjwPFF2IVKXYlX
 8Ziyqqb2xE4Cvh0rsl1VfBdjI2mDL4liKmHeetPanvATdxF+VGKGuYK/tqPIlvcmtb+B
 XFuhr5m2mvM2PozX4kqZ1Sq2PrxEsnK0y4ysZZmJ1IML1E84P8BT3PfuDPM9U7Tf++tD
 L9Qg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112; t=1678593917;
 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=wapCJ+4WPMr3+oPYy9bGOlrHJkyHEl2M5LQvhGbBI5o=;
 b=OIlWPZeMr/e+rvsaUDPgHrgDpm3l/ztPsv9KVuqBGFAMVbwy9qC5miUdFfUieeK1a2
 FKVFrJBT8fA1DTkzjj6EJakwoNXM+cZjC6bMoJF/TY4gzjZGbOeQ5OQWasyq3pZ1cejW
 chmfcVFgXq7rXhE8Iie+AwlbqOI7ACnggc6kj36+/9gegcmlYWEGS06+Ioodot+dSU8g
 EUt3oPq/1aRIXqfwSZjf6e5IPVkwR4W5jnGe1JiB+YSW01X1jun3ACrsRO5n0dsVJFj5
 t1f5KyPM8WDJArA13V6bdMdV1JaFx8ueoyKG07KtCfI/xP7KCbsaLuhteS6oZZUwZQjW
 tkbg==
X-Gm-Message-State: AO0yUKXxFl0YPEH/IlvrWxbYhN1P1WS3ODhV33sg9/sYWB0R9KvhzcAe
 GkSYFssj1/XO6IBOV+n04oo=
X-Google-Smtp-Source: AK7set/559ZJOYj3gqopvG0JnLR5yC8vwFFuqR89Tp4D6KC6//jeqVJQpes7bLzLf4VFqncP/xT4PQ==
X-Received: by 2002:a05:622a:50e:b0:3bf:c9d1:4276 with SMTP id
 l14-20020a05622a050e00b003bfc9d14276mr17188503qtx.5.1678593917671; 
 Sat, 11 Mar 2023 20:05:17 -0800 (PST)
Received: from hurd ([2607:fad8:4:3::1000]) by smtp.gmail.com with ESMTPSA id
 y5-20020ac87045000000b003b2957fb45bsm3038341qtm.8.2023.03.11.20.05.16
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 11 Mar 2023 20:05:17 -0800 (PST)
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Ludovic Courtès <ludo@gnu.org>
Subject: Re: bug#60847: [PATCH] Enable cross-compilation for the
 pyproject-build-system.
References: <20230123133217.318-1-maxim.cournoyer@gmail.com>
 <20230123133217.318-2-maxim.cournoyer@gmail.com>
 <87zg8p7qvw.fsf_-_@gnu.org> <87jzzsy7qt.fsf@gmail.com>
 <87o7p19e6w.fsf@gnu.org> <87v8j8r8jt.fsf@gmail.com>
 <87a60kh77y.fsf@gnu.org>
Date: Sat, 11 Mar 2023 23:05:15 -0500
In-Reply-To: <87a60kh77y.fsf@gnu.org> ("Ludovic Courtès"'s message of "Fri, 10 Mar 2023 18:00:33 +0100")
Message-ID: <87pm9epqbo.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-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 60847
Cc: Josselin Poiret <dev@jpoiret.xyz>, Christopher Baines <mail@cbaines.net>,
 Simon Tournier <zimon.toutoune@gmail.com>, Mathieu Othacehe <othacehe@gnu.org>,
 60847@debbugs.gnu.org, Tobias Geerinckx-Rice <me@tobias.gr>,
 Lars-Dominik Braun <lars@6xq.net>, Ricardo Wurmus <rekado@elephly.net>,
 jgart <jgart@dismail.de>
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit@debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
X-Spam-Score: -1.0 (-)
Hi,

Ludovic Courtès <ludo@gnu.org> writes:

> Hi Maxim,
>
> Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:
>
> [...]
>
>>>>>> +  (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 ‘procedure-name’ (it’s a debugging aid and it’s
>>>>>      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’s 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
>>>
>>> To make sure there’s no misunderstanding, I think that’s not okay even
>>> as a “temporary kludge” (I’m not against temporary kludges in general,
>>> I’ve done my share of that ;-), but this would be way too brittle.)
>>
>> "way too brittle" is a strong warning :-).
>
> It is; I’m objecting to this change.

OK.

>> I don't understand what is
>> so brittle about it?  It's not like we change the build system names
>> often.
>
> I have little to add to what I wrote above: procedure names don’t mean
> anything, especially with higher-order functions, and separation of
> concerns is an important design principle.
>
> I’m speaking with 15+ years of experience with Guile; I don’t mind being
> challenged, it’s healthy, but I think we also need to recognize the
> expertise of each other and encounter each other halfway.

When I don't understand something, I ask for an explanation.  I'm happy
(and greatly value) that my correspondent has 15 years of experience
with Guile, but I'll still ask if something is unclear.  I hope you
don't mind.

> [...]
>
>>> Perhaps one suggestion would be: start the native-inputs/inputs change
>>> on a new branch, for all the build systems (or at least the main
>>> ones), and then try to build the ‘core’ subset (which includes
>>> cross-compilation) to get an idea of the kind of code simplification
>>> opportunities as well as issues that arise.  I feel like it’s hard to
>>> anticipate the impact of such a change without actually trying.
>>
>> I can do this; the exercise would be similar to what I've done for
>> pyproject-build-system, where I was able to build complex packages (both
>> natively and cross-compiled) with the new same-bag representation
>> change, but to a larger scale.  It's more work, which is why I would
>> have preferred to contain its scope to get started, but the changes were
>> easy, IIRC.
>
> Yes, I agree it’s more work, but it’s dissimilar in that you’ll be
> confronted with tons of weird cases, some of which we can already
> anticipate, but probably others we’ll probably be surprised to discover.

OK.  I'll put this to the test, when I'm done with the current Ruby
rabbit-hole I've been pursuing.  Thanks for the feedback!

-- 
Thanks,
Maxim




Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Sun Dec 22 20:57:58 2024; Machine Name: wallace-server

GNU bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.