all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Merrick Luo <merrick@luois.me>
Cc: 61171@debbugs.gnu.org
Subject: bug#61171: 30.0.50; macos build can't find native lisp folder
Date: Tue, 31 Jan 2023 15:37:30 +0200	[thread overview]
Message-ID: <83h6w63jvp.fsf@gnu.org> (raw)
In-Reply-To: <87bkmfz90g.fsf@luois.me> (message from Merrick Luo on Tue, 31 Jan 2023 11:18:55 +0800)

[Please keep the bug address on the CC list.]

> From: Merrick Luo <merrick@luois.me>
> Date: Tue, 31 Jan 2023 11:18:55 +0800
> 
> Eli Zaretskii <eliz@gnu.org> 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.





  parent reply	other threads:[~2023-01-31 13:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-30 12:42 bug#61171: 30.0.50; macos build can't find native lisp folder Merrick Luo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-01-30 13:36 ` Eli Zaretskii
     [not found]   ` <87bkmfz90g.fsf@luois.me>
2023-01-31 13:37     ` Eli Zaretskii [this message]
2023-06-05 22:15       ` Andrea Corallo
2023-06-06 11:31         ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83h6w63jvp.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=61171@debbugs.gnu.org \
    --cc=merrick@luois.me \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.