From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andreas Fuchs Newsgroups: gmane.emacs.bugs Subject: bug#43137: 28.0.50; [feature/native-comp] .eln path fixup confused using relative paths Date: Tue, 1 Sep 2020 20:51:43 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b72db405ae4a0af6" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16707"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 43137@debbugs.gnu.org, Vibhav Pant To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 02 02:53:12 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 1kDH1U-0004EH-26 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Sep 2020 02:53:12 +0200 Original-Received: from localhost ([::1]:34230 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDH1T-0002Ut-2T for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Sep 2020 20:53:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39578) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDH1K-0002Td-Lx for bug-gnu-emacs@gnu.org; Tue, 01 Sep 2020 20:53:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46153) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kDH1K-00081k-Cl for bug-gnu-emacs@gnu.org; Tue, 01 Sep 2020 20:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kDH1K-0004oF-Ay for bug-gnu-emacs@gnu.org; Tue, 01 Sep 2020 20:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Fuchs Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Sep 2020 00:53: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.159900792518389 (code B ref 43137); Wed, 02 Sep 2020 00:53:02 +0000 Original-Received: (at 43137) by debbugs.gnu.org; 2 Sep 2020 00:52:05 +0000 Original-Received: from localhost ([127.0.0.1]:57693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDH0P-0004mX-KY for submit@debbugs.gnu.org; Tue, 01 Sep 2020 20:52:05 -0400 Original-Received: from mail-ej1-f47.google.com ([209.85.218.47]:46099) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDH0K-0004ly-3W for 43137@debbugs.gnu.org; Tue, 01 Sep 2020 20:52:03 -0400 Original-Received: by mail-ej1-f47.google.com with SMTP id d11so4176286ejt.13 for <43137@debbugs.gnu.org>; Tue, 01 Sep 2020 17:51:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boinkor-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5OoZWzsvkcNe9lWxJBsgyjkVJJ3KF6InKDtWfKD8ygs=; b=cITwTFXkksXV6OftDX9Vzu8GTQ8OOBauWAHFkEqBqQtVglVw0ZcVQnxeXaEWmPF5AK 7y5XsbuMCdIVXcKbbVz7/E6xMO+lwccD2caGubejAxM894Jj5bblzWLupUnGr5TB5CH1 iMNCrOunhjxR6agVV22ZuSe+W5Cy74PfRg/9MKkXoHah3pO5MYpJ8i0QyPQhiy2b8mGY VGzcE+ZENMJZUGl8YRu4eRQGtJNZNuae/Ek2mJPB5DfcUjq14LIobUA2Ej4LJr1Y2uOt tXGytu9g5Ur/JkqGTNMyEaWNrqoLMPEyG/2tj0FWooVRsAc4IqrvOdBre3niIESoL5rK llyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5OoZWzsvkcNe9lWxJBsgyjkVJJ3KF6InKDtWfKD8ygs=; b=DHIMdXA5KCkl6eY/KALjGzVU1qpkJx5Uiujpqlym6hVwL4uHPapARNMIOoTsAi2swj 6AmHUvi3hESw21khxrbt4nZcEHDt2UuvHqbFp7QL80EaNud9pZICRTI90tzSAFDgSXrX pEP2fAVnYeZ+r2Am2kRKssTThazPi6eosfaJIqLiU4HpRgqAf5nXQUOuaj4RChvDIKJs 2x3dIDbXUz3g7gpDPsWUi5IG+qR6EZjo6VpDIr8szWsnd7Gm6jrAkP671hHGLjQ/bvX7 OorD3NY7yaINiatmlXkWBgoAppjA/V44i1TMuby35C+Z3KJUAUU9ZeGlYO9COgLZTBoO iulA== X-Gm-Message-State: AOAM533xIE1ydGlTpIA69oa7XQlBgfvJdYGAFDvunCCHoD3o9lyu8l7L UGEYvUqGIENakSRDBsPE/V7JdeX4IQxC4rydeJdL7g== X-Google-Smtp-Source: ABdhPJzhFuAsTpOZlA/yFxQJt6apOuR54Z45UTb6ACBWby9/BQUwP3IS1apFqQodeSTpisRuEvPJz+a012YTZIy/oNg= X-Received: by 2002:a17:906:3c47:: with SMTP id i7mr3891245ejg.554.1599007914135; Tue, 01 Sep 2020 17:51:54 -0700 (PDT) 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:186898 Archived-At: --000000000000b72db405ae4a0af6 Content-Type: text/plain; charset="UTF-8" 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 invocation directory variable is empty! What it doesn't explain 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...) --000000000000b72db405ae4a0af6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 pdu= mper_load, it results in a correctly-set Vexec_path variable and a correctl= y-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 explain is, why does this work for you? Maybe you= r $PATH variable is set up differently? (Though I don't see where exec-= path would be set otherwise...)
--000000000000b72db405ae4a0af6--