Package: release.debian.org
Severity: normal
Tags: bookworm
User: release.debian....@packages.debian.org
Usertags: pu
X-Debbugs-Cc: gen...@packages.debian.org, sanv...@debian.org
Control: affects -1 + src:gensim

[ Reason ]
This upload fixes a FTBFS bug in which one test fails on single-cpu systems.

[ Impact ]
Anybody trying to build the package on a single-cpu system will find
that the package unexpectedly fails to build.

[ Tests ]
I've checked that the package builds again.

[ Risks ]
Very low. The change is a one-line fix in a buggy test which
does not change the program in any way.

[ Checklist ]
  [X] *all* changes are documented in the d/changelog
  [X] I reviewed all changes and I approve them
  [X] attach debdiff against the package in (old)stable
  [X] the issue is verified as fixed in unstable

[ Changes ]
The test which failed has been fixed to match real implementation.

[ Other info ]
- Will wait for approval before upload and commit to salsa.
- There is not a Debian bug because I fixed this directly in unstable
via team upload, being it a trivial change, but I also forwarded the issue to 
github.
diff -Nru gensim-4.2.0+dfsg/debian/changelog gensim-4.2.0+dfsg/debian/changelog
--- gensim-4.2.0+dfsg/debian/changelog  2022-05-05 06:50:46.000000000 +0200
+++ gensim-4.2.0+dfsg/debian/changelog  2025-01-01 12:55:00.000000000 +0100
@@ -1,3 +1,10 @@
+gensim (4.2.0+dfsg-1+deb12u1) bookworm; urgency=medium
+
+  * Team upload.
+  * Fix build on single-CPU systems.
+
+ -- Santiago Vila <sanv...@debian.org>  Wed, 01 Jan 2025 12:55:00 +0100
+
 gensim (4.2.0+dfsg-1) unstable; urgency=medium
 
   * New upstream release.
diff -Nru 
gensim-4.2.0+dfsg/debian/patches/make-testprocesses-match-implementation.patch 
gensim-4.2.0+dfsg/debian/patches/make-testprocesses-match-implementation.patch
--- 
gensim-4.2.0+dfsg/debian/patches/make-testprocesses-match-implementation.patch  
    1970-01-01 01:00:00.000000000 +0100
+++ 
gensim-4.2.0+dfsg/debian/patches/make-testprocesses-match-implementation.patch  
    2025-01-01 12:55:00.000000000 +0100
@@ -0,0 +1,16 @@
+Description: Make testProcesses match implementation
+Author: Santiago Vila <sanv...@debian.org>
+Forwarded: 
https://github.com/piskvorky/gensim/pull/3564/commits/f45ca29351d36b5c4fea3a1441cf3c9b2b653ae8
+Last-Update: 2024-11-11
+
+--- a/gensim/test/test_coherencemodel.py
++++ b/gensim/test/test_coherencemodel.py
+@@ -148,7 +148,7 @@
+             topics=self.topics1, corpus=self.corpus, 
dictionary=self.dictionary, coherence='u_mass'
+         )
+ 
+-        model, used_cpus = get_model(), mp.cpu_count() - 1
++        model, used_cpus = get_model(),  max(1, mp.cpu_count() - 1)
+         self.assertEqual(model.processes, used_cpus)
+         for p in range(-2, 1):
+             self.assertEqual(get_model(processes=p).processes, used_cpus)
diff -Nru gensim-4.2.0+dfsg/debian/patches/series 
gensim-4.2.0+dfsg/debian/patches/series
--- gensim-4.2.0+dfsg/debian/patches/series     2022-05-05 05:25:10.000000000 
+0200
+++ gensim-4.2.0+dfsg/debian/patches/series     2025-01-01 12:55:00.000000000 
+0100
@@ -4,3 +4,4 @@
 0002-Skip-tests-that-load-tests-via-data_path.patch
 0003-Only-load-data-for-train_gensim-when-it-is-being-use.patch
 0004-Make-lee_corpus_list-initialised-on-first-access.patch
+make-testprocesses-match-implementation.patch

Reply via email to