From 70bf6b05d584976632b2fd2947c0bf692f5b6421 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Thu, 29 Oct 2020 10:35:18 +0000 Subject: [PATCH] feat(native_comp): remove patch based on feature/native-comp-macos-fixes branch Based on comparing two Emacs.app builds, one with and one without the patch, it seems to have no effect at all on the contents of Emacs.app. --- build-emacs-for-macos | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/build-emacs-for-macos b/build-emacs-for-macos index 3a3b050..e22f413 100755 --- a/build-emacs-for-macos +++ b/build-emacs-for-macos @@ -258,10 +258,6 @@ class Build verify_native_comp verify_libgccjit - if options[:macos_fixes] && ref != 'feature/native-comp-macos-fixes' - apply_native_comp_macos_fixes - end - apply_native_comp_env_setup_patch(source) ENV['CFLAGS'] = [ @@ -446,37 +442,6 @@ class Build ) end - def apply_native_comp_macos_fixes - filename = 'Makefile.in' - pattern = /^src: Makefile\n(.*BIN_DESTDIR.*)\nblessmail: Makefile src\n/m - content = File.read(filename).gsub(pattern) do - old_src_body = Regexp.last_match(1).strip - - # check if already patched - if old_src_body.include?('BIN_DESTDIR=\'${ns_appbindir}/\'') - return old_src_body - end - - self_contained = old_src_body.gsub( - 'BIN_DESTDIR=\'$(DESTDIR)${bindir}/\'', - 'BIN_DESTDIR=\'${ns_appbindir}/\'' - ) - - <<~REPLACEMENT - src: Makefile - ifeq (${ns_self_contained},no) - \t#{old_src_body} - else - \t#{self_contained} - endif - - blessmail: Makefile src - REPLACEMENT - end - - File.open(filename, 'w') { |f| f.write(content) } - end - def effective_version @effective_version ||= begin case ref