From: Pádraig Brady
Date: Sat, 20 Apr 2024 09:40:06 +0000 (+0100) Subject: build: provide way to bootstrap with python gnulib-tool X-Git-Tag: v9.6~250 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=555f9061eedd5a46e171b3add71d2c686ed4f72d;p=thirdparty%2Fcoreutils.git build: provide way to bootstrap with python gnulib-tool * cfg.mk: Add a new "world" default target so that one can bootstrap (using the python implementation), configure, and make, by using `make -f cfg.mk`. * gnulib: Update to latest primarily to test the bootstrap python implementation which is now in beta test. * README-hacking: Document the `make -f cfg.mk` shortcut. --- diff --git a/README-hacking b/README-hacking index 6f375b4efc..dd6b48a368 100644 --- a/README-hacking +++ b/README-hacking @@ -45,16 +45,17 @@ time and file system space requirements: $ export GNULIB_SRCDIR=/path/to/gnulib -The next step is to get and check other files needed to build, -which are extracted from other source packages: +The next steps are to get and check other files needed to build, +and complete the build: - $ ./bootstrap + $ make -f cfg.mk -And there you are! Just +For reference the above command runs the following steps, +which can be done individually if required to give more control: + $ ./bootstrap $ ./configure --quiet #[--disable-gcc-warnings] [*] - $ make - $ make check + $ make #[check] At this point, there should be no difference between your local copy, and the Git master copy: diff --git a/cfg.mk b/cfg.mk index 6141cc1edb..fc292eabe5 100644 --- a/cfg.mk +++ b/cfg.mk @@ -57,6 +57,11 @@ _makefile_at_at_check_exceptions = \ # Our help-version script is in a slightly different location. _hv_file ?= $(srcdir)/tests/misc/help-version +world: + GNULIB_TOOL_IMPL=py ./bootstrap && \ + ./configure --quiet && \ + $(MAKE) $(AM_MAKEFLAGS) -j $$(nproc 2>/dev/null || echo 1) + # Ensure that the list of O_ symbols used to compute O_FULLBLOCK is complete. dd = $(srcdir)/src/dd.c sc_dd_O_FLAGS: diff --git a/gnulib b/gnulib index 83a61464bd..237cbf1c76 160000 --- a/gnulib +++ b/gnulib @@ -1 +1 @@ -Subproject commit 83a61464bd251ccd031ca3188d8be151f6591470 +Subproject commit 237cbf1c7639ebf06117b21381e463dedbb474b8