prereq-build: require python3-distutils
authorAndre Heider <a.heider@gmail.com>
Tue, 10 Aug 2021 10:22:17 +0000 (12:22 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 21 Aug 2021 14:31:20 +0000 (16:31 +0200)
commit60af8d753343691c4a647bfc7c51ef6eb92df9f2
tree8d5030f50a93c72e9ffe673888605bf217072b19
parent4b4fa2f9fed7340dca12b4fcd8e36e0c8612b95d
prereq-build: require python3-distutils

Debian and Ubuntu ship a python3-minimal package which does not include
the distutils module. This is not supported by upstream and can be
considered a broken python distribution.

In practice, many scripts depend on said module, and this is a reoccuring
pain point for building various OpenWrt packages.

Require and check for said module, enough time has been wasted on this.

A list of just the most recent issues:
https://github.com/openwrt/packages/pull/16304
https://github.com/openwrt/packages/pull/16027
https://github.com/openwrt/packages/pull/15443
https://github.com/openwrt/packages/pull/14394
https://github.com/openwrt/packages/pull/12909
https://github.com/openwrt/packages/issues/12443
https://github.com/openwrt/packages/pull/11035
https://github.com/openwrt/packages/issues/10993

Signed-off-by: Andre Heider <a.heider@gmail.com>
include/prereq-build.mk