Your message dated Sat, 06 Aug 2011 23:47:09 +0000
with message-id <[email protected]>
and subject line Bug#587885: fixed in debhelper 8.9.4
has caused the Debian Bug report #587885,
regarding add support for running tests in parallel to the cmake build system
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 [email protected]
immediately.)
--
587885: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=587885
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: debhelper
Version: 7.9.3
Severity: wishlist
Tags: patch
Hello,
CTest (CMake test suite runner) as of 2.8 supports running tests in parallel
(-jN) option. This patch adds support for this feature to the debhelper cmake
build system (see commit message).
Fortunately, ctest does not seem to choke on unknown options so this change
should not break CTest 2.6 or earlier. Another issue is "unlimited paralel".
Unlike makefile, CTest parallel is typically not dependency based so running
with huge number of threads (-j999) is likely to run all existing tests in
paralel and if there is a huge number of them, this will kill every machine
which is not a supercomputer. So whoever uses `dpkg-buildpackage -j` (without
parallel limit) may burn. Therefore, feel free to reduce that value if you
wish. IMHO, people using `dpkg-buildpackage -j` (very unwise choice) get what
they asked for and deserve this "lesson".
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (101, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.34-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=lt_LT.UTF-8, LC_CTYPE=lt_LT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages debhelper depends on:
ii binutils 2.20.1-11 The GNU assembler, linker and bina
ii dpkg-dev 1.15.7.2 Debian package development tools
ii file 5.04-2 Determines file type using "magic"
ii html2text 1.3.2a-15 advanced HTML to text converter
ii man-db 2.5.7-3 on-line manual pager
ii perl 5.10.1-13 Larry Wall's Practical Extraction
ii perl-base 5.10.1-13 minimal Perl system
ii po-debconf 1.0.16 tool for managing templates file t
debhelper recommends no packages.
Versions of packages debhelper suggests:
pn dh-make <none> (no description available)
-- no debconf information
>From e74abe3a706d37513889f7722be245ae6c26659e Mon Sep 17 00:00:00 2001
From: Modestas Vainius <[email protected]>
Date: Fri, 2 Jul 2010 05:11:24 +0300
Subject: [PATCH] Add support for running tests in parallel to the cmake build
system.
Pass appropriate -jN option to ctest (via ARGS variable in the Makefile) to
enable support for running tests in parallel. Similarly to makefile build
system, ctest -j1 mode is enforced even when parallel mode in debhelper is not
explicitly enabled.
Unlike make, CTest does not have "unlimited parallel" setting (-j implies -j1).
So in order to simulate unlimited parallel, allow to fork a huge number of
threads instead.
---
Debian/Debhelper/Buildsystem/cmake.pm | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/Debian/Debhelper/Buildsystem/cmake.pm
b/Debian/Debhelper/Buildsystem/cmake.pm
index d4a98f4..3207d24 100644
--- a/Debian/Debhelper/Buildsystem/cmake.pm
+++ b/Debian/Debhelper/Buildsystem/cmake.pm
@@ -50,8 +50,12 @@ sub configure {
sub test {
my $this=shift;
+ # Unlike make, CTest does not have "unlimited parallel" setting (-j
implies
+ # -j1). So in order to simulate unlimited parallel, allow to fork a huge
+ # number of threads instead.
+ my $parallel = ($this->get_parallel() > 0) ? $this->get_parallel() :
999;
$ENV{CTEST_OUTPUT_ON_FAILURE} = 1;
- return $this->SUPER::test(@_);
+ return $this->SUPER::test(@_, "ARGS+=-j$parallel");
}
1
--
1.7.1
--- End Message ---
--- Begin Message ---
Source: debhelper
Source-Version: 8.9.4
We believe that the bug you reported is fixed in the latest version of
debhelper, which is due to be installed in the Debian FTP archive:
debhelper_8.9.4.dsc
to main/d/debhelper/debhelper_8.9.4.dsc
debhelper_8.9.4.tar.gz
to main/d/debhelper/debhelper_8.9.4.tar.gz
debhelper_8.9.4_all.deb
to main/d/debhelper/debhelper_8.9.4_all.deb
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 [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Joey Hess <[email protected]> (supplier of updated debhelper 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 [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Sat, 06 Aug 2011 18:58:59 -0400
Source: debhelper
Binary: debhelper
Architecture: source all
Version: 8.9.4
Distribution: unstable
Urgency: low
Maintainer: Joey Hess <[email protected]>
Changed-By: Joey Hess <[email protected]>
Description:
debhelper - helper programs for debian/rules
Closes: 587885 601590
Changes:
debhelper (8.9.4) unstable; urgency=low
.
* dh: The --before --after --until and --remaining options are deprecated.
Use override targets instead.
* Assume that the package can be cleaned (i.e. the build directory can be
removed) as long as it is built out-of-source tree and can be configured.
This is useful for derivative buildsystems which generate Makefiles.
(Modestas Vainius) Closes: #601590
* dh_auto_test: Run cmake tests in parallel when allowed by
DEB_BUILD_OPTIONS. (Modestas Vainius) Closes: #587885
* dpkg-buildflags is only used to set environment in v9, to avoid
re-breaking packages that were already broken a first time by
dpkg-buildpackage unconditionally setting the environment, and
worked around that by unsetting variables in the rules file.
(Example: numpy)
Checksums-Sha1:
7b86b15b0394c6225ee8c27044dad01c7b3d2f3b 1568 debhelper_8.9.4.dsc
c6882785367cca7a6b16ca93303071ba136d11f7 378722 debhelper_8.9.4.tar.gz
b6626835812d621c6e0df63c39e2a9fa638bec5e 560830 debhelper_8.9.4_all.deb
Checksums-Sha256:
6ec2fd6a0f82b4c54d1000bfdde8a8d007f1fec391a12e31aa195bb5c20b2e96 1568
debhelper_8.9.4.dsc
befa0ff53fb25f9380ae36c956d50f4939520094607895195344f94f792f29f5 378722
debhelper_8.9.4.tar.gz
e543aada89e34e2f7b2b5089ba90cbbf19b2f5c23b5930535f534878bca5e022 560830
debhelper_8.9.4_all.deb
Files:
2fae06ec79ffd763a7e410b9226ea004 1568 devel optional debhelper_8.9.4.dsc
e01302439082158e61bd4e66cf5da117 378722 devel optional debhelper_8.9.4.tar.gz
46a366398d6bf85d2680a9d17cff8052 560830 devel optional debhelper_8.9.4_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iQIVAwUBTj3NIskQ2SIlEuPHAQjHKg//VesGbgQJwjDEvBcWOLK0pS/pHDqZiAtg
56swan4Gq2YETrQ2quuqgJMTE0Nak5m2ajAqgVLT6gMACxca9wpXC3DgkjWzI7bi
o3RJkvUMmJPexFFLgCE9SlXmAy1oh/5IyirBa04DOmXDyKmQSqESUStMuxm7BJl8
mSIBvBF4+ji/AM6XUMKfWPYXAYk0b3MakvnQqHpCqkhhAd4tE1LrRjL3VmrhZd0G
0kGSc+sx2mo+kQfJCVuqivrN1dLodunNqKpAEtCOkBJMNEyJKUDC28Rdo035PG0z
5/KHBpg6phBDiRleR6uHZVFHeq3E9IOB3kG1GDY4p+uoiwYp6qodl5wQwwHM19Pz
zHOcYabV9LIL/Xj1bBLZsFt3S8+F7+2gmiqzNZJqKbvivCDSIZbk47AUEqLLkNN6
tYRyOVLYzrDu13eVbalwzzRlAHajbP0IQUahFohGLAuEnmtE4OS6FbEV4kNcoeP6
+TR0R40F4wyJi4xHKbV0ODty1+01gvciy/sRqTu7wQwFWBNPqCJrk6xYABg+6mFP
7yxzSvZeG4WFV4UBkH7iXu3RA5yvXxQAnPtvcWSwOyqkJn5FSBFMZzzNB+qTs+aW
WOzm3+wWAU2125LnsQlIrvsZRjT46xMCGMViHpx3xAaeinmCJsrrxk2HJOH8H9K3
2A7oLrcxQP4=
=W/ls
-----END PGP SIGNATURE-----
--- End Message ---