From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#73318: 31.0.50; with-native-compilation=aot breaks exec -a emacs Date: Mon, 07 Oct 2024 21:44:20 +0300 Message-ID: <86iku3u517.fsf@gnu.org> References: <864j6eb29f.fsf@gnu.org> <861q1iayk6.fsf@gnu.org> <86wmja9iwi.fsf@gnu.org> <86plp19kei.fsf@gnu.org> <86ldz4xc93.fsf@gnu.org> <86iku8x95w.fsf@gnu.org> <86bjzzy9a9.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19022"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73318@debbugs.gnu.org, larsi@gnus.org, acorallo@gnu.org, schwab@linux-m68k.org, shipmints@gmail.com To: Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 07 20:45:13 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1sxsjI-0004iv-KY for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Oct 2024 20:45:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sxsj2-0005ID-Dn; Mon, 07 Oct 2024 14:44:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sxsj0-0005Hw-SC for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2024 14:44:55 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sxsj0-0000h8-Js for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2024 14:44:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=rgxKr7spZVfm9drzfwM27d9biEHY6flMsRehOTdEK2A=; b=q58QTRovl0eUrnbQTjPKFTs248w2ie6ZumTXcjk+NTPwEAf6nC2hoKfdwFz3QHWH8Xs/OjKIbwLl1t6UA2ljrscRZE48GgCZc49rQs6uFSlsCAQ4C+4vPi0/diVEBfW6ZsE+/1TJYKGHiSDsLpCfMCLvnSY+Mwp2YlzeGjD54BjkqczDcu449nIXdv3oUa4/9on60v87UAb/COCip7tbhgxlDOVunlOxnvh1i3IAeDN8WEM+ZLs1s0wVFRpAT5NnnfNP03q6FNxX261KkzoN8apVA6Y2UtgYVS/2ru3yd9o+tdThDG0vfBOgkXWphKZxcWLADCk/JP+pOVmKyD78/w==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sxsj8-00056b-5K for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2024 14:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Oct 2024 18:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73318 X-GNU-PR-Package: emacs Original-Received: via spool by 73318-submit@debbugs.gnu.org id=B73318.172832668119568 (code B ref 73318); Mon, 07 Oct 2024 18:45:02 +0000 Original-Received: (at 73318) by debbugs.gnu.org; 7 Oct 2024 18:44:41 +0000 Original-Received: from localhost ([127.0.0.1]:48115 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sxsim-00055V-KE for submit@debbugs.gnu.org; Mon, 07 Oct 2024 14:44:41 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42264) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sxsik-00055C-0I for 73318@debbugs.gnu.org; Mon, 07 Oct 2024 14:44:38 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sxsiW-0000ec-3H; Mon, 07 Oct 2024 14:44:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=rgxKr7spZVfm9drzfwM27d9biEHY6flMsRehOTdEK2A=; b=Dgq8U0idrcyL +eKOiMacR8idQywkA8+MOXciC/wmWx+7UppfhokQ5VdEowQU4JiyUBxqvf0awRpje2WPXvOo3Vqwf n2VBWze20S/aab3tKuzEdA+vZfnCLJC2dDMtfpxlzJT0cpwbFngLvtFpMzYwFJ9HALBKwejQ8B/+W 9CVv0LDqN1tuK5VD98tnFIMudhS/ZGQHjjZ4PIl9mqQJ8yU/0gOQRIZyGH2dqqQUj7sbcMU3aSa6I y0rGcnbWyO+zrncC118xgJ4dnXXMC5jGEDcFXGLPaCbkNA2N2H4Z4vqr5fYkhSUAPhDoHELsD90IA 4DuVA9/fqudfbWI5qvEQsg==; In-Reply-To: (message from Spencer Baugh on Mon, 07 Oct 2024 10:18:37 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:293126 Archived-At: > From: Spencer Baugh > Cc: 73318@debbugs.gnu.org, larsi@gnus.org, acorallo@gnu.org, > schwab@linux-m68k.org, shipmints@gmail.com > Date: Mon, 07 Oct 2024 10:18:37 -0400 > > Eli Zaretskii writes: > > > That means to throw away a lot of code in emacs.c which we use now and > > was tested for several Emacs releases. No, thanks, not for this > > obscure scenario. > > OK, then perhaps just falling back on finding it relative to the pdump. > > > I still don't understand why you insist on not changing your script to > > include the leading directories in argv[0]. It makes absolutely no > > sense to me to invent new code in such a place, when the alternative > > is so easy and reliable. > > I would change the script if I could, but I can't: It's already been > copied into thousands of users' home directories. It's such a tiny > wrapper (it just does "exec -a program /path/to/program") that it has > never needed to be modified for any program before this. Suit yourself, but I don't promise I will agree to accept the code changes you want to make. This makes less and less sense to me as we continue talking about it. Emacs built with native compilation has additional requirements, and those requirements invalidate the (fragile) assumptions on which your wrapper script is based. So my suggestion is to adapt, like we adapt to any changes to software we use that are outside of our control. That's life.