On Wed, 25 Jun 2014, Brian May wrote: > If possible we should move them to under /usr/share and eliminate > the image-file-in-usr-lib lintian warning.
Right. > However, this is going to get rather tedious rather quickly. There are > numerous locale directories for example. Think each one has to be moved and > replaced by a symlink. Not sure how to do this and not end up with a total > mess in the process. replacing directories to symlinks is prone to potential future problems since dpkg doesn't replace one by the other so instead we should only symlink individual files and keep the duplicated directory structure. In particular since that's also what the python helpers are doing. So what we need to do is basically: find -type f debian/python3-django/usr/lib/python3/dist-packages/ -not -name '*.py' | \ (while read file; do relname=${file##debian/python3-django/usr/lib/python3/dist-packages/}; reldirname=$(dirname $relname); mkdir -p debian/python-django-common/usr/share/python-django-common/$reldirname; mv $file debian/python-django-common/usr/share/python-django-common/$reldirname/; rm debian/python3-django/usr/lib/python3/dist-packages/$relname; rm debian/python-django/usr/share/pyshared/$relname; ln -sf /usr/share/python-django-common/$relname debian/python3-django/usr/lib/python3/dist-packages/$relname; ln -sf /usr/share/python-django-common/$relname debian/python-django/usr/share/pyshared/$relname; done) Not tested, but you get the idea I guess. And obviously we need strong (= ${binary:Version}) dependency between python*-django and python-django-common. In the above /usr/share/pyshared/ needs to be replaced with the correct directory as I don't think we get that directory with the new build system. Cheers, -- Raphaël Hertzog ◈ Debian Developer Discover the Debian Administrator's Handbook: → http://debian-handbook.info/get/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org