From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Avoid duplicate emacs.exe / emacs-$version.exe Date: Sun, 29 Mar 2020 17:10:28 +0300 Message-ID: <83a73z5k17.fsf@gnu.org> References: <865zeoctg3.fsf@csic.es> <83v9mo5om8.fsf@gnu.org> <86y2rkb4a8.fsf@csic.es> <83o8sf6ge3.fsf@gnu.org> <86ftdrxzzz.fsf@csic.es> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="76519"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Juan =?utf-8?Q?Jos=C3=A9_Garc=C3=ADa-Ripoll?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Mar 29 16:11:30 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 1jIYeu-000JYg-Sj for ged-emacs-devel@m.gmane-mx.org; Sun, 29 Mar 2020 16:11:28 +0200 Original-Received: from localhost ([::1]:37970 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIYea-0001w0-Ip for ged-emacs-devel@m.gmane-mx.org; Sun, 29 Mar 2020 10:11:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32966) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIYdq-0001Ft-V7 for emacs-devel@gnu.org; Sun, 29 Mar 2020 10:10:24 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51584) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jIYdq-0004W3-HV; Sun, 29 Mar 2020 10:10:22 -0400 Original-Received: from [176.228.60.248] (port=3694 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jIYdp-0006Dj-Sr; Sun, 29 Mar 2020 10:10:22 -0400 In-Reply-To: <86ftdrxzzz.fsf@csic.es> (juanjose.garciaripoll@gmail.com) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:245937 Archived-At: > From: Juan José García-Ripoll > > Date: Sun, 29 Mar 2020 11:38:08 +0200 > > So let me pause here and retrace this discussion, because I feel like > the cat that is chasing the red pointer with you guys. > > - My original question was: what is the official build process for > making standalone Emasc packages, so as to reproduce the content of > the official distros and understand what goes in. That is in a > separate thread. Part of the problem is caused by using "build process" to mean 2 separate things: (a) the process of building Emacs from sources and installing it locally via "make install", and (b) the process of producing the binary distribution with or without the optional libraries (a.k.a. "dependencies"). Let's call (b) something else, like "distribution" or "building zip". > Regarding i) > - I have verified that the distro build process reported in admin/nt > starts with CFLAGS="-O2 -static" by default. Some options change it > to CFLAGS="-O3 -static -g", but the -static flag is never dropped. Right, that's the libwinpthread fiasco. It's an annoyance, but it isn't too important, since only relatively small libraries are being linked in statically. > - I have verified that the files are not hard links. Actually, runing > "configure" with the official sources produces this in config.status > S["LN_S_FILEONLY"]="/bin/ln -s" > so there is no way this is going to create hard links. Right, this is due to a bug that is embarrassingly old, it turns out. I've just fixed that on master; for Emacs 27 you can work around by saying make install-strip LN_S_FILEONLY=/bin/ln when you install Emacs you've built. > This makes sense for msys/mingw because in general there may be > out there file systems which are still FAT-based and do not > support hard links. Since you are preparing a special-purpose distribution (or so I understand), you could still use hard links if your users don't need to support FAT32 filesystems. In any case, given the small size of the Emacs binary when stripped, I don't think having two copies of that would be a problem that requires us to give up on having binaries of old versions available, as on other systems. > >> Just a side note: the build-zips.sh script that makes the Windows > >> distribution files always uses the flag -static when building emacs. > > I don't think the build should use that. It is certainly not the > > default. > > So where is the default? Is the default build process not the one in > emacs/admin/nt or, in case one builds from sources without creating zip > files, the one in emacs/nt/? I am reporting data from running those two > procedures. If you are claiming I am not doing the standard thing, where > is the standard thing? See above: this is part of the confusion due to overloaded meaning of "build process". > Emacs built from sources: > $ fsutil hardlink list emacs.exe > \Users\juanj\emacs-27\bin\emacs.exe > $ fsutil hardlink list emacs-27.0.90.exe > \Users\juanj\emacs-27\bin\emacs-27.0.90.exe Try the same in the src directory.