Bug#809121: netcdf-fortran: FTBFS when built with dpkg-buildpackage -A (No such file or directory)

2015-12-27 Thread Sebastiaan Couwenberg
Control: tags -1 pending

Hi Santiago,

Thanks for reporting this issue, the fix is on its way to unstable.

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1



Bug#809121: netcdf-fortran: FTBFS when built with dpkg-buildpackage -A (No such file or directory)

2015-12-27 Thread Santiago Vila
Package: src:netcdf-fortran
Version: 4.4.2-2
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 autoreconf --parallel
   dh_testdir -i -O--parallel
   dh_autoreconf -i -O--parallel
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'

[... snipped ...]

| |
| Before using netCDF to store important data, test your  |
| build with "make check".|
| |
| NetCDF is tested nightly on many platforms at Unidata   |
| but your platform is probably different in some ways.   |
| |
| If any tests fail, please see the netCDF web site:  |
| http://www.unidata.ucar.edu/software/netcdf/|
| |
| NetCDF is developed and maintained at the Unidata Program   |
| Center. Unidata provides a broad array of data and software |
| tools for use in geoscience education and research. |
| http://www.unidata.ucar.edu |
+-+

make[4]: Leaving directory '/<>'
make[3]: Leaving directory '/<>'
make[2]: Leaving directory '/<>'
make[1]: Leaving directory '/<>'
   debian/rules override_dh_install
make[1]: Entering directory '/<>'
rm -f debian/tmp/usr/lib/*/*.la
dh_install --list-missing
make[1]: Leaving directory '/<>'
   dh_installdocs -i -O--parallel
   debian/rules override_dh_installchangelogs
make[1]: Entering directory '/<>'
dh_installchangelogs RELEASE_NOTES.md
make[1]: Leaving directory '/<>'
   debian/rules override_dh_installexamples
make[1]: Entering directory '/<>'
dh_installexamples
chmod 644 debian/*/usr/share/doc/*/examples/*/*.sh
chmod: cannot access 'debian/*/usr/share/doc/*/examples/*/*.sh': No such file 
or directory
debian/rules:39: recipe for target 'override_dh_installexamples' failed
make[1]: *** [override_dh_installexamples] Error 1
make[1]: Leaving directory '/<>'
debian/rules:11: recipe for target 'binary-indep' failed
make: *** [binary-indep] Error 2
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.