]> git.saurik.com Git - apple/system_cmds.git/commitdiff
system_cmds-790.20.2.tar.gz macos-10131 v790.20.2
authorApple <opensource@apple.com>
Thu, 1 Feb 2018 00:34:31 +0000 (00:34 +0000)
committerApple <opensource@apple.com>
Thu, 1 Feb 2018 00:34:31 +0000 (00:34 +0000)
system_cmds.xcodeproj/project.pbxproj
vm_purgeable_stat.tproj/entitlements.plist [new file with mode: 0644]
zic.tproj/generate_zoneinfo.sh
zic.tproj/install_zoneinfo.sh

index da5d7cb7d2c6a22c4418d932a839a26734469662..4611e1b6bb1d34872ec41e0ac22fb3688a4e9874 100644 (file)
                        path = eostraced;
                        sourceTree = "<group>";
                };
+               3F56BF751F56057800266763 /* Recovered References */ = {
+                       isa = PBXGroup;
+                       children = (
+                               C248DBAF1C1A1D0500F6E9AF /* libcompression.dylib */,
+                       );
+                       name = "Recovered References";
+                       sourceTree = "<group>";
+               };
                550C19DF1804C55E001DA380 /* iosim.tproj */ = {
                        isa = PBXGroup;
                        children = (
                                BA4B7A0D1373BBB600003422 /* Libraries */,
                                BA4FD2F01372FB3D0025925C /* Products */,
                                189337C11CC7CB4800B2A6A4 /* Frameworks */,
+                               3F56BF751F56057800266763 /* Recovered References */,
                        );
                        sourceTree = "<group>";
                };
                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;
                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;
                                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 (file)
index 0000000..b21dbd8
--- /dev/null
@@ -0,0 +1,8 @@
+<?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>task_for_pid-allow</key>
+       <true/>
+</dict>
+</plist>
index 079e4fb51fbaff4365eae0b467aa9dc2c60c76ba..feef097c0942074997690ab5184bc7d24543a5cd 100755 (executable)
@@ -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"
index 776c630b6c9158749b3d49bf8904ffc1ea96c939..50a9deb0c7aa331b8710f70ab0988a69b9dd6b7a 100755 (executable)
@@ -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
+