From 45aefb63e84fd3c75be7b24264885a53f3fb44b8 Mon Sep 17 00:00:00 2001 From: SulfurNitride Date: Wed, 1 Apr 2026 15:31:43 -0500 Subject: Fix SLR download failures and CMake rebuild detection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace SHA256SUMS verification with Content-Length check for SLR downloads. Valve's CDN frequently serves stale SHA256SUMS that don't match the current archive, causing persistent checksum mismatches. Fix CMake DEPENDS for nak_ffi to glob all .rs sources instead of hardcoding a few files — previously changes to slr.rs (and most other Rust files) were silently ignored by ninja. Also wrap prefix init and runtime commands through SLR pressure-vessel container, and expose Proton install directories to the container. Co-Authored-By: Claude Opus 4.6 (1M context) --- libs/nak_ffi/CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'libs/nak_ffi') diff --git a/libs/nak_ffi/CMakeLists.txt b/libs/nak_ffi/CMakeLists.txt index bdfac9a..72d939f 100644 --- a/libs/nak_ffi/CMakeLists.txt +++ b/libs/nak_ffi/CMakeLists.txt @@ -12,14 +12,17 @@ endif() set(NAK_FFI_DIR ${CMAKE_CURRENT_SOURCE_DIR}) set(NAK_FFI_LIB ${NAK_FFI_DIR}/target/${CARGO_BUILD_TYPE}/libnak_ffi.so) +# Glob all Rust sources so any change triggers a cargo rebuild +file(GLOB_RECURSE NAK_FFI_SOURCES ${NAK_FFI_DIR}/src/*.rs) +file(GLOB_RECURSE NAK_SOURCES ${NAK_FFI_DIR}/../nak/src/*.rs) + add_custom_command( OUTPUT ${NAK_FFI_LIB} COMMAND cargo build ${CARGO_BUILD_FLAGS} WORKING_DIRECTORY ${NAK_FFI_DIR} COMMENT "Building NaK FFI library (Rust)" - DEPENDS ${NAK_FFI_DIR}/Cargo.toml ${NAK_FFI_DIR}/src/lib.rs - ${NAK_FFI_DIR}/../nak/Cargo.toml ${NAK_FFI_DIR}/../nak/src/lib.rs - ${NAK_FFI_DIR}/../nak/src/icons.rs + DEPENDS ${NAK_FFI_DIR}/Cargo.toml ${NAK_FFI_DIR}/../nak/Cargo.toml + ${NAK_FFI_SOURCES} ${NAK_SOURCES} ) add_custom_target(nak_ffi_build DEPENDS ${NAK_FFI_LIB}) -- cgit v1.3.1