From f3150df424e8f1022d64ee3e2c3924a8a85c57f6 Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Fri, 29 Oct 2021 19:52:30 +0200 Subject: [PATCH] Makefile: fix entitlements export for Monterey --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5a08eae..719166a 100644 --- a/Makefile +++ b/Makefile @@ -113,8 +113,8 @@ db_binaries:: dyld if test -r "$(call prefix,$$os)$$path" && file --no-dereference --brief --mime-type "$(call prefix,$$os)$$path" | grep -Fq application/x-mach-binary ; then \ objdump --macho --dylibs-used "$(call prefix,$$os)$$path" | \ sed "1d;s/^.//;s/ ([^)]*)$$//;s/'/''/g;s|.*|INSERT INTO linkages $(call file,'&');|" ; \ - codesign --display --entitlements - "$(call prefix,$$os)$$path" 2> /dev/null | \ - sed 1d | plutil -convert json - -o - | \ + codesign --display --xml --entitlements - "$(call prefix,$$os)$$path" 2> /dev/null | \ + plutil -convert json - -o - | \ sed "/^: Property List error/d;/^{}/d;s/'/''/g;s|.*|INSERT INTO entitlements $(call file,json('&'));\n|" ; \ strings -n 8 "$(call prefix,$$os)$$path" | \ LANG=C sed "s/'/''/g;s|.*|INSERT INTO strings $(call file,'&');|" ; \