Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package pgvector for openSUSE:Factory checked in at 2025-01-25 19:12:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/pgvector (Old) and /work/SRC/openSUSE:Factory/.pgvector.new.2316 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "pgvector" Sat Jan 25 19:12:33 2025 rev:2 rq:1240185 version:0.8.0 Changes: -------- --- /work/SRC/openSUSE:Factory/pgvector/pgvector.changes 2025-01-20 17:14:43.534567466 +0100 +++ /work/SRC/openSUSE:Factory/.pgvector.new.2316/pgvector.changes 2025-01-25 19:12:35.040911114 +0100 @@ -1,0 +2,12 @@ +Fri Jan 24 15:07:12 UTC 2025 - Bernhard Wiedemann <bwiedem...@suse.com> + +- Add reproducible.patch to avoid compile-time CPU-detection (boo#1100677) + +------------------------------------------------------------------- +Fri Jan 24 14:10:44 UTC 2025 - Marcus Rueckert <mrueck...@suse.de> + +- set OPTFLAGS on the cmdline on the make cmdline to overwrite the + -march=native flag i the make file. %{optflags} is passed via the + pgxs handling and taken from postgresql (boo#1236351) + +------------------------------------------------------------------- New: ---- reproducible.patch BETA DEBUG BEGIN: New: - Add reproducible.patch to avoid compile-time CPU-detection (boo#1100677) BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ pgvector.spec ++++++ --- /var/tmp/diff_new_pack.KkE8Y3/_old 2025-01-25 19:12:35.840943953 +0100 +++ /var/tmp/diff_new_pack.KkE8Y3/_new 2025-01-25 19:12:35.840943953 +0100 @@ -1,7 +1,7 @@ # -# spec file +# spec file for package pgvector # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -40,6 +40,7 @@ Group: Productivity/Databases/Tools URL: https://github.com/pgvector/pgvector Source: https://github.com/pgvector/%{ext_name}/archive/refs/tags/v%{version}.tar.gz#/%{ext_name}-%{version}.tar.gz +Patch0: https://github.com/pgvector/pgvector/pull/764.patch#/reproducible.patch %description Store your vectors with the rest of your data. Supports: @@ -51,6 +52,7 @@ %package devel Summary: Development files for pgvector + %description devel This package holds the development files to build other extensions to support pgvector. @@ -82,4 +84,3 @@ %endif - ++++++ reproducible.patch ++++++ >From a2c6813aa0cfca83d6de93aad61a0e2cae084aee Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" <bwiedem...@suse.de> Date: Fri, 24 Jan 2025 04:10:21 +0100 Subject: [PATCH] Avoid -march=native when reproducible build is wanted See https://reproducible-builds.org/ for why this is good. Without this patch, compiling on different machines produced different binaries, which made verification of results difficult. This patch was done while working on reproducible builds for openSUSE. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7a4b88ca..4681d0f7 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,11 @@ REGRESS = $(patsubst test/sql/%.sql,%,$(TESTS)) REGRESS_OPTS = --inputdir=test --load-extension=$(EXTENSION) # To compile for portability, run: make OPTFLAGS="" -OPTFLAGS = -march=native +ifdef SOURCE_DATE_EPOCH + OPTFLAGS = +else + OPTFLAGS = -march=native +endif # Mac ARM doesn't always support -march=native ifeq ($(shell uname -s), Darwin)