Bug 12727 - Debian build seems to be broken
Summary: Debian build seems to be broken
Status: CLOSED WORKSFORME
Alias: None
Product: Location Database
Classification: Unclassified
Component: libloc (show other bugs)
Version: unspecified
Hardware: unspecified Unspecified
: Will affect all users Crash
Assignee: Stefan Schantl
QA Contact: Peter Müller
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-22 10:31 UTC by Michael Tremer
Modified: 2026-10-13 10:43 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Tremer 2021-11-22 10:31:44 UTC
The latest (0.9.9) Debian build does not seem to be packaged right at all.

I suppose there is a connection with bug 12468, but suddenly all sorts of files are not in places where they are expected.

> root@location01:~/configuration/haj.ipfire.org/location01# python3
> Python 3.9.2 (default, Feb 28 2021, 17:03:44)
> [GCC 10.2.1 20210110] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import sys
> >>> sys.path
> ['', '/usr/lib/python39.zip', '/usr/lib/python3.9', '/usr/lib/python3.9/lib-dynload', '/usr/local/lib/python3.9/dist-packages', '/usr/lib/python3/dist-packages']

The files in the package are located in /usr/lib/python3.9/site-packages.
Comment 1 Michael Tremer 2026-10-13 10:43:17 UTC
I cannot reproduce this any more.

I have built the packages from the current master branch (9f9518b) in a clean debian:trixie container the same way Jenkins does (dpkg-buildpackage --build=full). The Python module is where it is supposed to be:

  /usr/lib/python3/dist-packages/_location.cpython-313-x86_64-linux-gnu.so
  /usr/lib/python3/dist-packages/location/__init__.py

Installing libloc1, python3-location, location, lua-location and libloc-dev into another clean container works, "import location" loads the module from that path, "location version" and "location lookup" work, and Lua can load its module as well.

The packaging has been rewritten since 0.9.9 (pybuild moves the module into the directory of the interpreter that it has been built for), so that this has most likely been fixed along the way.

Closing this. Please reopen if this happens again with a current version.