aboutsummaryrefslogtreecommitdiffstats
path: root/misc/ollama/files/patch-llm_generate_gen__common.sh
diff options
context:
space:
mode:
authorLexi Winter <ivy@FreeBSD.org>2025-12-01 03:19:41 +0000
committerLexi Winter <ivy@FreeBSD.org>2025-12-01 03:19:41 +0000
commit2e80774d0b20d167bc0a9e2b63dafbfb171c0d22 (patch)
tree25f0138e1af8902b92dacc8cce09b267447c17db /misc/ollama/files/patch-llm_generate_gen__common.sh
parentf85f2b2d6e5b7ed869376eb4b180c3a74a5c5da9 (diff)
parent1a30da80670973368b399f2b01fe9c04b91a1273 (diff)
Merge remote-tracking branch 'freebsd/main' into lf/mainlf/main
Diffstat (limited to 'misc/ollama/files/patch-llm_generate_gen__common.sh')
-rw-r--r--misc/ollama/files/patch-llm_generate_gen__common.sh35
1 files changed, 0 insertions, 35 deletions
diff --git a/misc/ollama/files/patch-llm_generate_gen__common.sh b/misc/ollama/files/patch-llm_generate_gen__common.sh
deleted file mode 100644
index 6033d77dc663..000000000000
--- a/misc/ollama/files/patch-llm_generate_gen__common.sh
+++ /dev/null
@@ -1,35 +0,0 @@
---- llm/generate/gen_common.sh.orig 1979-11-30 08:00:00 UTC
-+++ llm/generate/gen_common.sh
-@@ -68,13 +68,8 @@ apply_patches() {
- if [ -n "$(ls -A ../patches/*.diff)" ]; then
- # apply temporary patches until fix is upstream
- for patch in ../patches/*.diff; do
-- for file in $(grep "^+++ " ${patch} | cut -f2 -d' ' | cut -f2- -d/); do
-- (cd ${LLAMACPP_DIR}; git checkout ${file})
-- done
-+ (cd ${LLAMACPP_DIR} && patch -B '' -p1 < ${patch})
- done
-- for patch in ../patches/*.diff; do
-- (cd ${LLAMACPP_DIR} && git apply ${patch})
-- done
- fi
- }
-
-@@ -106,14 +101,8 @@ compress() {
- }
-
- # Keep the local tree clean after we're done with the build
--cleanup() {
-- (cd ${LLAMACPP_DIR}/ && git checkout CMakeLists.txt)
-
-- if [ -n "$(ls -A ../patches/*.diff)" ]; then
-- for patch in ../patches/*.diff; do
-- for file in $(grep "^+++ " ${patch} | cut -f2 -d' ' | cut -f2- -d/); do
-- (cd ${LLAMACPP_DIR}; git checkout ${file})
-- done
-- done
-- fi
-+cleanup() {
-+ echo "cleanup done"
- }
-+