From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#61171: 30.0.50; macos build can't find native lisp folder Date: Tue, 31 Jan 2023 15:37:30 +0200 Message-ID: <83h6w63jvp.fsf@gnu.org> References: <87edrcyz05.fsf@luois.me> <83357s5em7.fsf@gnu.org> <87bkmfz90g.fsf@luois.me> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9056"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61171@debbugs.gnu.org To: Merrick Luo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 31 15:41:44 2023 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 1pMrpO-0002AJ-A0 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 31 Jan 2023 15:41:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pMqqx-00039k-H0; Tue, 31 Jan 2023 08:39:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMqqk-00034C-8O for bug-gnu-emacs@gnu.org; Tue, 31 Jan 2023 08:39:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pMqqj-0005Ng-U7 for bug-gnu-emacs@gnu.org; Tue, 31 Jan 2023 08:39:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pMqqj-0007My-Ol for bug-gnu-emacs@gnu.org; Tue, 31 Jan 2023 08:39:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 31 Jan 2023 13:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61171 X-GNU-PR-Package: emacs Original-Received: via spool by 61171-submit@debbugs.gnu.org id=B61171.167517230328275 (code B ref 61171); Tue, 31 Jan 2023 13:39:01 +0000 Original-Received: (at 61171) by debbugs.gnu.org; 31 Jan 2023 13:38:23 +0000 Original-Received: from localhost ([127.0.0.1]:51856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pMqq6-0007Ly-MV for submit@debbugs.gnu.org; Tue, 31 Jan 2023 08:38:23 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57708) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pMqpy-0007Ld-JV for 61171@debbugs.gnu.org; Tue, 31 Jan 2023 08:38:21 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMqpl-0005BK-5u; Tue, 31 Jan 2023 08:38:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=iWjq7dosVPFuadexfXIthygTmMLCSL0y5Ig+OpIYx/k=; b=Fq54KwDP7sr1 WGfv6/LTxyMW4aYFix8RjG09r0lUEZ+MCG6UYn1Z3xcvSx7o37DtEiqjesNm2pYYdwjAz5wHpvo50 3/Ep/2p4dtfWWksgFdlzMkfnToHSFH2PSD2k3LpB6JOEAnVXdwRirUprZEW1lLOHWdU1wg4dsFtLk Khpo+DR/zPigXeYONEAihumBSu3fJ7N8ZFy8Zqhujl644odaDrQ15ITN66ElCFZSK9XCt0WCWB/Y9 /81lYJ0bEyVJug28z8HVseXxmj0Ii3T3tq2mv0/Ya2IMRp6cwplNeliw20KmzQsr6u6j1J1pM7dI5 kTgOyQMNXlfx5h1wzKWs+Q==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMqpL-0001ec-Fr; Tue, 31 Jan 2023 08:37:59 -0500 In-Reply-To: <87bkmfz90g.fsf@luois.me> (message from Merrick Luo on Tue, 31 Jan 2023 11:18:55 +0800) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:254518 Archived-At: [Please keep the bug address on the CC list.] > From: Merrick Luo > Date: Tue, 31 Jan 2023 11:18:55 +0800 > > Eli Zaretskii writes: > > > Why did you build with ns-self-contained disabled? AFAICT from > > reading the top-level Makefile.in, this causes Emacs to install files > > according to Posix conventions, which breaks on macOS. What you get is > > the Emacs binary in a place unrelated to the directory where the > > *.eln files are installed, and Emacs cannot find them. > > yes, I want the files to be installed into /usr/local/ so I can use it > in terminal more easily. AFAIR, the Emacs.app works fine with this > option without native compilation enabled, I can also copy/move it to > the Application folder and still works. Without native-compilation Emacs doesn't need to look for and find the *.eln files, so it's a small wonder you don't see the problem. > > You could perhaps set ELN_DESTDIR explicitly when you run "Make", as > > in > > > > make ELN_DESTDIR=/Users/merrickluo/projs/emacs/nextstep/Emacs.app/Contents > > > > Maybe. > > this looks like an absolute path though, so if I moved the Emacs.app to > another place, like /Applciations, it will break /usr/local/bin/emacs? Emacs with native-compilation supports relocatable installations only if the relation between the directory with the binary and the directory with the *.eln files is according to the relation between BIN_DESTDIR and ELN_DESTDIR. So if you want a relocatable installation, you will need to play with the values of those two Make-time variables to suit your needs. If you use absolute file names, moving the files will break the installation.