Merge pull request #111057 from veprbl/pr/darwin_CF_fix_sandboxing

darwin.CF: fix sandboxed build
This commit is contained in:
Dmitry Kalinkin 2021-01-30 19:30:51 -05:00 committed by GitHub
commit 84b3d08ba6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,9 +23,9 @@ stdenv.mkDerivation {
nativeBuildInputs = [ ninja python3 ];
buildInputs = [ curl libxml2 objc4 ICU ];
sourceRoot = "source/CoreFoundation";
postPatch = ''
cd CoreFoundation
patchPhase = ''
cp ${sysdir-free-system-directories} Base.subproj/CFSystemDirectories.c
# In order, since I can't comment individual lines:
@ -39,6 +39,7 @@ stdenv.mkDerivation {
# Fix sandbox impurities.
substituteInPlace ../lib/script.py \
--replace '/bin/cp' cp
patchShebangs --build ../configure
# Includes xpc for some initialization routine that they don't define anyway, so no harm here
substituteInPlace PlugIn.subproj/CFBundlePriv.h \