[Python-apps-team] Bug#807021: mercurial: FTBFS when built with dpkg-buildpackage -A (No such file or directory)
Julien Cristau
julien.cristau at logilab.fr
Thu Mar 3 13:57:29 UTC 2016
Control: tag -1 confirmed patch
On Fri, Dec 4, 2015 at 10:19:54 +0000, Santiago Vila wrote:
> Package: src:mercurial
> Version: 3.6.1-1
> User: sanvila at debian.org
> Usertags: binary-indep
> Severity: important
>
> Dear maintainer:
>
> I tried to build this package with "dpkg-buildpackage -A"
> (i.e. only architecture-independent packages), and it failed:
>
> --------------------------------------------------------------------------------
> [...]
> debian/rules override_dh_python2
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_python2
> I: dh_python2 tools:100: replacing shebang in debian/mercurial-common/usr/bin/hg-ssh
> find debian/mercurial/usr/share -type d -empty -delete
> find: `debian/mercurial/usr/share': No such file or directory
> debian/rules:87: recipe for target 'override_dh_python2' failed
Here's a patch to fix this:
Index: debian/rules
===================================================================
--- debian/rules (revision 12868)
+++ debian/rules (working copy)
@@ -85,7 +85,9 @@
override_dh_python2:
dh_python2
- find debian/mercurial/usr/share -type d -empty -delete
+ if test -d debian/mercurial; then \
+ find debian/mercurial/usr/share -type d -empty -delete ; \
+ fi
override_dh_auto_clean: mercurial/__version__.py
cp -a mercurial/__version__.py mercurial/__version__.py.save
Cheers,
Julien
--
Julien Cristau <julien.cristau at logilab.fr>
Logilab http://www.logilab.fr/
Informatique scientifique & gestion de connaissances
More information about the Python-apps-team
mailing list