agdsn / hades

AG DSN Authentication and Authorization Infrastructure
MIT License
8 stars 3 forks source link

Debian packaging process does not build locale files #60

Open fgrsnau opened 7 years ago

fgrsnau commented 7 years ago

When dpkg-buildpackage is called in a completely clean build tree the following happens:

# Move console scripts to /usr/bin                        
mkdir -p debian/hades/usr/bin                     
mv debian/hades/usr/lib/hades/bin/hades-* debian/hades/usr/bin
make[1]: Leaving directory '/build/hades'      
   dh_install -O--buildsystem=dh_virtualenv                      
dh_install: Cannot find (any matches for) "locales/de/LC_MESSAGES/hades.mo" (tried in "." and "debian/tmp")
dh_install: hades missing files: locales/de/LC_MESSAGES/hades.mo
dh_install: missing files, aborting

A manual python3 setup.py build before running dpkg-buildpackage is a workaround.

sebschrader commented 6 years ago

I want to add, that this issue only occurs when dh-virtualenv ist used. The following works fine:

builder@01234567890a:~/hades$ USE_DH_VIRTUALENV=0 dpkg-buildpackage -uc -us -b