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#42906: [feature/native-comp] out-of-tree build process broken Date: Mon, 17 Aug 2020 18:49:53 +0000 Message-ID: References: <8f6a8257-6ecb-6c14-c41e-142ad9dfb441@phas.ubc.ca> Reply-To: Andrea Corallo Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19278"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: 42906@debbugs.gnu.org To: Ovidiu Toader Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 17 20:50:10 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 1k7kCw-0004sl-2R for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Aug 2020 20:50:10 +0200 Original-Received: from localhost ([::1]:45816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k7kCv-0006vx-5P for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Aug 2020 14:50:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49442) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k7kCo-0006vo-Oo for bug-gnu-emacs@gnu.org; Mon, 17 Aug 2020 14:50:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49866) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k7kCo-0006T8-Fc for bug-gnu-emacs@gnu.org; Mon, 17 Aug 2020 14:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k7kCo-0005TP-E0 for bug-gnu-emacs@gnu.org; Mon, 17 Aug 2020 14:50: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: Mon, 17 Aug 2020 18:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42906 X-GNU-PR-Package: emacs Original-Received: via spool by 42906-submit@debbugs.gnu.org id=B42906.159769019821026 (code B ref 42906); Mon, 17 Aug 2020 18:50:02 +0000 Original-Received: (at 42906) by debbugs.gnu.org; 17 Aug 2020 18:49:58 +0000 Original-Received: from localhost ([127.0.0.1]:33179 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7kCk-0005T4-JI for submit@debbugs.gnu.org; Mon, 17 Aug 2020 14:49:58 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:64855) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7kCg-0005Su-J6 for 42906@debbugs.gnu.org; Mon, 17 Aug 2020 14:49:56 -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 07HInrHd025584; Mon, 17 Aug 2020 18:49:53 GMT In-Reply-To: <8f6a8257-6ecb-6c14-c41e-142ad9dfb441@phas.ubc.ca> (Ovidiu Toader's message of "Mon, 17 Aug 2020 08:16:26 -0700") 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:185412 Archived-At: Ovidiu Toader writes: > When feature/native-comp branch is built out-of-tree, emacs cannot find the .eln files during start. > > The patch below fixes this issue. The problem is caused by the fact > that during an out-of-tree build, default-directory points inside the > build tree while the .eln files are found in the source tree and > because of that the subsequent replace-regexp-in-string fails to > adjust the file path of the compilation unit. Hi Ovidiu, thanks for the feedback and the patch! I just pushed this evening a branch that reworks also the eln file placement on the file-system and partially this mechanism. https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00535.html It should cure also this problem. It would be great if you cold try it out and give a feedback if it works for you. Thanks! Andrea -- akrl@sdf.org