From a53a7e8f858902659d4784322bede34f4e49097e Mon Sep 17 00:00:00 2001 From: Jake Petroules Date: Mon, 12 Aug 2024 23:53:29 -0700 Subject: [PATCH] Convert PrivacyInfo.xcprivacy symlinks to files (#251) It is expected behavior of the swift-build build system to copy links as-is, so presenting these as symlinks results in broken symlinks being present in the produced resource bundles, which won't work properly. On Windows, it even causes the build entirely to fail due to a related bug: https://github.com/apple/swift-foundation/issues/845 Convert these to flat files instead. --- .PrivacyInfo.xcprivacy | 15 --------------- Sources/CCryptoBoringSSL/PrivacyInfo.xcprivacy | 16 +++++++++++++++- .../CCryptoBoringSSLShims/PrivacyInfo.xcprivacy | 16 +++++++++++++++- Sources/Crypto/PrivacyInfo.xcprivacy | 16 +++++++++++++++- .../CryptoBoringWrapper/PrivacyInfo.xcprivacy | 16 +++++++++++++++- Sources/_CryptoExtras/PrivacyInfo.xcprivacy | 16 +++++++++++++++- 6 files changed, 75 insertions(+), 20 deletions(-) delete mode 100644 .PrivacyInfo.xcprivacy mode change 120000 => 100644 Sources/CCryptoBoringSSL/PrivacyInfo.xcprivacy mode change 120000 => 100644 Sources/CCryptoBoringSSLShims/PrivacyInfo.xcprivacy mode change 120000 => 100644 Sources/Crypto/PrivacyInfo.xcprivacy mode change 120000 => 100644 Sources/CryptoBoringWrapper/PrivacyInfo.xcprivacy mode change 120000 => 100644 Sources/_CryptoExtras/PrivacyInfo.xcprivacy diff --git a/.PrivacyInfo.xcprivacy b/.PrivacyInfo.xcprivacy deleted file mode 100644 index 1a71db6f..00000000 --- a/.PrivacyInfo.xcprivacy +++ /dev/null @@ -1,15 +0,0 @@ - - - - - NSPrivacyTracking - - NSPrivacyAccessedAPITypes - - NSPrivacyCollectedDataTypes - - NSPrivacyTrackingDomains - - - - diff --git a/Sources/CCryptoBoringSSL/PrivacyInfo.xcprivacy b/Sources/CCryptoBoringSSL/PrivacyInfo.xcprivacy deleted file mode 120000 index 11b855aa..00000000 --- a/Sources/CCryptoBoringSSL/PrivacyInfo.xcprivacy +++ /dev/null @@ -1 +0,0 @@ -../../.PrivacyInfo.xcprivacy \ No newline at end of file diff --git a/Sources/CCryptoBoringSSL/PrivacyInfo.xcprivacy b/Sources/CCryptoBoringSSL/PrivacyInfo.xcprivacy new file mode 100644 index 00000000..1a71db6f --- /dev/null +++ b/Sources/CCryptoBoringSSL/PrivacyInfo.xcprivacy @@ -0,0 +1,15 @@ + + + + + NSPrivacyTracking + + NSPrivacyAccessedAPITypes + + NSPrivacyCollectedDataTypes + + NSPrivacyTrackingDomains + + + + diff --git a/Sources/CCryptoBoringSSLShims/PrivacyInfo.xcprivacy b/Sources/CCryptoBoringSSLShims/PrivacyInfo.xcprivacy deleted file mode 120000 index 11b855aa..00000000 --- a/Sources/CCryptoBoringSSLShims/PrivacyInfo.xcprivacy +++ /dev/null @@ -1 +0,0 @@ -../../.PrivacyInfo.xcprivacy \ No newline at end of file diff --git a/Sources/CCryptoBoringSSLShims/PrivacyInfo.xcprivacy b/Sources/CCryptoBoringSSLShims/PrivacyInfo.xcprivacy new file mode 100644 index 00000000..1a71db6f --- /dev/null +++ b/Sources/CCryptoBoringSSLShims/PrivacyInfo.xcprivacy @@ -0,0 +1,15 @@ + + + + + NSPrivacyTracking + + NSPrivacyAccessedAPITypes + + NSPrivacyCollectedDataTypes + + NSPrivacyTrackingDomains + + + + diff --git a/Sources/Crypto/PrivacyInfo.xcprivacy b/Sources/Crypto/PrivacyInfo.xcprivacy deleted file mode 120000 index 11b855aa..00000000 --- a/Sources/Crypto/PrivacyInfo.xcprivacy +++ /dev/null @@ -1 +0,0 @@ -../../.PrivacyInfo.xcprivacy \ No newline at end of file diff --git a/Sources/Crypto/PrivacyInfo.xcprivacy b/Sources/Crypto/PrivacyInfo.xcprivacy new file mode 100644 index 00000000..1a71db6f --- /dev/null +++ b/Sources/Crypto/PrivacyInfo.xcprivacy @@ -0,0 +1,15 @@ + + + + + NSPrivacyTracking + + NSPrivacyAccessedAPITypes + + NSPrivacyCollectedDataTypes + + NSPrivacyTrackingDomains + + + + diff --git a/Sources/CryptoBoringWrapper/PrivacyInfo.xcprivacy b/Sources/CryptoBoringWrapper/PrivacyInfo.xcprivacy deleted file mode 120000 index 11b855aa..00000000 --- a/Sources/CryptoBoringWrapper/PrivacyInfo.xcprivacy +++ /dev/null @@ -1 +0,0 @@ -../../.PrivacyInfo.xcprivacy \ No newline at end of file diff --git a/Sources/CryptoBoringWrapper/PrivacyInfo.xcprivacy b/Sources/CryptoBoringWrapper/PrivacyInfo.xcprivacy new file mode 100644 index 00000000..1a71db6f --- /dev/null +++ b/Sources/CryptoBoringWrapper/PrivacyInfo.xcprivacy @@ -0,0 +1,15 @@ + + + + + NSPrivacyTracking + + NSPrivacyAccessedAPITypes + + NSPrivacyCollectedDataTypes + + NSPrivacyTrackingDomains + + + + diff --git a/Sources/_CryptoExtras/PrivacyInfo.xcprivacy b/Sources/_CryptoExtras/PrivacyInfo.xcprivacy deleted file mode 120000 index 11b855aa..00000000 --- a/Sources/_CryptoExtras/PrivacyInfo.xcprivacy +++ /dev/null @@ -1 +0,0 @@ -../../.PrivacyInfo.xcprivacy \ No newline at end of file diff --git a/Sources/_CryptoExtras/PrivacyInfo.xcprivacy b/Sources/_CryptoExtras/PrivacyInfo.xcprivacy new file mode 100644 index 00000000..1a71db6f --- /dev/null +++ b/Sources/_CryptoExtras/PrivacyInfo.xcprivacy @@ -0,0 +1,15 @@ + + + + + NSPrivacyTracking + + NSPrivacyAccessedAPITypes + + NSPrivacyCollectedDataTypes + + NSPrivacyTrackingDomains + + + +