From e0227fc418ed5dd20a09f533322119fdef0ea044 Mon Sep 17 00:00:00 2001 From: shalinib-ibm Date: Wed, 4 Feb 2026 15:42:12 +0530 Subject: [PATCH] Fix GHA failure for v0.13.1 The build-script is executed as a single file without patch file in a CI pipeline. So, downloading the patches directly from git and applying to fix patch not found failure errors. --- o/ollama/ollama_v0.13.1_ubi_9.6.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/o/ollama/ollama_v0.13.1_ubi_9.6.sh b/o/ollama/ollama_v0.13.1_ubi_9.6.sh index a96b4f337d..aa4bc88d78 100644 --- a/o/ollama/ollama_v0.13.1_ubi_9.6.sh +++ b/o/ollama/ollama_v0.13.1_ubi_9.6.sh @@ -70,10 +70,15 @@ git clone $PACKAGE_URL cd $PACKAGE_NAME git checkout $PACKAGE_VERSION -echo "** Applying Power10 Patches..." -patch -p1 < ${SCRIPT_PATH}/build_power_${PACKAGE_VERSION}.patch -patch -p1 < ${SCRIPT_PATH}/set_threads_env_${PACKAGE_VERSION}.patch -patch -p1 < ${SCRIPT_PATH}/enable_mma_${PACKAGE_VERSION}.patch +echo "** Downloading Power10 Patches..." +wget -O build_power.patch https://raw.githubusercontent.com/ppc64le/build-scripts/refs/heads/master/o/ollama/build_power_v0.13.1.patch +wget -O set_threads_env.patch https://raw.githubusercontent.com/ppc64le/build-scripts/refs/heads/master/o/ollama/set_threads_env_v0.13.1.patch +wget -O enable_mma.patch https://raw.githubusercontent.com/ppc64le/build-scripts/refs/heads/master/o/ollama/enable_mma_v0.13.1.patch + +echo "** Applying Patches..." +patch -p1 < build_power.patch +patch -p1 < set_threads_env.patch +patch -p1 < enable_mma.patch # ----------------------------------------------------------------------------- # Build Ollama