Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package dlib for openSUSE:Factory checked in 
at 2026-06-28 21:07:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/dlib (Old)
 and      /work/SRC/openSUSE:Factory/.dlib.new.11887 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "dlib"

Sun Jun 28 21:07:02 2026 rev:9 rq:1362019 version:20.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/dlib/dlib.changes        2025-06-11 
18:35:22.253217343 +0200
+++ /work/SRC/openSUSE:Factory/.dlib.new.11887/dlib.changes     2026-06-28 
21:07:34.924192787 +0200
@@ -1,0 +2,8 @@
+Thu Jun 25 15:26:06 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Use build/pyproject macros to build and install the module.
+- Actually run the numpy tests.
+- Add patch support-python-3.14.patch:
+  * Support Python 3.14 refcount changes.
+
+-------------------------------------------------------------------

New:
----
  support-python-3.14.patch

----------(New B)----------
  New:- Actually run the numpy tests.
- Add patch support-python-3.14.patch:
  * Support Python 3.14 refcount changes.
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ dlib.spec ++++++
--- /var/tmp/diff_new_pack.oPCOb7/_old  2026-06-28 21:07:35.460210848 +0200
+++ /var/tmp/diff_new_pack.oPCOb7/_new  2026-06-28 21:07:35.460210848 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package dlib
 #
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,9 +25,15 @@
 License:        BSL-1.0
 URL:            https://github.com/davisking/dlib
 Source:         
%{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+# PATCH-FIX-OPENSUSE Support Python 3.14 refcounting changes
+Patch0:         support-python-3.14.patch
+BuildRequires:  %{python_module build}
 BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module numpy}
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  cblas-devel
 BuildRequires:  cmake
 BuildRequires:  fdupes
@@ -96,7 +102,7 @@
 This package provides a module to allow importing and using dlib from Python.
 
 %prep
-%setup -q -n dlib-%{version}
+%autosetup -p1 -n dlib-%{version}
 
 %build
 export CXX=g++
@@ -105,16 +111,16 @@
 %cmake -DUSE_AVX_INSTRUCTIONS:BOOL=OFF -DUSE_SSE4_INSTRUCTIONS:BOOL=OFF
 %cmake_build
 popd
-# cannot use pyproject_* macros because we need to pass cmake options to 
setup.py using --set
+# cannot use pyproject_wheel macro because we need to pass cmake options to 
setup.py using --set, so build it by hand per Python version
 # Note that setting these to `--yes` does not enable them unconditionally, but
 # rather makes them host machine dependent (boo#1223168)
-%python_build --no USE_AVX_INSTRUCTIONS --no USE_SSE4_INSTRUCTIONS
+%python_exec -m build -wn -o build -C--global-option="--no 
USE_AVX_INSTRUCTIONS --no USE_SSE4_INSTRUCTIONS"
 
 %install
 pushd dlib
 %cmake_install
 popd
-%python_install
+%pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitearch}
 %fdupes %{buildroot}%{_includedir}/
 

++++++ support-python-3.14.patch ++++++
Index: dlib-20.0/tools/python/test/test_numpy_returns.py
===================================================================
--- dlib-20.0.orig/tools/python/test/test_numpy_returns.py
+++ dlib-20.0/tools/python/test/test_numpy_returns.py
@@ -56,7 +56,7 @@ def test_regression_issue_1220_get_face_
     # we expect two references:
     # 1.) the local variable
     # 2.) the temporary passed to getrefcount
-    assert sys.getrefcount(face_chip) == 2
+    assert sys.getrefcount(face_chip) == 1 + int(sys.version_info < (3, 14))
 
 
 @pytest.mark.skipif(not utils.is_numpy_installed(), reason="requires numpy")
@@ -67,6 +67,6 @@ def test_regression_issue_1220_get_face_
     """
     face_chips = get_test_face_chips()
     count = sys.getrefcount(face_chips)
-    assert count == 2
+    assert count == 1 + int(sys.version_info < (3, 14))
     count = sys.getrefcount(face_chips[0])
     assert count == 2

Reply via email to