From: Apple Date: Thu, 1 Feb 2018 00:34:31 +0000 (+0000) Subject: system_cmds-790.20.2.tar.gz X-Git-Tag: macos-10131^0 X-Git-Url: https://git.saurik.com/apple/system_cmds.git/commitdiff_plain/c40d5e067506b677a9941a31cf3fadf56025c9a7 system_cmds-790.20.2.tar.gz --- diff --git a/system_cmds.xcodeproj/project.pbxproj b/system_cmds.xcodeproj/project.pbxproj index da5d7cb..4611e1b 100644 --- a/system_cmds.xcodeproj/project.pbxproj +++ b/system_cmds.xcodeproj/project.pbxproj @@ -3331,6 +3331,14 @@ path = eostraced; sourceTree = ""; }; + 3F56BF751F56057800266763 /* Recovered References */ = { + isa = PBXGroup; + children = ( + C248DBAF1C1A1D0500F6E9AF /* libcompression.dylib */, + ); + name = "Recovered References"; + sourceTree = ""; + }; 550C19DF1804C55E001DA380 /* iosim.tproj */ = { isa = PBXGroup; children = ( @@ -3483,6 +3491,7 @@ BA4B7A0D1373BBB600003422 /* Libraries */, BA4FD2F01372FB3D0025925C /* Products */, 189337C11CC7CB4800B2A6A4 /* Frameworks */, + 3F56BF751F56057800266763 /* Recovered References */, ); sourceTree = ""; }; @@ -7631,6 +7640,8 @@ 1873301918CBD4A700275344 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + CODE_SIGN_ENTITLEMENTS = ""; + "CODE_SIGN_ENTITLEMENTS[sdk=*]" = vm_purgeable_stat.tproj/entitlements.plist; GCC_TREAT_WARNINGS_AS_ERRORS = YES; HEADER_SEARCH_PATHS = ""; INSTALL_PATH = /usr/local/bin; @@ -7692,6 +7703,7 @@ 55CCB17216B84EDA00B56979 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + "CODE_SIGN_ENTITLEMENTS[sdk=*]" = vm_purgeable_stat.tproj/entitlements.plist; GCC_TREAT_WARNINGS_AS_ERRORS = YES; HEADER_SEARCH_PATHS = ""; INSTALL_PATH = /usr/local/bin; @@ -8519,6 +8531,7 @@ 0D06BC631E8F08CB00C6EC2D /* Debug */, ); defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; }; 1523FE611595048900661E82 /* Build configuration list for PBXNativeTarget "ltop" */ = { isa = XCConfigurationList; diff --git a/vm_purgeable_stat.tproj/entitlements.plist b/vm_purgeable_stat.tproj/entitlements.plist new file mode 100644 index 0000000..b21dbd8 --- /dev/null +++ b/vm_purgeable_stat.tproj/entitlements.plist @@ -0,0 +1,8 @@ + + + + + task_for_pid-allow + + + diff --git a/zic.tproj/generate_zoneinfo.sh b/zic.tproj/generate_zoneinfo.sh index 079e4fb..feef097 100755 --- a/zic.tproj/generate_zoneinfo.sh +++ b/zic.tproj/generate_zoneinfo.sh @@ -73,6 +73,12 @@ else ACTUAL_PLATFORM_NAME="${PLATFORM_NAME}" fi +case "$ACTUAL_PLATFORM_NAME" in +bridge*) + LOCALTIME="GMT" + ;; +esac + case "$ACTUAL_PLATFORM_NAME" in iphone*|appletv*|watch*|bridge*) mkdir -p "${PRIVATEDIR}/var/db" diff --git a/zic.tproj/install_zoneinfo.sh b/zic.tproj/install_zoneinfo.sh index 776c630..50a9deb 100755 --- a/zic.tproj/install_zoneinfo.sh +++ b/zic.tproj/install_zoneinfo.sh @@ -8,20 +8,40 @@ else ACTUAL_PLATFORM_NAME="${PLATFORM_NAME}" fi +# This sets up the paths for the default set of zoneinfo files +# On iOS, watchOS, and tvOS, this is handled by tzd in coordination with +# launchd on first boot. +# On macOS, the directory needs to be setup # during mastering for SIP +# protection, and the symlink for the BaseSystem. +# On bridgeOS tzd doesn't exist, so needs this all setup statically. +default_zoneinfo_setup() +{ + mkdir -p "${DSTROOT}/private/var/db/timezone" + chmod 555 "${DSTROOT}/private/var/db/timezone" + ln -hfs "/usr/share/zoneinfo.default" "${DSTROOT}/private/var/db/timezone/zoneinfo" +} + case "$ACTUAL_PLATFORM_NAME" in -iphone*|appletv*|watch*|macosx|bridge*) +iphone*|appletv*|watch*|macosx) ditto "${BUILT_PRODUCTS_DIR}/zoneinfo" "${DSTROOT}/usr/share/zoneinfo.default" ln -hfs "/var/db/timezone/zoneinfo" "${DSTROOT}/usr/share/zoneinfo" case "$ACTUAL_PLATFORM_NAME" in - macosx|bridge*) - mkdir -p "${DSTROOT}/private/var/db/timezone" - chmod 555 "${DSTROOT}/private/var/db/timezone" - ln -hfs "/usr/share/zoneinfo.default" "${DSTROOT}/private/var/db/timezone/zoneinfo" + macosx) + default_zoneinfo_setup ;; esac ;; +bridge*) + # Since bridgeOS lacks any mechanism to change timezones (currently), + # and in the interest of saving space, only GMT is installed. + mkdir -p "${DSTROOT}/usr/share/zoneinfo.default" + chmod 555 "${DSTROOT}/usr/share/zoneinfo.default" + ditto "${BUILT_PRODUCTS_DIR}/zoneinfo/GMT" "${DSTROOT}/usr/share/zoneinfo.default/GMT" + default_zoneinfo_setup + ;; *) echo "Unsupported platform: $ACTUAL_PLATFORM_NAME" exit 1 ;; esac +