mlat-client
mlat-client copied to clipboard
Debian 11 build problem
On Debian 11 package python2-minimal need to be installed. When it is missing, build fails with missing pyversions
root@rx:~/install/mlat-client-master# 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 <[email protected]>
dpkg-buildpackage: info: host architecture amd64
dpkg-source --before-build .
debian/rules clean
dh clean --with python3
dh: warning: Compatibility levels before 10 are deprecated (level 8 in use)
debian/rules override_dh_auto_clean
make[1]: Entering directory '/root/install/mlat-client-master'
dh_auto_clean
dh_auto_clean: warning: Compatibility levels before 10 are deprecated (level 8 in use)
dh_auto_clean: warning: Please use the third-party "pybuild" build system instead of python-distutils
dh_auto_clean: warning: This feature will be removed in compat 12.
Can't exec "pyversions": No such file or directory at /usr/share/perl5/Debian/Debhelper/Buildsystem/python_distutils.pm line 124.
dh_auto_clean: error: failed to run pyversions
make[1]: *** [debian/rules:31: override_dh_auto_clean] Error 255
make[1]: Leaving directory '/root/install/mlat-client-master'
make: *** [debian/rules:36: clean] Error 2
dpkg-buildpackage: error: debian/rules clean subprocess returned exit status 2
root@rx:~/install/mlat-client-master# cat /etc/debian_version
11.3
apt install python2-minimal
This seems like the wrong solution given that mlat-client is python3-only
It does not mean that mlat-client it is run by python2. You just need that python2-minimal package to build mlat-client package on Debian 11. Yes, proper way is to fix build process somehow.