From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Phillip Lord Newsgroups: gmane.emacs.devel Subject: [feature/dll-only-windows] A new windows build, comments wanted Date: Sat, 09 Jan 2021 19:57:00 +0000 Message-ID: <87pn2dq3xv.fsf@russet.org.uk> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14854"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jan 09 20:58:27 2021 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 1kyKNW-0003kU-VG for ged-emacs-devel@m.gmane-mx.org; Sat, 09 Jan 2021 20:58:26 +0100 Original-Received: from localhost ([::1]:58122 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kyKNW-0001Fc-0u for ged-emacs-devel@m.gmane-mx.org; Sat, 09 Jan 2021 14:58:26 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37700) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kyKMz-0000pV-Tl for emacs-devel@gnu.org; Sat, 09 Jan 2021 14:57:53 -0500 Original-Received: from cloud103.planethippo.com ([78.129.138.110]:45960) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kyKMx-0004IZ-LO for emacs-devel@gnu.org; Sat, 09 Jan 2021 14:57:53 -0500 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:Date: Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=wJxDfZu6kWf/tBn2ABDEc6WpnhEAtDaMr8WqnwNHeCY=; b=pFr7Xr/wS51/oDvZNFZpBkqzU+ G85U27wS0HUttl7QDzjMQj+/csX5ZyX2ZCKmdeIZJffKFa3XjEZzh3d9uwbR3FvUgsSiydi1FWCRQ kiHrrrgGTt8wQNZIYtehgczFcWn4CxoNEPyRIvhNMWXfWkw4J6By3lcbGnHlyWtDyDDVIpyk594KN +3I1/MDJvPbLviMzqHW0Qa6l7VzX/w1qO3+EapLgBDB/ND5ETYdwSmegs+QzuGDaKSAeBJ3pIQiy3 0FhmMaa86yBAU7uhe3322EyTIFMskRCatUTpF7gbl5VMNQOLYPbLQ4p0fCbG5B7kveo2T8K+/nbjP jhswat2w==; Original-Received: from cpc142648-benw12-2-0-cust627.16-2.cable.virginm.net ([82.10.74.116]:47886 helo=russet.org.uk) by cloud103.planethippo.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1kyKMG-0000Xh-LS for emacs-devel@gnu.org; Sat, 09 Jan 2021 19:57:08 +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 Received-SPF: none client-ip=78.129.138.110; envelope-from=phillip.lord@russet.org.uk; helo=cloud103.planethippo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:262814 Archived-At: In preparation for making a native-comp build of Emacs on Windows, I have revisited the windows packaging process. The current version figures out dependencies using msys2 and as a result has an awful lot of dependencies. Even with some efforts to reduce this size (e.g. python isn't included any more) it's still pretty large. So I have tried a new technique which is now on feature/dll-only-windows. Essentially, I just name all of the DLLs that Emacs uses directly and then figure out any dependencies of these using `ntldd`. I've tried `ntldd` directly on emacs.exe which does not work. The practical upshot of this is that the dependencies file is just a pile of DLLs. The installer version of Emacs (which is the smallest because it is most compressed) is now only 45Mb (vs 63) in size, with zip being 130Mb (vs 160Mb). The source download still using the same technique as before; i.e. the source bundle will produce a lot more than just the DLLs included. Some questions for now: 1) Does this seem reasonable? I can some upload some binaries to alpha if anyone is prepared to try them. 2) harfbuzz is currently not working on i686. Before I fix this, I think it is worth asking whether I still need to produce a i686 binary. It doubles the build time, obviously. 3) Currently the "no-deps" version actually includes libXpm. Emacs starts without it, but looks ugly. I would like to no longer special case libXpm and just make the "no-deps" download really include no deps. I think this is reasonable, because this download is now, really special purpose and "with-deps" is the default. Some questions for when I add a native-comp build 4) Currently, native-comp is an "--with-nativecomp" option even on the native-comp branch. It is likely to be merged this way to master? Currently, I build the Windows distribution of Emacs with all the default options. I can make an alternative release "--with-nativecomp" but needs some effort; it also does not address the question of how I should build Emacs for Windows when a full release of Emacs-28 happens. If, the full release of Emacs-28 will be native-comp, I'd rather start building snapshots with it as soon as it is merged. 5) Why is it "--with-nativecomp", shouldn't it be "--with-native-comp". Thoughts welcome. Phil