diff options
Diffstat (limited to 'misc/shimmy/files')
3 files changed, 80 insertions, 0 deletions
diff --git a/misc/shimmy/files/patch-cargo-crates_shimmy-llama-cpp-sys-2-0.1.123_build.rs b/misc/shimmy/files/patch-cargo-crates_shimmy-llama-cpp-sys-2-0.1.123_build.rs new file mode 100644 index 000000000000..3c6a0ab9435a --- /dev/null +++ b/misc/shimmy/files/patch-cargo-crates_shimmy-llama-cpp-sys-2-0.1.123_build.rs @@ -0,0 +1,38 @@ +--- cargo-crates/shimmy-llama-cpp-sys-2-0.1.123/build.rs.orig 2006-07-24 01:21:28 UTC ++++ cargo-crates/shimmy-llama-cpp-sys-2-0.1.123/build.rs +@@ -20,6 +20,7 @@ enum TargetOs { + Apple(AppleVariant), + Linux, + Android, ++ FreeBSD, + } + + macro_rules! debug_log { +@@ -55,6 +56,8 @@ fn parse_target_os() -> Result<(TargetOs, String), Str + Ok((TargetOs::Android, target)) + } else if target.contains("linux") { + Ok((TargetOs::Linux, target)) ++ } else if target.contains("freebsd") { ++ Ok((TargetOs::FreeBSD, target)) + } else { + Err(target) + } +@@ -648,7 +651,7 @@ fn main() { + config.cflag("/FS"); + config.cxxflag("/FS"); + } +- TargetOs::Linux => { ++ TargetOs::Linux | TargetOs::FreeBSD => { + println!("cargo:rustc-link-lib=vulkan"); + } + _ => (), +@@ -754,6 +757,9 @@ fn main() { + } + TargetOs::Linux => { + println!("cargo:rustc-link-lib=dylib=stdc++"); ++ } ++ TargetOs::FreeBSD => { ++ println!("cargo:rustc-link-lib=dylib=c++"); + } + TargetOs::Apple(variant) => { + println!("cargo:rustc-link-lib=framework=Foundation"); diff --git a/misc/shimmy/files/patch-cargo-crates_shimmy-llama-cpp-sys-2-0.1.123_llama.cpp_ggml_src_ggml-cpu_CMakeLists.txt b/misc/shimmy/files/patch-cargo-crates_shimmy-llama-cpp-sys-2-0.1.123_llama.cpp_ggml_src_ggml-cpu_CMakeLists.txt new file mode 100644 index 000000000000..10d472460f21 --- /dev/null +++ b/misc/shimmy/files/patch-cargo-crates_shimmy-llama-cpp-sys-2-0.1.123_llama.cpp_ggml_src_ggml-cpu_CMakeLists.txt @@ -0,0 +1,18 @@ +--- cargo-crates/shimmy-llama-cpp-sys-2-0.1.123/llama.cpp/ggml/src/ggml-cpu/CMakeLists.txt.orig 2025-10-23 13:50:06 UTC ++++ cargo-crates/shimmy-llama-cpp-sys-2-0.1.123/llama.cpp/ggml/src/ggml-cpu/CMakeLists.txt +@@ -388,13 +388,11 @@ function(ggml_add_cpu_backend_variant_impl tag_name) + string(REGEX REPLACE "POWER *([0-9]+)" "\\1" EXTRACTED_NUMBER "${MATCHED_STRING}") + + if (EXTRACTED_NUMBER GREATER_EQUAL 10) +- list(APPEND ARCH_FLAGS -mcpu=power10 -mpowerpc64) ++ list(APPEND ARCH_FLAGS -mcpu=power10) + elseif (EXTRACTED_NUMBER EQUAL 9) +- list(APPEND ARCH_FLAGS -mcpu=power9 -mpowerpc64) ++ list(APPEND ARCH_FLAGS -mcpu=power9) + elseif (${CMAKE_SYSTEM_PROCESSOR} MATCHES "ppc64le") + list(APPEND ARCH_FLAGS -mcpu=powerpc64le -mtune=native) +- else() +- list(APPEND ARCH_FLAGS -mcpu=native -mtune=native -mpowerpc64) + endif() + elseif(GGML_CPU_ALL_VARIANTS) + # Begin with the lowest baseline diff --git a/misc/shimmy/files/patch-cargo-crates_sys-info-0.9.1_c_info.h b/misc/shimmy/files/patch-cargo-crates_sys-info-0.9.1_c_info.h new file mode 100644 index 000000000000..c29933a825bb --- /dev/null +++ b/misc/shimmy/files/patch-cargo-crates_sys-info-0.9.1_c_info.h @@ -0,0 +1,24 @@ +--- cargo-crates/sys-info-0.9.1/c/info.h.orig 2025-09-19 02:42:40 UTC ++++ cargo-crates/sys-info-0.9.1/c/info.h +@@ -1,6 +1,8 @@ + #ifndef INFO_H_ + #define INFO_H_ + ++#include <stdint.h> ++ + typedef struct LoadAvg { + double one; + double five; +@@ -28,10 +30,10 @@ unsigned int get_cpu_num(void); + const char *get_os_release(void); + + unsigned int get_cpu_num(void); +-unsigned long get_cpu_speed(void); ++uint64_t get_cpu_speed(void); + + LoadAvg get_loadavg(void); +-unsigned long get_proc_total(void); ++uint64_t get_proc_total(void); + + MemInfo get_mem_info(void); + DiskInfo get_disk_info(void); |
