Your message dated Sun, 28 Jun 2015 13:04:54 +0000
with message-id <[email protected]>
and subject line Bug#785811: fixed in debhelper 9.20150628
has caused the Debian Bug report #785811,
regarding debhelper: Please add doit*_noerror methods in Buildsystem.pm
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.)
--
785811: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=785811
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: debhelper
Version: 9.20150507
Severity: wishlist
Tags: patch
Dear Maintainer,
Dh_Lib.pm provides a doit_noerror method but Buildsystem.pm doesn't define
similar methods for doit_in_sourcedir and doit_in_builddir. I'm attaching
a patch implementing these methods.
I plan to use doit_in_builddir_noerror in maven-debian-helper [1] where
errors often occur when invoking 'mvn clean', thus preventing the completion
of the clean target.
Thank you,
Emmanuel Bourg
[1]
https://sources.debian.net/src/maven-debian-helper/1.6.11/share/perl/maven.pm/#L115
---
>From 2acd9c295fa4291da041c05d890025d5a079371b Mon Sep 17 00:00:00 2001
From: Emmanuel Bourg <[email protected]>
Date: Wed, 20 May 2015 14:35:08 +0200
Subject: [PATCH] Add doit_in_sourcedir_noerror and doit_in_builddir_noerror in
Buildsystem.pm
---
Debian/Debhelper/Buildsystem.pm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/Debian/Debhelper/Buildsystem.pm b/Debian/Debhelper/Buildsystem.pm
index 3043c79..7f5819f 100644
--- a/Debian/Debhelper/Buildsystem.pm
+++ b/Debian/Debhelper/Buildsystem.pm
@@ -310,6 +310,23 @@ sub doit_in_sourcedir {
return 1;
}
+# Changes working directory to the source directory (if needed),
+# calls print_and_doit(@_) and changes working directory back to the
+# top directory. Errors are ignored.
+sub doit_in_sourcedir_noerror {
+ my $this=shift;
+ if ($this->get_sourcedir() ne '.') {
+ my $sourcedir = $this->get_sourcedir();
+ $this->_cd($sourcedir);
+ print_and_doit_noerror(@_);
+ $this->_cd($this->_rel2rel($this->{cwd}, $sourcedir));
+ }
+ else {
+ print_and_doit_noerror(@_);
+ }
+ return 1;
+}
+
# Changes working directory to the build directory (if needed),
# calls print_and_doit(@_) and changes working directory back to the
# top directory.
@@ -327,6 +344,23 @@ sub doit_in_builddir {
return 1;
}
+# Changes working directory to the build directory (if needed),
+# calls print_and_doit(@_) and changes working directory back to the
+# top directory. Errors are ignored.
+sub doit_in_builddir_noerror {
+ my $this=shift;
+ if ($this->get_buildpath() ne '.') {
+ my $buildpath = $this->get_buildpath();
+ $this->_cd($buildpath);
+ print_and_doit_noerror(@_);
+ $this->_cd($this->_rel2rel($this->{cwd}, $buildpath));
+ }
+ else {
+ print_and_doit_noerror(@_);
+ }
+ return 1;
+}
+
# In case of out of source tree building, whole build directory
# gets wiped (if it exists) and 1 is returned. If build directory
# had 2 or more levels, empty parent directories are also deleted.
--
2.1.4
--- End Message ---
--- Begin Message ---
Source: debhelper
Source-Version: 9.20150628
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.
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.
Niels Thykier <[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: Sun, 28 Jun 2015 13:51:48 +0200
Source: debhelper
Binary: debhelper
Architecture: source all
Version: 9.20150628
Distribution: unstable
Urgency: medium
Maintainer: Debhelper Maintainers <[email protected]>
Changed-By: Niels Thykier <[email protected]>
Description:
debhelper - helper programs for debian/rules
Closes: 726967 740405 785811 788098 788473
Changes:
debhelper (9.20150628) unstable; urgency=medium
.
* Upload to unstable with ddebs support disabled by default.
.
[ Niels Thykier ]
* Buildsystem.pm: Apply patch from Emmanuel Bourg to
provide doit_in_{build,source}dir_noerror methods.
(Closes: #785811)
* Dh_Lib.pm: Promote error_exitcode to a regular exported
subroutine (from an internal one).
* dh_compress: Apply patch from Osamu Aoki to avoid compressing
".xhtml" files and to use a POSIX compliant find expression.
(Closes: #740405)
* dh_makeshlibs: Fix typo in manpage. Thanks to Jakub Wilk for
reporting it. (Closes: #788473)
* dh_auto_test: Run tests by default even during cross-building.
(Closes: #726967)
* dh_gencontrol: Put ddebs in the "debugsym" section.
* dh_strip: Support a new --[no-]ddebs option intended for
packages to disable automatic ddebs.
* dh_strip: Do not create ddebs for "-dbg" packages.
* dh_builddeb/dh_gencontrol: Let dpkg figure out the name
of the ddebs itself now that ddebs uses a ".deb"
extension.
.
[ Thibaut Paumard ]
* Bug fix: "dh_usrlocal leaves directories behind", thanks to Andreas
Beckmann (Closes: #788098).
Checksums-Sha1:
7a8cb5f36c087c71e49063bd6c5888f8c2b445eb 1749 debhelper_9.20150628.dsc
91f6ad0460184d1fad3433d88fc7a4a7191838aa 317804 debhelper_9.20150628.tar.xz
79280dce6b68c4f8c50702f11601ff8e6e4c2e94 817082 debhelper_9.20150628_all.deb
Checksums-Sha256:
83b554662468cde25cb246d57af1a9dd82b981bfe915061412191dae734a9183 1749
debhelper_9.20150628.dsc
8fb59c2a03fa9f6061db8091e7ecaf68c5680495eec05d6c145e3f782b09d68f 317804
debhelper_9.20150628.tar.xz
5fb29fe5a7efbe0451dc7225efc2fd925471747a9a1f6e1b45e0b9d64b53e87d 817082
debhelper_9.20150628_all.deb
Files:
3cbd6e16cd6e97da8a0dcc629bd4c006 1749 devel optional debhelper_9.20150628.dsc
2f4153c555a9cd624fb2e4b7adab216b 317804 devel optional
debhelper_9.20150628.tar.xz
b5a0b54c9adb7360a29b3086c38fd0ed 817082 devel optional
debhelper_9.20150628_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBCAAGBQJVj+9XAAoJEAVLu599gGRCH44P+gLllhq18BDmJP719GGdJ2/f
pb90cnULqiY9hb5AOUnq7o4Qhu46aveUiWDg29sA/Qd+laHjsHH6MhM+kfiIWnn/
4ZVFSLgPe7OCt4v6BSA0bPJy5guKPOeWcnWiWNGQldkAahtOWjRXT8iC+3lOgG3v
BU6qsKbbC3pZXGLuUFiX4sJSb7XZFDUhz1TEx0sg6x1ZYWf+ikgjKfnEzpEwIpA5
bAJZoHQqMjllQcr73+J3xZ5WotqxWC1AXgLklzvWs6UpmaxNoR01hGrptBQdPceD
kynGjWvSaxZKkirojipR3oz1swGremJutGHX/6FTj+mKkv18jY/BRc1ctBFhFXMA
jlJ+5zRfjIaeajb0VDBP5G63E/nvIcTFH6sNHxsM4Zu5L/hjysDbh/Zz1FwtbfDr
aYNCBKSzkMs+l+dufH7UuwoKnmZ0LsERj4LrH9oS4PFOUTTm1KUSZGPUyPYyCzK/
Vi/9T+fTnX78YaM90+iKyrvOdqKOaP7JXHBWBfp0Ozk2JJVvPeED7Bw95rtO1zsv
r/xVyYSZJjwOmvKem44kurXYGESahH/I6rSnSFHgRIgUlRNoadQ47g3LALxuzkS2
/Oggd1QSivMX8D5A1xKoorrulPDYq3OkCljeZxAZE/FvnV/7YSxJlZQhYvLAMujR
fIlO3JMNij+0gFf/V6NL
=djO2
-----END PGP SIGNATURE-----
--- End Message ---