From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: Cross-compiling Date: Wed, 5 Feb 2020 13:13:40 -0800 Organization: UCLA Computer Science Department Message-ID: <6eb264a1-a197-7d1e-8b18-dc1b4feb6ebc@cs.ucla.edu> References: <87r1z9hwcj.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="38349"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 Cc: emacs-devel@gnu.org To: David Michael Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 05 22:14:23 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1izS07-0009rq-Hj for ged-emacs-devel@m.gmane-mx.org; Wed, 05 Feb 2020 22:14:23 +0100 Original-Received: from localhost ([::1]:56790 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1izS06-0003vf-Kw for ged-emacs-devel@m.gmane-mx.org; Wed, 05 Feb 2020 16:14:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35090) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1izRzY-0003Mv-KW for emacs-devel@gnu.org; Wed, 05 Feb 2020 16:13:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1izRzW-000324-92 for emacs-devel@gnu.org; Wed, 05 Feb 2020 16:13:47 -0500 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:32898) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1izRzU-0002ie-UT for emacs-devel@gnu.org; Wed, 05 Feb 2020 16:13:46 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id D5F8516009D; Wed, 5 Feb 2020 13:13:41 -0800 (PST) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id t__wHmxixYp4; Wed, 5 Feb 2020 13:13:41 -0800 (PST) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 1658516009E; Wed, 5 Feb 2020 13:13:41 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id CAmYikqv8eWz; Wed, 5 Feb 2020 13:13:40 -0800 (PST) Original-Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id EA9E016009D; Wed, 5 Feb 2020 13:13:40 -0800 (PST) In-Reply-To: <87r1z9hwcj.fsf@gmail.com> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:244871 Archived-At: On 2/5/20 7:45 AM, David Michael wrote: > Does anyone familiar with the build process see problems with this? Is > it something that would be acceptable upstream? Something along those lines should be acceptable, I'd think. I assume you're building from a tarball, and not from Git. If you are building from Git, then the first step should be to build a tarball natively, and then start from the tarball. This should simply any cross-build support we need to add. make-docfile shouldn't be needed native, as we can distribute its output as part of the tarball. For blessmail, we can convert it to a shell script on platforms that have a shell (which should be the only platforms where cross-building is an issue.) Blessmail is obsolete anyway - perhaps we should start installing blessmail only on explicit request - but I digress. For make-fingerprint, it's not that important and we could make its use optional. Or we could write a shell script a la blessmail. Or we could convert it from C to Elisp and integrate it as part of the build process. Either way, we wouldn't need to build it on the build host. If we do the above, we wouldn't need to worry so much about native vs cross-builds.