all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Glenn Morris <rgm@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: ns build symlinks all libexec programs into bin directory
Date: Sun, 13 May 2012 08:27:58 +0200	[thread overview]
Message-ID: <6843BF26-8BB7-4C5A-AD57-FCA4A0E7927D@swipnet.se> (raw)
In-Reply-To: <gwmx5de013.fsf@fencepost.gnu.org>

Hello.

12 maj 2012 kl. 20:18 skrev Glenn Morris:

> 
> Why does a --with-ns build do this (in install-arch-dep):
> 
> cd nextstep/Emacs.app/bin
> ls -l
>    hexl -> ../libexec/hexl
>    movemail -> ../libexec/movemail
>    profile -> ../libexec/profile
>    rcs2log -> ../libexec/rcs2log
>    update-game-score -> ../libexec/update-game-score
>    vcdiff -> ../libexec/vcdiff
> 
> Ie, create symlinks to the libexec programs in the bin directory?
> 
> These programs are supposed to be for internal Emacs use only, which is
> why they get installed in libexec in the first place.

Short answer: So Emacs can find them :-)

Long answer:

The path to libexec is in PATH_EXEC epaths.h from epaths.in and then added to exec-path.
epaths.h is created at make time by the top level Makefile.
make install for --with-ns installs to nextstep/Emacs.app in the emacs tree.
Emacs.app can then be copied to its final place, which can be anywhere or another machine.
Thus, PATH_EXEC points to libexec in nextstep/Emacs.app, but when Emacs.app is installed (say on another machine), that values is not valid.  Hence the links into bin as  bin is in exec-path (derived from invocation directory and not by a compile time constant).

The idea is that Emacs.app is self contained and can be relocated anywhere as is how app-bundles are supposed to work.  A more intelligent search for libexec would also solve it.  For NS we know it is in the same place as bin, so we could just add libexec to exe-path the same way as bin.  But I guess nobody thought of this as a problem.

	Jan D.




  reply	other threads:[~2012-05-13  6:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-12 18:18 ns build symlinks all libexec programs into bin directory Glenn Morris
2012-05-13  6:27 ` Jan Djärv [this message]
2012-05-14 16:39   ` Glenn Morris
2012-05-15 16:26     ` Jan Djärv

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=6843BF26-8BB7-4C5A-AD57-FCA4A0E7927D@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=emacs-devel@gnu.org \
    --cc=rgm@gnu.org \
    /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.