Package: src:django-countries
Version: 5.2-1
Severity: serious
Tags: ftbfs

Dear maintainer:

I tried to build this package in buster with "dpkg-buildpackage -A"
but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh build-indep --with python2,python3 --buildsystem=pybuild
   dh_update_autotools_config -i -O--buildsystem=pybuild
   dh_autoreconf -i -O--buildsystem=pybuild
   dh_auto_configure -i -O--buildsystem=pybuild
I: pybuild base:217: python2.7 setup.py config 
running config
I: pybuild base:217: python3.6 setup.py config 
running config
   dh_auto_build -i -O--buildsystem=pybuild
I: pybuild base:217: /usr/bin/python setup.py build 
running build
running build_py

[... snipped ...]

copying django_countries/ioc_data.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.6_django-countries/build/django_countries
copying django_countries/__init__.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.6_django-countries/build/django_countries
creating 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.6_django-countries/build/django_countries/tests
copying django_countries/tests/test_fields.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.6_django-countries/build/django_countries/tests
copying django_countries/tests/test_widgets.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.6_django-countries/build/django_countries/tests
copying django_countries/tests/test_tags.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.6_django-countries/build/django_countries/tests
copying django_countries/tests/custom_countries.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.6_django-countries/build/django_countries/tests
copying django_countries/tests/test_countries.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.6_django-countries/build/django_countries/tests
copying django_countries/tests/test_settings.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.6_django-countries/build/django_countries/tests
copying django_countries/tests/settings.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.6_django-countries/build/django_countries/tests
copying django_countries/tests/models.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.6_django-countries/build/django_countries/tests
copying django_countries/tests/test_drf.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.6_django-countries/build/django_countries/tests
copying django_countries/tests/forms.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.6_django-countries/build/django_countries/tests
copying django_countries/tests/test_admin_filters.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.6_django-countries/build/django_countries/tests
copying django_countries/tests/__init__.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.6_django-countries/build/django_countries/tests
creating 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.6_django-countries/build/django_countries/templatetags
copying django_countries/templatetags/__init__.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.6_django-countries/build/django_countries/templatetags
copying django_countries/templatetags/countries.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.6_django-countries/build/django_countries/templatetags
   debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
set -e; \
for python in python2.7 python3.6; do \
  PYTHONPATH="." DJANGO_SETTINGS_MODULE=django_countries.tests.settings $python 
/usr/bin/django-admin test django_countries.tests;\
done
......................................................................................................................................F.........
======================================================================
FAIL: test_multi_deserialize_invalid (django_countries.tests.test_drf.TestDRF)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/django_countries/tests/test_drf.py", line 147, in 
test_multi_deserialize_invalid
    ['"BAD" is not a valid choice.'])
AssertionError: {1: [ErrorDetail(string=u'"BAD" is not a valid choice.', 
code=u'invalid_choice')]} != [u'"BAD" is not a valid choice.']

----------------------------------------------------------------------
Ran 144 tests in 0.442s

FAILED (failures=1)
Creating test database for alias 'default'...
System check identified no issues (0 silenced).
Destroying test database for alias 'default'...
debian/rules:14: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:10: recipe for target 'build-indep' failed
make: *** [build-indep] Error 2
dpkg-buildpackage: error: debian/rules build-indep subprocess returned exit 
status 2
--------------------------------------------------------------------------------

The above is how the build ends in my autobuilder and it's not
necessarily the relevant part.

The failure is not, however, related to using dpkg-buildpackage -A,
as it also fails in reproducible builds:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/django-countries.html

If this is really a bug in one of the build-depends, please use reassign and 
affects,
so that this is still visible in the page for this package.

Thanks.

Reply via email to