Merge pull request #43140 from LnL7/macos-10.14
darwin: fix Libsystem compatibility for macOS 10.14
This commit is contained in:
commit
ea1542e9ee
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
/usr/lib/system/libsystem_configuration.dylib
|
/usr/lib/system/libsystem_configuration.dylib
|
||||||
/usr/lib/system/libsystem_coreservices.dylib
|
/usr/lib/system/libsystem_coreservices.dylib
|
||||||
# /usr/lib/system/libsystem_coretls.dylib # Removed in 10.13
|
# /usr/lib/system/libsystem_coretls.dylib # Removed in 10.13
|
||||||
/usr/lib/system/libsystem_dnssd.dylib
|
/usr/lib/system/libsystem_dnssd.dylib
|
||||||
/usr/lib/system/libsystem_info.dylib
|
/usr/lib/system/libsystem_info.dylib
|
||||||
|
|
||||||
@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
/usr/lib/system/libsystem_m.dylib
|
/usr/lib/system/libsystem_m.dylib
|
||||||
/usr/lib/system/libsystem_malloc.dylib
|
/usr/lib/system/libsystem_malloc.dylib
|
||||||
/usr/lib/system/libsystem_network.dylib
|
# /usr/lib/system/libsystem_network.dylib # Removed in 10.14
|
||||||
/usr/lib/system/libsystem_networkextension.dylib
|
/usr/lib/system/libsystem_networkextension.dylib
|
||||||
/usr/lib/system/libsystem_notify.dylib
|
/usr/lib/system/libsystem_notify.dylib
|
||||||
/usr/lib/system/libsystem_platform.dylib
|
/usr/lib/system/libsystem_platform.dylib
|
||||||
|
@ -51,8 +51,6 @@ ___bt_setcur
|
|||||||
___bt_split
|
___bt_split
|
||||||
___bt_sync
|
___bt_sync
|
||||||
___buf_free
|
___buf_free
|
||||||
___cVersionNumber
|
|
||||||
___cVersionString
|
|
||||||
___call_hash
|
___call_hash
|
||||||
___cleanup
|
___cleanup
|
||||||
___cmp_D2A
|
___cmp_D2A
|
||||||
|
@ -57,8 +57,6 @@ ___ioctl
|
|||||||
___iopolicysys
|
___iopolicysys
|
||||||
___kdebug_trace
|
___kdebug_trace
|
||||||
___kdebug_trace64
|
___kdebug_trace64
|
||||||
___kernelVersionNumber
|
|
||||||
___kernelVersionString
|
|
||||||
___kill
|
___kill
|
||||||
___lchown
|
___lchown
|
||||||
___libkernel_init
|
___libkernel_init
|
||||||
|
@ -178,6 +178,9 @@ in rec {
|
|||||||
unpack = stdenv.mkDerivation (bootstrapFiles // {
|
unpack = stdenv.mkDerivation (bootstrapFiles // {
|
||||||
name = "unpack";
|
name = "unpack";
|
||||||
|
|
||||||
|
reexportedLibrariesFile =
|
||||||
|
../../os-specific/darwin/apple-source-releases/Libsystem/reexported_libraries;
|
||||||
|
|
||||||
# This is by necessity a near-duplicate of unpack-bootstrap-tools.sh. If we refer to it directly,
|
# This is by necessity a near-duplicate of unpack-bootstrap-tools.sh. If we refer to it directly,
|
||||||
# we can't make any changes to it due to our testing stdenv depending on it. Think of this as the
|
# we can't make any changes to it due to our testing stdenv depending on it. Think of this as the
|
||||||
# unpack-bootstrap-tools.sh for the next round of bootstrap tools.
|
# unpack-bootstrap-tools.sh for the next round of bootstrap tools.
|
||||||
@ -209,7 +212,7 @@ in rec {
|
|||||||
$out/lib/system/libsystem_kernel.dylib
|
$out/lib/system/libsystem_kernel.dylib
|
||||||
|
|
||||||
# TODO: this logic basically duplicates similar logic in the Libsystem expression. Deduplicate them!
|
# TODO: this logic basically duplicates similar logic in the Libsystem expression. Deduplicate them!
|
||||||
libs=$(otool -arch x86_64 -L /usr/lib/libSystem.dylib | tail -n +3 | awk '{ print $1 }')
|
libs=$(cat $reexportedLibrariesFile | grep -v '^#')
|
||||||
|
|
||||||
for i in $libs; do
|
for i in $libs; do
|
||||||
if [ "$i" != "/usr/lib/system/libsystem_kernel.dylib" ] && [ "$i" != "/usr/lib/system/libsystem_c.dylib" ]; then
|
if [ "$i" != "/usr/lib/system/libsystem_kernel.dylib" ] && [ "$i" != "/usr/lib/system/libsystem_c.dylib" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user