diff --git a/ollama.changes b/ollama.changes index db2a90b..93a2c5c 100644 --- a/ollama.changes +++ b/ollama.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Dec 12 14:00:56 UTC 2024 - Bernhard Wiedemann + +- Add reproducible.patch for deterministic .gz creation (boo#1047218) + ------------------------------------------------------------------- Sat Dec 07 18:24:04 UTC 2024 - Eyad Issa diff --git a/ollama.spec b/ollama.spec index bfd6b79..8124210 100644 --- a/ollama.spec +++ b/ollama.spec @@ -27,6 +27,7 @@ Source1: vendor.tar.zstd Source2: ollama.service Source3: %{name}-user.conf Patch1: 01-build-verbose.patch +Patch2: reproducible.patch BuildRequires: cmake >= 3.24 BuildRequires: git BuildRequires: sysuser-tools diff --git a/reproducible.patch b/reproducible.patch new file mode 100644 index 0000000..6066adc --- /dev/null +++ b/reproducible.patch @@ -0,0 +1,13 @@ +diff --git a/llama/make/Makefile.default b/llama/make/Makefile.default +index 6a9b9ef..2ab7dfe 100644 +--- a/llama/make/Makefile.default ++++ b/llama/make/Makefile.default +@@ -42,7 +42,7 @@ $(RUNNERS_DIST_DIR)/%: $(RUNNERS_BUILD_DIR)/% + + $(RUNNERS_PAYLOAD_DIR)/%/ollama_llama_server$(EXE_EXT).gz: $(RUNNERS_BUILD_DIR)/%/ollama_llama_server$(EXE_EXT) + @-mkdir -p $(dir $@) +- ${GZIP} --best -c $< > $@ ++ ${GZIP} -n --best -c $< > $@ + + clean: + rm -f $(BUILD_RUNNERS) $(DIST_RUNNERS) $(PAYLOAD_RUNNERS)