|
| 1 | +# Redis for macOS (Apple Silicon), no-TLS build |
| 2 | + |
| 3 | +`redis-server-7.2-darwin-arm64` is Redis 7.2.3 for Apple Silicon, built without TLS, so it has no |
| 4 | +OpenSSL dependency (`otool -L` lists only `libSystem`). |
| 5 | + |
| 6 | +## Why it is here |
| 7 | + |
| 8 | +The Redis binary bundled in the `embedded-redis` library for Apple Silicon links Homebrew's OpenSSL |
| 9 | +and will not start on a Mac without it: |
| 10 | + |
| 11 | + dyld: Library not loaded: /opt/homebrew/opt/openssl@3/lib/libssl.3.dylib |
| 12 | + |
| 13 | +Standalone Firefly (`OP_standaloneEnabled=true`) on Apple Silicon uses this binary instead. |
| 14 | +Linux, Intel Macs and Docker are unchanged. Firefly does not use Redis TLS. |
| 15 | + |
| 16 | +## Where it came from |
| 17 | + |
| 18 | +- A third-party build ("HankCP") distributed in the embedded-redis project, which is also the |
| 19 | + library's `ExecutableProvider.REDIS_7_2_MACOSX_14_SONOMA_HANKCP`: |
| 20 | + https://github.com/codemonstur/embedded-redis/tree/master/src/main/binaries |
| 21 | +- `./redis-server-7.2-darwin-arm64 --version` reports `v=7.2.3 sha=7f4bae81:0`. That commit is the |
| 22 | + official redis/redis tag 7.2.3, and `:0` means a clean checkout. |
| 23 | +- Built on macOS 14 (minimum macOS 14.0), ad-hoc signed, 2,338,096 bytes. |
| 24 | +- SHA-256: `a4a0078c060895140d8277877cec64ef414702af1fbc53dc3b3d7f1d6700dced` |
| 25 | + |
| 26 | +## How to get it |
| 27 | + |
| 28 | +The URL below is pinned to a commit, so the content cannot change: |
| 29 | + |
| 30 | + curl -L -o redis-server-7.2-darwin-arm64 \ |
| 31 | + https://github.com/codemonstur/embedded-redis/raw/4a83d18637478bfffef191648d6e9c36a708a347/src/main/binaries/redis-server-7.2-darwin-arm64 |
| 32 | + shasum -a 256 redis-server-7.2-darwin-arm64 # must match the SHA-256 above |
| 33 | + chmod +x redis-server-7.2-darwin-arm64 |
| 34 | + otool -L redis-server-7.2-darwin-arm64 # only /usr/lib/libSystem.B.dylib |
| 35 | + ./redis-server-7.2-darwin-arm64 --version # Redis server v=7.2.3 sha=7f4bae81:0 |
| 36 | + |
| 37 | +Use curl, not a browser. A browser adds `com.apple.quarantine`, and macOS kills a non-notarized |
| 38 | +binary that has it (the process just dies, exit 137). If that happened: |
| 39 | + |
| 40 | + xattr -d com.apple.quarantine redis-server-7.2-darwin-arm64 |
| 41 | + |
| 42 | +## License |
| 43 | + |
| 44 | +Redis 7.2.3 is BSD-3-Clause. The license text must accompany binary distributions: |
| 45 | + |
| 46 | + Copyright (c) 2006-2020, Salvatore Sanfilippo |
| 47 | + All rights reserved. |
| 48 | + |
| 49 | + Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: |
| 50 | + |
| 51 | + * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. |
| 52 | + * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. |
| 53 | + * Neither the name of Redis nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. |
| 54 | + |
| 55 | + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
0 commit comments