From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ulrich Mueller Newsgroups: gmane.emacs.devel Subject: Re: etags name collision. Date: Mon, 11 Apr 2022 21:11:08 +0200 Message-ID: References: <20220411124736.3qijvtearh6wlen7.ref@Ergus> <20220411124736.3qijvtearh6wlen7@Ergus> <83pmln69n0.fsf@gnu.org> <20220411134749.ps6g5ulpbamzm6ot@Ergus> <83k0bv679q.fsf@gnu.org> <83czhn5zbc.fsf@gnu.org> <837d7v5vwt.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4002"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) Cc: spacibba@aol.com, Stefan Monnier , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 11 21:12:02 2022 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 1ndzSE-0000o5-K9 for ged-emacs-devel@m.gmane-mx.org; Mon, 11 Apr 2022 21:12:02 +0200 Original-Received: from localhost ([::1]:41974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ndzSD-0005KX-8A for ged-emacs-devel@m.gmane-mx.org; Mon, 11 Apr 2022 15:12:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46990) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ndzRe-0004db-AM for emacs-devel@gnu.org; Mon, 11 Apr 2022 15:11:26 -0400 Original-Received: from woodpecker.gentoo.org ([140.211.166.183]:59752 helo=smtp.gentoo.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1ndzRb-0000hR-MW; Mon, 11 Apr 2022 15:11:25 -0400 In-Reply-To: <837d7v5vwt.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 11 Apr 2022 21:15:14 +0300") Received-SPF: pass client-ip=140.211.166.183; envelope-from=ulm@gentoo.org; helo=smtp.gentoo.org X-Spam_score_int: -68 X-Spam_score: -6.9 X-Spam_bar: ------ X-Spam_report: (-6.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:288240 Archived-At: >>>>> On Mon, 11 Apr 2022, Eli Zaretskii wrote: >> Rather than "install vs not-install" the test could decide "install as >> `ctags` vs install as `somethingelse`", which is closer to having our >> cake and eating it too since the user can then have both installed at >> the same time. > No, the intent is exactly to let users have the program they want > under the name "ctags". Everything else, including renaming, is left > to the users themsleves, because we have no way of second-guessing > their habits. And as someone else pointed out, we already support > installing under a different name, if the user knows what is that > name. +1 There already are autoconf's --program-prefix, --program-suffix and --program-transform-name options which can do everything that is needed. For example, Gentoo uses these configure options to install Emacs' ctags as (e.g.) "ctags-emacs-28". Exuberant/universal ctags is installed as "exuberant-ctags". "ctags" is a symlink to one of them and can be updated by the user. >> Still, an install-time test has the downside that it won't adapt if >> `ctags` is installed after Emacs is built/installed, as is probably the >> case for most users nowadays (who don't build Emacs themselves but >> install from a distro or from our prebuilt tarballs). I tend to agree. From a distro point of view, testing for an installed ctags binary (with the purpose to avoid file name collisions) is not helpful. The set of files in the installed image should not depend on random factors like package installation order. > I don't think we need to make too much out of it. the problem is > easily solved manually, so we just make it a tad easier in one simple > use case.