File 0778-Remove-erts-etc-darwin-Info.plist.patch of Package erlang
From 0f3e7637bd5778d6e2119f72692c10963bb4c398 Mon Sep 17 00:00:00 2001
From: Wojtek Mach <wojtek@wojtekmach.pl>
Date: Tue, 28 Jun 2022 11:56:17 +0200
Subject: [PATCH] Remove `erts/etc/darwin/Info.plist`
It seems that because erts was compiled with this file, it is impossible
to use mac APIs to retrieve bundle information.
---
erts/emulator/Makefile.in | 3 ---
erts/etc/darwin/Info.plist | 19 -------------------
2 files changed, 22 deletions(-)
delete mode 100644 erts/etc/darwin/Info.plist
diff --git a/erts/emulator/Makefile.in b/erts/emulator/Makefile.in
index 979f76c4c6..c73c3bc1c7 100644
--- a/erts/emulator/Makefile.in
+++ b/erts/emulator/Makefile.in
@@ -242,9 +242,6 @@ VOID_EMULATOR =
endif
OPSYS=@OPSYS@
-ifeq ($(OPSYS),darwin)
-LDFLAGS += -sectcreate __TEXT __info_plist "$(ERL_TOP)/erts/etc/darwin/Info.plist"
-endif
sol2CFLAGS=
linuxCFLAGS=
diff --git a/erts/etc/darwin/Info.plist b/erts/etc/darwin/Info.plist
deleted file mode 100644
index 3896524588..0000000000
--- a/erts/etc/darwin/Info.plist
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>NSAppTransportSecurity</key>
- <dict>
- <key>NSExceptionDomains</key>
- <dict>
- <key>localhost</key>
- <dict>
- <key>NSExceptionAllowsInsecureHTTPLoads</key>
- <true/>
- <key>NSIncludesSubdomains</key>
- <true/>
- </dict>
- </dict>
- </dict>
-</dict>
-</plist>
--
2.35.3