From 2c5b0d5d6eba3bda4e83f489da546060fa8f3a2b Mon Sep 17 00:00:00 2001 From: Zhu Zihao Date: Sat, 26 Mar 2022 16:54:43 +0800 Subject: [PATCH] Unbundle robin-map. This patch makes libobjc2 use robin-map header from system instead of cloning from submodule. --- CMakeLists.txt | 8 -------- arc.mm | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e2746e9..cf731f1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -86,14 +86,6 @@ else () list(APPEND libobjc_C_SRCS eh_personality.c) endif (WIN32) -if (NOT EXISTS "${CMAKE_SOURCE_DIR}/third_party/robin-map/include/tsl/robin_map.h") - message(FATAL_ERROR "Git submodules not present, please run:\n\n" - " $ git submodule init && git submodule update\n\n" - "If you did not checkout via git, you will need to" - "fetch the submodule's contents from" - "https://github.com/Tessil/robin-map/") -endif () - # For release builds, we disable spamming the terminal with warnings about # selector type mismatches if (CMAKE_BUILD_TYPE STREQUAL Release) diff --git a/arc.mm b/arc.mm index c96681f..cc93e7f 100644 --- a/arc.mm +++ b/arc.mm @@ -3,7 +3,7 @@ #include #include #include -#include "third_party/robin-map/include/tsl/robin_map.h" +#include #import "lock.h" #import "objc/runtime.h" #import "objc/blocks_runtime.h" -- 2.34.0 ests/guix-authenticate.sh?id=6addd57324fcb6fa008c9363685a596ca62b149a'>diff
AgeCommit message (Expand)Author
2020-09-15authenticate: Encode strings as ISO-8859-1....Fixes <https://bugs.gnu.org/43421>. * guix/scripts/authenticate.scm (read-command): Decode strings as ISO-8859-1, not UTF-8. (guix-authenticate)[send-reply]: Encode strings as ISO-8859-1, not UTF-8. * tests/guix-authenticate.sh: Add test. Ludovic Courtès
2020-09-14daemon: Spawn 'guix authenticate' once for all....Previously, we'd spawn 'guix authenticate' once for each item that has to be signed (when exporting) or authenticated (when importing). Now, we spawn it once for all and then follow a request/reply protocol. This reduces the wall-clock time of: guix archive --export -r $(guix build coreutils -d) from 30s to 2s. * guix/scripts/authenticate.scm (sign-with-key): Return the signature instead of displaying it. Raise a &formatted-message instead of calling 'leave'. (validate-signature): Likewise. (read-command): New procedure. (define-enumerate-type, reply-code): New macros. (guix-authenticate)[send-reply]: New procedure. Change to read commands from current-input-port. * nix/libstore/local-store.cc (runAuthenticationProgram): Remove. (authenticationAgent, readInteger, readAuthenticateReply): New functions. (signHash, verifySignature): Rewrite in terms of the agent. * tests/store.scm ("import not signed"): Remove 'pk' call. ("import signed by unauthorized key"): Check the error message of C. * tests/guix-authenticate.sh: Rewrite using the new protocol. fixlet Ludovic Courtès
2020-09-11daemon: Simplify interface with 'guix authenticate'....There's no reason at this point to mimic the calling convention of the 'openssl' command. * nix/libstore/local-store.cc (LocalStore::exportPath): Add only "sign" and HASH to ARGS. Remove 'tmpDir' and 'hashFile'. (LocalStore::importPath): Add only "verify" and SIGNATURE to * guix/scripts/authenticate.scm (guix-authenticate): Adjust accordingly; remove the OpenSSL-style clauses. (read-hash-data): Remove. (sign-with-key): Replace 'port' with 'sha256' and adjust accordingly. (validate-signature): Export SIGNATURE to be a canonical sexp. * tests/guix-authenticate.sh: Adjust tests accordingly. Ludovic Courtès