Package: src:postgis
Version: 2.2.0+dfsg-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_testdir
dh_prep -s
dh_autoreconf autoconf
dh_autotools-dev_updateconfig
(set -e; \
for PGVER in ; do \
        mkdir /<<BUILDDIR>>/postgis-2.2.0+dfsg/debian/build-$PGVER; \
        for FILE in `ls /<<BUILDDIR>>/postgis-2.2.0+dfsg|grep -v debian`; do \
                cp -a $FILE 
/<<BUILDDIR>>/postgis-2.2.0+dfsg/debian/build-$PGVER; \
        done; \
done)

[... snipped ...]

mkdir -p sql
cat ../postgis_extension_helper.sql sql_bits/remove_from_extension.sql.in 
sql/tiger_geocoder_upgrade_minor.sql sql_bits/mark_editable_objects.sql.in 
sql_bits/tiger_geocoder_comments.sql ../postgis_extension_helper_uninstall.sql 
> sql/postgis_tiger_geocoder--2.2.0--2.2.0next.sql
mkdir -p sql
cp sql/postgis_tiger_geocoder--2.2.0--2.2.0next.sql 
sql/postgis_tiger_geocoder--2.2.0next--2.2.0.sql
for OLD_VERSION in 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.1.0 2.1.1 
2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0rc1; do \
          cat ../postgis_extension_helper.sql 
sql_bits/remove_from_extension.sql.in sql/tiger_geocoder_upgrade_minor.sql 
sql_bits/mark_editable_objects.sql.in sql_bits/tiger_geocoder_comments.sql 
../postgis_extension_helper_uninstall.sql > 
sql/postgis_tiger_geocoder--$OLD_VERSION--2.2.0.sql; \
done
mkdir -p sql
cat sql_bits/test_tuples_only_unaligned.sql.in 
../../extras/tiger_geocoder/regress/normalize_address_regress.sql > 
sql/test-normalize_address.sql
mkdir -p sql
cat sql_bits/test_tuples_only_unaligned.sql.in 
../../extras/tiger_geocoder/regress/pagc_normalize_address_regress.sql > 
sql/test-pagc_normalize_address.sql
cat sql_bits/test_tuples_only_unaligned.sql.in 
../../extras/tiger_geocoder/regress/normalize_address_regress > 
expected/test-normalize_address.out
cat sql_bits/test_tuples_only_unaligned.sql.in 
../../extras/tiger_geocoder/regress/pagc_normalize_address_regress > 
expected/test-pagc_normalize_address.out
make[2]: Leaving directory 
'/<<BUILDDIR>>/postgis-2.2.0+dfsg/extensions/postgis_tiger_geocoder'
---- Making all in postgis_topology
make[2]: Entering directory 
'/<<BUILDDIR>>/postgis-2.2.0+dfsg/extensions/postgis_topology'
sed -e 's/BEGIN;//g' -e 's/COMMIT;//g' -e '/^CREATE SCHEMA/d;'  
../../topology/topology.sql > sql_bits/topology.sql
cp ../../doc/topology_comments.sql sql_bits/topology_comments.sql
mkdir -p sql
cat extlock.sql sql_bits/topology.sql sql_bits/mark_editable_objects.sql.in 
sql_bits/topology_comments.sql > sql/postgis_topology.sql
mkdir -p sql
cp sql/postgis_topology.sql sql/postgis_topology--2.2.0.sql
mkdir -p sql
cat ../../topology/topology.sql | '/usr/bin/perl' 
../../utils/create_unpackaged.pl postgis_topology > 
sql/postgis_topology--unpackaged--2.2.0.sql
sed -e 's/BEGIN;//g' -e 's/COMMIT;//g' -e '/^CREATE SCHEMA/d;'  
../../topology/topology_upgrade.sql > sql/topology_upgrade.sql
cat extlock.sql ../postgis_extension_helper.sql 
sql_bits/remove_from_extension.sql.in sql/topology_upgrade.sql 
sql_bits/mark_editable_objects.sql.in sql_bits/topology_comments.sql 
../postgis_extension_helper_uninstall.sql > 
sql/postgis_topology--2.2.0--2.2.0next.sql
cat sql/postgis_topology--2.2.0--2.2.0next.sql > 
sql/postgis_topology--2.2.0next--2.2.0.sql
for OLD_VERSION in 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.1.0 2.1.1 
2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0rc1; do \
          cat extlock.sql ../postgis_extension_helper.sql 
sql_bits/remove_from_extension.sql.in sql/topology_upgrade.sql 
sql_bits/mark_editable_objects.sql.in sql_bits/topology_comments.sql 
../postgis_extension_helper_uninstall.sql > 
sql/postgis_topology--$OLD_VERSION--2.2.0.sql; \
done
make[2]: Leaving directory 
'/<<BUILDDIR>>/postgis-2.2.0+dfsg/extensions/postgis_topology'
---- Making all in postgis_sfcgal
make[2]: Entering directory 
'/<<BUILDDIR>>/postgis-2.2.0+dfsg/extensions/postgis_sfcgal'
make[2]: *** No rule to make target '../../postgis/sfcgal.sql', needed by 
'sql_bits/sfcgal.sql'.  Stop.
make[2]: Leaving directory 
'/<<BUILDDIR>>/postgis-2.2.0+dfsg/extensions/postgis_sfcgal'
Makefile:26: recipe for target 'all' failed
make[1]: *** [all] Error 1
make[1]: Leaving directory '/<<BUILDDIR>>/postgis-2.2.0+dfsg/extensions'
debian/rules:177: recipe for target 'build-indep-stamp' failed
make: *** [build-indep-stamp] Error 2
dpkg-buildpackage: error: debian/rules build-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.

Reply via email to