From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#43137: 28.0.50; [feature/native-comp] .eln path fixup confused using relative paths Date: Wed, 02 Sep 2020 07:28:49 +0000 Message-ID: References: Reply-To: Andrea Corallo Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2225"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: 43137@debbugs.gnu.org, Vibhav Pant To: Andreas Fuchs Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 02 09:29:24 2020 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 1kDNCt-0000Uy-Fu for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Sep 2020 09:29:23 +0200 Original-Received: from localhost ([::1]:51478 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDNCs-00013p-IP for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Sep 2020 03:29:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59776) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDNCY-0000j9-JX for bug-gnu-emacs@gnu.org; Wed, 02 Sep 2020 03:29:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46594) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kDNCY-00052Y-AL for bug-gnu-emacs@gnu.org; Wed, 02 Sep 2020 03:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kDNCY-0002Jd-7p for bug-gnu-emacs@gnu.org; Wed, 02 Sep 2020 03:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Sep 2020 07:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43137 X-GNU-PR-Package: emacs Original-Received: via spool by 43137-submit@debbugs.gnu.org id=B43137.15990317378882 (code B ref 43137); Wed, 02 Sep 2020 07:29:02 +0000 Original-Received: (at 43137) by debbugs.gnu.org; 2 Sep 2020 07:28:57 +0000 Original-Received: from localhost ([127.0.0.1]:58139 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDNCT-0002J7-7a for submit@debbugs.gnu.org; Wed, 02 Sep 2020 03:28:57 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:49386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDNCN-0002Im-5L for 43137@debbugs.gnu.org; Wed, 02 Sep 2020 03:28:53 -0400 Original-Received: from mab (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTP id 0827Snvp012497; Wed, 2 Sep 2020 07:28:49 GMT In-Reply-To: (Andreas Fuchs's message of "Tue, 1 Sep 2020 20:51:43 -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" Xref: news.gmane.io gmane.emacs.bugs:186908 Archived-At: Andreas Fuchs writes: > I think I found the solution: set_invocation_vars requires Vexec_path > to be initialized correctly, via init_callproc_1. Somehow, mine ends > up being something other than $PATH. If I set init_callproc_1 up with > a double_run_guard the same way set_invocation_var is and call it > from pdumper_load, it results in a correctly-set Vexec_path variable > and a correctly-set Vinvocation_directory, as well. > This is really curious, but I guess it would explain why > the=C2=A0invocation directory variable is empty! What=C2=A0it doesn't exp= lain > is, why does this work for you? Maybe your $PATH variable is set up > differently? (Though I don't see where exec-path would be set > otherwise...) I guess is beacuse argv0 is not set on macos so raw_name is empty. Vexec_path comes into play only in this case. Andrea