Your message dated Fri, 24 Nov 2023 14:32:12 +0000
with message-id <e1r6xe4-00c7ip...@fasolo.debian.org>
and subject line Bug#1055625: fixed in pyzoltan 1.0.1-5+deb12u1
has caused the Debian Bug report #1055625,
regarding pyzoltan: FTBFS (not enough slots available)
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
1055625: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1055625
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: src:pyzoltan
Version: 1.0.1-5
Severity: important
Tags: ftbfs
Dear maintainer:
During a mass-rebuild of all packages in bookworm, this
package failed to build in this way:
[...]
raise RuntimeError(msg)
E RuntimeError: test geometric_partitioner.py failed with returncode 1
pyzoltan/tools/run_parallel_script.py:54: RuntimeError
----------------------------- Captured stdout call -----------------------------
running test: ['mpiexec', '-n', '2', '/usr/bin/python3.11',
'/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyzoltan/build/pyzoltan/core/tests/geometric_partitioner.py']
--------------------------------------------------------------------------
There are not enough slots available in the system to satisfy the 2
slots that were requested by the application:
/usr/bin/python3.11
Either request fewer slots for your application, or make more slots
available for use.
[...]
Apparently the package is assuming I have at least 2 CPUs,
but I have only one, and build-essential does not imply multi-core.
I tried to fix this by honoring parallel=n in DEB_BUILD_OPTIONS,
since that's the recommended way to support parallelism
when building Debian packages.
The result is in the attached patches, but they don't work.
When I use those patches, build with a single-cpu now works,
but build in my desktop PC, which has 6 cores (12 threads)
fails in this way:
---------------------------------------------------------------
pyzoltan/tools/run_parallel_script.py:56: RuntimeError
----------------------------- Captured stdout call -----------------------------
running test: ['mpiexec', '-n', '12', '/usr/bin/python3.11',
'/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyzoltan/build/pyzoltan/core/tests/geometric_partitioner.py']
--------------------------------------------------------------------------
There are not enough slots available in the system to satisfy the 12
slots that were requested by the application:
---------------------------------------------------------------
Considering that the package takes less than one minute to build,
my proposal to fix this (for everybody) would be to just disable
parallelism. Honoring parallel=n in DEB_BUILD_OPTIONS makes
sense for big packages (or even medium-sized). For small packages
like this one, there is not a great saving.
To reproduce the problem please try GRUB_CMDLINE_LINUX="nr_cpus=1",
that's an extremely easy way to test it in a machine with a single CPU.
[ Note: I'd like to fix this in stable, and I will gladly care
about the stable upload, but once we know how to fix this properly
in trixie/sid ].
Thanks.
--- a/debian/rules
+++ b/debian/rules
@@ -4,7 +4,11 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export USE_TRILINOS=1
export ZOLTAN_INCLUDE=/usr/include/trilinos
export ZOLTAN_LIBRARY=/usr/lib
-NPROCS?=2
+
+NPROCS = 1
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+ NPROCS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+endif
export NPROCS
export PYBUILD_NAME=pyzoltan
--- /dev/null
+++ b/debian/patches/0004-fix-nprocs.patch
@@ -0,0 +1,20 @@
+--- pyzoltan-1.0.1.orig/pyzoltan/tools/run_parallel_script.py
++++ pyzoltan-1.0.1/pyzoltan/tools/run_parallel_script.py
+@@ -4,6 +4,8 @@ from subprocess import Popen, PIPE
+ import sys
+ from threading import Timer
+
++import os
++nprocs = int(os.environ.get('NPROCS', '1'))
+
+ def get_directory(file):
+ return dirname(abspath(file))
+@@ -14,7 +16,7 @@ def kill_process(process):
+ process.kill()
+
+
+-def run(filename, args=None, nprocs=2, timeout=30.0, path=None):
++def run(filename, args=None, nprocs=nprocs, timeout=30.0, path=None):
+ """Run a python script with MPI or in serial (if nprocs=1). Kill process
+ if it takes longer than the specified timeout.
+
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
0001-Fix-nprocs.patch
0002-Package-data.patch
0003-Spelling.patch
+0004-fix-nprocs.patch
--- End Message ---
--- Begin Message ---
Source: pyzoltan
Source-Version: 1.0.1-5+deb12u1
Done: Santiago Vila <sanv...@debian.org>
We believe that the bug you reported is fixed in the latest version of
pyzoltan, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1055...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Santiago Vila <sanv...@debian.org> (supplier of updated pyzoltan package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sun, 12 Nov 2023 23:25:00 +0100
Source: pyzoltan
Architecture: source
Version: 1.0.1-5+deb12u1
Distribution: bookworm
Urgency: medium
Maintainer: Debian Science Maintainers
<debian-science-maintain...@lists.alioth.debian.org>
Changed-By: Santiago Vila <sanv...@debian.org>
Closes: 1055625
Changes:
pyzoltan (1.0.1-5+deb12u1) bookworm; urgency=medium
.
* Team upload.
* debian/rules: Set NPROC to 1 so that the package may be
built on systems with a single core. Closes: #1055625.
Checksums-Sha1:
78f174c3b931fc06dc8920218b4327360b73e7d7 1861 pyzoltan_1.0.1-5+deb12u1.dsc
f1fb03a66e3838118b087983c1ff9b2d015cf54f 4416
pyzoltan_1.0.1-5+deb12u1.debian.tar.xz
2196d8311f034db082c44b7cbf7cbf2a65957467 8584
pyzoltan_1.0.1-5+deb12u1_source.buildinfo
Checksums-Sha256:
cc5f728c5e06a22c58afb52a518c539624dd0bed912e8c2f1a70b7a90ac12494 1861
pyzoltan_1.0.1-5+deb12u1.dsc
6b98470fc1f6eb3ad720b70c61ce5600c298d249d89bc4070a3edf28587655c6 4416
pyzoltan_1.0.1-5+deb12u1.debian.tar.xz
4b30df72aaf8fc187f587dc504b1eebcbf067e8e956acd13b9b05bf1668b5494 8584
pyzoltan_1.0.1-5+deb12u1_source.buildinfo
Files:
6d634cacc97405952edf0787d5f2c957 1861 python optional
pyzoltan_1.0.1-5+deb12u1.dsc
a48561caad343c1d44a04a627f068107 4416 python optional
pyzoltan_1.0.1-5+deb12u1.debian.tar.xz
063db29444f59b9651c57d2a6c6674e7 8584 python optional
pyzoltan_1.0.1-5+deb12u1_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCgAdFiEE1Uw7+v+wQt44LaXXQc5/C58bizIFAmVRU4YACgkQQc5/C58b
izKsUQf/Tm28AZ3+R7mzQZl1q8UMAhXVZflY/hwI3N3CEMvMLXgGEHO9EJCDVj73
uvWF2mzuSpUgqNYzsTfRtmY9AZvVFJL0olW5/bJNNGT4Oin3plFOgMw/au6dq9o1
JqTrtSAPayfn7i6FWws71f4LQqTWnrimrwlLCHI/szpjX0V0Qdm6xCCA3zs3MidJ
1gCACdigY12HstJ0TdQqt79p4cVDD11Q73ObWnhGasa7IaLziT2CNh2EOsWTo2a6
6qmsoRzRMhUaYkW7NNjcb/YIbPvgfUdtlH8/37mT1eGG/Ni0MeNcF+LlHKT56zEj
DxhsKLtdRy/XIGZ5dkJA7/cva4OjuA==
=Xa3s
-----END PGP SIGNATURE-----
--- End Message ---
--
debian-science-maintainers mailing list
debian-science-maintainers@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers