From 3cf58f031369cd7abddff66447f75152d4a566bf Mon Sep 17 00:00:00 2001 From: jwinterm Date: Sat, 29 Aug 2026 14:28:09 -0400 Subject: [PATCH] cmake: mkdir src/assets/tor before the TOR_DIR copy (untracked dir; BSD cp usage error evades the ret==1 check) --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6a3bb703..101fe0ec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -148,6 +148,10 @@ if(TOR_DIR) message(STATUS "Embedded Tor version: ${TOR_VERSION}") + # wowlet: the target dir is not tracked in git — create it (BSD cp's usage + # error exits 64, which the ret check below does not catch) + execute_process(COMMAND bash -c "mkdir -p ${CMAKE_CURRENT_SOURCE_DIR}/src/assets/tor") + # Always copy Tor when doing a reproducible build to prevent old versions from getting included if (REPRODUCIBLE) set(TOR_COPY_CMD "cp -a ${TOR_DIR}/* ${CMAKE_CURRENT_SOURCE_DIR}/src/assets/tor")