#36502: emacs-app: hardcoded build path -------------------------------------+---------------------- Reporter: mojca.miklavec.lists@… | Owner: hum@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: emacs-app | -------------------------------------+---------------------- Comment (by jrh@…): Replying to [comment:2 hum@…]:
Emacs.app is relocatable while /opt/local/bin/emacs is not, and you should not separate the Emacs binary from other data files, because the binary could not find them based on the relative paths.
OK, so you're saying that Emacs.app is set up to search within its (relocatable) app bundle, and so the symlink fails because it's looking for stuff at {{{`dirname argv[0]`/libexec/}}} and {{{`dirname argv[0]`/../Resources/}}} (pardon the syntax abuse). That makes sense, and I suppose it means this bug is really a feature. The confusing part to me, though, is that the error messages look like {{{ Warning: arch-dependent data dir (/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_tarballs_ports_aqua_emacs-app/emacs- app/work/emacs-24.2/nextstep/Emacs.app/Contents/MacOS//libexec/emacs/24.2/x86_64 -apple-darwin12.2.0/) does not exist. Warning: arch-independent data dir (/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_tarballs_ports_aqua_emacs-app/emacs- app/work/emacs-24.2/nextstep/Emacs.app/Contents/Resources/share/emacs/24.2/etc/) does not exist. Error: charsets directory not found: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports .org_release_tarballs_ports_aqua_emacs-app/emacs- app/work/emacs-24.2/nextstep/Emacs.app/Contents/Resources/share/emacs/24.2/etc/charsets }}} and not {{{ Warning: arch-dependent data dir (./libexec/emacs/24.2/x86_64-apple- darwin12.2.0/) does not exist. Warning: arch-independent data dir (../Contents/Resources/share/emacs/24.2/etc/) does not exist. Error: charsets directory not found: ../Resources/share/emacs/24.2/etc/charsets }}} -- Ticket URL: <https://trac.macports.org/ticket/36502#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS