Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-xgrammar for openSUSE:Factory
checked in at 2026-09-04 12:40:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-xgrammar (Old)
and /work/SRC/openSUSE:Factory/.python-xgrammar.new.1265 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-xgrammar"
Fri Sep 4 12:40:21 2026 rev:3 rq:1375572 version:0.2.5
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-xgrammar/python-xgrammar.changes
2026-07-24 00:43:08.839254204 +0200
+++
/work/SRC/openSUSE:Factory/.python-xgrammar.new.1265/python-xgrammar.changes
2026-09-04 12:41:37.549146135 +0200
@@ -1,0 +2,8 @@
+Tue Aug 18 10:40:32 UTC 2026 - Bernhard Wiedemann <[email protected]>
+
+- Exclude the static libxgrammar.a and headers from the wheel
+ instead of deleting them in %install, so that dist-info/RECORD
+ no longer retains the varying checksum of the unreproducible
+ fat-LTO static library
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-xgrammar.spec ++++++
--- /var/tmp/diff_new_pack.aOtY2z/_old 2026-09-04 12:41:38.362174686 +0200
+++ /var/tmp/diff_new_pack.aOtY2z/_new 2026-09-04 12:41:38.363174721 +0200
@@ -63,18 +63,17 @@
%build
export CMAKE_GENERATOR=Ninja
+# Exclude the internal C++ build artifacts (headers plus the static
+# libxgrammar.a, unused at runtime) from the wheel instead of deleting them in
+# %%install: the fat-LTO .a is not reproducible (random .gnu.lto_* section
+# names, ar timestamps) and deleting it after the fact left its varying
+# checksum behind in dist-info/RECORD.
+export SKBUILD_WHEEL_EXCLUDE='**.a;**.h'
%pyproject_wheel
%install
%pyproject_install
-# The wheel ships internal C++ build artifacts (headers plus the static
-# libxgrammar.a) that are not used at runtime by the loadable bindings module;
-# drop them so they neither bloat the package nor trip the devel-file/LTO
-# rpmlint checks.
-%{python_expand find %{buildroot}%{$python_sitearch} -name '*.h' -delete
-find %{buildroot}%{$python_sitearch} -name '*.a' -delete
-$python -m compileall -q -f -o 0 -o 1 --invalidation-mode unchecked-hash
%{buildroot}%{$python_sitearch}/xgrammar
-}
+%{python_expand $python -m compileall -q -f -o 0 -o 1 --invalidation-mode
unchecked-hash %{buildroot}%{$python_sitearch}/xgrammar}
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check