mutability / mlat-client

Mode S multilateration client
GNU General Public License v3.0
82 stars 75 forks source link

Build issues on Raspberry Pi's Debian #36

Open cnlohr opened 1 year ago

cnlohr commented 1 year ago

I get the following error after installing prerequisites:

pi@cabinpi:~/mlat-client $ dpkg-buildpackage -b -uc
dpkg-buildpackage: info: source package mlat-client
dpkg-buildpackage: info: source version 0.2.11
dpkg-buildpackage: info: source distribution stable
dpkg-buildpackage: info: source changed by Oliver Jowett <oliver.jowett@flightaware.com>
dpkg-buildpackage: info: host architecture armhf
 dpkg-source --before-build .
 fakeroot debian/rules clean
dh clean --with python3
dh: warning: Compatibility levels before 10 are deprecated (level 8 in use)
dh: error: unable to load addon python3: Can't locate Debian/Debhelper/Sequence/python3.pm in @INC (you may need to install the Debian::Debhelper::Sequence::python3 module) (@INC contains: /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/arm-linux-gnueabihf/perl5/5.32 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl-base /usr/lib/arm-linux-gnueabihf/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl) at (eval 4) line 1.
BEGIN failed--compilation aborted at (eval 4) line 1.

make: *** [debian/rules:36: clean] Error 255
dpkg-buildpackage: error: fakeroot debian/rules clean subprocess returned exit status 2

Solution: include dh-python to the prerequisites. And add dh-python to the debian/conrol file's build-depends.

Then, I get the following error:

dh_auto_clean: error: failed to run pyversions

I tried installing it via pip3, but to no avail.

Any ideas?

I was able to "get around it" by just symlinking py3versions to pyversions. That feels incredibly ugly, though. It looks like the build tool ignores the override in debian/rules.