From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ovidiu Toader Newsgroups: gmane.emacs.bugs Subject: bug#42906: [feature/native-comp] out-of-tree build process broken Date: Mon, 17 Aug 2020 08:16:26 -0700 Message-ID: <8f6a8257-6ecb-6c14-c41e-142ad9dfb441@phas.ubc.ca> 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="38618"; mail-complaints-to="usenet@ciao.gmane.io" To: 42906@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 17 18:02:33 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 1k7hai-0009sy-Ch for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Aug 2020 18:02:32 +0200 Original-Received: from localhost ([::1]:40462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k7hah-0001Sj-Bd for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Aug 2020 12:02:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33108) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k7hRW-0006Af-O1 for bug-gnu-emacs@gnu.org; Mon, 17 Aug 2020 11:53:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49671) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k7hRW-0000r4-D0 for bug-gnu-emacs@gnu.org; Mon, 17 Aug 2020 11:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k7hRW-0002zc-CG for bug-gnu-emacs@gnu.org; Mon, 17 Aug 2020 11:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ovidiu Toader Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Aug 2020 15:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42906 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.159767955111463 (code B ref -1); Mon, 17 Aug 2020 15:53:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Aug 2020 15:52:31 +0000 Original-Received: from localhost ([127.0.0.1]:32984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7hR0-0002ym-2n for submit@debbugs.gnu.org; Mon, 17 Aug 2020 11:52:31 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:45650) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7gsD-0008IF-Ae for submit@debbugs.gnu.org; Mon, 17 Aug 2020 11:16:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51080) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k7gsC-0007Ww-R5 for bug-gnu-emacs@gnu.org; Mon, 17 Aug 2020 11:16:33 -0400 Original-Received: from esvaout.mail-relay.ubc.ca ([142.103.203.5]:65207 helo=nesvaprod05.mail-relay.ubc.ca) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k7gsA-0003f7-Hc for bug-gnu-emacs@gnu.org; Mon, 17 Aug 2020 11:16:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ubc.ca; i=@ubc.ca; q=dns/txt; s=s1; t=1597677390; x=1629213390; h=to:from:subject:message-id:date: content-transfer-encoding; bh=KkkX9WVy6aQPMJpylpxsfm34BpxFtr6mg7usieY8oLs=; b=ZqwesFqMF7EW1OGi6KK31w1lCT+1KEQxToP5JSM9gUg+MEiXpBHrT6lI W35Uvf53ARzK9+kTeAS1BZIV+5kb+FKU7qfw2HEOjz4m3jKZnGBfTeMl1 pcr2K04W8KxxQvjL6qgtFKi0bnZ8/Trjveqjz/vfmKzq3dVp8En721srW peOKvFtaH0lQoKKL+fzzzMf9knMLD/aTbTPfLgxJtkTE655XkaKM8kCwO 8oLsDTdx9QhfBYucEovC92FdyQZcCHLKG+2aZnQfp9qcNLn9ueyDxXMbz 6Km0Sd3PZ4n09HMWDdOLnqex/2hzxi+p4XGKIhdYxh5YFYPUdk5uTIXi8 w==; X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False IronPort-PHdr: 9a23:D29DvB8HDnVDMf9uRHKM819IXTAuvvDOBiVQ1KB42+8cTK2v8tzYMVDF4r011RmVBNudsqofwLqN+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZLebxhJiTanfL9+MBu7oQrSu8QYnIBvNrs/xhzVr3VSZu9Y33loJVWdnxb94se/4ptu+DlOtvwi6sBNT7z0c7w3QrJEAjsmNXs15NDwuhnYUQSP/HocXX4InRdOHgPI8Qv1Xpb1siv9q+p9xCyXNtD4QLwoRTiv6bpgRRn1gykFKjE56nnahNJwgqxGoxyvqQBwzYHPbYGJLfpzZL/Rcc8GSWdDWMtaSixPApm7b4sKF+cPJPhYr4jgqFsPsBu1GBeiBOT1xTBVmHD2x7Ax3uMmEQHY3QwtBMoOsHTOo9XuLqsSTPu6w7XSwTrfdfxbwDHw45XHfR49u/+DR65wcdbPxkk1EQPIlluep4zlMj6J2OoArnWX4u5jWO+rhGMrtgN8riWty8ovhYTEiYMYx1DZ+ChkxIs4JcO1RU9lbdK6E5ZduT2XOYVwT8g/QG9ooD43xqAJtJKlZiQG1YgryhDFZ/CZfYWF4AjvWPiPLTtlgn9uZaixiAyo8Ue6z+3xTsy00FFXoSVbitTMrXUN1wDL6siAV/t94l+t2TaR2ADX7eFJOUU0mrHAK5I72r4wloAcsV/ZEi/rg0r5kLWaeVk+ 9eSw6uTnZKvppoOEOoNphQzyLL4iltGjDek2KAQCQWaW9Oam2LH940H1Xa1GjvgsnanYtJDaK94bpqm8AwJN1YYj9Re/Aiy+0N X-IPAS-Result: A2EDBQCQnjpf/93tZ45fH2qFOIUWj2YGhEkBhwaRfQsBAQEBAQEBAQEbHAQBAYccJjgTAgMBAQEDAgUBAQEFAQEBAQEBBQMBAQEChgxFgjcihBtvHAImAoQYglgllAKbeoEyhVKDUYFAgQ4qjTh5gQeBOA+IIoJKgmAEmgaBa5o+gmyaFAUHAx6gIbQKgXszGggwgyVPGQ2NdgEzGI5EJGcCBgEJAQEDCSGRBwEB Original-Received: from mbs.phas.ubc.ca ([142.103.237.221]) by nesvaprod05.mail-relay.ubc.ca with SMTP; 17 Aug 2020 08:16:27 -0700 Content-Language: en-US Received-SPF: none client-ip=142.103.203.5; envelope-from=ovi@phas.ubc.ca; helo=nesvaprod05.mail-relay.ubc.ca X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/17 11:16:27 X-ACL-Warn: Detected OS = FreeBSD 9.x or newer X-Spam_score_int: -32 X-Spam_score: -3.3 X-Spam_bar: --- X-Spam_report: (-3.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FORGED_SPF_HELO=1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 17 Aug 2020 11:52:28 -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:185395 Archived-At: When feature/native-comp branch is built out-of-tree, emacs cannot find t= he .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 tr= ee 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. modified=C2=A0=C2=A0 lisp/loadup.el @@ -454,7 +454,7 @@ =C2=A0=C2=A0 ;; when installed or if the source directory got moved.=C2=A0= This is set to be =C2=A0=C2=A0 ;; a pair in the form: (rel-path-from-install-bin . rel-path= -from-local-bin). =C2=A0=C2=A0 (let ((h (make-hash-table :test #'eq)) -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (lisp-src-dir (expand-file-na= me (concat default-directory "../lisp"))) +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (lisp-src-dir (expand-file-na= me "lisp" source-directory)) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (bin-dest-dir (cadr (mem= ber "--bin-dest" command-line-args))) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (lisp-dest-dir (cadr (me= mber "--lisp-dest" command-line-args)))) =C2=A0=C2=A0=C2=A0=C2=A0 (mapatoms (lambda (s)