homebrew-emacsmacport
homebrew-emacsmacport copied to clipboard
emacs-mac fails to build with natural title bar
==> 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
same here
Could you try brew cleanup -s
to clear the existing cache?
I get the same error after running your command.
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.)
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
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)