coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] build: provide way to bootstrap with python gnulib-tool


From: Pádraig Brady
Subject: [PATCH] build: provide way to bootstrap with python gnulib-tool
Date: Tue, 23 Apr 2024 12:35:44 +0100

* 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.
---
 README-hacking | 13 +++++++------
 cfg.mk         |  5 +++++
 gnulib         |  2 +-
 3 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/README-hacking b/README-hacking
index 6f375b4ef..dd6b48a36 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 6141cc1ed..fc292eabe 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 83a61464b..237cbf1c7 160000
--- a/gnulib
+++ b/gnulib
@@ -1 +1 @@
-Subproject commit 83a61464bd251ccd031ca3188d8be151f6591470
+Subproject commit 237cbf1c7639ebf06117b21381e463dedbb474b8
-- 
2.44.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]