homebrew-emacsmacport icon indicating copy to clipboard operation
homebrew-emacsmacport copied to clipboard

emacs-mac fails to build with natural title bar

Open ghost opened this issue 3 years ago • 6 comments

==> Downloading https://bitbucket.org/mituharu/emacs-mac/get/emacs-27.2-mac-8.2. ######################################################################## 100.0% ==> Patching Error: An exception occurred within a child process: Errno::ENOENT: No such file or directory @ rb_sysopen - /Users/iell/Library/Caches/Homebrew/downloads/2aa0c727dae17f7a9e9c91da7647984d5c8fba13e72ed282c18a6cffa19bcf47--emacs-mac-title-bar-7.4.patch

ghost avatar Apr 18 '21 01:04 ghost

same here

ylorn avatar Apr 20 '21 13:04 ylorn

Could you try brew cleanup -s to clear the existing cache?

railwaycat avatar Apr 20 '21 16:04 railwaycat

I get the same error after running your command.

ghost avatar Apr 22 '21 00:04 ghost

It seems brew doesn't download this file. When I manually downloaded it and put it in the place brew expects the install worked (though in my case it was an upgrade.)

leavengood avatar Apr 29 '21 16:04 leavengood

This has started to occur for me recently:

==> Upgrading railwaycat/emacsmacport/emacs-mac
  emacs-28.2-mac-9.1 -> emacs-29.1-mac-10.0 --without-modules --with-natural-title-bar --with-native-comp

==> Patching
==> Applying emacs-mac-29-multi-tty.diff
patching file 'lisp/server.el'
patching file 'src/frame.c'
patching file 'src/macterm.c'
Error: An exception occurred within a child process:
  Errno::ENOENT: No such file or directory @ rb_sysopen - /Users/adrian/Library/Caches/Homebrew/downloads/fc68c1c12db24bc6d0b2efaf57f5b6d5fc4975e17abae8e7607b8bad24a81431--emacs-mac-title-bar-9.1.patch

Lownin avatar Aug 07 '23 20:08 Lownin

For anyone that hits this error, a workaround is to download the file yourself from the recipe and put it in the place the formula expects, eg:

curl https://raw.githubusercontent.com/railwaycat/homebrew-emacsmacport/911412ca8ea2671c1122bc307a1cd0740005a55d/patches/emacs-mac-title-bar-9.1.patch > ~/Library/Caches/Homebrew/downloads/fc68c1c12db24bc6d0b2efaf57f5b6d5fc4975e17abae8e7607b8bad24a81431--emacs-mac-title-bar-9.1.patch

(Note that the gist url should come from the recipe and the path you're saving to will come from the home-brew error message on your machine)

iainbeeston avatar Nov 20 '23 10:11 iainbeeston