From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: phillip.lord@russet.org.uk (Phillip Lord) Newsgroups: gmane.emacs.devel Subject: Re: Bloat in the Emacs Windows package Date: Wed, 17 Apr 2019 18:26:36 +0100 Message-ID: <87v9zcczlf.fsf@russet.org.uk> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="69824"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 17 19:27:04 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hGoKt-000I0x-Iz for ged-emacs-devel@m.gmane.org; Wed, 17 Apr 2019 19:27:03 +0200 Original-Received: from localhost ([127.0.0.1]:57072 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hGoKs-00074R-6l for ged-emacs-devel@m.gmane.org; Wed, 17 Apr 2019 13:27:02 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hGoKZ-0006vv-PO for emacs-devel@gnu.org; Wed, 17 Apr 2019 13:26:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hGoKY-0003i5-F0 for emacs-devel@gnu.org; Wed, 17 Apr 2019 13:26:43 -0400 Original-Received: from cloud103.planethippo.com ([78.129.138.110]:46162) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hGoKX-0003gq-UB for emacs-devel@gnu.org; Wed, 17 Apr 2019 13:26:42 -0400 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=tHSSoX8/AZHilBG5ACakH4dvSZseLW17w1I3Y/4Diwc=; b=juOqnSdH+Q1EZ+n9JY94ydk5z 5jG7ffsYjZjKJRk07mDFdQNZ3JgbEHvaJpiZ9xtj8VWLCZzvcXK38zXBqDofCo+MQ6cHS/pgZVILr e12x4cHrKCLsBWCKtS7rkK5Fb2ZWBPme6zn1TTQq68UB+YgXIAH4gIQSmTatbBnmYq8njRmHPJa9Y t2Cdt1Yiefcv3fySTg2MDglVqZzYEfQvlVdSgefdqFCs7dXuptJAkjdJEa2ncnQCNqympwSrbYfA/ oAzKY10Grs3XYE/CnZura00L0BIWhRYgqoojHFNwPgFGd2GDyA3B2zti5ZoBeqmpAPSre9RIUlijU t5yswYSJA==; Original-Received: from janus-nat-128-240-225-124.ncl.ac.uk ([128.240.225.124]:47809 helo=russet.org.uk) by cloud103.planethippo.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1hGoKV-0007hN-Ax; Wed, 17 Apr 2019 18:26:39 +0100 In-Reply-To: (Stefan Monnier's message of "Wed, 17 Apr 2019 08:39:52 -0400") 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: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 78.129.138.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:235593 Archived-At: Stefan Monnier writes: >> Some people want the binary zip to include all the optional features that >> Emacs on Windows can support. This zip includes all of the dependencies for >> those optional features. Arguably, some of the auxiliary files, like header >> files and import libraries, could be omitted, but determining which ones are >> required is a very non-trivial and time-consuming job, so I can understand >> why Phillip, who volunteered to produce the binary zips, didn't do that. >> This "one cannot fit all" problem is why we also have the bare-minimum zip >> with only the dependencies that are absolutely required. > > Indeed. But I wonder about licensing issues of some of those binaries: > for those packages which are (L)GPL'd, do we distribute the > corresponding source somewhere, like the license requires us to do? https://ftp.gnu.org/gnu/emacs/windows/emacs-26/emacs-26-deps-mingw-w64-src.zip Packaged at the same time as the binaries, which is about the best I can do to keep the source the same as that which was used to produce the source. > >>> addpm.exe 577 kB => 2 282 kB >>> ctags.exe 956 kB => 3 245 kB >>> emacs.exe 8 989 kB => 121 740 kB >>> emacs-24.5.exe 8 989 kB => 121 740 kB (emacs-26.1.exe) >> Stripping emacs.exe produces a 29MB file for Emacs 26.2. > > I wonder what caused the 9MB => 29MB jump between 24.5 and 26? Probably the -static flag that I added. Otherwise, the 64bit file required libpthread and (at the time) I had no ability to distribute this because I didn't have a way of generating the source. >> We don't provide any shell scripts or batch files because the build on Posix >> systems doesn't. Once again, it's hard to blame volunteers for using the >> build products as is, without adding any more work. > > FWIW, I think saving a 100MB is worth the extra work. It isn't extra work. I just change the compile options on my build scripts. I genuinely have no idea why they are there in the first place; perhaps I put them in because someone told me to, perhaps not. > (but, indeed, using hard-links is the better option when available: > I often just `rm src/emacs-[0-9]*` to get rid of old Emacs releases it'd > be much trickier to do if src/emacs were a script that runs > src/emacs-27.0.50.5). It's also possible to turn on NTFS file compression which will remove both this and lots of other duplications in the Emacs install. AFAIK, this is a user option, however, although I might be able to do it with the installer version for Emacs-27. Phil