[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 14/18] website-build: configure: require awk.
From: |
Denis 'GNUtoo' Carikli |
Subject: |
[PATCH v1 14/18] website-build: configure: require awk. |
Date: |
Sat, 25 May 2024 20:25:49 +0200 |
Without that fix, running configure fails both without and and with
guix:
$ guix shell -C \
bash coreutils findutils git \
grep gzip pandoc sed tar -- \
./configure --disable-guix --disable-lighttpd
[...]
config.status: creating Makefile
./config.status: line 920: awk: command not found
sed: couldn't write 24 items to stdout: Broken pipe
config.status: error: could not create Makefile
$ guix shell -C \
bash coreutils grep guix sed tar -- \
./configure --disable-lighttpd
[...]
config.status: creating Makefile
./config.status: line 920: awk: command not found
sed: couldn't write 24 items to stdout: Broken pipe
config.status: error: could not create Makefile
And in both tests above we need coreutils, grep, sed and tar anyway as
without that configure doesn't even get to the point of failing to
find the other utilities:
$ guix shell -C bash -- ./configure
[...]
./configure: line 492: sed: command not found
./configure: line 491: expr: command not found
./configure: line 492: sed: command not found
./configure: line 506: sed: command not found
: error: cannot create .lineno; rerun with a POSIX shell
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
---
website-build/configure.ac | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/website-build/configure.ac b/website-build/configure.ac
index 43d3300..6ae2c4f 100644
--- a/website-build/configure.ac
+++ b/website-build/configure.ac
@@ -68,6 +68,10 @@ AC_ARG_WITH([untitled-path],
AM_CONDITIONAL( [WANT_UNTITLED_PATH], [test x"$UNTITLED_PATH" != x""])
# Check dependencies
+AC_CHECK_PROG([FOUND_AWK], [awk], [awk])
+AS_IF([test x"$FOUND_AWK" = x""],
+ [AC_MSG_ERROR([awk was not found in PATH ($PATH)])])
+
AC_CHECK_PROG([FOUND_REALPATH], [realpath], [realpath])
AS_IF([test x"$FOUND_REALPATH" = x""],
[AC_MSG_ERROR([realpath was not found in PATH ($PATH)])])
--
2.41.0
- [PATCH v1 11/18] website-build: Makefile: default to help target., (continued)
- [PATCH v1 11/18] website-build: Makefile: default to help target., Denis 'GNUtoo' Carikli, 2024/05/25
- [PATCH v1 09/18] website-build: build.sh: make it pass shellcheck., Denis 'GNUtoo' Carikli, 2024/05/25
- [PATCH v1 12/18] website-build: README: fix introduction., Denis 'GNUtoo' Carikli, 2024/05/25
- [PATCH v1 10/18] website-build: targets: rename targets to use build, serve and publish., Denis 'GNUtoo' Carikli, 2024/05/25
- [PATCH v1 13/18] website-build: configure: make realpath and tar requirement work., Denis 'GNUtoo' Carikli, 2024/05/25
- [PATCH v1 14/18] website-build: configure: require awk.,
Denis 'GNUtoo' Carikli <=
- [PATCH v1 15/18] website-build: serve.sh: help: fix program name., Denis 'GNUtoo' Carikli, 2024/05/25
- [PATCH v1 16/18] website-build: check.sh: help: fix program name., Denis 'GNUtoo' Carikli, 2024/05/25
- [PATCH v1 18/18] website-build: check.sh: start adding tests for site/., Denis 'GNUtoo' Carikli, 2024/05/25
- [PATCH v1 17/18] website-build: serve.sh: remove the need for random temporary directory., Denis 'GNUtoo' Carikli, 2024/05/25