Your message dated Sat, 11 Nov 2023 08:23:46 +0000
with message-id <e1r1jho-0009jh...@fasolo.debian.org>
and subject line Bug#1055625: fixed in pyzoltan 1.0.1-7
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-7
Done: Antonio Valentino <antonio.valent...@tiscali.it>
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.
Antonio Valentino <antonio.valent...@tiscali.it> (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: Sat, 11 Nov 2023 07:36:24 +0000
Source: pyzoltan
Architecture: source
Version: 1.0.1-7
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers
<debian-science-maintain...@lists.alioth.debian.org>
Changed-By: Antonio Valentino <antonio.valent...@tiscali.it>
Closes: 1055625
Changes:
pyzoltan (1.0.1-7) unstable; urgency=medium
.
* debian/rules:
- Set NPROC to 1 to be able to work with builders with
a single core (Closes: #1055625).
* debian/control:
- Do not use the undefined ${python3:Recommends} and
${python3:Suggests}.
Checksums-Sha1:
7a28932f28a96c2cde90ae9b22bf4511097062e8 2268 pyzoltan_1.0.1-7.dsc
3c188d2e283a0db400906519a357be4093f29498 4664 pyzoltan_1.0.1-7.debian.tar.xz
151c3574812602dbaac86e572fd62edb29585689 9354 pyzoltan_1.0.1-7_amd64.buildinfo
Checksums-Sha256:
3faf0f785ba9b7be9dc775ea713546475a1e065c9ccb39d99fa6507ef8ac7fa5 2268
pyzoltan_1.0.1-7.dsc
763f8e50d216bd15e7a1dada22d775ca7b20a2bbc14b2244442cf100932affa2 4664
pyzoltan_1.0.1-7.debian.tar.xz
6d93e63eca302e0449ca040673157392728328121bf459c13017d5112beea8f0 9354
pyzoltan_1.0.1-7_amd64.buildinfo
Files:
9d33a293804582673955d51283665cf1 2268 python optional pyzoltan_1.0.1-7.dsc
3f8918c6445e0d87ed777479952446b3 4664 python optional
pyzoltan_1.0.1-7.debian.tar.xz
28167101ec2d8186f0f5223c27707d94 9354 python optional
pyzoltan_1.0.1-7_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJRBAEBCgA7FiEEO3DyCaX/1okDxHLF6/SKslePmBIFAmVPMj8dHGFudG9uaW8u
dmFsZW50aW5vQHRpc2NhbGkuaXQACgkQ6/SKslePmBJUnhAAnRbVpBuhf5n/xuFQ
yXFTdhprVi8DTLfqUqlii2DC/v694Xjth1X57CjTUap8NX5fcOpbQwRZOOsFV8D8
68au5la+sSXb7xrCjkpTzVoi12Kpyjs2HivVETNLRvOdL6RB0QQj1nXWvNP6O6OY
Y2lq0ybHgMjN8CvOuwNJMdKlSsBkEoJF4egI6OckIClurNnGWzQZI9Sy9XBxZiHP
apiLrX2xisBk+0XzKYudZBWuAYBKLwoBS49nG/fz7ZJ2MXDjI/fQzkTfVFy79F7j
rQyXMyLL4qT5XQacZ5PSNuLSx1dKrYKgD06ZAvwGhArEV29VNmeHss1wyHSBI8J1
g8LTjQgkOOVvxSt0itJFlS6dWV4e50ZhgpYtJflall5Iiwk2uVXuKn6BXzlAIS8b
13/yOLkz5NSs6eoomeq7KNjFyMYnZMVsRVDw1xYS60KUbSabHp1bDh0IdNVTm5Rm
P5hFFul/36wB7SBOIgzq0UVTL0k125iSA9wUsgtMvdWJo6avPsbsJNFiTmWhBDjH
CV62YMbkcn/CWiUB5T0weEjDryeeDVUieQ2CwfSHGfO/790HYjrB8lLFvMDJHf7R
lZQrKr/M8O4/YpKsCAAxvTQ2PrnRaWqJW34Zy1ABOuv5LzBXdw5aLppotiuHqs76
7icaJ6nyLGc14CsqLzx4hdAIjEU=
=k1d4
-----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