emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 868f513: Codesign the executable on recene MacOS systems


From: Lars Ingebrigtsen
Subject: master 868f513: Codesign the executable on recene MacOS systems
Date: Tue, 24 Nov 2020 00:54:32 -0500 (EST)

branch: master
commit 868f51324ac96bc3af49a826e1db443548c9d6cc
Author: Itai Seggev <is+apple@cs.hmc.edu>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Codesign the executable on recene MacOS systems
    
    * src/Makefile.in (temacs$(EXEEXT)): Codesign the executable on
    recent (ARM) MacOS systems (bug#43878).  Without this, building
    Emacs fails.
    
    Copyright-paperwork-exempt: yes
---
 src/Makefile.in | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/Makefile.in b/src/Makefile.in
index c5fb2ea..39c0f12 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -336,6 +336,10 @@ DUMPING=@DUMPING@
 CHECK_STRUCTS = @CHECK_STRUCTS@
 HAVE_PDUMPER = @HAVE_PDUMPER@
 
+## ARM Macs require that all code have a valid signature.  Since pump
+## invalidates the signature, we must re-sign to fix it.
+DO_CODESIGN=$(patsubst aarch64-apple-darwin%,yes,@configuration@)
+
 # 'make' verbosity.
 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
 
@@ -653,6 +657,9 @@ temacs$(EXEEXT): $(LIBXMENU) $(ALLOBJS) $(LIBEGNU_ARCHIVE) 
$(EMACSRES) \
          $(ALLOBJS) $(LIBEGNU_ARCHIVE) $(W32_RES_LINK) $(LIBES)
 ifeq ($(HAVE_PDUMPER),yes)
        $(AM_V_at)$(MAKE_PDUMPER_FINGERPRINT) $@.tmp
+ifeq ($(DO_CODESIGN),yes)
+       codesign -s - -f $@.tmp
+endif
 endif
        $(AM_V_at)mv $@.tmp $@
        $(MKDIR_P) $(etc)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]