Control: severity 792433 normal
Control: tags 792433 + patch
picca writes ("Bug#792433: dgit sbuild should not failed without build-deps"):
> once checkouted, I tryed to do a
> dgit sbuild
...
> dpkg-checkbuilddeps : dépendances de construction non trouvées : cmake
> doxygen libboost-program-options-dev ocl-icd-opencl-dev
Thanks for the report.
The problem seems to be that while dpkg-buildpackage -S is willing to
run the package clean target when the build-dependencies are
unsatisfied (contrary to policy, and generating a warning),
dpkg-buildpackage -T clean does not have this behaviour.
dgit sbuild needs to clean your working tree, so it can check it
against your HEAD. By default it uses dpkg-buildpackage -T clean to
do this.
I think you can work around this by passing dgit one of
-wg aka --clean=git
-wgf aka --clean=git-force
--dpkg-buildpackage:-d
Or, I think, by applying the patch below - please let me know if it
helps. (You can patch dgit in /usr/bin directly if you want.)
Ian.
diff --git a/dgit b/dgit
index 3e37e2b..89a199d 100755
--- a/dgit
+++ b/dgit
@@ -2670,7 +2670,7 @@ sub quilt_fixup_editor () {
sub clean_tree () {
if ($cleanmode eq 'dpkg-source') {
- runcmd_ordryrun_local @dpkgbuildpackage, qw(-T clean);
+ runcmd_ordryrun_local @dpkgbuildpackage, qw(-d -T clean);
} elsif ($cleanmode eq 'git') {
runcmd_ordryrun_local @git, qw(clean -xdf);
} elsif ($cleanmode eq 'git-ff') {
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]