Commit d87c9c30 authored by Valters Jansons's avatar Valters Jansons Committed by Michael Tremer

debian: Drop unintended files from location-python

_location.la gets built and installed to site-packages/, however
an .la file is not expected to reside in the Python root. Additionally,
the dependency library listed does not have its respective .la file
installed. Further complicating the situation, dh-python moves the
site-packages/ files to dist-packages/ silently which then results in
a broken libdir left behind in the .la file.

The only reason the file is there is that it gets built inside the
source directory, which gets copied entirely to location-python package
as-is. Considering the situation, this commit ensures the .la files is
not packaged by deleting it from the package files subdirectory.

location-importer package pulls in two Python (.py) files from the
source directory. These files should not be included in the
location-python package as a result.

Resolves: lintian:
  unknown-file-in-python-module-directory,
  incorrect-libdir-in-la-file,
  non-empty-dependency_libs-in-la-file,
  binaries-have-file-conflict
Signed-off-by: default avatarValters Jansons <valter.jansons@gmail.com>
Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent 73dfec83
......@@ -18,3 +18,11 @@ override_dh_perl:
override_dh_systemd_enable:
dh_systemd_enable location-update.timer
override_dh_install:
dh_install
# lintian: unknown-file-in-python-module-directory
rm debian/location-python/usr/lib/python3*/site-packages/_location.la
# linitan: binaries-have-file-conflict (d/location-importer.install)
rm debian/location-python/usr/lib/python3*/site-packages/location/database.py
rm debian/location-python/usr/lib/python3*/site-packages/location/importer.py
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment