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: Mon, 21 Nov 2016 22:03:15 +0000 Message-ID: <87a8csij8c.fsf@russet.org.uk> References: <87bmxa6o37.fsf@russet.org.uk> <83y40e7y65.fsf@gnu.org> <87twb16dta.fsf@russet.org.uk> <83vavh8qci.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1479766358 32243 195.159.176.226 (21 Nov 2016 22:12:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 21 Nov 2016 22:12:38 +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 Mon Nov 21 23:12:34 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 1c8wpF-00075G-Q1 for ged-emacs-devel@m.gmane.org; Mon, 21 Nov 2016 23:12:34 +0100 Original-Received: from localhost ([::1]:51978 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8wpJ-0008VA-9L for ged-emacs-devel@m.gmane.org; Mon, 21 Nov 2016 17:12:37 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43911) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8woh-0008UW-1s for emacs-devel@gnu.org; Mon, 21 Nov 2016 17:11:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c8wob-00051m-Vl for emacs-devel@gnu.org; Mon, 21 Nov 2016 17:11:59 -0500 Original-Received: from [185.116.214.109] (port=28212 helo=mailgw.mycpanelcloud.co.uk) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c8wob-00051Z-J5 for emacs-devel@gnu.org; Mon, 21 Nov 2016 17:11:53 -0500 Original-Received: from mailgw.mycpanelcloud.co.uk (localhost [127.0.0.1]) by mailgw.mycpanelcloud.co.uk (Postfix) with ESMTP id 8C608FF211; Mon, 21 Nov 2016 22:03:50 +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 A3CABFF1D5; Mon, 21 Nov 2016 22:03:25 +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 823D8FF1C4; Mon, 21 Nov 2016 22:03:25 +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:References:Message-ID :Date:In-Reply-To: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=vWrlixBRJ1PyNKyLGIooRL1ISFcZqz1nm/AQfSOx77Q=; b=F98FZdOeXAJ43lCY7XXE3Poqo JAkQSD2OmUlsfghR6/7N+PmEs0zZ5Rx4xcX+JquogVv3ODrDy7ZwHy9l7fwyTn2T50KpDQRCMIMxX j+hoOwU6Xpo87PLs21md/eE+kTi60v4fu8eYCO7X28nqx/uTl05f2bHhpUcR09MjNY1KeoKNTgL6f 41ZWKhBv9liJ6XKutruzdZ84yJWLfabLu/aju64z6XWE1Ew2n7lKlxEEX3mKf9iLjIyJafaKw6hJh 6D/8ojld7gi9rwqDFp/JZ0Arb9Fl6LNnBgwr3euZm4myY2IYKTSaU/IVyODNjH0UQ4zt2tQU+Q2Eb NFWkGCKMQ==; Original-Received: from cpc14-benw10-2-0-cust305.16-2.cable.virginm.net ([92.234.125.50]:39294 helo=russet.org.uk) by cloud103.planethippo.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from ) id 1c8wgP-000yCG-3v; Mon, 21 Nov 2016 22:03:25 +0000 In-Reply-To: <83vavh8qci.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 21 Nov 2016 05:27:25 +0200") 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.214.109 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:209530 Archived-At: 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. Phil