caldwell / build-emacs

Build scripts for www.emacsformacosx.com
http://www.emacsformacosx.com/about
GNU General Public License v3.0
364 stars 61 forks source link

Warning of libexec directory missing #141

Closed mat5n closed 1 month ago

mat5n commented 1 month ago

When I start Emacs 29.4, the following warning appears in *Messages*:

Warning: arch-dependent data dir Contents/MacOS/libexec/: No such file or directory

The warning goes away if I symlink libexec to libexec-<arch>. Creating an empty directory by that name works too.

Version 29.2 didn't have this problem, but then its Contents/MacOS did contain libexec which was a symlink pointing to libexec-x86_64-10_11.

Everything seems to work fine even with the warning so it's mostly a cosmetic thing.

dieggsy commented 1 month ago

I will add that this does affect some functionality, namely anything depending on:

caldwell commented 1 month ago

Thanks for catching that.

It happened because that bin directory was a hardcoded configuration that I forgot to update when I switched the minimum macOS to 10.12 recently. This annoyed me, so I made it automatic. The patch also makes the binaries in them universal and not just x86_64—I'm not sure any of them being arm native will make a substantial difference anywhere, but it certainly can't hurt

I just rebuilt the release Emacs (29.4-1) which should be up on the site now with good bin and libexec dirs.