Bug#806653: libtexttools: FTBFS when built with dpkg-buildpackage -A (dh_ada_library fails)

2015-12-05 Thread Nicolas Boulenguez
Package: src:libtexttools
Followup-For: Bug #806653
Control: tag -1 + pending

Hello.
The guilty is actually dh-ada-library. With the -i option, it does
nothing as expected, but attempts to parse project files nevertheless.
I have uploaded a fix in dh-ada-library-6.6.



Bug#806653: libtexttools: FTBFS when built with dpkg-buildpackage -A (dh_ada_library fails)

2015-11-29 Thread Santiago Vila
Package: src:libtexttools
Version: 2.1.0-6
User: sanv...@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 build-indep
dh build-indep --with ada-library
   dh_testdir -i
 fakeroot debian/rules binary-indep
dh binary-indep --with ada-library
   debian/rules build-indep
make[1]: Entering directory '/<>'
dh build-indep --with ada-library
   dh_testdir -i
make[1]: Leaving directory '/<>'
   dh_testroot -i
   dh_prep -i
   dh_installdocs -i
   dh_installchangelogs -i
   dh_installexamples -i
   dh_ada_library -i
dh_ada_library: project file "texttools.gpr" not found in 
.::/usr/share/ada/adainclude/
debian/rules:34: recipe for target 'binary-indep' failed
make: *** [binary-indep] Error 4
dpkg-buildpackage: error: fakeroot debian/rules binary-indep gave error exit 
status 2


Sorry not to have a fix, as I am reporting many bugs similar to
this one. The common hints are:

* If the only architecture-independent packages are dummy transitional
ones and they were released with jessie, the easy fix is to drop them
now.

* When using "dh", it is allowed to use (independently)
optional targets override_dh_foo-arch and override_dh_foo-indep
(for several values of "foo").


Once that both "dpkg-buildpackage -A" and "dpkg-buildpackage -B" work
properly, the package would be suitable to be uploaded in source-only
form if you wish.

Thanks.