From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#34180: 27.0.50; argv[0] used incorrectly to find the .pdmp Date: Mon, 11 Oct 2021 08:10:56 -0700 Organization: UCLA Computer Science Department Message-ID: References: <5d5d6da7-d0d4-82ae-8034-78d47a6b12c8@dancol.org> <83va2a3z0d.fsf@gnu.org> <87wnmjhd6j.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24062"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 Cc: 34180@debbugs.gnu.org, monnier@IRO.UMontreal.CA To: Lars Ingebrigtsen , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 11 17:12:21 2021 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 1mZwyS-00065C-CV for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Oct 2021 17:12:20 +0200 Original-Received: from localhost ([::1]:45372 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZwyQ-0000Qa-BN for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Oct 2021 11:12:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53496) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZwyA-0000QJ-S9 for bug-gnu-emacs@gnu.org; Mon, 11 Oct 2021 11:12:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49134) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mZwyA-0008LD-9O for bug-gnu-emacs@gnu.org; Mon, 11 Oct 2021 11:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mZwyA-0001fY-0X for bug-gnu-emacs@gnu.org; Mon, 11 Oct 2021 11:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Oct 2021 15:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34180 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: security Original-Received: via spool by 34180-submit@debbugs.gnu.org id=B34180.16339650676332 (code B ref 34180); Mon, 11 Oct 2021 15:12:01 +0000 Original-Received: (at 34180) by debbugs.gnu.org; 11 Oct 2021 15:11:07 +0000 Original-Received: from localhost ([127.0.0.1]:60677 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZwxH-0001e4-1K for submit@debbugs.gnu.org; Mon, 11 Oct 2021 11:11:07 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:44212) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZwxD-0001dX-C7 for 34180@debbugs.gnu.org; Mon, 11 Oct 2021 11:11:05 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 8C7E316006F; Mon, 11 Oct 2021 08:10:57 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 0uBEIENaYvCf; Mon, 11 Oct 2021 08:10:56 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id DCF881600C2; Mon, 11 Oct 2021 08:10:56 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ijDluJQLV2Jn; Mon, 11 Oct 2021 08:10:56 -0700 (PDT) Original-Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id AD91F16006F; Mon, 11 Oct 2021 08:10:56 -0700 (PDT) In-Reply-To: <87wnmjhd6j.fsf@gnus.org> Content-Language: en-US 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" Xref: news.gmane.io gmane.emacs.bugs:216929 Archived-At: On 10/11/21 7:02 AM, Lars Ingebrigtsen wrote: > It looks like find_executable from progreloc in gnulib provides a > portable interface for this? It does, although it drags in a bunch of other Gnulib modules, as this=20 stuff is wildly system-dependent. For ordinary Emacs installation, I've long thought that a better=20 approach is to store the default .pdmp file as a readonly char array=20 within the Emacs executable itself. This would be easier for installers,=20 sysadmins and users, as it would entail no funny rules about installing=20 two files, keeping them in sync, symlinks, PATH, argv[0], relative=20 names, security, etc. Perhaps native compilation effectively does this for us already? If so,=20 then the fix for this bug report would be "use native compilation".