kumquat-buildroot/support/dependencies
Romain Naour 53beb8fc1a support/dependencies: introduce BR2_HOST_CMAKE_AT_LEAST
Some packages (e.g. libjxl) requires a quite recent cmake version,
that is not yet available in most distributions, especially those
LTS versions.

Currently, when we bump the minimum cmake version we require, it gets
bumped for all packages, regardless of their own minimum required
version, which means that a given configuration will trigger the
build of our host-cmake even if the packages that require it are not
enabled and those that are would be content with the system-provided
cmake.

Since host-cmake can take quite some time to build, this can get a
bit annoying to pay the price of a host-cmake build that would
otherwise not be needed.

Some packages even use an alternative build system when available
since they requires a more recent version of cmake than the our
minimum cmake version
(wpewebkit use Ninja: 78d499409f).

We introduce config options that packages can select to indicate
what minimal cmake version they require, and use that version as the
required minimal version required by the current configuration [0].

We would like to ensure that the currently selected minimum cmake
version is indeed lower (or equal) to the cmake version we package,
but that is not possible: dependencies.mk is parsed before we parse
packages, so we do not yet know the cmake version we have, and we
can't invert the parsing order as we need to know the required
dependencies before we parse packages (so that we can build their
dependency rules in Makefile). So we can only add comments in both
places, that refer to the other location.

[0] note that this is yet not optimal, as in such a case, host-cmake
would be in the dependency chain of all cmake-based packages, even
for those packages that do not require it. The optimum would be for
each package to gain such a dependency on an as-needed basis, but
this is by far more complex to achieve, and would only speed up
cases where a single package is built from scratch (e.g. with:
make clean; make foo), which is not worth optimising (yet?)

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Julien Olivain <ju.o@free.fr>
Cc: Arnout Vandecappelle <arnout@mind.be>
Cc: Peter Korsgaard <peter@korsgaard.com>
Cc: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2023-06-06 22:06:49 +02:00
..
check-host-asciidoc.sh
check-host-bison-flex.mk Revert "make: support: use command -v' instead of which'" 2021-10-01 20:09:58 +02:00
check-host-cmake.mk support/dependencies: introduce BR2_HOST_CMAKE_AT_LEAST 2023-06-06 22:06:49 +02:00
check-host-cmake.sh Revert "make: support: use command -v' instead of which'" 2021-10-01 20:09:58 +02:00
check-host-coreutils.mk core/dependencies: check if we need to build our own host-coreutils 2020-01-06 21:43:38 +01:00
check-host-coreutils.sh core/dependencies: check if we need to build our own host-coreutils 2020-01-06 21:43:38 +01: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 Revert "make: support: use command -v' instead of which'" 2021-10-01 20:09:58 +02:00
check-host-lzip.mk package/pkg-utils.mk: rework implementation of extractor-system-dependency 2019-12-17 22:09:48 +01:00
check-host-lzip.sh Revert "make: support: use command -v' instead of which'" 2021-10-01 20:09:58 +02: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-python3.mk support/dependencies: add a check for python3 2019-03-15 22:26:40 +01:00
check-host-python3.sh Revert "make: support: use command -v' instead of which'" 2021-10-01 20:09:58 +02:00
check-host-tar.mk
check-host-tar.sh Revert "make: support: use command -v' instead of which'" 2021-10-01 20:09:58 +02:00
check-host-xzcat.mk package/pkg-utils.mk: rework implementation of extractor-system-dependency 2019-12-17 22:09:48 +01:00
check-host-xzcat.sh Revert "make: support: use command -v' instead of which'" 2021-10-01 20:09:58 +02:00
dependencies.mk support/dependencies: avoid spurious warning on print-vars 2021-12-04 20:09:04 +01:00
dependencies.sh support/dependencies/dependencies.sh: require FileHandle perl package for ace 2023-03-11 09:51:55 +01:00