From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: phillip.lord@russet.org.uk (Phillip Lord) Newsgroups: gmane.emacs.devel Subject: Re: replacing ldefs-boot.el Date: Fri, 25 Nov 2016 11:23:25 +0000 Message-ID: <8737ifu7ki.fsf@russet.org.uk> References: <87bmxa6o37.fsf@russet.org.uk> <83y40e7y65.fsf@gnu.org> <87twb16dta.fsf@russet.org.uk> <83vavh8qci.fsf@gnu.org> <87a8csij8c.fsf@russet.org.uk> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1480073118 2056 195.159.176.226 (25 Nov 2016 11:25:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 25 Nov 2016 11:25:18 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 25 12:25:09 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cAEcu-0007mh-VK for ged-emacs-devel@m.gmane.org; Fri, 25 Nov 2016 12:25:09 +0100 Original-Received: from localhost ([::1]:45296 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cAEcy-0001z9-GM for ged-emacs-devel@m.gmane.org; Fri, 25 Nov 2016 06:25:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57614) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cAEc7-0001vl-7c for emacs-devel@gnu.org; Fri, 25 Nov 2016 06:24:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cAEc3-0001QE-Kt for emacs-devel@gnu.org; Fri, 25 Nov 2016 06:24:19 -0500 Original-Received: from mailgw.mycpanelcloud.co.uk ([185.116.215.110]:57671) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cAEc3-00017p-6q for emacs-devel@gnu.org; Fri, 25 Nov 2016 06:24:15 -0500 Original-Received: from mailgw.mycpanelcloud.co.uk (localhost [127.0.0.1]) by mailgw.mycpanelcloud.co.uk (Postfix) with ESMTP id 706FCFEC13; Fri, 25 Nov 2016 11:23:32 +0000 (GMT) X-Virus-Scanned: by SpamTitan at mycpanelcloud.co.uk Original-Received: from mailgw.mycpanelcloud.co.uk (localhost [127.0.0.1]) by mailgw.mycpanelcloud.co.uk (Postfix) with ESMTP id 99647FEC0B; Fri, 25 Nov 2016 11:23:26 +0000 (GMT) Original-Received: from cloud103.planethippo.com (cloud103.planethippo.com [31.216.48.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailgw.mycpanelcloud.co.uk (Postfix) with ESMTPS id 769ECFEC06; Fri, 25 Nov 2016 11:23:26 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=russet.org.uk; s=default; h=Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=f74umc3LIiyr9WMxuTTRHyT3Q6Xzwpyz9YECLHUoPHM=; b=bbV7ZVWg2mTFr8Lr76K7ZkzUO 8R1p+9lJzfwtrC4KlIb22kXKxVuRYinMcM7OK9VtHSphgDEmjyTI/91+Tfvt71x1IxUEGwi0Xt0Yo tfWtm13E3+rKvgXox7KMGu+VFPSIOvBnoDLY45x7cZTSmLyQ5VzE8TLGueypeQbzNWT/epHpNZj4i NGUoNiPG6BrX3CWRgVx1VoG8cGOatclilnXGWx+3TMvCw7WC+6QlrZqtcOr+iSgha3eHkkr/5ZrGE yzG8wsASDsYi9ai5B9MsmBfF+spByXGQaFMzHEny5ycAwwKYOHmSrHCc5QPfL17hTtkoqD5qTcHI+ OkQXKZhkQ==; Original-Received: from janus-nat-128-240-225-37.ncl.ac.uk ([128.240.225.37]:43846 helo=russet.org.uk) by cloud103.planethippo.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from ) id 1cAEbG-003Qwj-7h; Fri, 25 Nov 2016 11:23:26 +0000 In-Reply-To: <87a8csij8c.fsf@russet.org.uk> (Phillip Lord's message of "Mon, 21 Nov 2016 22:03:15 +0000") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cloud103.planethippo.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - russet.org.uk X-Get-Message-Sender-Via: cloud103.planethippo.com: authenticated_id: phillip.lord@russet.org.uk X-Authenticated-Sender: cloud103.planethippo.com: phillip.lord@russet.org.uk X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x [fuzzy] X-Received-From: 185.116.215.110 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:209588 Archived-At: phillip.lord@russet.org.uk (Phillip Lord) writes: > Eli Zaretskii writes: > >>> From: phillip.lord@russet.org.uk (Phillip Lord) >>> Cc: emacs-devel@gnu.org >>> Date: Sun, 20 Nov 2016 21:28:49 +0000 >>> >>> This is a reasonable significant change in the bootstrap build, and >>> there may be implications that I have not foreseen. Hence it makes sense >>> to ask first. >> >> Then please describe the bootstrap and the normal build in detail, >> because I'm not sure I understood the implications by just looking at >> the diffs. > > Currently, emacs builds like so (in f make syntax)-- > > temacs: *.c > > bootstrap-emacs: temacs > ## temacs loads ldefs-boot.el during loadup or it crashes > > compile-first: bootstrap-emacs > > loaddefs.el: compile-first > ## now we generate loaddefs.el > > > Afterwards, we do: > > temacs: *.c > > bootstrap-emacs: temacs > ## temacs loads ldefs-boot-manual.el and -auto.el during > ## loadup or it crashes > > loaddefs.el: bootstrap-emacs > ## now we generate loaddefs.el > > compile-first: loaddefs.el > > > So, loaddefs.el is available before compile-first happens. > > >> What are those additional files, and how and when they are >> generated? > > ldefs-boot-auto.el is now autogenerated from a make target at top level. > It works but augmenting eval.c, so that when an autoload happens, Emacs > writes to system stdout the equivalent autoload form. A complete > bootstrap build will, therefore, print all the autoloads that are > actually used. There's some lisp in admin/ldefs-clean.el which removes > everything except these lisp forms. > > Advantages: > > - we still have an autogenerated file in the repo, but it is very much > smaller (160 lines vs 40k). > > Disadvantages: > > - generating ldefs-boot-auto is a lot slower (i.e. cp loaddefs.el > ldefs-boot.el vs a complete bootstrap build of Emacs). > > Invariants: > > - to my testing there is negligable difference in build time. Have you had a chance to look at this yet? Phil