kumquat-buildroot/support/dependencies
Adam Duskett 6809f38351 dependencies.sh: Check for a host python version >= 2.7
Older distributions such as CentOS6 come with python2.6, which causes build
failures in packages such as host-libglib2 because they require python2.7 and
above.

host-libglib2 will produce the error message:
/bin/sh: python2.7: command not found

Python2.7 is a hard-coded value in configure.ac. If one changes the value to
just "python," the following stack trace is produced:

Traceback (most recent call last):
  File "./gdbus-2.0/codegen/gdbus-codegen.in", line 55, in <module>
    self.outfile.write(LICENSE_STR.format(config.VERSION))
ValueError    : sys.exit(codegen_main.codegen_main())
zero length field name in format

Instead of supporting an ancient version of Python that had its support ended
in October os 2013, it would be more pragmatic only to support Python2.7 and
above.

Luckily; CentOS6 has the centos-release-scl repository, which allows users to
install python2.7, and Debian 8 comes with Python2.7 already, making this patch
relatively low impact.

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
[Peter: only look at major.minor to handle x.y.z with z < 10]
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2019-02-04 13:22:55 +01:00
..
check-host-asciidoc.sh manual generation: check dependencies first 2013-11-01 16:41:04 +01:00
check-host-bison-flex.mk support/dependencies: check for system-provided bison and flex 2018-08-20 16:01:42 +02:00
check-host-cmake.mk Globally replace $(HOST_DIR)/usr/bin with $(HOST_DIR)/bin 2017-07-05 15:19:29 +02:00
check-host-cmake.sh core: allow check-host-cmake.sh to try several candidates 2017-06-24 21:25:45 +02:00
check-host-gzip.mk support/dependencies: add a check for a suitable gzip 2018-11-24 15:14:58 +01:00
check-host-gzip.sh support/dependencies: add a check for a suitable gzip 2018-11-24 15:14:58 +01:00
check-host-lzip.mk package/pkg-generic: handle host-lzip as an extract dependency 2018-03-25 17:45:58 +02:00
check-host-lzip.sh package: add generic support for lz archives 2017-02-15 22:11:11 +01:00
check-host-make.mk make: configure host-make with host- prefix 2018-11-20 08:17:43 +01:00
check-host-make.sh dependencies: host-make version check 2018-09-08 23:36:36 +02:00
check-host-tar.mk package/pkg-generic: handle host-tar as an extract dependency 2018-03-25 17:43:20 +02:00
check-host-tar.sh support/dependencies: treat BSD-tar like the other cases 2018-11-24 15:14:50 +01:00
check-host-xzcat.mk package/pkg-generic: handle host-xz as an extract dependency 2018-03-25 17:44:04 +02:00
check-host-xzcat.sh xzcat: treat as host prerequisite and build if needed 2013-09-06 23:30:36 +02:00
dependencies.mk core: kill DEPENDENCIES_HOST_PREREQ 2018-03-25 17:52:06 +02:00
dependencies.sh dependencies.sh: Check for a host python version >= 2.7 2019-02-04 13:22:55 +01:00