From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bhavin Gandhi Newsgroups: gmane.emacs.bugs Subject: bug#52488: Try basename of agrv0's realpath for .pdmp lookup in libexecdir Date: Wed, 15 Dec 2021 00:55:25 +0530 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27573"; mail-complaints-to="usenet@ciao.gmane.io" To: 52488@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 14 20:27:09 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 1mxDS9-00072X-Mh for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 14 Dec 2021 20:27:09 +0100 Original-Received: from localhost ([::1]:33552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxDS8-0007GQ-Kq for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 14 Dec 2021 14:27:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxDS2-0007G9-Cw for bug-gnu-emacs@gnu.org; Tue, 14 Dec 2021 14:27:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48100) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mxDS2-0005zY-4h for bug-gnu-emacs@gnu.org; Tue, 14 Dec 2021 14:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mxDS2-0005MO-1o for bug-gnu-emacs@gnu.org; Tue, 14 Dec 2021 14:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Bhavin Gandhi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 14 Dec 2021 19:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52488 X-GNU-PR-Package: emacs Original-Received: via spool by 52488-submit@debbugs.gnu.org id=B52488.163950996420533 (code B ref 52488); Tue, 14 Dec 2021 19:27:02 +0000 Original-Received: (at 52488) by debbugs.gnu.org; 14 Dec 2021 19:26:04 +0000 Original-Received: from localhost ([127.0.0.1]:59644 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxDR5-0005L7-Vc for submit@debbugs.gnu.org; Tue, 14 Dec 2021 14:26:04 -0500 Original-Received: from mail-yb1-f169.google.com ([209.85.219.169]:41835) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxDR4-0005Kd-9d for 52488@debbugs.gnu.org; Tue, 14 Dec 2021 14:26:02 -0500 Original-Received: by mail-yb1-f169.google.com with SMTP id v138so48903749ybb.8 for <52488@debbugs.gnu.org>; Tue, 14 Dec 2021 11:26:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=rwpe+4utPmmDRP8FkOozTl5K6AOEIqpilpm90Fbql5E=; b=QIGZDdYUEsZrR2XfzUkJ5cKCNSfYT0oqFzXQx9B5sl6bR8Qd1getnH8F9/DCocDyXq dbCUCn5R7YIXej+nLR5tCDuJ11aRAa1N8pyqyFvu722Zi14NHuCpljq3izlW9O1+/lyT Mks6WVWmb+nSGBLyEjUipchlLOiHKIhPeCyWgW4PeYwAW97ce68jqIf23sSiVbq1Dx4y UVBtg42GNDB/jRrvswYliUqVW+T/r3eTLFUoZFvhdOIXgmuys0JlMTT6xI0SczTnFckA WwEY7fLmVkzXUbVw/J9DCTbs2nbEiIWfIb/dtiMpUCpWwaN6NdQAYKmE6Mj7Svt16k3t 08MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=rwpe+4utPmmDRP8FkOozTl5K6AOEIqpilpm90Fbql5E=; b=Cy8civJi32aRf2Wdo6szHTfuT/j0V58MH7+k4rniwWxdqLiGCg5cEq+z0omFiiix9j TWKgSVDRuhwYVCZqQL4xJpyyKJO2SCqxYjmdO4GrRvmjQ1jUk5oJP4nkYifagrdcDaBS d1T/dh04TJxd/StOQLLe772fgU5MJTggbDKup4JWv/5HciUoZIIPwTy1bGipkQlekpZC /N8eadrsjvkohxXANAk5iIqSTNpCO9qvDZ5DPtU8xOvNSoTh0Vw3Pd2SQKSzuN0c9cHF KX6U98oPYcW6kHpcXcyR/FABQqnknWeVoTrXs8u9lun22OPH7Tw0STxDBr5ZshUsXCW4 HHrw== X-Gm-Message-State: AOAM533qAKZ8yaAHcpk1PuBbU4XeyRRNoR7ChrEpqKmUG4mE5xoUwFAJ b04envN1G6vMxODZyyARHiOI++lvLvlLzdKqnXCq4o6RbLLwIA== X-Google-Smtp-Source: ABdhPJzIhd15o6tE21FAMxuJrkAXWg6QbQN+fVT/7Sn7fOp6J12IzWW7clxIPa0GMkdLwsAAz3GWJv4axJ3x5k8MvNo= X-Received: by 2002:a25:3fc3:: with SMTP id m186mr1121470yba.562.1639509956444; Tue, 14 Dec 2021 11:25:56 -0800 (PST) In-Reply-To: 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:222391 Archived-At: On Wed, 15 Dec 2021 at 00:32, Bhavin Gandhi wrote: > > Why do you want that? > > As the comment from load_pdump_find_executable explains, there are > setups where the /usr/bin/emacs is a symlink managed by something like > alternatives. This symlink eventually points to an Emacs binary like > emacs-28.0.90. These kind of setups are used to have installation of > multiple versions of Emacs on the same system. > > Supporting resolution of these symlinks while searching for a .pdmp file > will make it possible to put the .pdmp files in libexecdir instead of > putting those in the /usr/bin/. I think this should be in addition to > the possibilities tried currently. Consider a scenario where /usr/bin/emacs-nox is a symlink to emacs-28.0.90-nox. And we have emacs-nox.pdmp in libexecdir. This will work with current implementation. But if Emacs is invoked directly as emacs-28.0.90-nox, then it will fail. > > Why don't you configure each Emacs build with a different libexecdir > > instead? > > Sure, but there are some common files in that directory like hexl, > movemail, etc, which package maintainers have put into a common package > like emacs-common. This part of the message has nothing to do with the current bug report, it is creating confusion.